|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.
| 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()
|
String |
getFirstItemId()
|
String |
getId()
This is the ID for the Agenda |
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 |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 setFirstItemId(String firstItemId)
public void setAttributes(Map<String,String> attributes)
public String getId()
AgendaDefinitionContractIt is a ID of a Agenda
getId in interface AgendaDefinitionContractpublic String getName()
AgendaDefinitionContractname - the name of the Agenda
getName in interface AgendaDefinitionContractpublic String getNamespaceCode()
AgendaDefinitionContractThe namespace of the Agenda
getNamespaceCode in interface AgendaDefinitionContractpublic String getTypeId()
AgendaDefinitionContract
getTypeId in interface AgendaDefinitionContractpublic String getContextId()
getContextId in interface AgendaDefinitionContractpublic String getFirstItemId()
getFirstItemId in interface AgendaDefinitionContractpublic Map<String,String> getAttributes()
AgendaDefinitionContract
getAttributes in interface AgendaDefinitionContractpublic AgendaDefinition build()
build in interface ModelBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||