public interface RuntimeActionService
Modifier and Type | Method and Description |
---|---|
Action |
createAction(org.alfresco.service.cmr.repository.NodeRef actionNodeRef)
Create a new action based on an action node reference
|
org.alfresco.service.cmr.repository.NodeRef |
createActionNodeRef(Action action,
org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
org.alfresco.service.namespace.QName assocTypeName,
org.alfresco.service.namespace.QName assocName)
Create a action node reference
|
void |
directActionExecution(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Execute an action directly
|
void |
executeActionImpl(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef,
boolean checkConditions,
boolean executedAsynchronously,
Set<String> actionChain)
Perform low-level action execution
|
boolean |
onLogException(Action action,
org.apache.commons.logging.Log logger,
Throwable t,
String message)
Optional logging of errors callback for the action executer
for the cases when the error might be ignored
or shown in a different manner for the action
|
void |
postCommit()
Post commit method
|
void |
registerActionConditionEvaluator(ActionConditionEvaluator actionConditionEvaluator)
Register an action condition evaluator
|
void |
registerActionExecuter(ActionExecuter actionExecuter)
Register an action executer
|
void |
registerParameterConstraint(ParameterConstraint parameterConstraint)
Register parameter constraint
|
void |
saveActionImpl(org.alfresco.service.cmr.repository.NodeRef actionNodeRef,
Action action)
Save action, used internally to store the details of an action on the aciton node.
|
void postCommit()
void registerActionConditionEvaluator(ActionConditionEvaluator actionConditionEvaluator)
actionConditionEvaluator
- action condition evaluatorvoid registerActionExecuter(ActionExecuter actionExecuter)
actionExecuter
- action executervoid registerParameterConstraint(ParameterConstraint parameterConstraint)
parameterConstraint
- parameter constraintAction createAction(org.alfresco.service.cmr.repository.NodeRef actionNodeRef)
actionNodeRef
- action node referenceorg.alfresco.service.cmr.repository.NodeRef createActionNodeRef(Action action, org.alfresco.service.cmr.repository.NodeRef parentNodeRef, org.alfresco.service.namespace.QName assocTypeName, org.alfresco.service.namespace.QName assocName)
action
- action objectparentNodeRef
- parent node referenceassocTypeName
- association type nameassocName
- association namevoid saveActionImpl(org.alfresco.service.cmr.repository.NodeRef actionNodeRef, Action action)
actionNodeRef
- the action node referenceaction
- the actionvoid executeActionImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, boolean checkConditions, boolean executedAsynchronously, Set<String> actionChain)
void directActionExecution(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
action
- the actionactionedUponNodeRef
- the actioned upon node referenceboolean onLogException(Action action, org.apache.commons.logging.Log logger, Throwable t, String message)
action
- the actionlogger
- the loggert
- the exception thrownmessage
- the proposed message that will be loggedCopyright © 2005–2017 Alfresco Software. All rights reserved.