Class Role

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class Role
    extends Crmbaseentity
    implements com.github.davidmoten.odata.client.ODataEntityType
    • Field Detail

      • importsequencenumber

        protected Integer importsequencenumber
      • solutionid

        protected UUID solutionid
      • _roletemplateid_value

        protected UUID _roletemplateid_value
      • _parentroleid_value

        protected UUID _parentroleid_value
      • _modifiedby_value

        protected UUID _modifiedby_value
      • _modifiedonbehalfby_value

        protected UUID _modifiedonbehalfby_value
      • organizationid

        protected UUID organizationid
      • _createdonbehalfby_value

        protected UUID _createdonbehalfby_value
      • _createdby_value

        protected UUID _createdby_value
      • _businessunitid_value

        protected UUID _businessunitid_value
      • roleid

        protected UUID roleid
      • ismanaged

        protected Boolean ismanaged
      • componentstate

        protected Integer componentstate
      • _parentrootroleid_value

        protected UUID _parentrootroleid_value
      • roleidunique

        protected UUID roleidunique
      • isinherited

        protected Integer isinherited
      • versionnumber

        protected Long versionnumber
    • Constructor Detail

      • Role

        protected Role()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Crmbaseentity
      • builderRole

        public static Role.Builder builderRole()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Crmbaseentity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Crmbaseentity
      • getImportsequencenumber

        public Optional<Integer> getImportsequencenumber()
      • withImportsequencenumber

        public Role withImportsequencenumber​(Integer importsequencenumber)
      • withSolutionid

        public Role withSolutionid​(UUID solutionid)
      • get_roletemplateid_value

        public Optional<UUID> get_roletemplateid_value()
      • with_roletemplateid_value

        public Role with_roletemplateid_value​(UUID _roletemplateid_value)
      • get_parentroleid_value

        public Optional<UUID> get_parentroleid_value()
      • with_parentroleid_value

        public Role with_parentroleid_value​(UUID _parentroleid_value)
      • get_modifiedby_value

        public Optional<UUID> get_modifiedby_value()
      • with_modifiedby_value

        public Role with_modifiedby_value​(UUID _modifiedby_value)
      • get_modifiedonbehalfby_value

        public Optional<UUID> get_modifiedonbehalfby_value()
      • with_modifiedonbehalfby_value

        public Role with_modifiedonbehalfby_value​(UUID _modifiedonbehalfby_value)
      • getOrganizationid

        public Optional<UUID> getOrganizationid()
      • withOrganizationid

        public Role withOrganizationid​(UUID organizationid)
      • withName

        public Role withName​(String name)
      • get_createdonbehalfby_value

        public Optional<UUID> get_createdonbehalfby_value()
      • with_createdonbehalfby_value

        public Role with_createdonbehalfby_value​(UUID _createdonbehalfby_value)
      • get_createdby_value

        public Optional<UUID> get_createdby_value()
      • with_createdby_value

        public Role with_createdby_value​(UUID _createdby_value)
      • get_businessunitid_value

        public Optional<UUID> get_businessunitid_value()
      • with_businessunitid_value

        public Role with_businessunitid_value​(UUID _businessunitid_value)
      • withRoleid

        public Role withRoleid​(UUID roleid)
      • withIsmanaged

        public Role withIsmanaged​(Boolean ismanaged)
      • withComponentstate

        public Role withComponentstate​(Integer componentstate)
      • get_parentrootroleid_value

        public Optional<UUID> get_parentrootroleid_value()
      • with_parentrootroleid_value

        public Role with_parentrootroleid_value​(UUID _parentrootroleid_value)
      • withRoleidunique

        public Role withRoleidunique​(UUID roleidunique)
      • withIsinherited

        public Role withIsinherited​(Integer isinherited)
      • withOverriddencreatedon

        public Role withOverriddencreatedon​(OffsetDateTime overriddencreatedon)
      • getVersionnumber

        public Optional<Long> getVersionnumber()
      • withVersionnumber

        public Role withVersionnumber​(Long versionnumber)
      • getParentroleid

        public RoleRequest getParentroleid()
      • getParentrootroleid

        public RoleRequest getParentrootroleid()
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Crmbaseentity
      • patch

        public Role patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Crmbaseentity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public Role put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Crmbaseentity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • addPrivilegesRole

        public com.github.davidmoten.odata.client.ActionRequestNoReturn addPrivilegesRole​(List<RolePrivilege> privileges)
      • removePrivilegeRole

        public com.github.davidmoten.odata.client.ActionRequestNoReturn removePrivilegeRole​(Privilege privilege)
      • replacePrivilegesRole

        public com.github.davidmoten.odata.client.ActionRequestNoReturn replacePrivilegesRole​(List<RolePrivilege> privileges)