public class UserManagementServiceClientImpl extends Object implements UserManagementServiceClient
UserManagementService
.Constructor and Description |
---|
UserManagementServiceClientImpl(com.lexmark.saperion.administration.UserManagementService userManagementService) |
Modifier and Type | Method and Description |
---|---|
com.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 to
UserManagementServiceClient.createUser(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.
|
UserClient |
getCurrentUser()
This method returns an administration client for the current user.
|
UserContextClient |
getCurrentUserContext() |
UserClient |
resolve(com.lexmark.saperion.administration.UserReferenceType reference)
This method returns an administration client for the user referenced.
|
UserClient |
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> |
searchDeleted()
This method returns a search client for searching deleted users.
|
public UserManagementServiceClientImpl(com.lexmark.saperion.administration.UserManagementService userManagementService)
public UserClient resolve(com.lexmark.saperion.administration.UserReferenceType reference) throws com.lexmark.saperion.exceptions.EcmException
UserManagementServiceClient
resolve
in interface UserManagementServiceClient
reference
- a reference to the user to administratecom.lexmark.saperion.exceptions.EcmException
public UserClient resolveName(String userName) throws com.lexmark.saperion.exceptions.EcmException
UserManagementServiceClient
resolveName
in interface UserManagementServiceClient
userName
- the name of the user to administratecom.lexmark.saperion.exceptions.EcmException
public SearchClient<com.lexmark.saperion.administration.UserType> search() throws com.lexmark.saperion.exceptions.EcmException
UserManagementServiceClient
search
in interface UserManagementServiceClient
com.lexmark.saperion.exceptions.EcmException
public SearchClient<com.lexmark.saperion.administration.UserType> searchDeleted() throws Exception
UserManagementServiceClient
searchDeleted
in interface UserManagementServiceClient
com.lexmark.saperion.exceptions.EcmException
Exception
public com.lexmark.saperion.administration.UserReferenceType createUser(com.lexmark.saperion.administration.CreateUserPropertiesType properties) throws com.lexmark.saperion.exceptions.EcmException
UserManagementServiceClient
createUser
in interface UserManagementServiceClient
properties
- the properties of the usercom.lexmark.saperion.exceptions.EcmException
public com.lexmark.saperion.administration.UserReferenceType createUser(String shortName, String fullName, String password, String description, String emailAddress) throws com.lexmark.saperion.exceptions.EcmException
UserManagementServiceClient
createUser
in interface UserManagementServiceClient
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 usercom.lexmark.saperion.exceptions.EcmException
public com.lexmark.saperion.administration.UserReferenceType createUser(String shortName, String password) throws com.lexmark.saperion.exceptions.EcmException
UserManagementServiceClient
UserManagementServiceClient.createUser(CreateUserPropertiesType)
. It is equivalent to caling
createUser(shortName, shortName, password, "", "")
.createUser
in interface UserManagementServiceClient
shortName
- the short name (display name) of the new userpassword
- the password of the usercom.lexmark.saperion.exceptions.EcmException
public UserClient getCurrentUser() throws com.lexmark.saperion.exceptions.EcmException
UserManagementServiceClient
getCurrentUser
in interface UserManagementServiceClient
com.lexmark.saperion.exceptions.EcmException
- when loading the current user failedpublic UserContextClient getCurrentUserContext() throws com.lexmark.saperion.exceptions.EcmException
getCurrentUserContext
in interface UserManagementServiceClient
com.lexmark.saperion.exceptions.EcmException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.