com.sap.security.api.srvUser
Interface IServiceUserFactory
- All Superinterfaces:
- IConfigurable
- public interface IServiceUserFactory
- extends IConfigurable
This class provides access to service users
Copyright (c) SAP Portals Europe GmbH 2001
- Version:
- $Revision: #4 $
|
Method Summary |
void |
createServiceUser(java.lang.String uniqueName)
Creates a new, initially blank service user object with the given uniqueName. |
void |
deleteUser(java.lang.String uniqueID)
Delete a user from the use store |
IUser |
getServiceUser(java.lang.String uniqueName)
Get a service user by uniqueName |
IUser |
getServiceUser(java.lang.String uniqueName,
boolean bCreateTicket)
Get a service user by uniqueName |
boolean |
isServiceUser(IUser user)
Check if user is a service user |
boolean |
isServiceUser(java.lang.String uniqueIdOfUser)
Check if user is a service user |
SERVICEUSER_NAMESPACE
public static final java.lang.String SERVICEUSER_NAMESPACE
SERVICEUSER_ATTRIBUTE
public static final java.lang.String SERVICEUSER_ATTRIBUTE
SERVICEUSER_VALUE
public static final java.lang.String SERVICEUSER_VALUE
getServiceUser
public IUser getServiceUser(java.lang.String uniqueName,
boolean bCreateTicket)
throws UMException
- Get a service user by uniqueName
- Parameters:
uniqueName - uniqueName of userbCreateTicket - if set to true a ticket is created, if false no ticket is created- Throws:
UMException -
getServiceUser
public IUser getServiceUser(java.lang.String uniqueName)
throws UMException
- Get a service user by uniqueName
- Parameters:
uniqueName - uniqueName of user
calling this method will automatically create a ticket- Throws:
UMException -
createServiceUser
public void createServiceUser(java.lang.String uniqueName)
throws UMException
- Creates a new, initially blank service user object with the given uniqueName.
The user object is automatically committed to the user store.
- Throws:
UserAlreadyExistsException - if a user with the given uniqueName already
exists.InvalidIDException - if uniqueName doesn't meet the user
store's requirements (e.g. its too long)
deleteUser
public void deleteUser(java.lang.String uniqueID)
throws UMException
- Delete a user from the use store
- Throws:
UMException - if the user can't be deletedNoSuchUserException - if the user does not exist
isServiceUser
public boolean isServiceUser(java.lang.String uniqueIdOfUser)
throws UMException
- Check if user is a service user
isServiceUser
public boolean isServiceUser(IUser user)
throws UMException
- Check if user is a service user