Package org.kuali.rice.kim.api.group
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 Summary
Modifier and TypeMethodDescriptionbuild()static Group.Buildercreates a Group with the required fields.static Group.Buildercreate(GroupContract contract) creates a Group from an existingGroupContract.This is a set of Attributes for a Group.This a description for the Group.getId()This a Kim Type Id for the Group.getName()This is the name for the Group.This is the namespace code for the Group.booleanisActive()voidsetActive(boolean active) voidsetAttributes(Map<String, String> attributes) voidsetDescription(String description) voidvoidsetKimTypeId(String kimTypeId) voidvoidsetNamespaceCode(String namespaceCode) voidsetObjectId(String objectId) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
creates a Group with the required fields. -
create
creates a Group from an existingGroupContract. -
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
setId
-
getNamespaceCode
Description copied from interface:GroupContractThis 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:
getNamespaceCodein interfaceGroupContract- Returns:
- namespaceCode
-
setNamespaceCode
-
getName
Description copied from interface:GroupContractThis 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:
getNamein interfaceGroupContract- Returns:
- name
-
setName
-
getDescription
Description copied from interface:GroupContractThis a description for the Group.This is a description assigned to a Group.
- Specified by:
getDescriptionin interfaceGroupContract- Returns:
- description
-
setDescription
-
getKimTypeId
Description copied from interface:GroupContractThis a Kim Type Id for the Group.This links a Kim Type to the Group to allow custom types of Groups.
- Specified by:
getKimTypeIdin interfaceGroupContract- Returns:
- description
-
setKimTypeId
-
getAttributes
Description copied from interface:GroupContractThis 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:
getAttributesin interfaceGroupContract- Returns:
- attributes
-
setAttributes
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
setActive
public void setActive(boolean active) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setVersionNumber
-
getObjectId
- Specified by:
getObjectIdin interfaceorg.kuali.rice.core.api.mo.common.GloballyUnique
-
setObjectId
-
build
- Specified by:
buildin interfaceorg.kuali.rice.core.api.mo.ModelBuilder
-