public static class AgendaDefinition.Builder extends Object implements AgendaDefinitionContract, ModelBuilder, Serializable
AgendaDefinitionContract
.Modifier and Type | Method and Description |
---|---|
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 typeId,
String contextId)
Create a builder with the given parameters.
|
Map<String,String> |
getAttributes()
This method returns a list of custom/remote attributes associated with the
agenda.
|
String |
getContextId()
Returns the context id of the Agenda.
|
String |
getFirstItemId()
Returns the fist agenda item id to be executed in the Agenda.
|
String |
getId()
The unique identifier for an object.
|
String |
getName()
Returns the name of the Agenda.
|
String |
getTypeId()
Returns the KRMS type id of the Agenda.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active)
Set the value of the active indicator on this builder to the given value.
|
void |
setAttributes(Map<String,String> attributes)
Set the value of the remote/custom attributes on this builder to the given value.
|
void |
setContextId(String contextId)
Set the value of the context id on this builder to the given value.
|
void |
setFirstItemId(String firstItemId)
Set the value of the first agenda item id on this builder to the given value.
|
void |
setId(String agendaId)
Sets the value of the id on this builder to the given value.
|
void |
setName(String name)
Set the value of the name on this builder to the given value.
|
void |
setTypeId(String typeId)
Set the value of the type id on this builder to the given value.
|
void |
setVersionNumber(Long versionNumber)
Sets the version number on this builder to the given value.
|
public static AgendaDefinition.Builder create(String id, String name, String typeId, String contextId)
id
- name
- typeId
- contextId
- public static AgendaDefinition.Builder create(AgendaDefinitionContract contract)
AgendaDefinitionContract
.contract
- the contract from which to populate this builderIllegalArgumentException
- if the contract is nullpublic void setId(String agendaId)
agendaId
- the agenda id value to set, may be null, must not be blank
The agenda id is generated by the system. For new agendas (not yet persisted) this field is null. For existing agendas this field is the generated id.
IllegalArgumentException
- if the id is blankpublic void setName(String name)
name
- the name of the agenda to set, must not be null or blankIllegalArgumentException
- if the name is null or blankpublic void setTypeId(String typeId)
typeId
- the type id of the agenda to setpublic void setContextId(String contextId)
contextId
- the context id of the agenda to set, must not be null or blankIllegalArgumentException
- if the name is null or blankpublic void setActive(boolean active)
active
- the active indicator of the agenda to setpublic void setFirstItemId(String firstItemId)
firstItemId
- the first agenda item of the agenda tree to setpublic void setAttributes(Map<String,String> attributes)
attributes
- the remote/custom attributes of the agenda to setpublic void setVersionNumber(Long versionNumber)
versionNumber
- the version number to setpublic String getId()
Identifiable
getId
in interface Identifiable
public String getName()
AgendaDefinitionContract
getName
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
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.