|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.epicentric.services.GenericService
|
+--com.epicentric.users.UserGroupManager
UserGroupManager class
Interface to the underlying representation of user groups.
| Inner Class Summary | |
static class |
UserGroupManager.GroupFormattedCreatedDateComparator
Deprecated. |
static class |
UserGroupManager.GroupNameComparator
Deprecated. |
| Field Summary | |
static String |
ADD_GROUP_RELATIONSHIP
Deprecated. |
protected HashMap |
ancestorCache
Deprecated. Maintains a map of UserGroup IDs to a Set of Ancestor UserGroup IDs. |
static String |
DELETE_GROUP
Deprecated. |
protected HashMap |
descendantCache
Deprecated. Maintains a map of UserGroup ids to a Set of descendant UserGroup ids. |
protected Hashtable |
groupCacheByID
Deprecated. |
protected Hashtable |
groupUIDToIDMapping
Deprecated. |
static String |
REMOVE_GROUP_RELATIONSHIP
Deprecated. |
| Constructor Summary | |
protected |
UserGroupManager()
Deprecated. Subclasses should call loadAllGroups() |
| Method Summary | |
void |
announceGroupChange(int id)
Deprecated. Announce the a group has changed. |
void |
announceGroupRelationshipChange(UserGroup parent,
UserGroup child,
String changeType)
Deprecated. Announce that a group relationship has been changed. |
protected static void |
copyGroups(Permission oldPerm,
Permission newPerm)
Deprecated. Copies group ids from one permission to another. |
UserGroup |
createGroup(String name,
String description)
Deprecated. |
protected abstract UserGroup |
createGroup0(String name,
String description)
Deprecated. Subclasses should override to do actual group creation and storage |
void |
deleteGroup(UserGroup group)
Deprecated. |
protected abstract void |
deleteGroup0(UserGroup group)
Deprecated. Subclasses should override to do actual group deletion |
void |
flushAncestorCache()
Deprecated. Remove all ancestor cache entries. |
void |
flushAncestorCacheForGroup(UserGroup group)
Deprecated. Remove the ancestor cache entry for a given group and any other entries that this group appears in. |
protected void |
flushCache(Map cache)
Deprecated. |
protected void |
flushCacheForGroup(Map cache,
UserGroup group)
Deprecated. |
void |
flushDescendantCache()
Deprecated. Remove all descendant cache entries. |
void |
flushDescendantCacheForGroup(UserGroup group)
Deprecated. Remove the descendant cache entry for a given group and any other entries that this group appears in. |
Enumeration |
getAllGroups()
Deprecated. Return a list of all groups, in alphabetical order |
Enumeration |
getAllGroups(Comparator sortInstructions)
Deprecated. Return a list of all groups, sorted accoding to the provided comparator |
Set |
getAncestorGroupIDs(UserGroup group)
Deprecated. Returns an unmodifiable Set containing all of the group ids (as Integer objects) that the input group inherits from. |
protected com.epicentric.broadcaster.Broadcaster |
getBroadcaster()
Deprecated. Get broadcaster to be used to announce group changes. |
static UserGroupManager |
getDefaultUserGroupManager()
Deprecated. Return the default user manager as defined by the config file. |
Set |
getDescendantGroupIDs(UserGroup group)
Deprecated. Returns an unmodifiable Set containing all of the group ids (as Integer objects) that inherit from the the input group. |
UserGroup |
getGroup(int id)
Deprecated. |
abstract UserGroup |
getGroup(String name)
Deprecated. Group names are no longer unique. This method will return the first group found with the provided name |
UserGroup |
getGroupByUniqueID(String uniqueID)
Deprecated. Get a group by unique id |
Enumeration |
getGroups(int offset,
int numGroups)
Deprecated. Returns a subset of groups based on a starting offset and a range. |
Enumeration |
getGroupsByOwnerID(int oid)
Deprecated. Returns a collection of groups whose ownerID matches id or null if no such groups exist. |
static UserGroupManager |
getInstance()
Deprecated. As of version 3.5. Will be removed in 8.0 or later. Use getDefaultUserGroupManager() --- for now |
Enumeration |
getMatchingGroups(String query)
Deprecated. Returns an Enumeration of all groups that have query as a substring in either their name or description fields, or null if there are no matching groups. |
Vector |
getMatchingGroupsAsVector(String query)
Deprecated. Returns a Vector of all groups that have query as a substring in either their name or description fields, or null if there are no matching groups. |
int |
getNumGroups()
Deprecated. Return number of groups in system, excluding the Everyone group. |
static PermissionCatalog |
getStandardPermissionCatalog()
Deprecated. |
protected void |
installListener()
Deprecated. Install a listener that updates and/or deletes cached group objects in response to broadcast events. |
boolean |
isValidAsParentGroup(UserGroup child,
UserGroup proposedParent)
Deprecated. Checks to see if the proposedParent group can be safely added as a parent of the given child group. |
protected abstract void |
loadAllGroups()
Deprecated. Subclasses must implement to load group data into memory. |
protected abstract UserGroup |
reloadGroup(int id)
Deprecated. return a group object freshly loaded from the database. |
void |
updateGroupRelationships(UserGroup parent,
UserGroup child,
String changeType)
Deprecated. Updates the hierarchical relationship between two groups. |
void |
updateName(UserGroup group,
String newName)
Deprecated. Groups are no longer cached by name. This method is obsolete. |
static void |
upgradeGroupPermissions(PermissionContext context)
Deprecated. Upgrade a pre-3.0 userGroup's permissions. |
| Methods inherited from class com.epicentric.services.GenericService |
getDescription, getID, getName, getServiceInfo, init, restart, setDescription, setID, setName, setServiceInfo, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ADD_GROUP_RELATIONSHIP
public static final String REMOVE_GROUP_RELATIONSHIP
public static final String DELETE_GROUP
protected Hashtable groupCacheByID
protected Hashtable groupUIDToIDMapping
protected HashMap ancestorCache
protected HashMap descendantCache
| Constructor Detail |
protected UserGroupManager()
| Method Detail |
public static UserGroupManager getInstance()
public static UserGroupManager getDefaultUserGroupManager()
protected abstract void loadAllGroups()
public Enumeration getAllGroups(Comparator sortInstructions)
public Enumeration getAllGroups()
public Enumeration getGroupsByOwnerID(int oid)
public Enumeration getGroups(int offset,
int numGroups)
public int getNumGroups()
public UserGroup getGroup(int id)
public abstract UserGroup getGroup(String name)
public UserGroup getGroupByUniqueID(String uniqueID)
public UserGroup createGroup(String name,
String description)
throws PersistificationException
protected abstract UserGroup createGroup0(String name,
String description)
throws PersistificationException
public void deleteGroup(UserGroup group)
protected abstract void deleteGroup0(UserGroup group)
throws PersistificationException
protected abstract UserGroup reloadGroup(int id)
throws PersistificationException
public void updateName(UserGroup group,
String newName)
throws PersistificationException
protected com.epicentric.broadcaster.Broadcaster getBroadcaster()
throws com.epicentric.broadcaster.BroadcasterException
public void announceGroupChange(int id)
public void announceGroupRelationshipChange(UserGroup parent,
UserGroup child,
String changeType)
protected void installListener()
public static PermissionCatalog getStandardPermissionCatalog()
public Enumeration getMatchingGroups(String query)
public Vector getMatchingGroupsAsVector(String query)
UserGroupManager.getMatchingGroups(String query)
public void updateGroupRelationships(UserGroup parent,
UserGroup child,
String changeType)
public Set getAncestorGroupIDs(UserGroup group)
public Set getDescendantGroupIDs(UserGroup group)
public boolean isValidAsParentGroup(UserGroup child,
UserGroup proposedParent)
public void flushAncestorCacheForGroup(UserGroup group)
public void flushDescendantCacheForGroup(UserGroup group)
public void flushAncestorCache()
public void flushDescendantCache()
protected void flushCacheForGroup(Map cache,
UserGroup group)
public static void upgradeGroupPermissions(PermissionContext context)
protected static void copyGroups(Permission oldPerm,
Permission newPerm)
protected void flushCache(Map cache)
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||