org.alfresco.repo.action
Class ActionDefinitionImpl

java.lang.Object
  extended by org.alfresco.repo.action.ParameterizedItemDefinitionImpl
      extended by org.alfresco.repo.action.ActionDefinitionImpl
All Implemented Interfaces:
java.io.Serializable, ActionDefinition, ParameterizedItemDefinition
Direct Known Subclasses:
RenderingEngineDefinitionImpl

public class ActionDefinitionImpl
extends ParameterizedItemDefinitionImpl
implements ActionDefinition

Rule action implementation class

See Also:
Serialized Form

Constructor Summary
ActionDefinitionImpl(java.lang.String name)
          Constructor
 
Method Summary
 java.util.List getApplicableTypes()
          Gets the list of applicable types
 java.lang.String getRuleActionExecutor()
          Get the rule aciton executor
 boolean getTrackStatus()
          Get whether the basic action definition supports action tracking or not.
 void setApplicableTypes(java.util.List applicableTypes)
          Sets the list of applicable types
 void setRuleActionExecutor(java.lang.String ruleActionExecutor)
          Set the rule action executor
 void setTrackStatus(boolean trackStatus)
          Set whether the basic action definition requires status tracking.
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemDefinitionImpl
getAdhocPropertiesAllowed, getDescription, getName, getParameterDefinitions, getParameterDefintion, getTitle, hasParameterDefinitions, setAdhocPropertiesAllowed, setDescriptionKey, setParameterDefinitions, setTitleKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.service.cmr.action.ParameterizedItemDefinition
getAdhocPropertiesAllowed, getDescription, getName, getParameterDefinitions, getParameterDefintion, getTitle, hasParameterDefinitions
 

Constructor Detail

ActionDefinitionImpl

public ActionDefinitionImpl(java.lang.String name)
Constructor

Parameters:
name - the name
Method Detail

setRuleActionExecutor

public void setRuleActionExecutor(java.lang.String ruleActionExecutor)
Set the rule action executor

Parameters:
ruleActionExecutor - the rule action executor

getRuleActionExecutor

public java.lang.String getRuleActionExecutor()
Get the rule aciton executor

Returns:
the rule action executor

getApplicableTypes

public java.util.List getApplicableTypes()
Gets the list of applicable types

Specified by:
getApplicableTypes in interface ActionDefinition
Returns:
the list of qnames

setApplicableTypes

public void setApplicableTypes(java.util.List applicableTypes)
Sets the list of applicable types

Parameters:
applicableTypes - the applicable types

getTrackStatus

public boolean getTrackStatus()
Description copied from interface: ActionDefinition
Get whether the basic action definition supports action tracking or not. This can be overridden for each action but if not, this value is used. Defaults to false.

Specified by:
getTrackStatus in interface ActionDefinition
Returns:
true to track action execution status or false (default) to do no action tracking

setTrackStatus

public void setTrackStatus(boolean trackStatus)
Set whether the basic action definition requires status tracking. This can be overridden on each action instance but if not, it falls back to this definition.

Setting this to true introduces performance problems for concurrently-executing rules on V3.4: ALF-7341.

Parameters:
trackStatus - true to track execution status otherwise false
Since:
3.4.1


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.