|
||||||||||
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.AgendaItem.Builder
public static class AgendaItem.Builder
This builder is used to construct instances of KRMS Repository AgendaItem. It enforces the constraints of the AgendaItemContract
.
Method Summary | |
---|---|
AgendaItem |
build()
Builds an instance of a AgendaItem based on the current state of the builder. |
static AgendaItem.Builder |
create(AgendaItemContract contract)
Creates a builder by populating it with data from the given AgendaItemContract . |
static AgendaItem.Builder |
create(String id,
String agendaId)
|
String |
getAgendaId()
This is the agenda ID for the Agenda associated with this Agenda Item |
AgendaItem.Builder |
getAlways()
This is ID of the next AgendaItem to be executed after following any defined true or false actions. |
String |
getAlwaysId()
This is ID of the next AgendaItem 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 AgendaItem. |
String |
getRuleId()
This is ID of the Rule associated with this AgendaItem. |
AgendaDefinition.Builder |
getSubAgenda()
This method returns the SubAgenda associated with this AgendaItem. |
String |
getSubAgendaId()
This is ID of the SubAgenda associated with this AgendaItem. |
Long |
getVersionNumber()
Returns the version number for this object. |
AgendaItem.Builder |
getWhenFalse()
This method returns the next AgendaItem to be executed if the Rule associated with this AgendaItem evaluates to false. |
String |
getWhenFalseId()
This is ID of the next AgendaItem to be executed if the Rule associated AgendaItem evaluates to false. |
AgendaItem.Builder |
getWhenTrue()
This method returns the next AgendaItem to be executed if the Rule associated with this AgendaItem evaluates to true. |
String |
getWhenTrueId()
This is ID of the next AgendaItem to be executed if the Rule associated AgendaItem evaluates to true. |
void |
setAgendaId(String agendaId)
This method ... |
void |
setAlways(AgendaItem.Builder always)
|
void |
setAlwaysId(String alwaysId)
|
void |
setId(String id)
Sets the value of the id on this builder to the given value. |
void |
setRule(RuleDefinition.Builder rule)
|
void |
setRuleId(String ruleId)
|
void |
setSubAgenda(AgendaDefinition.Builder subAgenda)
|
void |
setSubAgendaId(String subAgendaId)
|
void |
setVersionNumber(Long versionNumber)
|
void |
setWhenFalse(AgendaItem.Builder whenFalse)
|
void |
setWhenFalseId(String whenFalseId)
|
void |
setWhenTrue(AgendaItem.Builder whenTrue)
|
void |
setWhenTrueId(String whenTrueId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AgendaItem.Builder create(String id, String agendaId)
public static AgendaItem.Builder create(AgendaItemContract contract)
AgendaItemContract
.
contract
- the contract from which to populate this builder
public void setId(String id)
id
- the primary id. (may be null), must not be or blank.
This value is generated by the system. For new items (not yet persisted) this field is null. For existing items this field is the generated id.
IllegalArgumentException
- if the id is blankpublic void setAgendaId(String agendaId)
agendaId
- public void setRuleId(String ruleId)
public void setSubAgendaId(String subAgendaId)
public void setWhenTrueId(String whenTrueId)
public void setWhenFalseId(String whenFalseId)
public void setAlwaysId(String alwaysId)
public void setRule(RuleDefinition.Builder rule)
public void setSubAgenda(AgendaDefinition.Builder subAgenda)
public void setWhenTrue(AgendaItem.Builder whenTrue)
public void setWhenFalse(AgendaItem.Builder whenFalse)
public void setAlways(AgendaItem.Builder always)
public void setVersionNumber(Long versionNumber)
public String getId()
Identifiable
getId
in interface Identifiable
public String getAgendaId()
AgendaItemContract
It is the agenda ID for the Agenda object associated with this Agenda Item.
getAgendaId
in interface AgendaItemContract
public String getRuleId()
AgendaItemContract
Each AgendaItem has either a Rule or a SubAgenda associated with it, but not both.
getRuleId
in interface AgendaItemContract
public String getSubAgendaId()
AgendaItemContract
Each AgendaItem has either a Rule or a SubAgenda associated with it, but not both.
getSubAgendaId
in interface AgendaItemContract
public String getWhenTrueId()
AgendaItemContract
getWhenTrueId
in interface AgendaItemContract
public String getWhenFalseId()
AgendaItemContract
getWhenFalseId
in interface AgendaItemContract
public String getAlwaysId()
AgendaItemContract
getAlwaysId
in interface AgendaItemContract
public RuleDefinition.Builder getRule()
AgendaItemContract
getRule
in interface AgendaItemContract
public AgendaDefinition.Builder getSubAgenda()
AgendaItemContract
getSubAgenda
in interface AgendaItemContract
public AgendaItem.Builder getWhenTrue()
AgendaItemContract
getWhenTrue
in interface AgendaItemContract
public AgendaItem.Builder getWhenFalse()
AgendaItemContract
getWhenFalse
in interface AgendaItemContract
public AgendaItem.Builder getAlways()
AgendaItemContract
getAlways
in interface AgendaItemContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public AgendaItem build()
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |