|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.groups.GroupMemberImpl
public abstract class GroupMemberImpl
GroupMemberImpl summary first sentence goes here.
IGroupMember| Constructor Summary | |
|---|---|
GroupMemberImpl(EntityIdentifier newEntityIdentifier)
GroupMemberImpl constructor |
|
GroupMemberImpl(String key,
Class type)
GroupMemberImpl constructor |
|
| Method Summary | |
|---|---|
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. |
boolean |
contains(IGroupMember gm)
Default implementation, overridden on EntityGroupImpl. |
boolean |
deepContains(IGroupMember gm)
Default implementation, overridden on EntityGroupImpl. |
Iterator |
getAllContainingGroups()
Returns an Iterator over the Set of this
IGroupMember's recursively-retrieved parent groups. |
Iterator |
getAllEntities()
Default implementation, overridden on EntityGroupImpl. |
Iterator |
getAllMembers()
Default implementation, overridden on EntityGroupImpl. |
protected String |
getCacheKey()
|
protected ICompositeGroupService |
getCompositeGroupService()
Returns the composite group service. |
Iterator |
getContainingGroups()
Returns an Iterator over this IGroupMember's parent groups. |
Iterator |
getEntities()
Default implementation, overridden on EntityGroupImpl. |
String |
getKey()
Returns the key of the underlying entity. |
IEntityGroup |
getMemberGroupNamed(String name)
Default implementation, overridden on EntityGroupImpl. |
Iterator |
getMembers()
Default implementation, overridden on EntityGroupImpl. |
Class |
getType()
Returns the type of the underlying entity. |
EntityIdentifier |
getUnderlyingEntityIdentifier()
Returns EntityIdentifier for this IGroupMember's
underlying entity. |
int |
hashCode()
|
boolean |
hasMembers()
Default implementation, overridden on EntityGroupImpl. |
boolean |
isDeepMemberOf(IGroupMember gm)
Answers if this IGroupMember is, recursively, a member of IGroupMember gm. |
boolean |
isEntity()
|
boolean |
isGroup()
|
protected boolean |
isKnownEntityType(Class anEntityType)
|
boolean |
isMemberOf(IGroupMember gm)
Answers if this IGroupMember is a member of IGroupMember gm. |
protected Set |
primGetAllContainingGroups(IGroupMember member,
Set s)
Returns the Set of groups in our member Collection and,
recursively, in the Collections of our members. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jasig.portal.groups.IGroupMember |
|---|
equals, getEntityType, getLeafType |
| Methods inherited from interface org.jasig.portal.IBasicEntity |
|---|
getEntityIdentifier |
| Constructor Detail |
|---|
public GroupMemberImpl(String key,
Class type)
throws GroupsException
GroupsException
public GroupMemberImpl(EntityIdentifier newEntityIdentifier)
throws GroupsException
GroupsException| Method Detail |
|---|
public void addGroup(IEntityGroup eg)
throws GroupsException
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.
eg - org.jasig.portal.groups.IEntityGroup
GroupsException
public boolean contains(IGroupMember gm)
throws GroupsException
contains in interface IGroupMembergm - org.jasig.portal.groups.IGroupMember
GroupsExceptionprotected Set castAndCopyHashSet(Set s)
public boolean deepContains(IGroupMember gm)
throws GroupsException
deepContains in interface IGroupMembergm - org.jasig.portal.groups.IGroupMember
GroupsException
public Iterator getAllContainingGroups()
throws GroupsException
Iterator over the Set of this
IGroupMember's recursively-retrieved parent groups.
getAllContainingGroups in interface IGroupMemberGroupsException
public Iterator getAllEntities()
throws GroupsException
getAllEntities in interface IGroupMemberGroupsException
public Iterator getAllMembers()
throws GroupsException
getAllMembers in interface IGroupMemberGroupsExceptionprotected String getCacheKey()
protected ICompositeGroupService getCompositeGroupService()
throws GroupsException
GroupsException
public Iterator getContainingGroups()
throws GroupsException
Iterator over this IGroupMember's parent groups.
Synchronize the collection of keys with adds and removes.
getContainingGroups in interface IGroupMemberGroupsException
public Iterator getEntities()
throws GroupsException
getEntities in interface IGroupMemberGroupsExceptionpublic String getKey()
IGroupMember
getKey in interface IGroupMember
public IEntityGroup getMemberGroupNamed(String name)
throws GroupsException
getMemberGroupNamed in interface IGroupMembername - java.lang.String
GroupsException
public Iterator getMembers()
throws GroupsException
getMembers in interface IGroupMemberGroupsExceptionpublic Class getType()
IGroupMemberIEntityGroup. For an entity, it will be the type of the
underlying EntityIdentifier.
getType in interface IGroupMemberpublic EntityIdentifier getUnderlyingEntityIdentifier()
IGroupMemberEntityIdentifier for this IGroupMember's
underlying entity. In the case of an IEntityGroup, it will
be the EntityIdentifier for this. In the case
of an IEntity, it will be the EntityIdentifier
that identifies the underlying IPerson, ChannelDefinition, etc.
getUnderlyingEntityIdentifier in interface IGroupMemberpublic int hashCode()
hashCode in interface IGroupMemberhashCode in class Object
public boolean hasMembers()
throws GroupsException
hasMembers in interface IGroupMemberGroupsException
public boolean isDeepMemberOf(IGroupMember gm)
throws GroupsException
IGroupMember is, recursively, a member of IGroupMember gm.
isDeepMemberOf in interface IGroupMembergm - org.jasig.portal.groups.IGroupMember
GroupsExceptionpublic boolean isEntity()
isEntity in interface IGroupMemberpublic boolean isGroup()
isGroup in interface IGroupMember
protected boolean isKnownEntityType(Class anEntityType)
throws GroupsException
GroupsException
public boolean isMemberOf(IGroupMember gm)
throws GroupsException
IGroupMember is a member of IGroupMember gm.
isMemberOf in interface IGroupMembergm - org.jasig.portal.groups.IGroupMember
GroupsException
protected Set primGetAllContainingGroups(IGroupMember member,
Set s)
throws GroupsException
Set of groups in our member Collection and,
recursively, in the Collections of our members.
member - org.jasig.portal.groups.IGroupMember - The current group member in the recursive execution.s - java.lang.Set - A Set that groups are added to.
GroupsException
public void removeGroup(IEntityGroup eg)
throws GroupsException
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.
eg - org.jasig.portal.groups.IEntityGroup
GroupsExceptionprotected void setGroupKeysInitialized(boolean newGroupKeysInitialized)
newGroupKeysInitialized - boolean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||