com.anwrt.anycontent.plugins.core.group
Class EmptyGroupManager

java.lang.Object
  extended bycom.anwrt.anycontent.plugins.core.group.EmptyGroupManager
All Implemented Interfaces:
GroupManager

public class EmptyGroupManager
extends java.lang.Object
implements GroupManager

Empty implementation of the group manager.
Used when no groups of users is needed.


Constructor Summary
EmptyGroupManager()
           
 
Method Summary
 void configure(Configuration configuration)
          Configure an extension with its parameters.
 UserGroup getGroup(java.lang.String groupID)
          Returns a particular group.
 java.util.Set getGroups()
          Returns all groups.
 java.util.Set getUserGroups(java.lang.String login)
          Get all groups a particular is in.
 void initialize()
          Initialize the plugin with deploy parameters.
 void toSAX(org.xml.sax.ContentHandler ch, java.util.Map parameters)
          Sax the user list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyGroupManager

public EmptyGroupManager()
Method Detail

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Description copied from interface: GroupManager
Configure an extension with its parameters.
Call once before initialization.
Deploy parameters are not yet available.

Specified by:
configure in interface GroupManager
Parameters:
configuration - The configuration.
Throws:
ConfigurationException

initialize

public void initialize()
Description copied from interface: GroupManager
Initialize the plugin with deploy parameters.
Call once after configuration.

Specified by:
initialize in interface GroupManager

getGroup

public UserGroup getGroup(java.lang.String groupID)
Description copied from interface: GroupManager
Returns a particular group.

Specified by:
getGroup in interface GroupManager
Parameters:
groupID - The id of the group.
Returns:
The group or null if the group does not exists.

getGroups

public java.util.Set getGroups()
Description copied from interface: GroupManager
Returns all groups.

Specified by:
getGroups in interface GroupManager
Returns:
The groups as a Set of UserGroup, empty if an error occurs.

getUserGroups

public java.util.Set getUserGroups(java.lang.String login)
Description copied from interface: GroupManager
Get all groups a particular is in.

Specified by:
getUserGroups in interface GroupManager
Parameters:
login - The login of the user.
Returns:
The groups as a Set of String (group ID), empty if the login does not match.

toSAX

public void toSAX(org.xml.sax.ContentHandler ch,
                  java.util.Map parameters)
           throws org.xml.sax.SAXException
Description copied from interface: GroupManager
Sax the user list.

Specified by:
toSAX in interface GroupManager
Parameters:
ch - The content handler to sax in.
parameters - Parameters for saxing user list differently, see implementation.
Throws:
org.xml.sax.SAXException - If an error occurs while saxing.


Copyright © 2006 Anyware Technologies. All Rights Reserved.