Class Role.Builder

java.lang.Object
org.kuali.rice.kim.api.role.Role.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.GloballyUnique, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.core.api.mo.ModelObjectComplete, RoleContract
Enclosing class:
Role

public static final class Role.Builder extends Object implements RoleContract, org.kuali.rice.core.api.mo.ModelBuilder, org.kuali.rice.core.api.mo.ModelObjectComplete
See Also:
  • Method Details

    • create

      public static Role.Builder create()
    • create

      public static Role.Builder create(String id, String name, String namespaceCode, String description, String kimTypeId)
    • create

      public static Role.Builder create(RoleContract roleContract)
    • build

      public Role build()
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder
    • setId

      public void setId(String id)
    • getId

      public String getId()
      Specified by:
      getId in interface org.kuali.rice.core.api.mo.common.Identifiable
    • setNamespaceCode

      public void setNamespaceCode(String namespaceCode)
    • getNamespaceCode

      public String getNamespaceCode()
      Description copied from interface: RoleContract
      A namespace for this role. A namespace for a role identifies the system/module to which this role applies.
      Specified by:
      getNamespaceCode in interface RoleContract
      Returns:
      Namespace for the role.
    • setName

      public void setName(String name)
    • getName

      public String getName()
      Description copied from interface: RoleContract
      The human readable name for this role.
      Specified by:
      getName in interface RoleContract
      Returns:
      Human readable role name.
    • setDescription

      public void setDescription(String description)
    • getDescription

      public String getDescription()
      Description copied from interface: RoleContract
      A full textual description of this role. This String should provide a verbose description of the role, what it is meant to provide to principals assigned to it, and what permissions it implies.
      Specified by:
      getDescription in interface RoleContract
      Returns:
      Description of the role.
    • setKimTypeId

      public void setKimTypeId(String kimTypeId)
    • getKimTypeId

      public String getKimTypeId()
      Description copied from interface: RoleContract
      Provides the associated KimType identifier for this role. This controls what additional attributes are available.
      Specified by:
      getKimTypeId in interface RoleContract
      Returns:
      KimType Id
    • setActive

      public void setActive(boolean active)
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
    • setVersionNumber

      public void setVersionNumber(Long versionNumber)
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned
    • setObjectId

      public void setObjectId(String objectId)
    • getObjectId

      public String getObjectId()
      Specified by:
      getObjectId in interface org.kuali.rice.core.api.mo.common.GloballyUnique
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.kuali.rice.core.api.mo.ModelObjectComplete
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.kuali.rice.core.api.mo.ModelObjectComplete
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface org.kuali.rice.core.api.mo.ModelObjectBasic
      Overrides:
      toString in class Object