public class UserClientImpl extends Object implements UserClient
UserClient
.Constructor and Description |
---|
UserClientImpl(UserManagementService userManagementService,
UserReferenceType userReference) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
This method deletes the user.
|
void |
deleteExtension()
This method deletes the schema-extension properties of the user.
|
void |
expirePassword()
This method makes the users password expire.
|
List<AclReferenceType> |
getACLs()
This method returns the ACLs currently set on the user.
|
Map<String,PropertyType> |
getExtension()
This method returns the schema-extension properties of the user.
|
Date |
getPasswordExpiration()
This method gets the date when the users password will expire or null if the password never expires.
|
UserType |
load()
This method loads the user entity from the user management system.
|
void |
setExtension(Map<String,PropertyType> extension)
This method sets the schema-extension properties of the user.
|
void |
undelete()
This method un-deletes the user.
|
void |
update(UserPropertiesType properties)
This method updates the referenced user with the given properties.
|
void |
updatePassword(String password)
This method updates the password of the user.
|
public UserClientImpl(UserManagementService userManagementService, UserReferenceType userReference)
public void delete() throws EcmException
UserClient
delete
in interface UserClient
EcmException
- indicates that a system exception occurredpublic void undelete() throws EcmException
UserClient
undelete
in interface UserClient
EcmException
- indicates that a system exception occurredpublic UserType load() throws ResourceNotFoundException, EcmException
UserClient
load
in interface UserClient
EcmException
- indicates that a system exception occurredResourceNotFoundException
public void update(UserPropertiesType properties) throws EcmException
UserClient
update
in interface UserClient
properties
- the properties to changeEcmException
- indicates that a system exception occurredpublic void updatePassword(String password) throws EcmException
UserClient
updatePassword
in interface UserClient
password
- the password of the userEcmException
- indicates that a system exception occurredpublic Date getPasswordExpiration() throws EcmException
UserClient
getPasswordExpiration
in interface UserClient
EcmException
public void expirePassword() throws EcmException
UserClient
expirePassword
in interface UserClient
EcmException
public void setExtension(Map<String,PropertyType> extension) throws EcmException
UserClient
setExtension
in interface UserClient
extension
- schema-extension propertiesEcmException
- when the schema-extension properties could not be setpublic Map<String,PropertyType> getExtension() throws EcmException
UserClient
getExtension
in interface UserClient
EcmException
- when the schema-extension properties could not be loadedpublic void deleteExtension() throws EcmException
UserClient
deleteExtension
in interface UserClient
EcmException
- when the schema-extension properties could not be deletedpublic List<AclReferenceType> getACLs() throws EcmException
UserClient
getACLs
in interface UserClient
EcmException
- when loading the ACLs failedCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.