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 $

Field Summary
static java.lang.String SERVICEUSER_ATTRIBUTE
           
static java.lang.String SERVICEUSER_NAMESPACE
           
static java.lang.String SERVICEUSER_VALUE
           
 
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
 
Methods inherited from interface com.sap.security.api.IConfigurable
initialize
 

Field Detail

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
Method Detail

getServiceUser

public IUser getServiceUser(java.lang.String uniqueName,
                            boolean bCreateTicket)
                     throws UMException
Get a service user by uniqueName
Parameters:
uniqueName - uniqueName of user
bCreateTicket - 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 deleted
NoSuchUserException - 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