|
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 IUserAccountFactory
User account factory will handle authentication and retrieval of user account information from persistence storage.
NOTE: As this interface�can be extended, this interface can be freely used, but must not be implemented.
| Method Summary | |
|---|---|
void |
deleteUserAccount(String uniqueId)
Delete this user account from persistence storage |
IUserAccount |
getAuthenticatedUserAccount(Map credentials)
Authenticate the supplied credentials and returns user account object. |
IUserAccount |
getMutableUserAccount(String uniqueId)
Gets an IUserAccount objects for a uniqueId of a user account. |
IUserAccount |
getUserAccount(Map credentials)
Return UserAccount object based on the credentials supplied. |
IUserAccount |
getUserAccount(String uniqueId)
Gets UserAccount object from the database for a given uid |
IUserAccount |
getUserAccount(String uniqueId,
AttributeList populateAttributes)
Gets the UserAccount object with the given unique ID and populates the attributes in populateAttributes |
IUserAccount |
getUserAccount(X509Certificate cert)
Returns UserAccount to whom this certificate belongs. returns null if this certificate is not mapped to any user. |
IUserAccount |
getUserAccountByLogonId(String logonid)
Gets UserAccount object from the database for a given uid |
IUserAccount |
getUserAccountByLogonId(String logonid,
AttributeList populateAttributes)
Gets UserAccount object from the database for a given uid |
IUserAccount[] |
getUserAccounts(String uniqueIdOfUser)
Returns all user accounts of the given user |
IUserAccount[] |
getUserAccounts(String uniqueIdOfUser,
AttributeList attributeList)
Returns all user accounts of the given user |
IUserAccountSearchFilter |
getUserAccountSearchFilter()
Returns an IUserAccountSearchFilter object to be used to specify query attributes IUserAccountSearchFilter only contains attributes which will be queried |
void |
invalidateCacheEntry(String uniqueid)
removes the user account 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 account object which has the specified logonid from the factory's cache Note: Use this method carefully, because calling it too often may cause performance problems |
IUserAccount |
newUserAccount(String logonid)
Creates a new IUserAccount type object. |
IUserAccount |
newUserAccount(String logonid,
String uniqueIdOfUser)
Creates a new IUserAccount type object. |
void |
registerListener(UserAccountListener userAccountListener,
int modifier)
registerListener allows to subscribe to a predefined eventName UserAccountListener
The caller has to provide a receiver object which implements UserAccountListener |
void |
registerListener(UserAccountListener userAccountListener,
int modifier,
boolean notifyAfterPhysicalCommitCompleted)
registerListener allows to subscribe to a predefined eventName UserAccountListener
The caller has to provide a receiver object which implements UserAccountListener |
ISearchResult |
search(IUserAccountSearchFilter filter)
Search for user accounts in the persistence storage which match the criteria specified in the given search filter. |
void |
unregisterListener(UserAccountListener userAccountListener)
unregisterListener unsubscribes a receiver from a previously subscribed event. |
| Methods inherited from interface com.sap.security.api.IConfigurable |
|---|
initialize |
| Method Detail |
|---|
IUserAccount newUserAccount(String logonid,
String uniqueIdOfUser)
throws UMException
IPrincipalMaint.commit().
logonid - logon user id
Note: The logonid has to be unique for ALL data stores
uniqueIdOfUser - - uniqueID of the user that should be assigned to this account
UMException; - UserAccountAlreadyExistsException if an account with this logonid
already exists
UMException
IUserAccount newUserAccount(String logonid)
throws UMException
IUserFactory.commitUser(IUserMaint, IUserAccount).
Note: This object cannot be commited via IPrincipalMaint.commit()
logonid - logon user id
Note: The logonid has to be unique for ALL data stores
UMException; - UserAccountAlreadyExistsException if an account with this logonid
already exists
UMException
IUserAccount getUserAccountByLogonId(String logonid)
throws UMException
logonid - Description of Parameter
UMException - Exception will be thrown if there is an
error.
IUserAccount getUserAccountByLogonId(String logonid,
AttributeList populateAttributes)
throws UMException
logonid - Description of ParameterpopulateAttributes - The attributes that should be populated
UMException - Exception will be thrown if there is an
error.
IUserAccount getUserAccount(String uniqueId)
throws UMException
uniqueId - Description of Parameter
UMException - Exception will be thrown if there is an
error.
IUserAccount getUserAccount(String uniqueId,
AttributeList populateAttributes)
throws UMException
uniqueId - unique ID of the user accountpopulateAttributes - The attributes that should be populated
Note: in case only attribute
ILoginConstants.LOGON_UID_ALIAS
is specified the existence of the returned IUserAccount object
may not be checked which may lead to following RuntimeException
PrincipalNotAccessibleException
if other attributes of this IUserAccount object are
accessed.
UMException; - NoSuchUserAccountException if no userAccount with the
given unique ID exists
UMException
IUserAccount getUserAccount(X509Certificate cert)
throws CertificateException,
UMException,
TicketException
cert - X509Certificate certificate
CertificateException - if there is a problem with the input
certificate
UMException - Exception will be throws if there is an
error.
TicketException
NoSuchUserAccountException - if no userAccount is mapped to the certificate
IUserAccount getAuthenticatedUserAccount(Map credentials)
throws UMException,
AuthenticationFailedException,
UserLockedException,
TicketException,
CertificateException
credentials - Map containing user credential
parameters
UMException - Exception will be throws if there
is an error.
AuthenticationFailedException - Exception will be throws if
credentials could not be verified.
The message of the exception is the key for the error message.UserLockedException - Exception will be throws if user
is locked.
The message of the exception is the key for the error message.TicketException
CertificateException - a problem with certificates.
IUserAccount getUserAccount(Map credentials)
throws UMException,
CertificateException
credentials - user credentials
UMException - Description of Exception
CertificateException
void deleteUserAccount(String uniqueId)
throws UMException
uniqueId - user account
UMException - UMException is thrown
is delete operation is failed for some reason
NoSuchUserAccountException - if the user account does not exist
ISearchResult search(IUserAccountSearchFilter filter)
throws UMException
getUserAccountSearchFilter().
You can define a search filter using methods of class IUserAccountSearchFilter.
filter - defined to search for user accounts
ISearchResult
UMException
IUserAccount[] getUserAccounts(String uniqueIdOfUser)
throws UMException
uniqueIdOfUser - The user
UMException - Description of Exception
IUserAccount[] getUserAccounts(String uniqueIdOfUser,
AttributeList attributeList)
throws UMException
uniqueIdOfUser - The userattributeList - The attributes that should be populated
UMException - Description of Exception
IUserAccount getMutableUserAccount(String uniqueId)
throws UMException
uniqueId - - uniqueId of the user account
UMException; - NoSuchPrincipalException if the unique ID does not exist
UMException
IUserAccountSearchFilter getUserAccountSearchFilter()
throws UMException
IUserAccountSearchFilter only contains attributes which will be queried
UMException
FeatureNotAvailableException
void registerListener(UserAccountListener userAccountListener,
int modifier)
UserAccountListener
The caller has to provide a receiver object which implements UserAccountListener
userAccountListener - object which implements interface UserAccountListenermodifier - constant defined in UserAccountListener
void registerListener(UserAccountListener userAccountListener,
int modifier,
boolean notifyAfterPhysicalCommitCompleted)
UserAccountListener
The caller has to provide a receiver object which implements UserAccountListener
userAccountListener - object which implements interface UserAccountListenermodifier - constant defined in UserAccountListenernotifyAfterPhysicalCommitCompleted - 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(UserAccountListener userAccountListener)
userAccountListener - object which implements interface UserAccountListener
void invalidateCacheEntryByLogonId(String logonid)
throws UMException
logonid - the logonid of the user account
UMException - if a error occurs
void invalidateCacheEntry(String uniqueid)
throws UMException
uniqueid - the uniqueid of the user account
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 | |||||||||