public static class AgendaItemDefinition.Builder extends Object implements AgendaItemDefinitionContract, ModelBuilder, Serializable
AgendaItemDefinitionContract.| Modifier and Type | Method and Description |
|---|---|
AgendaItemDefinition |
build()
Builds an instance of a AgendaItemDefinition based on the current state of the builder.
|
static AgendaItemDefinition.Builder |
create(AgendaItemDefinitionContract contract)
Creates a builder by populating it with data from the given
AgendaItemDefinitionContract. |
static AgendaItemDefinition.Builder |
create(String id,
String agendaId)
Create a builder with the given parameters.
|
String |
getAgendaId()
Returns the agenda id to which the agenda item belongs.
|
AgendaItemDefinition.Builder |
getAlways()
This is ID of the next AgendaItemDefinition to be executed after following any
defined true or false actions.
|
String |
getAlwaysId()
This is ID of the next AgendaItemDefinition to be executed after following any
defined true or false actions.
|
String |
getId()
The unique identifier for an object.
|
RuleDefinition.Builder |
getRule()
This method returns the Rule associated with this AgendaItemDefinition.
|
String |
getRuleId()
Returns the rule id associated with the agenda item.
|
AgendaDefinition.Builder |
getSubAgenda()
This method returns the SubAgenda associated with this AgendaItemDefinition.
|
String |
getSubAgendaId()
This is ID of the SubAgenda associated with this AgendaItemDefinition.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
AgendaItemDefinition.Builder |
getWhenFalse()
This method returns the next AgendaItemDefinition to be executed if the
Rule associated with this AgendaItemDefinition evaluates to false.
|
String |
getWhenFalseId()
This is ID of the next AgendaItemDefinition to be executed if the Rule associated
AgendaItemDefinition evaluates to false.
|
AgendaItemDefinition.Builder |
getWhenTrue()
This method returns the next AgendaItemDefinition to be executed if the
Rule associated with this AgendaItemDefinition evaluates to true.
|
String |
getWhenTrueId()
This is ID of the next AgendaItemDefinition to be executed if the Rule associated
AgendaItemDefinition evaluates to true.
|
void |
setAgendaId(String agendaId)
Set the value of the agenda id on this builder to the given value.
|
void |
setAlways(AgendaItemDefinition.Builder always)
Set the value of the agenda item for the "always" condition on this builder to the given value.
|
void |
setAlwaysId(String alwaysId)
Set the value of the agenda item id for the "always" condition on this builder to the given value.
|
void |
setId(String agendaItemId)
Sets the value of the id on this builder to the given value.
|
void |
setRule(RuleDefinition.Builder rule)
Set the value of the rule on this builder to the given value.
|
void |
setRuleId(String ruleId)
Set the value of the rule id on this builder to the given value.
|
void |
setSubAgenda(AgendaDefinition.Builder subAgenda)
Set the value of the sub agenda on this builder to the given value.
|
void |
setSubAgendaId(String subAgendaId)
Set the value of the sub agenda id on this builder to the given value.
|
void |
setVersionNumber(Long versionNumber)
Set the value of the version number on this builder to the given value.
|
void |
setWhenFalse(AgendaItemDefinition.Builder whenFalse)
Set the value of the agenda item for the "when false" condition on this builder to the given value.
|
void |
setWhenFalseId(String whenFalseId)
Set the value of the agenda item id for the "when false" condition on this builder to the given value.
|
void |
setWhenTrue(AgendaItemDefinition.Builder whenTrue)
Set the value of the agenda item for the "when true" condition on this builder to the given value.
|
void |
setWhenTrueId(String whenTrueId)
Set the value of the agenda item id for the "when true" condition on this builder to the given value.
|
public static AgendaItemDefinition.Builder create(String id, String agendaId)
id - agendaId - public static AgendaItemDefinition.Builder create(AgendaItemDefinitionContract contract)
AgendaItemDefinitionContract.contract - the contract from which to populate this builderIllegalArgumentException - if the contract is nullpublic void setId(String agendaItemId)
agendaItemId - the agenda item id to set, may be null, must not be blank
The agenda item id is generated by the system. For new agenda items (not yet persisted) this field is null. For existing agenda items this field is the generated id.
IllegalArgumentException - if the id is blankpublic void setAgendaId(String agendaId)
agendaId - the agenda id of the agenda item to set, must not be null or blankIllegalArgumentException - if the agenda id is null or blankpublic void setRuleId(String ruleId)
ruleId - the rule id of the agenda item to setpublic void setSubAgendaId(String subAgendaId)
subAgendaId - the sub agenda id of the agenda item to setpublic void setWhenTrueId(String whenTrueId)
whenTrueId - the agenda item id for the "when true" condition of the agenda item to setpublic void setWhenFalseId(String whenFalseId)
whenFalseId - the agenda item id for the "when false" condition of the agenda item to setpublic void setAlwaysId(String alwaysId)
alwaysId - the agenda item id for the "always" condition of the agenda item to setpublic void setRule(RuleDefinition.Builder rule)
rule - the rule of the agenda item to setpublic void setSubAgenda(AgendaDefinition.Builder subAgenda)
subAgenda - the sub agenda of the agenda item to setpublic void setWhenTrue(AgendaItemDefinition.Builder whenTrue)
whenTrue - the agenda item for the "when true" condition of the agenda item to setpublic void setWhenFalse(AgendaItemDefinition.Builder whenFalse)
whenFalse - the agenda item for the "when false" condition of the agenda item to setpublic void setAlways(AgendaItemDefinition.Builder always)
always - the agenda item for the "always" condition of the agenda item to setpublic void setVersionNumber(Long versionNumber)
versionNumber - the version number setpublic String getId()
IdentifiablegetId in interface Identifiablepublic String getAgendaId()
AgendaItemDefinitionContractgetAgendaId in interface AgendaItemDefinitionContractpublic String getRuleId()
AgendaItemDefinitionContractgetRuleId in interface AgendaItemDefinitionContractpublic String getSubAgendaId()
AgendaItemDefinitionContractgetSubAgendaId in interface AgendaItemDefinitionContractpublic String getWhenTrueId()
AgendaItemDefinitionContractgetWhenTrueId in interface AgendaItemDefinitionContractpublic String getWhenFalseId()
AgendaItemDefinitionContractgetWhenFalseId in interface AgendaItemDefinitionContractpublic String getAlwaysId()
AgendaItemDefinitionContractgetAlwaysId in interface AgendaItemDefinitionContractpublic RuleDefinition.Builder getRule()
AgendaItemDefinitionContractgetRule in interface AgendaItemDefinitionContractpublic AgendaDefinition.Builder getSubAgenda()
AgendaItemDefinitionContractgetSubAgenda in interface AgendaItemDefinitionContractpublic AgendaItemDefinition.Builder getWhenTrue()
AgendaItemDefinitionContractgetWhenTrue in interface AgendaItemDefinitionContractpublic AgendaItemDefinition.Builder getWhenFalse()
AgendaItemDefinitionContractgetWhenFalse in interface AgendaItemDefinitionContractpublic AgendaItemDefinition.Builder getAlways()
AgendaItemDefinitionContractgetAlways in interface AgendaItemDefinitionContractpublic Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic AgendaItemDefinition build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.