|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGroupFactory
This interface for a groupfactory provides functionality to get group objects by providing required information. The group factory provides means to
NOTE: As this interface�can be extended, this interface can be freely used, but must not be implemented.
| Field Summary | |
|---|---|
static String |
ANONYMOUS_USERS
Deprecated. use ANONYMOUS_USERS_UNIQUEID instead |
static String |
ANONYMOUS_USERS_UNIQUEID
Constant used to access build-in group Anonymous Users with uniqueId |
static String |
AUTHENTICATED_USERS
Deprecated. use AUTHENTICATED_USERS_UNIQUEID instead |
static String |
AUTHENTICATED_USERS_UNIQUEID
Constant used to access build-in group Authenticated Users with uniqueId |
static String |
EVERYONE
Deprecated. use EVERYONE_UNIQUEID instead |
static String |
EVERYONE_UNIQUEID
Constant used to access build-in group Everyone with uniqueId |
static String |
VERSIONSTRING
|
| Method Summary | |
|---|---|
void |
addGroupToParent(String uniqueIdOfGroup,
String uniqueIdOfParentGroup)
assign group with uniqueIdOfGroup to parent group with uniqueIdOfParentGroup. |
void |
addUserToGroup(String uniqueIdOfUser,
String uniqueIdOfGroup)
assign user with uniqueIdOfUser to group with uniqueIdOfGroup. |
void |
deleteGroup(String uniqueID)
Delete a group from the data store Note: deletes also all direct group and role assignments of this group. |
String[] |
getChildGroups(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(String uniqueID)
Gets the group object with the given unique ID |
IGroup |
getGroup(String uniqueID,
AttributeList populateAttributes)
Gets the group object with the given unique ID and populates the attributes which are defined in populateAttributes |
IGroup |
getGroupByUniqueName(String uniqueName)
Gets the group object with the given uniqueName Note: If you use this method be prepared to get an exception if multiple objects with the same name are found |
IGroup[] |
getGroups(String[] uniqueIDs)
Gets the group objects for multiple unique IDs |
IGroup[] |
getGroups(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 IGroupSearchFilter only contains attributes which will be queried |
IGroup |
getMutableGroup(String uniqueID)
Gets the group object identified by uniqueID which can be modified |
String[] |
getParentGroups(String uniqueIdOfGroup,
boolean recursive)
Gets the list of parent groups of group which is identified by uniqueIdOfGroup |
void |
invalidateCacheEntry(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(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(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 |
registerListener(GroupListener groupListener,
int modifier,
boolean notifyAfterPhysicalCommitCompleted)
registerListener allows to subscribe to a predefined eventName GroupListener
The caller has to provide a receiver object which implements GroupListener |
void |
removeGroupFromParent(String uniqueIdOfGroup,
String uniqueIdOfParentGroup)
unassign group with uniqueIdOfGroup from parent group with uniqueIdOfParentGroup. |
void |
removeUserFromGroup(String uniqueIdOfUser,
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 |
|---|
static final String VERSIONSTRING
static final String EVERYONE
EVERYONE_UNIQUEID instead
static final String EVERYONE_UNIQUEID
static final String AUTHENTICATED_USERS
AUTHENTICATED_USERS_UNIQUEID instead
static final String AUTHENTICATED_USERS_UNIQUEID
static final String ANONYMOUS_USERS
ANONYMOUS_USERS_UNIQUEID instead
static final String ANONYMOUS_USERS_UNIQUEID
| Method Detail |
|---|
IGroup getGroup(String uniqueID)
throws UMException
uniqueID - of group
UMException - if no group with the given unique ID
exists
IGroup getGroup(String uniqueID,
AttributeList populateAttributes)
throws UMException
uniqueID - of grouppopulateAttributes - AttributeList
UMException - if no group with the given unique ID
exists
IGroup newGroup(String uniqueName)
throws UMException
IPrincipalMaint.commit().
uniqueName - of new group
Note: This name has to be unique for ALL data stores
GroupAlreadyExistsException - if group with uniqueName already exists
UMException
IGroup getGroupByUniqueName(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 group
NoSuchGroupException - if no group with the given uniqueName
exists
UMException - if given unique name is not unique
void deleteGroup(String uniqueID)
throws UMException
uniqueID - of group which should be deleted
UMException - if the group can't be deleted
NoSuchGroupException - if the group does not exist
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.
filter - defined to search for groups
ISearchResult
UMException
IGroup[] getGroups(String[] uniqueIDs)
throws NoSuchGroupException,
UMException
uniqueIDs - 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
UMException
IGroup[] getGroups(String[] uniqueIDs,
AttributeList populateAttributes)
throws NoSuchGroupException,
UMException
uniqueIDs - array of uniqueIDs which are used to get an array of IGroup
objects.populateAttributes - AttributeList
NoSuchGroupException - if one or more of the given unique IDs
are not assigned to any group
UMException
IGroup getMutableGroup(String uniqueID)
throws NoSuchGroupException,
UMException
uniqueID - of group object
NoSuchGroupException - if the unique ID does not exist
NoSuchGroupException - if group with given uniqueID
does not exist.
UMException
void registerListener(GroupListener groupListener,
int modifier)
GroupListener
The caller has to provide a receiver object which implements GroupListener
groupListener - object which implements interface GroupListenermodifier - constant defined in GroupListener
void registerListener(GroupListener groupListener,
int modifier,
boolean notifyAfterPhysicalCommitCompleted)
GroupListener
The caller has to provide a receiver object which implements GroupListener
groupListener - object which implements interface GroupListenermodifier - constant defined in GroupListenernotifyAfterPhysicalCommitCompleted - Allows callers when set to false, to get a notification before the physical transaction is completed in order to include their actions into the same physical transaction.void unregisterListener(GroupListener groupListener)
groupListener - object which implements interface GroupListener
String[] getParentGroups(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.
UMException
String[] getChildGroups(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
UMException
void addGroupToParent(String uniqueIdOfGroup,
String uniqueIdOfParentGroup)
throws UMException
uniqueIdOfGroup - id of groupuniqueIdOfParentGroup - id of the parent group
UMException - if group cannot be added to parent
void addUserToGroup(String uniqueIdOfUser,
String uniqueIdOfGroup)
throws UMException
uniqueIdOfUser - id of useruniqueIdOfGroup - id of the group
UMException - if user cannot be added to group
void removeGroupFromParent(String uniqueIdOfGroup,
String uniqueIdOfParentGroup)
throws UMException
uniqueIdOfGroup - id of groupuniqueIdOfParentGroup - id of the parent group
UMException - if group cannot be removed from parent group
void removeUserFromGroup(String uniqueIdOfUser,
String uniqueIdOfGroup)
throws UMException
uniqueIdOfUser - id of useruniqueIdOfGroup - id of the group
UMException - if user cannot be removed from group
IGroupSearchFilter getGroupSearchFilter()
throws UMException
IGroupSearchFilter only contains attributes which will be queried
UMException - if filter cannot be provided
void invalidateCacheEntryByUniqueName(String uniqueName)
throws UMException
uniqueName - the uniqueName of the group
UMException - if a error occurs
void invalidateCacheEntry(String uniqueid)
throws UMException
uniqueid - the uniqueid of the group
UMException - if a error occurs| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] ENGINEAPI
|
[sap.com] com.sap.security.api.sda
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/usermanagement/api
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.lib
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||