Package com.day.cq.wcm.msm.api
Interface ActionManager
-
@Deprecated public interface ActionManager
Deprecated.since 5.5 access Actions viaRolloutConfig
Provides a service to manage live actions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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, RolloutManager.Trigger trigger, boolean autoSave)
Deprecated.Execute actions found in relationship.void
executeActions(ResourceResolver resolver, LiveRelationship relation, RolloutManager.Trigger trigger, boolean autoSave, boolean isResetRollout)
Deprecated.Execute actions found in relationship.LiveAction
getAction(java.lang.String name)
Deprecated.java.util.Set<ActionConfig>
getActionsConfig(Node root)
Deprecated.Returns a set ofActionConfig
store under the defined root.java.util.Set<ActionConfig>
getActionsConfig(Resource root)
Deprecated.Returns a set ofActionConfig
store under the defined root.java.util.Map<java.lang.String,LiveAction>
getRegistredActions()
Deprecated.Returns all registred actions.
-
-
-
Method Detail
-
getRegistredActions
java.util.Map<java.lang.String,LiveAction> getRegistredActions()
Deprecated.Returns all registred actions.- Returns:
- map of pairs (action name, LiveAction).
-
getAction
LiveAction getAction(java.lang.String name)
Deprecated.
-
executeActions
void executeActions(ResourceResolver resolver, LiveRelationship relation, RolloutManager.Trigger trigger, 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:
LiveAction.execute(org.apache.sling.api.resource.ResourceResolver, LiveRelationship, ActionConfig, boolean)
-
executeActions
void executeActions(ResourceResolver resolver, LiveRelationship relation, RolloutManager.Trigger trigger, 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:
LiveAction.execute(org.apache.sling.api.resource.ResourceResolver, LiveRelationship, ActionConfig, boolean)
-
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:
LiveAction.execute(org.apache.sling.api.resource.ResourceResolver, LiveRelationship, ActionConfig, boolean)
-
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:
LiveAction.execute(org.apache.sling.api.resource.ResourceResolver, LiveRelationship, ActionConfig, boolean)
-
getActionsConfig
java.util.Set<ActionConfig> getActionsConfig(Resource root) throws RepositoryException
Deprecated.Returns a set ofActionConfig
store under the defined root.- Parameters:
root
- The root to read the action configs- Returns:
- A set of
ActionConfig
, or an empty set if not config found - Throws:
RepositoryException
- may occur while reading the repository.
-
getActionsConfig
java.util.Set<ActionConfig> getActionsConfig(Node root) throws RepositoryException
Deprecated.Returns a set ofActionConfig
store under the defined root.- Parameters:
root
- The root to read the action configs- Returns:
- A set of
ActionConfig
, or an empty set if not config found - Throws:
RepositoryException
- may occur while reading the repository.
-
-