Class Group.Builder

java.lang.Object
org.kuali.rice.kim.api.group.Group.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, GroupContract
Enclosing class:
Group

public static class Group.Builder extends Object implements GroupContract, org.kuali.rice.core.api.mo.ModelBuilder, Serializable
This builder constructs an Group enforcing the constraints of the GroupContract.
See Also:
  • Method Details

    • create

      public static Group.Builder create(String namespaceCode, String name, String kimTypeId)
      creates a Group with the required fields.
    • create

      public static Group.Builder create(GroupContract contract)
      creates a Group from an existing GroupContract.
    • getId

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

      public void setId(String id)
    • getNamespaceCode

      public String getNamespaceCode()
      Description copied from interface: GroupContract
      This is the namespace code for the Group.

      This is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group

      Specified by:
      getNamespaceCode in interface GroupContract
      Returns:
      namespaceCode
    • setNamespaceCode

      public void setNamespaceCode(String namespaceCode)
    • getName

      public String getName()
      Description copied from interface: GroupContract
      This is the name for the Group.

      This is a name assigned to a Group. Together with NamespaceCode, it makes up another unique identifier for Group

      Specified by:
      getName in interface GroupContract
      Returns:
      name
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
      Description copied from interface: GroupContract
      This a description for the Group.

      This is a description assigned to a Group.

      Specified by:
      getDescription in interface GroupContract
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • getKimTypeId

      public String getKimTypeId()
      Description copied from interface: GroupContract
      This a Kim Type Id for the Group.

      This links a Kim Type to the Group to allow custom types of Groups.

      Specified by:
      getKimTypeId in interface GroupContract
      Returns:
      description
    • setKimTypeId

      public void setKimTypeId(String kimTypeId)
    • getAttributes

      public Map<String,String> getAttributes()
      Description copied from interface: GroupContract
      This is a set of Attributes for a Group.

      This is a set of attributes which are key-label pairs that are defined by the Group's Kim Type.

      Specified by:
      getAttributes in interface GroupContract
      Returns:
      attributes
    • setAttributes

      public void setAttributes(Map<String,String> attributes)
    • isActive

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

      public void setActive(boolean active)
    • getVersionNumber

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

      public void setVersionNumber(Long versionNumber)
    • getObjectId

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

      public void setObjectId(String objectId)
    • build

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