|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.api.repository.action.ActionDefinition.Builder
public static class ActionDefinition.Builder
This builder is used to construct instances of KRMS Repository Action. It enforces the constraints of the ActionDefinitionContract.
| Method Summary | |
|---|---|
ActionDefinition |
build()
Builds an instance of a Action based on the current state of the builder. |
static ActionDefinition.Builder |
create(ActionDefinitionContract contract)
Creates a builder by populating it with data from the given ActionDefinitionContract. |
static ActionDefinition.Builder |
create(String actionId,
String name,
String namespace,
String typeId,
String ruleId,
Integer sequenceNumber)
|
Map<String,String> |
getAttributes()
This method returns a set of attributes associated with the Action. |
String |
getDescription()
This is the description for what the parameter is used for. |
String |
getId()
The unique identifier for an object. |
String |
getName()
This is the name of the Action |
String |
getNamespace()
This is the namespace of the Action |
String |
getRuleId()
This method returns the id of the rule associated with the action |
Integer |
getSequenceNumber()
This method returns the id of the rule associated with the action |
String |
getTypeId()
This is the KrmsType of the Action |
Long |
getVersionNumber()
Returns the version number for this object. |
void |
setAttributes(Map<String,String> attributes)
|
void |
setDescription(String desc)
|
void |
setId(String actionId)
Sets the value of the id on this builder to the given value. |
void |
setName(String name)
|
void |
setNamespace(String namespace)
|
void |
setRuleId(String ruleId)
|
void |
setSequenceNumber(Integer sequenceNumber)
|
void |
setTypeId(String typeId)
|
void |
setVersionNumber(Long versionNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ActionDefinition.Builder create(String actionId,
String name,
String namespace,
String typeId,
String ruleId,
Integer sequenceNumber)
public static ActionDefinition.Builder create(ActionDefinitionContract contract)
ActionDefinitionContract.
contract - the contract from which to populate this builder
public void setId(String actionId)
id - the id value to set, must be null or non-blank
IllegalArgumentException - if the id is non-null and blankpublic void setName(String name)
public void setNamespace(String namespace)
public void setDescription(String desc)
public void setTypeId(String typeId)
public void setRuleId(String ruleId)
public void setSequenceNumber(Integer sequenceNumber)
public void setAttributes(Map<String,String> attributes)
public void setVersionNumber(Long versionNumber)
public String getId()
Identifiable
getId in interface Identifiablepublic String getName()
ActionDefinitionContractname - the name of the Action
getName in interface ActionDefinitionContractpublic String getNamespace()
ActionDefinitionContractThe namespace of the Action
getNamespace in interface ActionDefinitionContractpublic String getDescription()
ActionDefinitionContract
getDescription in interface ActionDefinitionContractpublic String getTypeId()
ActionDefinitionContract
getTypeId in interface ActionDefinitionContractpublic String getRuleId()
ActionDefinitionContract
getRuleId in interface ActionDefinitionContractpublic Integer getSequenceNumber()
ActionDefinitionContract
getSequenceNumber in interface ActionDefinitionContractpublic Map<String,String> getAttributes()
ActionDefinitionContract
getAttributes in interface ActionDefinitionContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic ActionDefinition build()
build in interface ModelBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||