Class UserManagementServiceClientImpl
- java.lang.Object
- 
- com.lexmark.saperion.client.implementation.administration.UserManagementServiceClientImpl
 
- 
- All Implemented Interfaces:
- UserManagementServiceClient
 
 public class UserManagementServiceClientImpl extends java.lang.Object implements UserManagementServiceClient This is the default implementation ofUserManagementService.- Author:
- jschwarz
 
- 
- 
Constructor SummaryConstructors Constructor Description UserManagementServiceClientImpl(com.lexmark.saperion.administration.UserManagementService userManagementService)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.lexmark.saperion.administration.UserReferenceTypecreateUser(com.lexmark.saperion.administration.CreateUserPropertiesType properties)This method creates a new user with the given properties.com.lexmark.saperion.administration.UserReferenceTypecreateUser(java.lang.String shortName, java.lang.String password)This is a shorthand toUserManagementServiceClient.createUser(CreateUserPropertiesType).com.lexmark.saperion.administration.UserReferenceTypecreateUser(java.lang.String shortName, java.lang.String fullName, java.lang.String password, java.lang.String description, java.lang.String emailAddress)This method creates a new user with the given properties.UserClientgetCurrentUser()This method returns an administration client for the current user.UserContextClientgetCurrentUserContext()UserClientresolve(com.lexmark.saperion.administration.UserReferenceType reference)This method returns an administration client for the user referenced.UserClientresolveName(java.lang.String userName)This method returns an administration client for the user with the given name.SearchClient<com.lexmark.saperion.administration.UserType>search()This method returns a search client for searching users.SearchClient<com.lexmark.saperion.administration.UserType>searchDeleted()This method returns a search client for searching deleted users.
 
- 
- 
- 
Method Detail- 
resolvepublic UserClient resolve(com.lexmark.saperion.administration.UserReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:UserManagementServiceClientThis method returns an administration client for the user referenced.- Specified by:
- resolvein interface- UserManagementServiceClient
- Parameters:
- reference- a reference to the user to administrate
- Returns:
- an administration client for the user referenced
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
 - 
resolveNamepublic UserClient resolveName(java.lang.String userName) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:UserManagementServiceClientThis method returns an administration client for the user with the given name.- Specified by:
- resolveNamein interface- UserManagementServiceClient
- Parameters:
- userName- the name of the user to administrate
- Returns:
- an administration client for the user with the given name
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
 - 
searchpublic SearchClient<com.lexmark.saperion.administration.UserType> search() throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:UserManagementServiceClientThis method returns a search client for searching users.- Specified by:
- searchin interface- UserManagementServiceClient
- Returns:
- a search client for searching users
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
 - 
searchDeletedpublic SearchClient<com.lexmark.saperion.administration.UserType> searchDeleted() throws java.lang.Exception Description copied from interface:UserManagementServiceClientThis method returns a search client for searching deleted users.- Specified by:
- searchDeletedin interface- UserManagementServiceClient
- Returns:
- a search client for searching deleted users
- Throws:
- com.lexmark.saperion.exceptions.EcmException
- java.lang.Exception
 
 - 
createUserpublic com.lexmark.saperion.administration.UserReferenceType createUser(com.lexmark.saperion.administration.CreateUserPropertiesType properties) throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:UserManagementServiceClientThis method creates a new user with the given properties.- Specified by:
- createUserin interface- UserManagementServiceClient
- Parameters:
- properties- the properties of the user
- Returns:
- a reference to the user created
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
 - 
createUserpublic com.lexmark.saperion.administration.UserReferenceType createUser(java.lang.String shortName, java.lang.String fullName, java.lang.String password, java.lang.String description, java.lang.String emailAddress) throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:UserManagementServiceClientThis method creates a new user with the given properties.- Specified by:
- createUserin interface- UserManagementServiceClient
- Parameters:
- shortName- the short name (display name) of the new user
- fullName- the full name of the new user
- password- the password of the user
- description- a description of the new user
- emailAddress- the email address of the user
- Returns:
- a reference to the user created
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
 - 
createUserpublic com.lexmark.saperion.administration.UserReferenceType createUser(java.lang.String shortName, java.lang.String password) throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:UserManagementServiceClientThis is a shorthand toUserManagementServiceClient.createUser(CreateUserPropertiesType). It is equivalent to calingcreateUser(shortName, shortName, password, "", "").- Specified by:
- createUserin interface- UserManagementServiceClient
- Parameters:
- shortName- the short name (display name) of the new user
- password- the password of the user
- Returns:
- a reference to the user created
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
 - 
getCurrentUserpublic UserClient getCurrentUser() throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:UserManagementServiceClientThis method returns an administration client for the current user.- Specified by:
- getCurrentUserin interface- UserManagementServiceClient
- Returns:
- an administration client for the current user
- Throws:
- com.lexmark.saperion.exceptions.EcmException- when loading the current user failed
 
 - 
getCurrentUserContextpublic UserContextClient getCurrentUserContext() throws com.lexmark.saperion.exceptions.EcmException - Specified by:
- getCurrentUserContextin interface- UserManagementServiceClient
- Throws:
- com.lexmark.saperion.exceptions.EcmException
 
 
- 
 
-