|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The user factory provides means to
| Field Summary | |
static java.lang.String |
VERSIONSTRING
|
| Method Summary | |
void |
deleteUser(java.lang.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(java.lang.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(java.lang.String uniqueID)
Gets the user object with the given unique ID |
IUser |
getUser(java.lang.String uniqueID,
AttributeList populateAttributes)
Gets the user object with the given unique ID and populates the attributes specified in populateAttributes |
IUser |
getUserByLogonID(java.lang.String logonid)
Returns a User object for an existing user. |
IUser |
getUserByLogonID(java.lang.String logonid,
AttributeList attributeList)
Returns a User object for an existing user. |
IUser |
getUserByUniqueName(java.lang.String uniqueName)
Gets the user object with the given uniqueName |
IUser |
getUserByUniqueName(java.lang.String uniqueName,
AttributeList attributeList)
Gets the user object with the given uniqueName |
IUser[] |
getUsers(java.lang.String[] uniqueIDs)
Gets the user objects for multiple unique IDs |
IUser[] |
getUsers(java.lang.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(java.lang.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(java.lang.String logonid)
removes the user object which belongs to the account which has the specified logonid from the factory's cache. |
void |
invalidateCacheEntryByUniqueName(java.lang.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 |
IUserMaint |
newUser(java.lang.String uniqueName)
Creates a new, initially blank user object with the given uniqueName. |
IUserMaint |
newUser(java.lang.String uniqueName,
IUser copyFrom)
Creates a new user with the given uniqueName. |
IUserMaint[] |
newUsers(java.lang.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 |
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 |
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 |
public static final java.lang.String VERSIONSTRING
| Method Detail |
public ISearchResult getUniqueIDs()
throws UMException
Note this operation might be very time consuming because all uniqueIDs of the complete user population are returned.
ISearchResult
public IUser getUser(java.lang.String uniqueID)
throws UMException
uniqueID: - String representing the uniqueID of a user object.NoSuchUserException - if no user with the given unique ID
exists
public IUser getUser(java.lang.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
public IUser getUserByUniqueName(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 IUser objectNoSuchUserException - if no user with the given unique name
existsUMException - if given unique name is not unique
public IUser getUserByUniqueName(java.lang.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 populatedNoSuchUserException - if no user with the given unique name
existsUMException - if given unique name is not unique
public IUser[] getUsers(java.lang.String[] uniqueIDs)
throws UMException
String[] - 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
public IUser[] getUsers(java.lang.String[] uniqueIDs,
AttributeList populateAttributes)
throws UMException
String[] - array of uniqueIDs which are used to get an array of IUser
objects.populateAttributes - The attributes that should be populated
AttributeListNoSuchUserException - if one or more of the given unique IDs
are not assigned to any user
public IUserMaint newUser(java.lang.String uniqueName)
throws UMException
IPrincipalMaint.commit().uniqueName - of new IRole object.
Note: This name has to be unique for ALL data storesUserAlreadyExistsException - 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
public IUserMaint newUser(java.lang.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
public void deleteUser(java.lang.String uniqueID)
throws UMException
uniqueID: - String representing the uniqueID of a user object.UMException - if the user can't be deletedNoSuchUserException - if the user does not exist
public 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
public 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
public IUser getUserByLogonID(java.lang.String logonid)
throws UMException
logonid - Logon id of the userUMException - in case of an errorNoSuchUserException - if the user does not exist
public IUser getUserByLogonID(java.lang.String logonid,
AttributeList attributeList)
throws UMException
logonid - Logon id of the userattributeList - The attributes that should be populatedUMException - in case of an errorNoSuchUserException - if the user does not exist
public IUserMaint[] newUsers(java.lang.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 storesUserAlreadyExistsException - if user with uniqueName already exists
public IUserMaint getMutableUser(java.lang.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
public IUserSearchFilter getUserSearchFilter()
throws UMException
UMException - FeatureNotAvailableException -
public void registerListener(UserListener userListener,
int modifier)
UserListener
The caller has to provide a receiver object which implements UserListeneruserListener - object which implements interface UserListenermodifier - constant defined in UserListenerpublic void unregisterListener(UserListener userListener)
UserListener - object which implements interface UserListener
public void invalidateCacheEntryByLogonId(java.lang.String logonid)
throws UMException
logonid - the logonid of the user accountUMException - if a error occurs
public void invalidateCacheEntryByUniqueName(java.lang.String uniqueName)
throws UMException
UMException - if a error occurs
public void invalidateCacheEntry(java.lang.String uniqueid)
throws UMException
uniqueid - the uniqueid of the userUMException - if a error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||