|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.action.ParameterizedItemImpl
org.alfresco.repo.action.ActionImpl
public class ActionImpl
Action implementation
Constructor Summary | |
---|---|
ActionImpl(Action action)
|
|
ActionImpl(Action action,
java.lang.String actionDefinitionName)
|
|
ActionImpl(NodeRef nodeRef,
java.lang.String id,
java.lang.String actionDefinitionName)
Constructor |
|
ActionImpl(NodeRef nodeRef,
java.lang.String id,
java.lang.String actionDefinitionName,
java.util.Map parameterValues)
Constructor |
Method Summary | |
---|---|
void |
addActionCondition(ActionCondition actionCondition)
Add an action condition to the action |
void |
addActionCondition(int index,
ActionCondition actionCondition)
Add an action condition at the given index |
void |
addParameterValues(java.util.Map values)
Adds a Map of parameter values to the Action |
java.util.Set |
getActionChain()
Get the action chain |
ActionCondition |
getActionCondition(int index)
Get the action condition at a given index |
java.util.List |
getActionConditions()
Gets a list of the action conditions for this action |
java.lang.String |
getActionDefinitionName()
Get the name of the action definition that relates to this action |
Action |
getCompensatingAction()
Get the compensating action. |
java.util.Date |
getCreatedDate()
Get the date the action was created |
java.lang.String |
getCreator()
Get the name of the user that created the action |
java.lang.String |
getDescription()
Get the description of the action |
boolean |
getExecuteAsychronously()
Gets a value indicating whether the action should be executed asychronously or not. |
java.util.Date |
getModifiedDate()
Get the date that the action was last modified |
java.lang.String |
getModifier()
Get the name of the user that last modified the action |
NodeRef |
getNodeRef()
Gets the node ref that represents the saved action node. |
java.lang.String |
getRunAsUser()
|
java.lang.String |
getTitle()
Get the title of the action |
boolean |
hasActionConditions()
Indicates whether the action has any conditions specified |
int |
indexOfActionCondition(ActionCondition actionCondition)
Gets the index of an action condition |
void |
removeActionCondition(ActionCondition actionCondition)
Removes an action condition |
void |
removeAllActionConditions()
Removes all action conditions |
void |
setActionChain(java.util.Set actionChain)
Set the action chain |
void |
setActionCondition(int index,
ActionCondition actionCondition)
Replaces the current action condition at the given index with the action condition provided. |
void |
setCompensatingAction(Action action)
Set the compensating action. |
void |
setCreatedDate(java.util.Date createdDate)
Set the created date |
void |
setCreator(java.lang.String creator)
Set the creator |
void |
setDescription(java.lang.String description)
Set the description of the action |
void |
setExecuteAsynchronously(boolean executeAsynchronously)
Set the value that indicates whether the action should be executed asychronously or not. |
void |
setModifiedDate(java.util.Date modifiedDate)
Set the modified date |
void |
setModifier(java.lang.String modifier)
Set the modifier |
void |
setNodeRef(NodeRef nodeRef)
Set the node reference |
void |
setRunAsUser(java.lang.String runAsUserName)
|
void |
setTitle(java.lang.String title)
Set the title of the action |
java.lang.String |
toString()
|
Methods inherited from class org.alfresco.repo.action.ParameterizedItemImpl |
---|
equals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValues |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItem |
---|
getId, getParameterValue, getParameterValues, setParameterValue, setParameterValues |
Constructor Detail |
---|
public ActionImpl(NodeRef nodeRef, java.lang.String id, java.lang.String actionDefinitionName)
nodeRef
- the action node reference (null if not saved)id
- the action idactionDefinitionName
- the name of the action definitionpublic ActionImpl(NodeRef nodeRef, java.lang.String id, java.lang.String actionDefinitionName, java.util.Map parameterValues)
nodeRef
- the action node reference (null if not saved)id
- the action idactionDefinitionName
- the action definition nameparameterValues
- the parameter valuespublic ActionImpl(Action action, java.lang.String actionDefinitionName)
public ActionImpl(Action action)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTitle()
Action
getTitle
in interface Action
Action.getTitle()
public void setTitle(java.lang.String title)
Action
setTitle
in interface Action
title
- the title of the actionAction.setTitle(java.lang.String)
public java.lang.String getDescription()
Action
getDescription
in interface Action
Action.getDescription()
public void setDescription(java.lang.String description)
Action
setDescription
in interface Action
description
- the description of the actionAction.setDescription(java.lang.String)
public boolean getExecuteAsychronously()
Action
The default is to execute the action synchronously.
getExecuteAsychronously
in interface Action
Action.getExecuteAsychronously()
public void setExecuteAsynchronously(boolean executeAsynchronously)
Action
setExecuteAsynchronously
in interface Action
executeAsynchronously
- true if the action is to be executed asychronously, false otherwise.Action.setExecuteAsynchronously(boolean)
public Action getCompensatingAction()
Action
This action is executed if the failure behaviour is to compensate and the action being executed fails.
getCompensatingAction
in interface Action
Action.getCompensatingAction()
public void setCompensatingAction(Action action)
Action
setCompensatingAction
in interface Action
action
- the compensating actionAction.setCompensatingAction(org.alfresco.service.cmr.action.Action)
public java.util.Date getCreatedDate()
Action
getCreatedDate
in interface Action
Action.getCreatedDate()
public void setCreatedDate(java.util.Date createdDate)
createdDate
- the created datepublic java.lang.String getCreator()
Action
getCreator
in interface Action
Action.getCreator()
public void setCreator(java.lang.String creator)
creator
- the creatorpublic java.util.Date getModifiedDate()
Action
getModifiedDate
in interface Action
Action.getModifiedDate()
public void setModifiedDate(java.util.Date modifiedDate)
modifiedDate
- the modified datepublic java.lang.String getModifier()
Action
getModifier
in interface Action
Action.getModifier()
public void setModifier(java.lang.String modifier)
modifier
- the modifierpublic java.lang.String getActionDefinitionName()
Action
getActionDefinitionName
in interface Action
Action.getActionDefinitionName()
public boolean hasActionConditions()
Action
hasActionConditions
in interface Action
Action.hasActionConditions()
public int indexOfActionCondition(ActionCondition actionCondition)
Action
indexOfActionCondition
in interface Action
actionCondition
- the action condition
Action.indexOfActionCondition(org.alfresco.service.cmr.action.ActionCondition)
public java.util.List getActionConditions()
Action
getActionConditions
in interface Action
Action.getActionConditions()
public ActionCondition getActionCondition(int index)
Action
getActionCondition
in interface Action
index
- the index
Action.getActionCondition(int)
public void addActionCondition(ActionCondition actionCondition)
Action
addActionCondition
in interface Action
actionCondition
- an action conditionAction.addActionCondition(org.alfresco.service.cmr.action.ActionCondition)
public void addActionCondition(int index, ActionCondition actionCondition)
Action
addActionCondition
in interface Action
index
- the indexactionCondition
- the action conditionAction.addActionCondition(int,
org.alfresco.service.cmr.action.ActionCondition)
public void setActionCondition(int index, ActionCondition actionCondition)
Action
setActionCondition
in interface Action
index
- the indexactionCondition
- the action conditionAction.setActionCondition(int,
org.alfresco.service.cmr.action.ActionCondition)
public void removeActionCondition(ActionCondition actionCondition)
Action
removeActionCondition
in interface Action
actionCondition
- an action conditionAction.removeActionCondition(org.alfresco.service.cmr.action.ActionCondition)
public void removeAllActionConditions()
Action
removeAllActionConditions
in interface Action
Action.removeAllActionConditions()
public void setActionChain(java.util.Set actionChain)
actionChain
- the list of actions that lead to this actionpublic java.util.Set getActionChain()
public java.lang.String getRunAsUser()
public void setRunAsUser(java.lang.String runAsUserName)
public NodeRef getNodeRef()
Action
getNodeRef
in interface Action
Action.getNodeRef()
public void setNodeRef(NodeRef nodeRef)
nodeRef
- the node referencepublic void addParameterValues(java.util.Map values)
Action
Map
of parameter values to the Action
addParameterValues
in interface Action
values
- A map of values to be added
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |