public static final class Responsibility.Builder extends Object implements ResponsibilityContract, ModelBuilder, Serializable
ResponsibilityContract
.Modifier and Type | Method and Description |
---|---|
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) |
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 String getNamespaceCode()
ResponsibilityContract
getNamespaceCode
in interface ResponsibilityContract
public void setNamespaceCode(String namespaceCode)
public String getName()
ResponsibilityContract
getName
in interface ResponsibilityContract
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
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.