public class ActionServiceContainerImpl extends Object implements ActionServiceContainer, org.picocontainer.Startable
| Constructor and Description |
|---|
ActionServiceContainerImpl(org.exoplatform.services.jcr.RepositoryService repositoryService,
CmsService cmsService)
Constructor method
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(javax.jcr.Node storeActionNode,
String actionType,
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 storeActionNode,
String actionType,
Map mappings)
Add mixintype = exo:actionable to current node
Add new node to current node with nodetype = type
|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Add ComponentPlugin
|
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)
Call addAction(Node node, String repository, String type, Map mappings) to
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 actionsServiceName)
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
|
Collection<org.exoplatform.container.component.ComponentPlugin> |
getPlugins()
Get all ComponentPlugin
|
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
|
org.exoplatform.container.component.ComponentPlugin |
removePlugin(String pluginName)
Need implemented
|
void |
start()
Implement method start service
Add mixin exo:actionable for node
|
void |
stop()
Implement method stop service
|
public ActionServiceContainerImpl(org.exoplatform.services.jcr.RepositoryService repositoryService,
CmsService cmsService)
throws Exception
repositoryService - RepositoryServicecmsService - CmsServiceExceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void init()
init in interface ActionServiceContainerpublic Collection<String> getActionPluginNames()
getActionPluginNames in interface ActionServiceContainerpublic ActionPlugin getActionPlugin(String actionsServiceName)
getActionPlugin in interface ActionServiceContaineractionsServiceName - name of action servicepublic void createActionType(String actionTypeName, String parentActionTypeName, String executable, String actionLabel, List<String> variableNames, boolean isMoveType, boolean isUpdate) throws Exception
createActionType in interface ActionServiceContaineractionTypeName - name of action typeparentActionTypeName - name of parent actionexecutable - String value of executablevariableNames - List name of variableisMoveType - is moved or notactionLabel - Label of action typeisUpdate - True if the action type is updatingExceptionpublic Collection<javax.jcr.nodetype.NodeType> getCreatedActionTypes(String repository) throws Exception
getCreatedActionTypes in interface ActionServiceContainerrepository - repository nameExceptionpublic ActionPlugin getActionPluginForActionType(String actionTypeName)
getActionPluginForActionType in interface ActionServiceContaineractionTypeName - name of action typepublic javax.jcr.Node getAction(javax.jcr.Node node,
String actionName)
throws Exception
getAction in interface ActionServiceContainernode - current processing nodeactionName - name of actionExceptionpublic boolean hasActions(javax.jcr.Node node)
throws Exception
hasActions in interface ActionServiceContainerExceptionpublic List<javax.jcr.Node> getActions(javax.jcr.Node node) throws Exception
getActions in interface ActionServiceContainernode - current nodeExceptionpublic List<javax.jcr.Node> getCustomActionsNode(javax.jcr.Node node, String lifecyclePhase) throws Exception
getCustomActionsNode in interface ActionServiceContainernode - current nodelifecyclePhase - exo:lifecyclePhase valueExceptionpublic List<javax.jcr.Node> getActions(javax.jcr.Node node, String lifecyclePhase) throws Exception
getActions in interface ActionServiceContainernode - current nodelifecyclePhase - exo:lifecyclePhase valueExceptionpublic void removeAction(javax.jcr.Node node,
String repository)
throws Exception
removeAction in interface ActionServiceContainerExceptionpublic void removeAction(javax.jcr.Node node,
String actionName,
String repository)
throws Exception
removeAction in interface ActionServiceContainernode - current nodeactionName - relative path = exo:actionable / actionNamerepository - repository nameExceptionpublic void addAction(javax.jcr.Node storeActionNode,
String actionType,
boolean isDeep,
String[] uuid,
String[] nodeTypeNames,
Map mappings)
throws Exception
addAction in interface ActionServiceContainerstoreActionNode - current nodeactionType - 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 nodeExceptionpublic void addAction(javax.jcr.Node storeActionNode,
String actionType,
Map mappings)
throws Exception
addAction in interface ActionServiceContainerstoreActionNode - current nodeactionType - nodetype namemappings - value of property for adding to new nodeExceptionpublic void executeAction(String userId, javax.jcr.Node node, String actionName) throws Exception
executeAction in interface ActionServiceContaineruserId - user identifynode - current nodeactionName - name of actionExceptionActionServiceContainer.executeAction(String, Node, String, Map)public void executeAction(String userId, javax.jcr.Node node, String actionName, Map variables) throws Exception
executeAction in interface ActionServiceContaineruserId - user identifynode - current nodeactionName - name of actionvariables - Map with variables and valueExceptionpublic void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin - ComponentPluginpublic org.exoplatform.container.component.ComponentPlugin removePlugin(String pluginName)
pluginName - public Collection<org.exoplatform.container.component.ComponentPlugin> getPlugins()
public void initiateObservation(javax.jcr.Node node)
throws Exception
initiateObservation in interface ActionServiceContainernode - current nodeExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.