public static class ActionDefinition.Builder extends Object implements ActionDefinitionContract, ModelBuilder, Serializable
ActionDefinitionContract
.Modifier and Type | Method and Description |
---|---|
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() |
String |
getDescription() |
String |
getId() |
String |
getName() |
String |
getNamespace() |
String |
getRuleId() |
Integer |
getSequenceNumber() |
String |
getTypeId() |
Long |
getVersionNumber() |
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.
|
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 blankpublic static ActionDefinition.Builder create(ActionDefinitionContract contract)
ActionDefinitionContract
.contract
- the contract from which to populate this builderIllegalArgumentException
- if the contract is nullpublic void setId(String actionId)
actionId
- the actionId value to set, must no tbe null or blankIllegalArgumentException
- if the actionId is non-null and blankpublic void setName(String name)
name
- the name value to set, must not be null or blankIllegalArgumentException
- if the name is non-null and blankpublic void setNamespace(String namespace)
namespace
- the namespace value to set, must not be null or blankIllegalArgumentException
- 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 blankIllegalArgumentException
- if the ruleId is null or blankpublic void setSequenceNumber(Integer sequenceNumber)
sequenceNumber
- the sequenceNumber value to set, must not be null or blankIllegalArgumentException
- 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()
getId
in interface Identifiable
public String getName()
getName
in interface ActionDefinitionContract
public String getNamespace()
getNamespace
in interface ActionDefinitionContract
public String getDescription()
getDescription
in interface ActionDefinitionContract
public String getTypeId()
getTypeId
in interface ActionDefinitionContract
public String getRuleId()
getRuleId
in interface ActionDefinitionContract
public Integer getSequenceNumber()
getSequenceNumber
in interface ActionDefinitionContract
public Map<String,String> getAttributes()
getAttributes
in interface ActionDefinitionContract
public Long getVersionNumber()
getVersionNumber
in interface Versioned
public ActionDefinition build()
build
in interface ModelBuilder
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.