|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.api.repository.agenda.AgendaDefinition.Builder
public static class AgendaDefinition.Builder
This builder is used to construct instances of KRMS Repository Agenda. It enforces the constraints of the AgendaDefinitionContract
.
Field Summary | |
---|---|
private boolean |
active
|
private Map<String,String> |
attributes
|
private String |
contextId
|
private String |
firstItemId
|
private String |
id
|
private String |
name
|
private String |
namespaceCode
|
private static long |
serialVersionUID
|
private String |
typeId
|
private Long |
versionNumber
|
Constructor Summary | |
---|---|
private |
AgendaDefinition.Builder(String id,
String name,
String namespaceCode,
String typeId,
String contextId)
Private constructor for creating a builder with all of it's required attributes. |
Method Summary | |
---|---|
AgendaDefinition |
build()
Builds an instance of a Agenda based on the current state of the builder. |
static AgendaDefinition.Builder |
create(AgendaDefinitionContract contract)
Creates a builder by populating it with data from the given AgendaDefinitionContract . |
static AgendaDefinition.Builder |
create(String id,
String name,
String namespaceCode,
String typeId,
String contextId)
|
Map<String,String> |
getAttributes()
This method returns a list of attributes associated with the Agenda |
String |
getContextId()
This is the ID of the Context relative to the Agenda. |
String |
getFirstItemId()
This is the ID of the first AgendaItem to be executed in the Agenda. |
String |
getId()
The unique identifier for an object. |
String |
getName()
This is the name of the Agenda |
String |
getNamespaceCode()
This is the namespace of the Agenda |
String |
getTypeId()
This is the KrmsType of the Agenda |
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 |
setContextId(String contextId)
|
void |
setFirstItemId(String firstItemId)
|
void |
setId(String agendaId)
Sets the value of the id on this builder to the given value. |
void |
setName(String name)
|
void |
setNamespaceCode(String namespaceCode)
|
void |
setTypeId(String typeId)
|
void |
setVersionNumber(Long versionNumber)
Sets the version number for the style that will be returned by this builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String id
private String name
private String namespaceCode
private String typeId
private String contextId
private boolean active
private String firstItemId
private Map<String,String> attributes
private Long versionNumber
Constructor Detail |
---|
private AgendaDefinition.Builder(String id, String name, String namespaceCode, String typeId, String contextId)
Method Detail |
---|
public static AgendaDefinition.Builder create(String id, String name, String namespaceCode, String typeId, String contextId)
public static AgendaDefinition.Builder create(AgendaDefinitionContract contract)
AgendaDefinitionContract
.
contract
- the contract from which to populate this builder
public void setId(String agendaId)
id
- the id value to set, must not be null or blank
IllegalArgumentException
- if the id is null or blankpublic void setName(String name)
public void setNamespaceCode(String namespaceCode)
public void setTypeId(String typeId)
public void setContextId(String contextId)
public void setActive(boolean active)
public void setFirstItemId(String firstItemId)
public void setAttributes(Map<String,String> attributes)
public void setVersionNumber(Long versionNumber)
In general, this value should not be manually set on the builder,
but rather copied from an existing ContextDefinitionContract
when
invoking ContextDefinition.Builder.create(ContextDefinitionContract)
.
versionNumber
- the version number to setpublic String getId()
Identifiable
getId
in interface Identifiable
public String getName()
AgendaDefinitionContract
name - the name of the Agenda
getName
in interface AgendaDefinitionContract
public String getNamespaceCode()
AgendaDefinitionContract
The namespace of the Agenda
getNamespaceCode
in interface AgendaDefinitionContract
public String getTypeId()
AgendaDefinitionContract
getTypeId
in interface AgendaDefinitionContract
public String getContextId()
AgendaDefinitionContract
getContextId
in interface AgendaDefinitionContract
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public String getFirstItemId()
AgendaDefinitionContract
getFirstItemId
in interface AgendaDefinitionContract
public Map<String,String> getAttributes()
AgendaDefinitionContract
getAttributes
in interface AgendaDefinitionContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public AgendaDefinition build()
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |