public static class Group.Builder extends Object implements GroupContract, ModelBuilder, Serializable
GroupContract.| Modifier and Type | Method and Description |
|---|---|
Group |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static Group.Builder |
create(GroupContract contract)
creates a Group from an existing
GroupContract. |
static Group.Builder |
create(String namespaceCode,
String name,
String kimTypeId)
creates a Group with the required fields.
|
Map<String,String> |
getAttributes()
This is a set of Attributes for a Group.
|
String |
getDescription()
This a description for the Group.
|
String |
getId()
The unique identifier for an object.
|
String |
getKimTypeId()
This a Kim Type Id for the Group.
|
String |
getName()
This is the name for the Group.
|
String |
getNamespaceCode()
This is the namespace code for the Group.
|
String |
getObjectId()
Return the globally unique object id of this object.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setAttributes(Map<String,String> attributes) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setKimTypeId(String kimTypeId) |
void |
setName(String name) |
void |
setNamespaceCode(String namespaceCode) |
void |
setObjectId(String objectId) |
void |
setVersionNumber(Long versionNumber) |
public static Group.Builder create(String namespaceCode, String name, String kimTypeId)
public static Group.Builder create(GroupContract contract)
GroupContract.public String getId()
IdentifiablegetId in interface Identifiablepublic String getNamespaceCode()
GroupContractThis is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group
getNamespaceCode in interface GroupContractpublic void setNamespaceCode(String namespaceCode)
public String getName()
GroupContractThis is a name assigned to a Group. Together with NamespaceCode, it makes up another unique identifier for Group
getName in interface GroupContractpublic String getDescription()
GroupContractThis is a description assigned to a Group.
getDescription in interface GroupContractpublic void setDescription(String description)
public String getKimTypeId()
GroupContractThis links a Kim Type to the Group to allow custom types of Groups.
getKimTypeId in interface GroupContractpublic void setKimTypeId(String kimTypeId)
public Map<String,String> getAttributes()
GroupContractThis is a set of attributes which are key-label pairs that are defined by the Group's Kim Type.
getAttributes in interface GroupContractpublic void setAttributes(Map<String,String> attributes)
public boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean active)
public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniquepublic void setObjectId(String objectId)
public Group build()
ModelBuilderbuild in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.