| java.lang.Object org.jasig.portal.groups.GroupMemberImpl
All known Subclasses: org.jasig.portal.groups.EntityImpl, org.jasig.portal.groups.EntityGroupImpl,
GroupMemberImpl | abstract public class GroupMemberImpl implements IGroupMember(Code) | | GroupMemberImpl summary first sentence goes here.
author: Dan Ellentuck version: $Revision: 36806 $ See Also: IGroupMember |
Method Summary | |
public void | addGroup(IEntityGroup eg) Adds the key of the IEntityGroup to our Set of group keys
by copying the keys, updating the copy, and replacing the old keys with the copy. | protected Set | castAndCopyHashSet(Set s) Cast a Set to a HashSet, clone it, and down cast back to Set. | public boolean | contains(IGroupMember gm) Default implementation, overridden on EntityGroupImpl. | public boolean | deepContains(IGroupMember gm) Default implementation, overridden on EntityGroupImpl. | public java.util.Iterator | getAllContainingGroups() Returns an Iterator over the Set of this
IGroupMember's recursively-retrieved parent groups. | public java.util.Iterator | getAllEntities() Default implementation, overridden on EntityGroupImpl. | public java.util.Iterator | getAllMembers() Default implementation, overridden on EntityGroupImpl. | protected String | getCacheKey() | protected ICompositeGroupService | getCompositeGroupService() Returns the composite group service. | public java.util.Iterator | getContainingGroups() Returns an Iterator over this IGroupMember's parent groups. | public java.util.Iterator | getEntities() Default implementation, overridden on EntityGroupImpl. | public java.lang.String | getKey() | public IEntityGroup | getMemberGroupNamed(String name) Default implementation, overridden on EntityGroupImpl. | public java.util.Iterator | getMembers() Default implementation, overridden on EntityGroupImpl. | public java.lang.Class | getType() | public EntityIdentifier | getUnderlyingEntityIdentifier() | public boolean | hasMembers() Default implementation, overridden on EntityGroupImpl. | public int | hashCode() | public boolean | isDeepMemberOf(IGroupMember gm) Answers if this IGroupMember is, recursively, a member of IGroupMember gm. | public boolean | isEntity() | public boolean | isGroup() | protected boolean | isKnownEntityType(Class anEntityType) | public boolean | isMemberOf(IGroupMember gm) Answers if this IGroupMember is a member of IGroupMember gm. | protected java.util.Set | primGetAllContainingGroups(IGroupMember member, Set s) Returns the Set of groups in our member Collection and,
recursively, in the Collections of our members.
Parameters: member - org.jasig.portal.groups.IGroupMember - The current group member in the recursive execution. Parameters: s - java.lang.Set - A Set that groups are added to. | public void | removeGroup(IEntityGroup eg) Removes the key of the IEntityGroup from our Set of group keys
by copying the keys, updating the copy, and replacing the old keys with the copy. | protected void | setGroupKeysInitialized(boolean newGroupKeysInitialized) |
addGroup | public void addGroup(IEntityGroup eg) throws GroupsException(Code) | | Adds the key of the IEntityGroup to our Set of group keys
by copying the keys, updating the copy, and replacing the old keys with the copy.
This lets us confine synchronization to the getter and setter methods for the keys.
Parameters: eg - org.jasig.portal.groups.IEntityGroup |
castAndCopyHashSet | protected Set castAndCopyHashSet(Set s)(Code) | | Cast a Set to a HashSet, clone it, and down cast back to Set.
HashSet |
contains | public boolean contains(IGroupMember gm) throws GroupsException(Code) | | Default implementation, overridden on EntityGroupImpl.
Parameters: gm - org.jasig.portal.groups.IGroupMember boolean |
deepContains | public boolean deepContains(IGroupMember gm) throws GroupsException(Code) | | Default implementation, overridden on EntityGroupImpl.
Parameters: gm - org.jasig.portal.groups.IGroupMember boolean |
getAllContainingGroups | public java.util.Iterator getAllContainingGroups() throws GroupsException(Code) | | Returns an Iterator over the Set of this
IGroupMember's recursively-retrieved parent groups.
java.util.Iterator |
getCacheKey | protected String getCacheKey()(Code) | | java.lang.String |
getContainingGroups | public java.util.Iterator getContainingGroups() throws GroupsException(Code) | | Returns an Iterator over this IGroupMember's parent groups.
Synchronize the collection of keys with adds and removes.
java.util.Iterator |
getMemberGroupNamed | public IEntityGroup getMemberGroupNamed(String name) throws GroupsException(Code) | | Default implementation, overridden on EntityGroupImpl.
org.jasig.portal.groups.IEntityGroup Parameters: name - java.lang.String |
hasMembers | public boolean hasMembers() throws GroupsException(Code) | | Default implementation, overridden on EntityGroupImpl.
boolean |
hashCode | public int hashCode()(Code) | | |
isDeepMemberOf | public boolean isDeepMemberOf(IGroupMember gm) throws GroupsException(Code) | | Answers if this IGroupMember is, recursively, a member of IGroupMember gm.
boolean Parameters: gm - org.jasig.portal.groups.IGroupMember |
isEntity | public boolean isEntity()(Code) | | boolean |
isGroup | public boolean isGroup()(Code) | | boolean |
isMemberOf | public boolean isMemberOf(IGroupMember gm) throws GroupsException(Code) | | Answers if this IGroupMember is a member of IGroupMember gm.
Parameters: gm - org.jasig.portal.groups.IGroupMember boolean |
primGetAllContainingGroups | protected java.util.Set primGetAllContainingGroups(IGroupMember member, Set s) throws GroupsException(Code) | | Returns the Set of groups in our member Collection and,
recursively, in the Collections of our members.
Parameters: member - org.jasig.portal.groups.IGroupMember - The current group member in the recursive execution. Parameters: s - java.lang.Set - A Set that groups are added to. java.util.Set |
removeGroup | public void removeGroup(IEntityGroup eg) throws GroupsException(Code) | | Removes the key of the IEntityGroup from our Set of group keys
by copying the keys, updating the copy, and replacing the old keys with the copy.
This lets us confine synchronization to the getter and setter methods for the keys.
Parameters: eg - org.jasig.portal.groups.IEntityGroup |
setGroupKeysInitialized | protected void setGroupKeysInitialized(boolean newGroupKeysInitialized)(Code) | | Parameters: newGroupKeysInitialized - boolean |
|
|