|
||||||||||
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.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 Identifiable
public String getName()
ActionDefinitionContract
name - the name of the Action
getName
in interface ActionDefinitionContract
public String getNamespace()
ActionDefinitionContract
The namespace of the Action
getNamespace
in interface ActionDefinitionContract
public String getDescription()
ActionDefinitionContract
getDescription
in interface ActionDefinitionContract
public String getTypeId()
ActionDefinitionContract
getTypeId
in interface ActionDefinitionContract
public String getRuleId()
ActionDefinitionContract
getRuleId
in interface ActionDefinitionContract
public Integer getSequenceNumber()
ActionDefinitionContract
getSequenceNumber
in interface ActionDefinitionContract
public Map<String,String> getAttributes()
ActionDefinitionContract
getAttributes
in interface ActionDefinitionContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public ActionDefinition build()
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |