|
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 IUserFactory
The user 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 |
VERSIONSTRING
|
| Method Summary | |
|---|---|
void |
commitUser(IUserMaint user,
IUserAccount account)
Creates the user and the account object within one transaction Note: Both objects have to be new or exist already. |
void |
deleteUser(String uniqueID)
Delete a user from the user store Note: deletes also the accounts which are assigned to this user as well as the direct group and role assignments of this user. |
IUserMaint |
getMutableUser(String uniqueId)
Get a user object which can be modified. |
ISearchResult |
getUniqueIDs()
Gets the unique IDs of all users in the user store. |
IUser |
getUser(String uniqueID)
Gets the user object with the given unique ID |
IUser |
getUser(String uniqueID,
AttributeList populateAttributes)
Gets the user object with the given unique ID and populates the attributes specified in populateAttributes |
IUser |
getUserByLogonAlias(String logonalias,
AttributeList attrlist)
Returns a User object for an existing user. |
IUser |
getUserByLogonID(String logonid)
Returns a User object for an existing user. |
IUser |
getUserByLogonID(String logonid,
AttributeList attributeList)
Returns a User object for an existing user. |
IUser |
getUserByPersonID(String personid)
Returns a User object who matches the given personid. |
IUser |
getUserByPersonID(String personid,
AttributeList attributeList)
Returns a User object who matches the given personid. |
IUser |
getUserByUniqueName(String uniqueName)
Gets the user 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 |
IUser |
getUserByUniqueName(String uniqueName,
AttributeList attributeList)
Gets the user 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 |
IUser[] |
getUsers(String[] uniqueIDs)
Gets the user objects for multiple unique IDs |
IUser[] |
getUsers(String[] uniqueIDs,
AttributeList populateAttributes)
Gets the user objects for multiple unique IDs and populates the attributes specified in populateAttributes |
IUserSearchFilter |
getUserSearchFilter()
Returns an IUserSearchFilter object to be used to specify query attributes |
void |
invalidateCacheEntry(String uniqueid)
removes the user 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 |
invalidateCacheEntryByLogonId(String logonid)
removes the user object which belongs to the account which has the specified logonid from the factory's cache. |
void |
invalidateCacheEntryByUniqueName(String uniqueName)
removes the user 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 * @param uniqueName the uniqueName of the user |
boolean |
isUserCreationPossible()
Returns whether a user can be created with the active UME configuration. |
IUserMaint |
newUser(String uniqueName)
Creates a new, initially blank user object with the given uniqueName. |
IUserMaint |
newUser(String uniqueName,
IUser copyFrom)
Creates a new user with the given uniqueName. |
IUserMaint[] |
newUsers(String[] uniqueNames)
Creates a new, initially blank user objects. |
void |
registerListener(UserListener userListener,
int modifier)
registerListener allows to subscribe to a predefined eventName UserListener
The caller has to provide a receiver object which implements UserListener |
void |
registerListener(UserListener userListener,
int modifier,
boolean notifyAfterPhysicalCommitCompleted)
registerListener allows to subscribe to a predefined eventName UserListener
The caller has to provide a receiver object which implements UserListener |
ISearchResult |
searchUsers(IUserSearchFilter filter)
Search for users in the user store which match the criteria specified in the given filter. |
ISearchResult |
searchUsers(IUserSearchFilter ufilter,
IUserAccountSearchFilter uafilter)
Search for users in the user store and user account store which match the criteria specified in the given ufilter and uafilter and combine the result. |
void |
unregisterListener(UserListener userListener)
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
| Method Detail |
|---|
ISearchResult getUniqueIDs()
throws UMException
Note this operation might be very time consuming because all uniqueIDs of the complete user population are returned.
ISearchResult
UMException
IUser getUser(String uniqueID)
throws UMException
uniqueID - String representing the uniqueID of a user object.
NoSuchUserException - if no user with the given unique ID
exists
UMException
IUser getUser(String uniqueID,
AttributeList populateAttributes)
throws UMException
uniqueID - String representing the uniqueID of a role object.populateAttributes - The attributes that should be populated.
Note: in case only attribute
IPrincipal.UNIQUE_NAME is specified
the existence of the returned IUser object may not be checked which
may lead to following RuntimeException
PrincipalNotAccessibleException
if other attributes of this IUser object are accessed.
NoSuchUserException - if no user with the given unique ID
exists
UMException
IUser getUserByUniqueName(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 IUser object
NoSuchUserException - if no user with the given unique name
exists
UMException - if given unique name is not unique
IUser getUserByUniqueName(String uniqueName,
AttributeList attributeList)
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 IUser objectattributeList - The attributes that should be populated
NoSuchUserException - if no user with the given unique name
exists
UMException - if given unique name is not unique
IUser[] getUsers(String[] uniqueIDs)
throws UMException
uniqueIDs - array of uniqueIDs which are used to get an array of IUser
objects.
NoSuchUserException - if one or more of the given unique IDs
are not assigned to any user
UMException
IUser[] getUsers(String[] uniqueIDs,
AttributeList populateAttributes)
throws UMException
uniqueIDs - array of uniqueIDs which are used to get an array of IUser
objects.populateAttributes - The attributes that should be populated
AttributeList
NoSuchUserException - if one or more of the given unique IDs
are not assigned to any user
UMException
IUserMaint newUser(String uniqueName)
throws UMException
IPrincipalMaint.commit().
uniqueName - of new IRole object.
Note: This name has to be unique for ALL data stores
UserAlreadyExistsException - if a user with the given uniqueName already
exists; depending on the implementation, checking for already existing users
may also be deferred to when IPrincipalMaint.commit() is called.
InvalidIDException - if uniqueName doesn't meet the user
store's requirements (e.g. its too long)
UserAlreadyExistsException - if user with uniqueName already exists
UMException
IUserMaint newUser(String uniqueName,
IUser copyFrom)
throws UMException
copyFrom will be used as a template, i.e. some (but not
necessarily all) attributes will be copied to the new user object.
uniqueName - of new IRole object.
Note: This name has to be unique for ALL data storescopyFrom - instance of an IUser object which should be copied.
UserAlreadyExistsException - if a user with the given uniqueName already
exists; depending on the implementation, checking for already existing users
may also be deferred to when IPrincipalMaint.commit() is called.
InvalidIDException - if uniqueName doesn't meet the user
store's requirements (e.g. its too long)
UserAlreadyExistsException - if user with uniqueName already exists
UMException
void deleteUser(String uniqueID)
throws UMException
uniqueID - String representing the uniqueID of a user object.
UMException - if the user can't be deleted
NoSuchUserException - if the user does not exist
ISearchResult searchUsers(IUserSearchFilter filter)
throws UMException
filter. In order to get a user search filter use
getUserSearchFilter().
You can define a search filter using IUserSearchFilter.
ISearchResult
UMException
ISearchResult searchUsers(IUserSearchFilter ufilter,
IUserAccountSearchFilter uafilter)
throws UMException
given ufilter and uafilter and combine the result.
In order to get a user search filter use getUserSearchFilter() and
IUserAccountFactory.getUserAccountSearchFilter().
ISearchResult
UMException
IUser getUserByPersonID(String personid)
throws UMException
personid - PersonID of the user
UMException - in case of an error
NoSuchUserException - if the user does not exist
IUser getUserByPersonID(String personid,
AttributeList attributeList)
throws UMException
personid - PersonID of the userattributeList - The attributes that should be populated
UMException - in case of an error
NoSuchUserException - if the user does not exist
IUser getUserByLogonID(String logonid)
throws UMException
logonid - Logon id of the user
UMException - in case of an error
NoSuchUserException - if the user does not exist
IUser getUserByLogonID(String logonid,
AttributeList attributeList)
throws UMException
logonid - Logon id of the userattributeList - The attributes that should be populated
UMException - in case of an error
NoSuchUserException - if the user does not exist
IUser getUserByLogonAlias(String logonalias,
AttributeList attrlist)
throws UMException
logonalias - Logon alias of the userattrlist - The attribute list or null.
UMException - in case of an error
NoSuchUserException - if the user does not exist
DuplicateKeyException - if multiple users have the same logonalias
IUserMaint[] newUsers(String[] uniqueNames)
throws UMException
IPrincipalMaint.commit(). For batch
save and commit use IPrincipalMaint.save()
and IPrincipalMaint.commit()
uniqueNames - Array of uniqueNames
Note: This name has to be unique for ALL data stores
UserAlreadyExistsException - if user with uniqueName already exists
UMException
IUserMaint getMutableUser(String uniqueId)
throws UMException
IUserMaint interface which contains the corresponding
set-methods. After
setting the appropriate data via IUserMaint's set-methods, each user object
must be saved and commited to the user store via IPrincipalMaint.commit().
uniqueId - of an IUser object
UMException
IUserSearchFilter getUserSearchFilter()
throws UMException
UMException
FeatureNotAvailableException
void registerListener(UserListener userListener,
int modifier)
UserListener
The caller has to provide a receiver object which implements UserListener
userListener - object which implements interface UserListenermodifier - constant defined in UserListener
void registerListener(UserListener userListener,
int modifier,
boolean notifyAfterPhysicalCommitCompleted)
UserListener
The caller has to provide a receiver object which implements UserListener
userListener - object which implements interface UserListenermodifier - constant defined in UserListenernotifyAfterPhysicalCommitCompleted - 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(UserListener userListener)
userListener - object which implements interface UserListener
void invalidateCacheEntryByLogonId(String logonid)
throws UMException
logonid - the logonid of the user account
UMException - if a error occurs
void invalidateCacheEntryByUniqueName(String uniqueName)
throws UMException
UMException - if an error occurs
void invalidateCacheEntry(String uniqueid)
throws UMException
uniqueid - the uniqueid of the user
UMException - if an error occurs
void commitUser(IUserMaint user,
IUserAccount account)
throws UMException
user - the user objectaccount - the user account object
UMException - if an error occurs
boolean isUserCreationPossible()
throws UMException
true if an IUser can be created, otherwise false.
UMException - if an 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 | |||||||||