|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kim.api.responsibility.Responsibility.Builder
public static final class Responsibility.Builder
This builder constructs a Responsibility enforcing the constraints of the ResponsibilityContract
.
Method Summary | |
---|---|
Responsibility |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static Responsibility.Builder |
create(ResponsibilityContract contract)
Creates a Responsibility from an existing ResponsibilityContract . |
static Responsibility.Builder |
create(String namespaceCode,
String name)
Creates a Responsibility with the required fields. |
Map<String,String> |
getAttributes()
Attributes for a Responsibility. |
String |
getDescription()
The description of the Responsibility. |
String |
getId()
The unique identifier for an object. |
String |
getName()
The name of the Responsibility. |
String |
getNamespaceCode()
The namespace code that this Responsibility belongs too. |
String |
getObjectId()
Return the globally unique object id of this object. |
Template.Builder |
getTemplate()
The Template referenced by the Responsibility. |
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 |
setName(String name)
|
void |
setNamespaceCode(String namespaceCode)
|
void |
setObjectId(String objectId)
|
void |
setTemplate(Template.Builder template)
|
void |
setVersionNumber(Long versionNumber)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Responsibility.Builder create(String namespaceCode, String name)
public static Responsibility.Builder create(ResponsibilityContract contract)
ResponsibilityContract
.
public String getId()
Identifiable
getId
in interface Identifiable
public void setId(String id)
public String getNamespaceCode()
ResponsibilityContract
getNamespaceCode
in interface ResponsibilityContract
public void setNamespaceCode(String namespaceCode)
public String getName()
ResponsibilityContract
getName
in interface ResponsibilityContract
public void setName(String name)
public String getDescription()
ResponsibilityContract
getDescription
in interface ResponsibilityContract
public void setDescription(String description)
public Template.Builder getTemplate()
ResponsibilityContract
getTemplate
in interface ResponsibilityContract
public void setTemplate(Template.Builder template)
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 Map<String,String> getAttributes()
ResponsibilityContract
getAttributes
in interface ResponsibilityContract
public void setAttributes(Map<String,String> attributes)
public Responsibility build()
ModelBuilder
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |