public interface ActionServiceContainer
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(javax.jcr.Node node,
String type,
boolean isDeep,
String[] uuid,
String[] nodeTypeNames,
Map mappings)
Add mixintype = exo:actionable to current node
Add new node to current node with nodetype = type
|
void |
addAction(javax.jcr.Node node,
String type,
Map mappings)
Add mixintype = exo:actionable to current node
Add new node to current node with nodetype = type
|
void |
createActionType(String actionTypeName,
String parentActionTypeName,
String executable,
String actionLabel,
List<String> variableNames,
boolean isMoveType,
boolean isUpdate)
Create NodeTypeValue is in kind of ActionType following action type name
|
void |
executeAction(String userId,
javax.jcr.Node node,
String actionName)
Execute action following userId, node, repository, initiated variables
|
void |
executeAction(String userId,
javax.jcr.Node node,
String actionName,
Map variables)
Execute action following userId, node, variables, repository
|
javax.jcr.Node |
getAction(javax.jcr.Node node,
String actionName)
get node by using actionName as relative path with current node
|
ActionPlugin |
getActionPlugin(String actionServiceName)
Get ActionPlugin following ActionSeriveName
|
ActionPlugin |
getActionPluginForActionType(String actionTypeName)
Get ActionPlugin following action type name
|
Collection<String> |
getActionPluginNames()
Collection of String
|
List<javax.jcr.Node> |
getActions(javax.jcr.Node node)
Get list of child node with NodeType = exo:action
|
List<javax.jcr.Node> |
getActions(javax.jcr.Node node,
String lifecyclePhase)
Get list of child node with exo:lifecyclePhase = lifecyclePhase
|
Collection<javax.jcr.nodetype.NodeType> |
getCreatedActionTypes(String repository)
Get all created node with nodetype = "exo:action
|
List<javax.jcr.Node> |
getCustomActionsNode(javax.jcr.Node node,
String lifecyclePhase)
Get list of node that have same level with current node, exo:lifecyclePhase = lifecyclePhase
|
boolean |
hasActions(javax.jcr.Node node)
Check node type is exo:actionable or not
|
void |
init()
Init all available action plugins.
|
void |
initiateObservation(javax.jcr.Node node)
Add action listener for all action child node of current node in current repository
|
void |
removeAction(javax.jcr.Node node,
String repository)
Remove all action registered in node
|
void |
removeAction(javax.jcr.Node node,
String actionName,
String repository)
Remove all relative node of current node with node type = exo:actionable
|
Collection<String> getActionPluginNames()
ActionPlugin getActionPlugin(String actionServiceName)
actionServiceName - name of action serviceActionPlugin getActionPluginForActionType(String actionTypeName)
actionTypeName - name of action typevoid createActionType(String actionTypeName, String parentActionTypeName, String executable, String actionLabel, List<String> variableNames, boolean isMoveType, boolean isUpdate) throws Exception
actionTypeName - name of action typeparentActionTypeName - name of parent actionexecutable - String value of executableactionLabel - Label of action typevariableNames - List name of variableisMoveType - is moved or notisUpdate - True if the action type is updatingExceptionCollection<javax.jcr.nodetype.NodeType> getCreatedActionTypes(String repository) throws Exception
repository - repository nameExceptionjavax.jcr.Node getAction(javax.jcr.Node node,
String actionName)
throws Exception
node - current processing nodeactionName - name of actionExceptionboolean hasActions(javax.jcr.Node node)
throws Exception
node - ExceptionList<javax.jcr.Node> getActions(javax.jcr.Node node) throws Exception
node - current nodeExceptionList<javax.jcr.Node> getCustomActionsNode(javax.jcr.Node node, String lifecyclePhase) throws Exception
node - current nodelifecyclePhase - exo:lifecyclePhase valueExceptionList<javax.jcr.Node> getActions(javax.jcr.Node node, String lifecyclePhase) throws Exception
node - current nodelifecyclePhase - exo:lifecyclePhase valueExceptionvoid removeAction(javax.jcr.Node node,
String repository)
throws Exception
node - repository - Exceptionvoid removeAction(javax.jcr.Node node,
String actionName,
String repository)
throws Exception
node - current nodeactionName - relative path = exo:actionable / actionNamerepository - repository nameExceptionvoid addAction(javax.jcr.Node node,
String type,
Map mappings)
throws Exception
node - current nodetype - nodetype namemappings - value of property for adding to new nodeExceptionvoid addAction(javax.jcr.Node node,
String type,
boolean isDeep,
String[] uuid,
String[] nodeTypeNames,
Map mappings)
throws Exception
node - current nodetype - nodetype nameisDeep - affect to child node of nodeuuid - affect only to parent node of event having given uuidnodeTypeNames - affect to parent node of event having nodetype in nodeTypeNamesmappings - value of property for adding to new nodeExceptionvoid executeAction(String userId, javax.jcr.Node node, String actionName, Map variables) throws Exception
userId - user identifynode - current nodeactionName - name of actionvariables - Map with variables and valueExceptionvoid executeAction(String userId, javax.jcr.Node node, String actionName) throws Exception
userId - user identifynode - current nodeactionName - name of actionExceptionexecuteAction(String, Node, String, Map)void initiateObservation(javax.jcr.Node node)
throws Exception
node - current nodeExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.