|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.groups.GroupMemberImpl
org.jasig.portal.groups.EntityGroupImpl
org.jasig.portal.groups.EntityTestingGroupImpl
public class EntityTestingGroupImpl
An IEntityGroup
that answers if it contains an entity
by delegating to the local group store. By contrast, an
EntityGroupImpl
answers this by examining (and if
necessary initializing) its own member cache. This behavior is
designed to accommodate groups whose membership is computed by
testing the prospective entity member rather than by testing the
group. It allows contains() and deepContains() to work correctly
for groups from services like PAGS and JitLDAP. Groups in these
services do not keep references to their members but only define
the logic for computing if a candidate entity is a member.
Field Summary |
---|
Fields inherited from class org.jasig.portal.groups.EntityGroupImpl |
---|
localGroupService |
Constructor Summary | |
---|---|
EntityTestingGroupImpl(java.lang.String groupKey,
java.lang.Class entityType)
|
Method Summary | |
---|---|
boolean |
contains(IGroupMember gm)
Checks if GroupMember gm is a member of this. |
Methods inherited from class org.jasig.portal.groups.GroupMemberImpl |
---|
addGroup, castAndCopyHashSet, getAllContainingGroups, getCacheKey, getCompositeGroupService, getContainingGroups, getKey, getUnderlyingEntityIdentifier, isDeepMemberOf, isEntity, isKnownEntityType, isMemberOf, primGetAllContainingGroups, removeGroup, setGroupKeysInitialized |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jasig.portal.groups.IGroupMember |
---|
getAllContainingGroups, getContainingGroups, getKey, getUnderlyingEntityIdentifier, isDeepMemberOf, isEntity, isMemberOf |
Constructor Detail |
---|
public EntityTestingGroupImpl(java.lang.String groupKey, java.lang.Class entityType) throws GroupsException
groupKey
- entityType
-
GroupsException
Method Detail |
---|
public boolean contains(IGroupMember gm) throws GroupsException
GroupMember
gm is a member of this.
contains
in interface IGroupMember
contains
in class EntityGroupImpl
gm
- org.jasig.portal.groups.IGroupMember
GroupsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |