Class ScriptActionExecuter
java.lang.Object
org.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.action.executer.ScriptActionExecuter
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Action to execute a JavaScript. The script has access to the default model. The actionedUponNodeRef is added to the default model as the 'document' and the owning NodeRef is added as the 'space'.
- Author:
- Kevin Roast
-
Field Summary
FieldsFields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionAccessRestrictions, actionDefinition, applicableTypes, publicActionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
nameFields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddParameterDefinitions(List<ParameterDefinition> paramList) Adds the parameter definitions to the listprotected voidexecuteImpl(Action action, NodeRef actionedUponNodeRef) Execute the action implementationprotected booleanAllow adhoc properties to be passed to this actionvoidsetCompanyHomePath(String companyHomePath) voidsetPersonService(PersonService personService) voidsetScriptLocation(ScriptLocation scriptLocation) Set the script location from SpringvoidsetServiceRegistry(ServiceRegistry serviceRegistry) voidsetStoreUrl(String storeUrl) voidsetSysAdminParams(SysAdminParams sysAdminParams) Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
createActionDefinition, execute, getActionAccessRestrictions, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setActionAccessRestrictions, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus, verifyActionAccessRestrictionsMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.repo.action.executer.ActionExecuter
isExecuteAsynchronously
-
Field Details
-
NAME
- See Also:
-
PARAM_SCRIPTREF
- See Also:
-
-
Constructor Details
-
ScriptActionExecuter
public ScriptActionExecuter()
-
-
Method Details
-
setServiceRegistry
- Parameters:
serviceRegistry- The serviceRegistry to set.
-
setSysAdminParams
- Parameters:
sysAdminParams- The sysAdminParams to set.
-
setPersonService
- Parameters:
personService- The personService to set.
-
setStoreUrl
-
setCompanyHomePath
-
setScriptLocation
Set the script location from Spring- Parameters:
scriptLocation- the script location
-
getAdhocPropertiesAllowed
protected boolean getAdhocPropertiesAllowed()Allow adhoc properties to be passed to this action- Overrides:
getAdhocPropertiesAllowedin classParameterizedItemAbstractBase- Returns:
- true if they are, by default false
- See Also:
-
executeImpl
Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
action- the actionactionedUponNodeRef- the actioned upon node- See Also:
-
addParameterDefinitions
Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list- See Also:
-