Class RoleClientImpl

  • All Implemented Interfaces:
    RoleClient

    public class RoleClientImpl
    extends java.lang.Object
    implements RoleClient
    This is the default implementation of RoleClient.
    Author:
    tfrisch
    • Constructor Summary

      Constructors 
      Constructor Description
      RoleClientImpl​(com.lexmark.saperion.administration.RoleManagementService roleManagementService, com.lexmark.saperion.administration.RoleReferenceType reference)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      This method deletes the role.
      java.util.List<com.lexmark.saperion.administration.AclReferenceType> getACLs()
      This method returns the ACLs currently set on the role.
      com.lexmark.saperion.administration.RoleType load()
      This method loads the role.
      void undelete()
      This method un-deletes the role.
      void update​(com.lexmark.saperion.administration.RolePropertiesType properties)
      This method updates the role with the given properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RoleClientImpl

        public RoleClientImpl​(com.lexmark.saperion.administration.RoleManagementService roleManagementService,
                              com.lexmark.saperion.administration.RoleReferenceType reference)
    • Method Detail

      • delete

        public void delete()
                    throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: RoleClient
        This method deletes the role.
        Specified by:
        delete in interface RoleClient
        Throws:
        com.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurred
      • undelete

        public void undelete()
                      throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: RoleClient
        This method un-deletes the role.
        Specified by:
        undelete in interface RoleClient
        Throws:
        com.lexmark.saperion.exceptions.EcmException - indicates that a system exception occurred
      • load

        public com.lexmark.saperion.administration.RoleType load()
                                                          throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: RoleClient
        This method loads the role.
        Specified by:
        load in interface RoleClient
        Returns:
        the referenced role
        Throws:
        com.lexmark.saperion.exceptions.system.SystemException - indicates that a system exception occurred
        com.lexmark.saperion.exceptions.EcmException
      • update

        public void update​(com.lexmark.saperion.administration.RolePropertiesType properties)
                    throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: RoleClient
        This method updates the role with the given properties.
        Specified by:
        update in interface RoleClient
        Parameters:
        properties - the new properties of the role
        Throws:
        com.lexmark.saperion.exceptions.system.SystemException - indicates that a system exception occurred
        com.lexmark.saperion.exceptions.EcmException
      • getACLs

        public java.util.List<com.lexmark.saperion.administration.AclReferenceType> getACLs()
                                                                                     throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: RoleClient
        This method returns the ACLs currently set on the role.
        Specified by:
        getACLs in interface RoleClient
        Returns:
        the ACLs currently set on the role
        Throws:
        com.lexmark.saperion.exceptions.EcmException - when loading the ACLs failed