Class UserContextClientImpl
java.lang.Object
com.lexmark.saperion.client.implementation.administration.UserClientImpl
com.lexmark.saperion.client.implementation.administration.UserContextClientImpl
- All Implemented Interfaces:
UserClient
,UserContextClient
This is the default implementation of
UserContextClient
.- Author:
- jschwarz
-
Constructor Summary
ConstructorsConstructorDescriptionUserContextClientImpl
(com.lexmark.saperion.administration.UserManagementService userManagementService, com.lexmark.saperion.administration.UserContextType userContext) -
Method Summary
Modifier and TypeMethodDescriptioncom.lexmark.saperion.administration.UserContextType
This method returns the users context.com.lexmark.saperion.administration.UserType
load()
This method loads the user entity from the user management system.void
update
(com.lexmark.saperion.administration.UserPropertiesType properties) This method updates the referenced user with the given properties.Methods inherited from class com.lexmark.saperion.client.implementation.administration.UserClientImpl
delete, deleteExtension, expirePassword, getACLs, getPasswordExpiration, getSchemaExtension, setSchemaExtension, undelete, updatePassword
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.lexmark.saperion.client.administration.UserClient
delete, deleteExtension, expirePassword, getACLs, getExtension, getPasswordExpiration, getSchemaExtension, setExtension, setSchemaExtension, undelete, updatePassword
-
Constructor Details
-
UserContextClientImpl
public UserContextClientImpl(com.lexmark.saperion.administration.UserManagementService userManagementService, com.lexmark.saperion.administration.UserContextType userContext)
-
-
Method Details
-
getUserContext
public com.lexmark.saperion.administration.UserContextType getUserContext()Description copied from interface:UserContextClient
This method returns the users context.- Specified by:
getUserContext
in interfaceUserContextClient
- Returns:
- the users context
-
load
public com.lexmark.saperion.administration.UserType load() throws com.lexmark.saperion.exceptions.runtime.ResourceNotFoundException, com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:UserClient
This method loads the user entity from the user management system. If the user exists the corresponding user entity is returned. Otherwise an exception is thrown.- Specified by:
load
in interfaceUserClient
- Overrides:
load
in classUserClientImpl
- Returns:
- the referenced user entity
- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurredcom.lexmark.saperion.exceptions.runtime.ResourceNotFoundException
-
update
public void update(com.lexmark.saperion.administration.UserPropertiesType properties) throws com.lexmark.saperion.exceptions.EcmException Description copied from interface:UserClient
This method updates the referenced user with the given properties.- Specified by:
update
in interfaceUserClient
- Overrides:
update
in classUserClientImpl
- Parameters:
properties
- the properties to change- Throws:
com.lexmark.saperion.exceptions.EcmException
- indicates that a system exception occurred
-