|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.services.GroupService
public class GroupService
Bootstrap class for the IGroupService implementation.
| Field Summary | |
|---|---|
protected static String |
GROUP_SERVICE_KEY
|
| Fields inherited from interface org.jasig.portal.groups.IGroupConstants |
|---|
CHANNEL_CATEGORIES, CONTAINS, ENDS_WITH, EVERYONE, IS, NODE_SEPARATOR, PORTAL_ADMINISTRATORS, STARTS_WITH |
| Method Summary | |
|---|---|
static IEntityGroup |
findGroup(String key)
Returns a pre-existing IEntityGroup or null if the
IGroupMember does not exist. |
static ILockableEntityGroup |
findLockableGroup(String key,
String lockOwner)
Returns a pre-existing ILockableEntityGroup or null if the
group is not found. |
static void |
finishedSession(IPerson person)
Receives notice that the UserInstance has been unbound from the HttpSession. |
static ICompositeGroupService |
getCompositeGroupService()
Returns the ICompositeGroupService implementation in use. |
protected String |
getDefaultServiceName()
|
static IEntityGroup |
getDistinguishedGroup(String name)
Refers to the PropertiesManager to get the key for the group associated with 'name' and asks the group store implementation for the corresponding IEntityGroup. |
String |
getDistinguishedGroupKey(String name)
|
static IEntity |
getEntity(String key,
Class type)
Returns an IEntity representing a portal entity. |
static IEntity |
getEntity(String key,
Class type,
String service)
Returns an IEntity representing a portal entity. |
static IGroupMember |
getGroupMember(EntityIdentifier underlyingEntityIdentifier)
Returns an IGroupMember representing either a group or a
portal entity, based on the EntityIdentifier, which
refers to the UNDERLYING entity for the IGroupMember. |
static IGroupMember |
getGroupMember(String key,
Class type)
Returns an IGroupMember representing either a group or a
portal entity. |
static IGroupService |
getGroupService()
Returns the IGroupService implementation in use. |
static IEntityGroup |
getRootGroup(Class type)
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. |
protected GroupServiceConfiguration |
getServiceConfiguration()
|
protected IEntityGroup |
ifindGroup(String key)
Returns a pre-existing IEntityGroup or null if the
IGroupMember does not exist. |
protected ILockableEntityGroup |
ifindLockableGroup(String key,
String lockOwner)
Returns a pre-existing ILockableEntityGroup or null if the
group is not found. |
protected void |
ifinishedSession(IPerson person)
Receives notice that the UserInstance has been unbound from the HttpSession. |
protected IEntityGroup |
igetDistinguishedGroup(String name)
Refers to the PropertiesManager to get the key for the group associated with 'name' and asks the group store implementation for the corresponding IEntityGroup. |
protected IEntity |
igetEntity(String key,
Class type,
String service)
Returns an IEntity representing a pre-existing portal entity. |
protected IGroupMember |
igetGroupMember(String key,
Class type)
Returns an IGroupMember representing either a group or a
portal entity. |
protected IEntityGroup |
igetRootGroup(Class type)
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. |
protected IEntityGroup |
inewGroup(Class type)
Returns a new IEntityGroup for the given Class with an unused
key. |
protected IEntityGroup |
inewGroup(Class type,
String serviceName)
Returns a new IEntityGroup for the given Class with an unused
key. |
static GroupService |
instance()
|
static boolean |
isComposite()
Answer if the underlying group service is a composite service, implementing ICompositeGroupService. |
static IEntityGroup |
newGroup(Class type)
Returns a new IEntityGroup for the given Class with an unused
key. |
static IEntityGroup |
newGroup(Class type,
String serviceName)
Returns a new IEntityGroup for the given Class with an unused
key. |
static String |
parseLocalKey(String compositeKey)
Extracts the final node from the String form of a composite key. |
static Name |
parseServiceName(String serviceName)
Converts the String form of a service name into a Name. |
static EntityIdentifier[] |
searchForEntities(String query,
int method,
Class type)
|
static EntityIdentifier[] |
searchForEntities(String query,
int method,
Class type,
IEntityGroup ancestor)
|
static EntityIdentifier[] |
searchForGroups(String query,
int method,
Class leaftype)
|
static EntityIdentifier[] |
searchForGroups(String query,
int method,
Class leaftype,
IEntityGroup ancestor)
|
static void |
startUp()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String GROUP_SERVICE_KEY
| Method Detail |
|---|
public static IEntityGroup findGroup(String key)
throws GroupsException
IEntityGroup or null if the
IGroupMember does not exist.
key - String - the group key.
GroupsException
public static ILockableEntityGroup findLockableGroup(String key,
String lockOwner)
throws GroupsException
ILockableEntityGroup or null if the
group is not found.
key - String - the group key.lockOwner - String - the owner of the lock, typically the user.
GroupsExceptionpublic static void finishedSession(IPerson person)
person - org.jasig.portal.security.IPerson
public static ICompositeGroupService getCompositeGroupService()
throws GroupsException
ICompositeGroupService implementation in use.
GroupsException
protected String getDefaultServiceName()
throws GroupsException
GroupsException
public static IEntityGroup getDistinguishedGroup(String name)
throws GroupsException
IEntityGroup.
GroupsExceptionpublic String getDistinguishedGroupKey(String name)
public static IEntity getEntity(String key,
Class type)
throws GroupsException
IEntity representing a portal entity. This does
not guarantee that the entity actually exists.
key - String - the group key.type - Class - the Class of the underlying IGroupMember.
GroupsException
public static IEntity getEntity(String key,
Class type,
String service)
throws GroupsException
IEntity representing a portal entity. This does
not guarantee that the entity actually exists.
key - String - the group key.type - Class - the Class of the underlying IGroupMember.service - String - the name of the component service.
GroupsException
public static 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 .
GroupsException
public static 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.
GroupsException
public static IGroupService getGroupService()
throws GroupsException
IGroupService implementation in use.
GroupsException
public static IEntityGroup getRootGroup(Class type)
throws GroupsException
IEntityGroup.
GroupsException
protected GroupServiceConfiguration getServiceConfiguration()
throws GroupsException
GroupsException
protected IEntityGroup ifindGroup(String key)
throws GroupsException
IEntityGroup or null if the
IGroupMember does not exist.
key - String - the group key.
GroupsException
protected ILockableEntityGroup ifindLockableGroup(String key,
String lockOwner)
throws GroupsException
ILockableEntityGroup or null if the
group is not found.
key - String - the group key.lockOwner - String - typically the user.
GroupsException
protected void ifinishedSession(IPerson person)
throws GroupsException
person - org.jasig.portal.security.IPerson
GroupsException
protected IEntityGroup igetDistinguishedGroup(String name)
throws GroupsException
IEntityGroup.
GroupsException
protected IEntity igetEntity(String key,
Class type,
String service)
throws GroupsException
IEntity representing a pre-existing portal entity.
key - String - the group key.type - Class - the Class of the underlying IGroupMember.
GroupsException
protected IGroupMember igetGroupMember(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.
GroupsException
protected IEntityGroup igetRootGroup(Class type)
throws GroupsException
IEntityGroup.
GroupsException
protected IEntityGroup inewGroup(Class type)
throws GroupsException
IEntityGroup for the given Class with an unused
key.
GroupsException
protected IEntityGroup inewGroup(Class type,
String serviceName)
throws GroupsException
IEntityGroup for the given Class with an unused
key.
GroupsException
public static GroupService instance()
throws GroupsException
GroupsExceptionpublic static boolean isComposite()
public static IEntityGroup newGroup(Class type)
throws GroupsException
IEntityGroup for the given Class with an unused
key.
GroupsException
public static IEntityGroup newGroup(Class type,
String serviceName)
throws GroupsException
IEntityGroup for the given Class with an unused
key.
GroupsException
public static String parseLocalKey(String compositeKey)
throws InvalidNameException,
GroupsException
InvalidNameException
GroupsException
public static Name parseServiceName(String serviceName)
throws InvalidNameException,
GroupsException
InvalidNameException
GroupsException
public static EntityIdentifier[] searchForEntities(String query,
int method,
Class type)
throws GroupsException
GroupsException
public static EntityIdentifier[] searchForEntities(String query,
int method,
Class type,
IEntityGroup ancestor)
throws GroupsException
GroupsException
public static EntityIdentifier[] searchForGroups(String query,
int method,
Class leaftype)
throws GroupsException
GroupsException
public static EntityIdentifier[] searchForGroups(String query,
int method,
Class leaftype,
IEntityGroup ancestor)
throws GroupsException
GroupsException
public static void startUp()
throws GroupsException
GroupsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||