|
||||||||||
| 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.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.
| Field Summary | |
|---|---|
private String |
agendaId
|
private AgendaItem.Builder |
always
|
private String |
alwaysId
|
private String |
id
|
private RuleDefinition.Builder |
rule
|
private String |
ruleId
|
private AgendaDefinition.Builder |
subAgenda
|
private String |
subAgendaId
|
private Long |
versionNumber
|
private AgendaItem.Builder |
whenFalse
|
private String |
whenFalseId
|
private AgendaItem.Builder |
whenTrue
|
private String |
whenTrueId
|
| Constructor Summary | |
|---|---|
private |
AgendaItem.Builder(String id,
String agendaId)
Private constructor for creating a builder with all of it's required attributes. |
| 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 |
| Field Detail |
|---|
private String id
private String agendaId
private String ruleId
private String subAgendaId
private String whenTrueId
private String whenFalseId
private String alwaysId
private Long versionNumber
private RuleDefinition.Builder rule
private AgendaDefinition.Builder subAgenda
private AgendaItem.Builder whenTrue
private AgendaItem.Builder whenFalse
private AgendaItem.Builder always
| Constructor Detail |
|---|
private AgendaItem.Builder(String id,
String agendaId)
| 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 Identifiablepublic String getAgendaId()
AgendaItemContractIt is the agenda ID for the Agenda object associated with this Agenda Item.
getAgendaId in interface AgendaItemContractpublic String getRuleId()
AgendaItemContractEach AgendaItem has either a Rule or a SubAgenda associated with it, but not both.
getRuleId in interface AgendaItemContractpublic String getSubAgendaId()
AgendaItemContractEach AgendaItem has either a Rule or a SubAgenda associated with it, but not both.
getSubAgendaId in interface AgendaItemContractpublic String getWhenTrueId()
AgendaItemContract
getWhenTrueId in interface AgendaItemContractpublic String getWhenFalseId()
AgendaItemContract
getWhenFalseId in interface AgendaItemContractpublic String getAlwaysId()
AgendaItemContract
getAlwaysId in interface AgendaItemContractpublic RuleDefinition.Builder getRule()
AgendaItemContract
getRule in interface AgendaItemContractpublic AgendaDefinition.Builder getSubAgenda()
AgendaItemContract
getSubAgenda in interface AgendaItemContractpublic AgendaItem.Builder getWhenTrue()
AgendaItemContract
getWhenTrue in interface AgendaItemContractpublic AgendaItem.Builder getWhenFalse()
AgendaItemContract
getWhenFalse in interface AgendaItemContractpublic AgendaItem.Builder getAlways()
AgendaItemContract
getAlways in interface AgendaItemContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic AgendaItem build()
build in interface ModelBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||