|
||||||||||
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)
Create a builder with the given parameters |
Map<String,String> |
getAttributes()
Returns a set of attributes associated with the Action. |
String |
getDescription()
Returns the description for what the parameter is used for. |
String |
getId()
The unique identifier for an object. |
String |
getName()
Returns the name of the Action |
String |
getNamespace()
Returns the namespace of the Action |
String |
getRuleId()
Returns the id of the rule associated with the action |
Integer |
getSequenceNumber()
Returns the sequence number of the action |
String |
getTypeId()
Returns the KrmsType of the Action |
Long |
getVersionNumber()
Returns the version number for this object. |
void |
setAttributes(Map<String,String> attributes)
Sets the value of the attributes on this builder to the given value. |
void |
setDescription(String desc)
Sets the value of the description on this builder to the given value. |
void |
setId(String actionId)
Sets the value of the id on this builder to the given value. |
void |
setName(String name)
Sets the value of the name on this builder to the given value. |
void |
setNamespace(String namespace)
Sets the value of the namespace on this builder to the given value. |
void |
setRuleId(String ruleId)
Sets the value of the ruleId on this builder to the given value. |
void |
setSequenceNumber(Integer sequenceNumber)
Sets the value of the sequenceNumber on this builder to the given value. |
void |
setTypeId(String typeId)
Sets the value of the typeId on this builder to the given value. |
void |
setVersionNumber(Long versionNumber)
Sets the value of the versionNumber on this builder to the given value. |
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)
actionId
- the actionId value to set, must no tbe null or blankname
- the name value to set, must not be null or blanknamespace
- the namespace value to set, must not be null or blanktypeId
- the typeId value to setruleId
- the ruleId value to set, must not be null or blanksequenceNumber
- the sequenceNumber value to set, must not be null or blank
public static ActionDefinition.Builder create(ActionDefinitionContract contract)
ActionDefinitionContract
.
contract
- the contract from which to populate this builder
IllegalArgumentException
- if the contract is nullpublic void setId(String actionId)
actionId
- the actionId value to set, must no tbe null or blank
IllegalArgumentException
- if the actionId is non-null and blankpublic void setName(String name)
name
- the name value to set, must not be null or blank
IllegalArgumentException
- if the name is non-null and blankpublic void setNamespace(String namespace)
namespace
- the namespace value to set, must not be null or blank
IllegalArgumentException
- if the namespace is non-null and blankpublic void setDescription(String desc)
desc
- the description value to setpublic void setTypeId(String typeId)
typeId
- the typeId value to set, must not be null or blank.
IllegalArgumentException
- if the typeId is null or blankpublic void setRuleId(String ruleId)
ruleId
- the ruleId value to set, must not be null or blank
IllegalArgumentException
- if the ruleId is null or blankpublic void setSequenceNumber(Integer sequenceNumber)
sequenceNumber
- the sequenceNumber value to set, must not be null or blank
IllegalArgumentException
- if the sequenceNumber is null or blankpublic void setAttributes(Map<String,String> attributes)
attributes
- the attributes value to set, can be nullpublic void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber value to setpublic 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 |