Class UserContextClientImpl

    • Constructor Detail

      • UserContextClientImpl

        public UserContextClientImpl​(com.lexmark.saperion.administration.UserManagementService userManagementService,
                                     com.lexmark.saperion.administration.UserContextType userContext)
    • Method Detail

      • getUserContext

        public com.lexmark.saperion.administration.UserContextType getUserContext()
        Description copied from interface: UserContextClient
        This method returns the users context.
        Specified by:
        getUserContext in interface UserContextClient
        Returns:
        the users context
      • load

        public com.lexmark.saperion.administration.UserType load()
                                                          throws com.lexmark.saperion.exceptions.runtime.ResourceNotFoundException,
                                                                 com.lexmark.saperion.exceptions.EcmException
        Description 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 interface UserClient
        Overrides:
        load in class UserClientImpl
        Returns:
        the referenced user entity
        Throws:
        com.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurred
        com.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 interface UserClient
        Overrides:
        update in class UserClientImpl
        Parameters:
        properties - the properties to change
        Throws:
        com.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurred