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()
Identifiable
getId
in interface Identifiable
public String getNamespaceCode()
GroupContract
This is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group
getNamespaceCode
in interface GroupContract
public void setNamespaceCode(String namespaceCode)
public String getName()
GroupContract
This is a name assigned to a Group. Together with NamespaceCode, it makes up another unique identifier for Group
getName
in interface GroupContract
public String getDescription()
GroupContract
This is a description assigned to a Group.
getDescription
in interface GroupContract
public void setDescription(String description)
public String getKimTypeId()
GroupContract
This links a Kim Type to the Group to allow custom types of Groups.
getKimTypeId
in interface GroupContract
public void setKimTypeId(String kimTypeId)
public Map<String,String> getAttributes()
GroupContract
This is a set of attributes which are key-label pairs that are defined by the Group's Kim Type.
getAttributes
in interface GroupContract
public void setAttributes(Map<String,String> attributes)
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setObjectId(String objectId)
public Group build()
ModelBuilder
build
in interface ModelBuilder
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.