|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface for a groupfactory provides functionality to get group objects by providing required information. /** The group factory provides means to
| Field Summary | |
static java.lang.String |
ANONYMOUS_USERS
Deprecated. use ANONYMOUS_USERS_UNIQUEID instead |
static java.lang.String |
ANONYMOUS_USERS_UNIQUEID
Constant used to access build-in group Anonymous Users with uniqueId |
static java.lang.String |
AUTHENTICATED_USERS
Deprecated. use AUTHENTICATED_USERS_UNIQUEID instead |
static java.lang.String |
AUTHENTICATED_USERS_UNIQUEID
Constant used to access build-in group Authenticated Users with uniqueId |
static java.lang.String |
EVERYONE
Deprecated. use EVERYONE_UNIQUEID instead |
static java.lang.String |
EVERYONE_UNIQUEID
Constant used to access build-in group Everyone with uniqueId |
static java.lang.String |
VERSIONSTRING
|
| Method Summary | |
void |
addGroupToParent(java.lang.String uniqueIdOfGroup,
java.lang.String uniqueIdOfParentGroup)
assign group with uniqueIdOfGroup to parent group with uniqueIdOfParentGroup. |
void |
addUserToGroup(java.lang.String uniqueIdOfUser,
java.lang.String uniqueIdOfGroup)
assign user with uniqueIdOfUser to group with uniqueIdOfGroup. |
void |
deleteGroup(java.lang.String uniqueID)
Delete a group from the data store Note: deletes also all direct group and role assignments of this group. |
java.lang.String[] |
getChildGroups(java.lang.String uniqueIdOfGroup,
boolean recursive)
Returns principals of type group belonging to this groupId This method does a recursive search if the second parameter |
IGroup |
getGroup(java.lang.String uniqueID)
Gets the group object with the given unique ID |
IGroup |
getGroup(java.lang.String uniqueID,
AttributeList populateAttributes)
Gets the group object with the given unique ID and populates the attributes which are defined in populateAttributes |
IGroup |
getGroupByUniqueName(java.lang.String uniqueName)
Gets the group object with the given uniqueName |
IGroup[] |
getGroups(java.lang.String[] uniqueIDs)
Gets the group objects for multiple unique IDs |
IGroup[] |
getGroups(java.lang.String[] uniqueIDs,
AttributeList populateAttributes)
Gets the group objects for multiple unique IDs and populates the attributes which are defined in populateAttributes |
IGroupSearchFilter |
getGroupSearchFilter()
Returns an IGroupSearchFilter object to be used to specify query attributes |
IGroup |
getMutableGroup(java.lang.String uniqueID)
Gets the group object identified by uniqueID which can be modified |
java.lang.String[] |
getParentGroups(java.lang.String uniqueIdOfGroup,
boolean recursive)
Gets the list of parent groups of group which is identified by uniqueIdOfGroup |
void |
invalidateCacheEntry(java.lang.String uniqueid)
removes the group object which has the specified uniqueid from the factory's cache Note: Use this method carefully, because calling it too often may cause performance problems |
void |
invalidateCacheEntryByUniqueName(java.lang.String uniqueName)
removes the group object which has the specified unique name from the factory's cache Note: Use this method carefully, because calling it too often may cause performance problems |
IGroup |
newGroup(java.lang.String uniqueName)
Creates a new, initially blank group object. |
void |
registerListener(GroupListener groupListener,
int modifier)
registerListener allows to subscribe to a predefined eventName GroupListener
The caller has to provide a receiver object which implements GroupListener |
void |
removeGroupFromParent(java.lang.String uniqueIdOfGroup,
java.lang.String uniqueIdOfParentGroup)
unassign group with uniqueIdOfGroup from parent group with uniqueIdOfParentGroup. |
void |
removeUserFromGroup(java.lang.String uniqueIdOfUser,
java.lang.String uniqueIdOfGroup)
unassign user with uniqueIdOfUser from group with uniqueIdOfGroup. |
ISearchResult |
searchGroups(IGroupSearchFilter filter)
Search for groups in the group store which match the criteria specified in the given filter. |
void |
unregisterListener(GroupListener groupListener)
unregisterListener unsubscribes a receiver from a previously subscribed event. |
| Methods inherited from interface com.sap.security.api.IConfigurable |
initialize |
| Field Detail |
public static final java.lang.String VERSIONSTRING
public static final java.lang.String EVERYONE
EVERYONE_UNIQUEID instead
public static final java.lang.String EVERYONE_UNIQUEID
public static final java.lang.String AUTHENTICATED_USERS
AUTHENTICATED_USERS_UNIQUEID instead
public static final java.lang.String AUTHENTICATED_USERS_UNIQUEID
public static final java.lang.String ANONYMOUS_USERS
ANONYMOUS_USERS_UNIQUEID instead
public static final java.lang.String ANONYMOUS_USERS_UNIQUEID
| Method Detail |
public IGroup getGroup(java.lang.String uniqueID)
throws UMException
uniqueID - of groupUMException - if no group with the given unique ID
exists
public IGroup getGroup(java.lang.String uniqueID,
AttributeList populateAttributes)
throws UMException
uniqueID - of grouppopulateAttributes - AttributeListUMException - if no group with the given unique ID
exists
public IGroup newGroup(java.lang.String uniqueName)
throws UMException
IPrincipalMaint.commit().uniqueName - of new group
Note: This name has to be unique for ALL data storesGroupAlreadyExistsException - if group with uniqueName already exists
public IGroup getGroupByUniqueName(java.lang.String uniqueName)
throws UMException
Note: If you use this method be prepared to get an exception if multiple objects with the same name are found
uniqueName - of groupNoSuchGroupException - if no group with the given uniqueName
existsUMException - if given unique name is not unique
public void deleteGroup(java.lang.String uniqueID)
throws UMException
uniqueID - of group which should be deletedUMException - if the group can't be deletedNoSuchGroupException - if the group does not exist
public ISearchResult searchGroups(IGroupSearchFilter filter)
throws UMException
filter. In order to get a group search filter use
getGroupSearchFilter().
You can define a search filter using methods of class IGroupSearchFilter.IGroupSearchFilter - filter defined to search for groupsISearchResult
public IGroup[] getGroups(java.lang.String[] uniqueIDs)
throws NoSuchGroupException,
UMException
String[] - array of uniqueIDs which are used to get an array of IGroup
objects.NoSuchGroupException - if one or more of the given unique IDs
are not assigned to any group
public IGroup[] getGroups(java.lang.String[] uniqueIDs,
AttributeList populateAttributes)
throws NoSuchGroupException,
UMException
String[] - array of uniqueIDs which are used to get an array of IGroup
objects.populateAttributes - AttributeListNoSuchGroupException - if one or more of the given unique IDs
are not assigned to any group
public IGroup getMutableGroup(java.lang.String uniqueID)
throws NoSuchGroupException,
UMException
uniqueID - of group objectNoSuchGroupException - if the unique ID does not existNoSuchGroupException - if group with given uniqueID
does not exist.
public void registerListener(GroupListener groupListener,
int modifier)
GroupListener
The caller has to provide a receiver object which implements GroupListenerGroupListener - object which implements interface GroupListenermodifier - constant defined in GroupListenerpublic void unregisterListener(GroupListener groupListener)
GroupListener - object which implements interface GroupListener
public java.lang.String[] getParentGroups(java.lang.String uniqueIdOfGroup,
boolean recursive)
throws UMException
uniqueIdOfGroup - which should be usedrecursive: - if recursive set to true recursive parent groups are checked
including parents, grandparents, ...NoSuchGroupException - if group with given uniqueIdOfGroup
does not exist.
public java.lang.String[] getChildGroups(java.lang.String uniqueIdOfGroup,
boolean recursive)
throws UMException
uniqueIdOfGroup - given uniqueId of group objectrecursive - if recursive is set to true all children, grandchildren, ...
will be returned. If false only children of uniqueIdOfGroup are returned.NoSuchGroupException - if one or more of the given unique IDs
public void addGroupToParent(java.lang.String uniqueIdOfGroup,
java.lang.String uniqueIdOfParentGroup)
throws UMException
uniqueIdOfGroup - id of groupuniqueIdOfParentGroup - id of the parent groupUMException - if group cannot be added to parent
public void addUserToGroup(java.lang.String uniqueIdOfUser,
java.lang.String uniqueIdOfGroup)
throws UMException
uniqueIdOfUser - id of useruniqueIdOfGroup - id of the groupUMException - if user cannot be added to group
public void removeGroupFromParent(java.lang.String uniqueIdOfGroup,
java.lang.String uniqueIdOfParentGroup)
throws UMException
uniqueIdOfGroup - id of groupuniqueIdOfParentGroup - id of the parent groupUMException - if group cannot be removed from parent group
public void removeUserFromGroup(java.lang.String uniqueIdOfUser,
java.lang.String uniqueIdOfGroup)
throws UMException
uniqueIdOfUser - id of useruniqueIdOfGroup - id of the groupUMException - if user cannot be removed from group
public IGroupSearchFilter getGroupSearchFilter()
throws UMException
IGroupSearchFilter only contains attributes which will be queried
UMException - if filter cannot be provided
public void invalidateCacheEntryByUniqueName(java.lang.String uniqueName)
throws UMException
uniqueName - the uniqueName of the groupUMException - if a error occurs
public void invalidateCacheEntry(java.lang.String uniqueid)
throws UMException
uniqueid - the uniqueid of the groupUMException - if a error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||