Interface UserManagementServiceClient
- All Known Implementing Classes:
UserManagementServiceClientImpl
public interface UserManagementServiceClient
This client provides functionality to administrate the users of a saperion system.
- Author:
- jschwarz
-
Method Summary
Modifier and TypeMethodDescriptioncom.lexmark.saperion.administration.UserReferenceType
createUser
(com.lexmark.saperion.administration.CreateUserPropertiesType properties) This method creates a new user with the given properties.com.lexmark.saperion.administration.UserReferenceType
createUser
(String shortName, String password) This is a shorthand tocreateUser(CreateUserPropertiesType)
.com.lexmark.saperion.administration.UserReferenceType
createUser
(String shortName, String fullName, String password, String description, String emailAddress) This method creates a new user with the given properties.Deprecated.resolve
(com.lexmark.saperion.administration.UserReferenceType reference) This method returns an administration client for the user referenced.resolveName
(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>
This method returns a search client for searching deleted users.
-
Method Details
-
resolve
UserClient resolve(com.lexmark.saperion.administration.UserReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException This method returns an administration client for the user referenced.- Parameters:
reference
- a reference to the user to administrate- Returns:
- an administration client for the user referenced
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
resolveName
This method returns an administration client for the user with the given name.- 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
-
search
SearchClient<com.lexmark.saperion.administration.UserType> search() throws com.lexmark.saperion.exceptions.EcmExceptionThis method returns a search client for searching users.- Returns:
- a search client for searching users
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
searchDeleted
This method returns a search client for searching deleted users.- Returns:
- a search client for searching deleted users
- Throws:
com.lexmark.saperion.exceptions.EcmException
Exception
-
createUser
com.lexmark.saperion.administration.UserReferenceType createUser(com.lexmark.saperion.administration.CreateUserPropertiesType properties) throws com.lexmark.saperion.exceptions.EcmException This method creates a new user with the given properties.- Parameters:
properties
- the properties of the user- Returns:
- a reference to the user created
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createUser
com.lexmark.saperion.administration.UserReferenceType createUser(String shortName, String fullName, String password, String description, String emailAddress) throws com.lexmark.saperion.exceptions.EcmException This method creates a new user with the given properties.- Parameters:
shortName
- the short name (display name) of the new userfullName
- the full name of the new userpassword
- the password of the userdescription
- a description of the new useremailAddress
- the email address of the user- Returns:
- a reference to the user created
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
createUser
com.lexmark.saperion.administration.UserReferenceType createUser(String shortName, String password) throws com.lexmark.saperion.exceptions.EcmException This is a shorthand tocreateUser(CreateUserPropertiesType)
. It is equivalent to calingcreateUser(shortName, shortName, password, "", "")
.- Parameters:
shortName
- the short name (display name) of the new userpassword
- the password of the user- Returns:
- a reference to the user created
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getCurrentUser
Deprecated.usegetCurrentUserContext()
insteadThis method returns an administration client for the current user.- Returns:
- an administration client for the current user
- Throws:
com.lexmark.saperion.exceptions.EcmException
- when loading the current user failed
-
getCurrentUserContext
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getCurrentUserContext()
instead