Package com.day.cq.wcm.api.msm
Interface ActionManager
Deprecated.
Provides a service to manage live actions
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeAction
(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave) Deprecated.Execute action defined by config.void
executeAction
(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave, boolean isResetRollout) Deprecated.Execute action defined by config.void
executeActions
(ResourceResolver resolver, LiveRelationship relation, boolean autoSave) Deprecated.Execute actions found in relationship.void
executeActions
(ResourceResolver resolver, LiveRelationship relation, boolean autoSave, boolean isResetRollout) Deprecated.Execute actions found in relationship.getActionConfig
(Node node, boolean inherited) Deprecated.Returns an ActionConfig object from a resource node.getActionConfig
(Resource resource, boolean inherited) Deprecated.Returns an ActionConfig object from a resource.getActionsConfig
(Node node, String resourceNodeType, String actionNodeName, boolean inherited) Deprecated.Returns all ActionConfig objects from a node.getActionsConfig
(Resource resource, String resourceNodeType, String actionNodeName, boolean inherited) Deprecated.Returns all ActionConfig objects from a resource.boolean
isActionUpdated
(SlingHttpServletRequest request, LiveRelationship relation) Deprecated.Determines if at least one action config defined in relation has been updated in request.void
registerAcion
(LiveAction action) Deprecated.Registers a LiveAction in the ActionManager.void
unregisterAcion
(LiveAction action) Deprecated.Unregisters a LiveAction from the ActionManager.void
writeConfigFromRequest
(SlingHttpServletRequest request, Node actionsNode) Deprecated.Write config from request to a node.
-
Method Details
-
registerAcion
Deprecated.Registers a LiveAction in the ActionManager. This step is required to enable action is the rollout process.- Parameters:
action
- action to regiter
-
unregisterAcion
Deprecated.Unregisters a LiveAction from the ActionManager.- Parameters:
action
- action to unregiter
-
executeActions
void executeActions(ResourceResolver resolver, LiveRelationship relation, boolean autoSave) throws WCMException Deprecated.Execute actions found in relationship. Only registered actions will be executed.- Parameters:
resolver
- resource resolverrelation
- live relationshipautoSave
- Save modifications- Throws:
WCMException
- occurs if one action is not registered or if action execution throws an exception- See Also:
-
executeActions
void executeActions(ResourceResolver resolver, LiveRelationship relation, boolean autoSave, boolean isResetRollout) throws WCMException Deprecated.Execute actions found in relationship. Only registered actions will be executed.- Parameters:
resolver
- resource resolverrelation
- live relationshipautoSave
- Save modificationsisResetRollout
- True if rollout is run in reset mode- Throws:
WCMException
- occurs if one action is not registered or if action execution throws an exception- See Also:
-
executeAction
void executeAction(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave) throws WCMException Deprecated.Execute action defined by config. Note that actions found in relationship are not executed. Only a registered action will be executed.- Parameters:
resolver
- resource resolverrelation
- live relationshipconfig
- defines actions to executeautoSave
- Save modifications- Throws:
WCMException
- occurs if one action is not registered or if action execution throws an exception- See Also:
-
executeAction
void executeAction(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave, boolean isResetRollout) throws WCMException Deprecated.Execute action defined by config. Note that actions found in relationship are not executed. Only a registered action will be executed.- Parameters:
resolver
- resource resolverrelation
- live relationshipconfig
- defines actions to executeautoSave
- Save modificationsisResetRollout
- True if rollout is run in reset mode- Throws:
WCMException
- occurs if one action is not registered or if action execution throws an exception- See Also:
-
getActionConfig
Deprecated.Returns an ActionConfig object from a resource.- Parameters:
resource
- base to generate an action configinherited
- Mark action config as inherited- Returns:
- constructed ActionConfig, null if construction is not possible
- Throws:
RepositoryException
- occurs while reading the repository
-
getActionConfig
Deprecated.Returns an ActionConfig object from a resource node.- Parameters:
node
- base to generate an action configinherited
- Mark action config as inherited- Returns:
- constructed ActionConfig, null if construction is not possible
- Throws:
RepositoryException
- occurs while reading the repository
-
getActionsConfig
Set<ActionConfig> getActionsConfig(Resource resource, String resourceNodeType, String actionNodeName, boolean inherited) throws RepositoryException Deprecated.Returns all ActionConfig objects from a resource. Checks if resource is fromresourceNodeType
resource type and reads actions underactionNodeName
child node.- Parameters:
resource
- base to generate an action configresourceNodeType
- node type to check on the resourceactionNodeName
- name of node containing actionsinherited
- Mark action config as inherited- Returns:
- constructed ActionConfig, null if construction is not possible
- Throws:
RepositoryException
- occurs while reading the repository
-
getActionsConfig
Set<ActionConfig> getActionsConfig(Node node, String resourceNodeType, String actionNodeName, boolean inherited) throws RepositoryException Deprecated.Returns all ActionConfig objects from a node. Checks if node is fromresourceNodeType
resource type and reads actions underactionNodeName
child node.- Parameters:
node
- base to generate an action configresourceNodeType
- node type to check on the resourceactionNodeName
- name of node containing actionsinherited
- Mark action config as inherited- Returns:
- constructed ActionConfig, null if construction is not possible
- Throws:
RepositoryException
- occurs while reading the repository
-
writeConfigFromRequest
Deprecated.Write config from request to a node. Reads action config in request and writes it in action node.- Parameters:
request
- the requestactionsNode
- the action node to write- Throws:
WCMException
- if an error occurs
-
isActionUpdated
boolean isActionUpdated(SlingHttpServletRequest request, LiveRelationship relation) throws WCMException Deprecated.Determines if at least one action config defined in relation has been updated in request.- Parameters:
request
- the requestrelation
- live relationship- Returns:
- true if updated, false otherwise
- Throws:
WCMException
- if an error occurs
-
ActionManager
instead