|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.groups.ReferenceGroupService
ICompositeGroupService
implementation.
@Deprecated public class ReferenceGroupService
Reference group service.
| Field Summary | |
|---|---|
protected IEntityStore |
entityFactory
Deprecated. |
protected IEntitySearcher |
entitySearcher
Deprecated. |
protected IEntityGroupStore |
groupFactory
Deprecated. |
protected static IGroupService |
singleton
Deprecated. |
| Method Summary | |
|---|---|
protected void |
addGroupToCache(IEntityGroup group)
Deprecated. |
protected boolean |
cacheInUse()
Deprecated. Answers if IGroupMembers are being cached. |
void |
deleteGroup(IEntityGroup group)
Deprecated. Removes the IEntityGroup from the cache and the store. |
void |
deleteGroup(ILockableEntityGroup group)
Deprecated. Removes the ILockableEntityGroup from the cache and the store. |
Iterator |
findContainingGroups(IGroupMember gm)
Deprecated. Returns and caches the containing groups for the IGroupMember |
IEntityGroup |
findGroup(String key)
Deprecated. Returns a pre-existing IEntityGroup or null if it
does not exist. |
protected IEntityGroup |
findGroupWithCache(String key)
Deprecated. Returns a pre-existing IEntityGroup or null if it
does not exist. |
ILockableEntityGroup |
findGroupWithLock(String key,
String owner)
Deprecated. Returns a pre-existing ILockableEntityGroup or null if the
group is not found. |
ILockableEntityGroup |
findGroupWithLock(String key,
String owner,
int secs)
Deprecated. Returns a pre-existing ILockableEntityGroup or null if the
group is not found. |
Iterator |
findMemberGroups(IEntityGroup eg)
Deprecated. Returns and caches the member groups for the IEntityGroup |
IEntityGroup |
getDistinguishedGroup(String name)
Deprecated. Refers to the PropertiesManager to get the key for the group associated with 'name' and asks the group store implementation for the corresponding IEntityGroup. |
IEntity |
getEntity(String key,
Class type)
Deprecated. Returns an IEntity representing a portal entity. |
protected IEntityGroup |
getGroupFromCache(String key)
Deprecated. Returns a cached IEntityGroup or null if it has not been cached. |
IGroupMember |
getGroupMember(EntityIdentifier underlyingEntityIdentifier)
Deprecated. Returns an IGroupMember representing either a group or a
portal entity, based on the EntityIdentifier, which
refers to the UNDERLYING entity for the IGroupMember. |
IGroupMember |
getGroupMember(String key,
Class type)
Deprecated. Returns an IGroupMember representing either a group or a
portal entity. |
IEntityGroupStore |
getGroupStore()
Deprecated. Returns the implementation of IEntityGroupStore whose class name
was retrieved by the PropertiesManager (see initialize()). |
IEntityGroup |
getRootGroup(Class type)
Deprecated. Refers to the PropertiesManager to get the key for the root group associated with 'type' and asks the group store implementation for the corresponding IEntityGroup. |
IEntityGroup |
newGroup(Class type)
Deprecated. Returns a new IEntityGroup for the given Class with an unused
key. |
protected void |
removeGroupFromCache(IEntityGroup group)
Deprecated. |
EntityIdentifier[] |
searchForEntities(String query,
int method,
Class type)
Deprecated. Find EntityIdentifiers for entities whose name matches the query string according to the specified method and is of the specified type |
EntityIdentifier[] |
searchForEntities(String query,
int method,
Class type,
IEntityGroup ancestor)
Deprecated. Find EntityIdentifiers for entities whose name matches the query string according to the specified method, is of the specified type and descends from the specified group |
EntityIdentifier[] |
searchForGroups(String query,
int method,
Class leaftype)
Deprecated. Find EntityIdentifiers for groups whose name matches the query string according to the specified method and matches the provided leaf type |
EntityIdentifier[] |
searchForGroups(String query,
int method,
Class leaftype,
IEntityGroup ancestor)
Deprecated. Find EntityIdentifiers for groups whose name matches the query string according to the specified method, has the provided leaf type and descends from the specified group |
static IGroupService |
singleton()
Deprecated. |
void |
updateGroup(IEntityGroup group)
Deprecated. Updates the cache and the store with the new IEntityGroup. |
void |
updateGroup(ILockableEntityGroup group)
Deprecated. Updates the ILockableEntityGroup in the cache and the store. |
void |
updateGroup(ILockableEntityGroup group,
boolean renewLock)
Deprecated. Updates the ILockableEntityGroup in the store and removes
it from the cache. |
protected void |
updateGroupInCache(IEntityGroup group)
Deprecated. |
void |
updateGroupMembers(IEntityGroup group)
Deprecated. Updates the cache and the store with the updated IEntityGroup. |
void |
updateGroupMembers(ILockableEntityGroup group)
Deprecated. Updates the ILockableEntityGroup in the cache and the store. |
void |
updateGroupMembers(ILockableEntityGroup group,
boolean renewLock)
Deprecated. Updates the ILockableEntityGroup in the store and removes
it from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static IGroupService singleton
protected IEntityStore entityFactory
protected IEntityGroupStore groupFactory
protected IEntitySearcher entitySearcher
| Method Detail |
|---|
protected void addGroupToCache(IEntityGroup group)
throws CachingException
CachingExceptionprotected boolean cacheInUse()
IGroupMembers are being cached.
public void deleteGroup(IEntityGroup group)
throws GroupsException
IEntityGroup from the cache and the store.
deleteGroup in interface IGroupServicegroup - IEntityGroup
GroupsException
public void deleteGroup(ILockableEntityGroup group)
throws GroupsException
ILockableEntityGroup from the cache and the store.
deleteGroup in interface ILockableGroupServicegroup - ILockableEntityGroup
GroupsException
public Iterator findContainingGroups(IGroupMember gm)
throws GroupsException
IGroupMember
findContainingGroups in interface IGroupServicegm - IGroupMember
GroupsException
public IEntityGroup findGroup(String key)
throws GroupsException
IEntityGroup or null if it
does not exist.
findGroup in interface IGroupServiceGroupsException
protected IEntityGroup findGroupWithCache(String key)
throws GroupsException
IEntityGroup or null if it
does not exist.
GroupsException
public ILockableEntityGroup findGroupWithLock(String key,
String owner)
throws GroupsException
ILockableEntityGroup or null if the
group is not found.
findGroupWithLock in interface ILockableGroupServicekey - String - the group key.owner - String - the lock owner.
GroupsException
public ILockableEntityGroup findGroupWithLock(String key,
String owner,
int secs)
throws GroupsException
ILockableEntityGroup or null if the
group is not found.
findGroupWithLock in interface ILockableGroupServicekey - String - the group key.owner - String - the lock owner.secs - int - the duration of the lock in seconds.
GroupsException
public Iterator findMemberGroups(IEntityGroup eg)
throws GroupsException
IEntityGroup
findMemberGroups in interface IGroupServiceeg - IEntityGroup
GroupsException
public IEntityGroup getDistinguishedGroup(String name)
throws GroupsException
IEntityGroup.
GroupsException
public IEntity getEntity(String key,
Class type)
throws GroupsException
IEntity representing a portal entity. This does
not guarantee that the entity actually exists.
getEntity in interface IGroupServiceGroupsException
protected IEntityGroup getGroupFromCache(String key)
throws CachingException
IEntityGroup or null if it has not been cached.
CachingException
public IGroupMember getGroupMember(EntityIdentifier underlyingEntityIdentifier)
throws GroupsException
IGroupMember representing either a group or a
portal entity, based on the EntityIdentifier, which
refers to the UNDERLYING entity for the IGroupMember.
getGroupMember in interface IGroupServiceGroupsException
public IGroupMember getGroupMember(String key,
Class type)
throws GroupsException
IGroupMember representing either a group or a
portal entity. If the parm type is the group type,
the IGroupMember is an IEntityGroup else it is
an IEntity.
getGroupMember in interface IGroupServiceGroupsException
public IEntityGroupStore getGroupStore()
throws GroupsException
IEntityGroupStore whose class name
was retrieved by the PropertiesManager (see initialize()).
getGroupStore in interface IGroupServiceGroupsException
public IEntityGroup getRootGroup(Class type)
throws GroupsException
IEntityGroup.
GroupsException
public IEntityGroup newGroup(Class type)
throws GroupsException
IEntityGroup for the given Class with an unused
key.
newGroup in interface IGroupServiceGroupsException
protected void removeGroupFromCache(IEntityGroup group)
throws CachingException
CachingException
public static IGroupService singleton()
throws GroupsException
GroupsException
public void updateGroup(IEntityGroup group)
throws GroupsException
IEntityGroup.
updateGroup in interface IGroupServicegroup - IEntityGroup
GroupsException
public void updateGroup(ILockableEntityGroup group)
throws GroupsException
ILockableEntityGroup in the cache and the store.
updateGroup in interface ILockableGroupServicegroup - ILockableEntityGroup
GroupsException
public void updateGroup(ILockableEntityGroup group,
boolean renewLock)
throws GroupsException
ILockableEntityGroup in the store and removes
it from the cache.
updateGroup in interface ILockableGroupServicegroup - ILockableEntityGroup
GroupsException
protected void updateGroupInCache(IEntityGroup group)
throws CachingException
CachingException
public void updateGroupMembers(IEntityGroup group)
throws GroupsException
IEntityGroup.
updateGroupMembers in interface IGroupServicegroup - IEntityGroup
GroupsException
public void updateGroupMembers(ILockableEntityGroup group)
throws GroupsException
ILockableEntityGroup in the cache and the store.
updateGroupMembers in interface ILockableGroupServicegroup - ILockableEntityGroup
GroupsException
public void updateGroupMembers(ILockableEntityGroup group,
boolean renewLock)
throws GroupsException
ILockableEntityGroup in the store and removes
it from the cache.
updateGroupMembers in interface ILockableGroupServicegroup - ILockableEntityGroup
GroupsException
public EntityIdentifier[] searchForGroups(String query,
int method,
Class leaftype)
throws GroupsException
IGroupService
searchForGroups in interface IGroupServiceGroupsException
public EntityIdentifier[] searchForGroups(String query,
int method,
Class leaftype,
IEntityGroup ancestor)
throws GroupsException
IGroupService
searchForGroups in interface IGroupServiceGroupsException
public EntityIdentifier[] searchForEntities(String query,
int method,
Class type)
throws GroupsException
IGroupService
searchForEntities in interface IGroupServiceGroupsException
public EntityIdentifier[] searchForEntities(String query,
int method,
Class type,
IEntityGroup ancestor)
throws GroupsException
IGroupService
searchForEntities in interface IGroupServiceGroupsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||