org.alfresco.repo.action.executer
Class ActionExecuterAbstractBase

java.lang.Object
  extended by org.alfresco.repo.action.CommonResourceAbstractBase
      extended by org.alfresco.repo.action.ParameterizedItemAbstractBase
          extended by org.alfresco.repo.action.executer.ActionExecuterAbstractBase
All Implemented Interfaces:
ActionExecuter, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
AbstractRenderingEngine, ActionServiceImplTest.SleepActionExecuter, AddFeaturesActionExecuter, AVMDeployWebsiteAction, AVMRevertListAction, AVMRevertStoreAction, AVMRevertToVersionAction, AVMUndoSandboxListAction, BlogAction, CheckInActionExecuter, CheckOutActionExecuter, CompositeActionExecuter, ContentMetadataExtracter, CopyActionExecuter, CopyToWebProjectActionExecuter, CountChildrenActionExecuter, CounterIncrementActionExecuter, CreateThumbnailActionExecuter, CreateTransferTargetActionExecuter, CreateVersionActionExecuter, ExecuteAllRulesActionExecuter, ExporterActionExecuter, ImporterActionExecuter, LinkCategoryActionExecuter, LinkRules, LinkValidationAction, MailActionExecuter, MoveActionExecuter, PerformRenditionActionExecuter, RefreshTagScopeActionExecuter, RemoveFeaturesActionExecuter, ReorderRules, RepositoryExporterActionExecuter, ScriptActionExecuter, SetPropertyValueActionExecuter, SimpleAVMPromoteAction, SimpleAVMSubmitAction, SimpleWorkflowActionExecuter, SpecialiseTypeActionExecuter, StartAVMWorkflowAction, StartWorkflowActionExecuter, TransferAsyncAction, TransferCommitActionExecuter, TransferOneNodeActionExecuter, TransferTreeActionExecuter, TransferTreeWithCancelActionExecuter, TransformActionExecuter, TransitionSimpleWorkflowActionExecuter, UnlinkRules, UpdateTagScopesActionExecuter, UpdateThumbnailActionExecuter, WCMSandboxRevertSnapshotAction, WCMSandboxSubmitAction, WCMSandboxUndoAction

public abstract class ActionExecuterAbstractBase
extends ParameterizedItemAbstractBase
implements ActionExecuter

Rule action executor abstract base.


Field Summary
protected  ActionDefinition actionDefinition
          Action definition
protected  java.util.List applicableTypes
          List of types and aspects for which this action is applicable
protected  boolean publicAction
          Indicated whether the action is public or internal
 
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
DISPLAY_LABEL, runtimeActionService
 
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
 
Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT
 
Constructor Summary
ActionExecuterAbstractBase()
           
 
Method Summary
protected  ActionDefinition createActionDefinition(java.lang.String name)
          This method returns an instance of an ActionDefinition implementation class.
 void execute(Action action, NodeRef actionedUponNodeRef)
          Execute the action executer
protected abstract  void executeImpl(Action action, NodeRef actionedUponNodeRef)
          Execute the action implementation
 ActionDefinition getActionDefinition()
          Get rule action definition
 java.lang.String getQueueName()
          Get the queueName that will execute this action
 void init()
          Init method
 void setApplicableTypes(java.lang.String[] applicableTypes)
          Set the list of types for which this action is applicable
 void setPublicAction(boolean publicAction)
          Set whether the action is public or not.
 void setQueueName(java.lang.String queueName)
          Set the queueName which will execute this action if blank or null then the action will be executed on the "default" queue
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
addParameterDefinitions, checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString
 
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

actionDefinition

protected ActionDefinition actionDefinition
Action definition


publicAction

protected boolean publicAction
Indicated whether the action is public or internal


applicableTypes

protected java.util.List applicableTypes
List of types and aspects for which this action is applicable

Constructor Detail

ActionExecuterAbstractBase

public ActionExecuterAbstractBase()
Method Detail

init

public void init()
Init method


setPublicAction

public void setPublicAction(boolean publicAction)
Set whether the action is public or not.

Parameters:
publicAction - true if the action is public, false otherwise

setApplicableTypes

public void setApplicableTypes(java.lang.String[] applicableTypes)
Set the list of types for which this action is applicable

Parameters:
applicableTypes - arry of applicable types

getActionDefinition

public ActionDefinition getActionDefinition()
Get rule action definition

Specified by:
getActionDefinition in interface ActionExecuter
Returns:
the action definition object

createActionDefinition

protected ActionDefinition createActionDefinition(java.lang.String name)
This method returns an instance of an ActionDefinition implementation class. By default this will be an ActionDefinitionImpl, but this could be overridden.

Parameters:
name -
Returns:

execute

public void execute(Action action,
                    NodeRef actionedUponNodeRef)
Description copied from interface: ActionExecuter
Execute the action executer

Specified by:
execute in interface ActionExecuter
Parameters:
action - the action
actionedUponNodeRef - the actioned upon node reference
See Also:
org.alfresco.repo.action.executer.ActionExecuter#execute(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.cmr.repository.NodeRef)

executeImpl

protected abstract void executeImpl(Action action,
                                    NodeRef actionedUponNodeRef)
Execute the action implementation

Parameters:
action - the action
actionedUponNodeRef - the actioned upon node

setQueueName

public void setQueueName(java.lang.String queueName)
Set the queueName which will execute this action if blank or null then the action will be executed on the "default" queue

Parameters:
the - name of the execution queue which should execute this action.

getQueueName

public java.lang.String getQueueName()
Description copied from interface: ActionExecuter
Get the queueName that will execute this action

Specified by:
getQueueName in interface ActionExecuter


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