org.alfresco.repo.action
Class ActionServiceImplTest.SleepActionExecuter

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
              extended by org.alfresco.repo.action.ActionServiceImplTest.SleepActionExecuter
All Implemented Interfaces:
ActionExecuter, org.springframework.beans.factory.BeanNameAware
Enclosing class:
ActionServiceImplTest

public static class ActionServiceImplTest.SleepActionExecuter
extends ActionExecuterAbstractBase

This class is only intended for use in JUnit tests.


Field Summary
static java.lang.String GO_BANG
           
static java.lang.String NAME
           
 
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicAction
 
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
ActionServiceImplTest.SleepActionExecuter()
           
 
Method Summary
protected  void addParameterDefinitions(java.util.List paramList)
          Add parameter definitions
protected  void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
          Execute the action implementation
 java.lang.Thread getExecutingThread()
           
 int getSleepMs()
           
 int getTimesExecuted()
           
static void registerIfNeeded(org.springframework.context.ConfigurableApplicationContext ctx)
          Loads this executor into the ApplicationContext, if it isn't already there
 void resetTimesExecuted()
           
 void setSleepMs(int sleepMs)
           
 
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus
 
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
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

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

GO_BANG

public static final java.lang.String GO_BANG
See Also:
Constant Field Values
Constructor Detail

ActionServiceImplTest.SleepActionExecuter

public ActionServiceImplTest.SleepActionExecuter()
Method Detail

getTimesExecuted

public int getTimesExecuted()

resetTimesExecuted

public void resetTimesExecuted()

registerIfNeeded

public static void registerIfNeeded(org.springframework.context.ConfigurableApplicationContext ctx)
Loads this executor into the ApplicationContext, if it isn't already there


getExecutingThread

public java.lang.Thread getExecutingThread()

getSleepMs

public int getSleepMs()

setSleepMs

public void setSleepMs(int sleepMs)

addParameterDefinitions

protected void addParameterDefinitions(java.util.List paramList)
Add parameter definitions

Specified by:
addParameterDefinitions in class ParameterizedItemAbstractBase
Parameters:
paramList - the parameter definitions list

executeImpl

protected void executeImpl(Action action,
                           org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Description copied from class: ActionExecuterAbstractBase
Execute the action implementation

Specified by:
executeImpl in class ActionExecuterAbstractBase
Parameters:
action - the action
actionedUponNodeRef - the actioned upon node


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