Package com.day.cq.wcm.msm.api
Interface LiveAction
- All Superinterfaces:
JSONItem
- All Known Implementing Classes:
BaseAction
,FilteredAction
Represent an Action to be performed upon a Roll-out from a Source to a Target.
Actions are created by a
LiveActions are called during the process of roll-out which on acts on Resources A LiveAction must therefore act within the boundary of the given Resource
LiveActionFactory
that provide instances of LiveActions set-up with given configuration.
LiveActions are called during the process of roll-out which on acts on Resources A LiveAction must therefore act within the boundary of the given Resource
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave) Deprecated.void
execute
(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave, boolean isResetRollout) Deprecated.void
execute
(Resource source, Resource target, LiveRelationship relation, boolean autoSave, boolean isResetRollout) Executes action.getName()
Returns name of current action.Deprecated.since 5.5String[]
Deprecated.since 5.5int
getRank()
Deprecated.since 5.5 the Rank is defined by the order in theRolloutConfig
getTitle()
Deprecated.since 5.5void
write
(JSONWriter out) Deprecated.since 5.5
-
Method Details
-
getName
String getName()Returns name of current action. Name is used to persist action in the repository.- Returns:
- action name
-
execute
void execute(Resource source, Resource target, LiveRelationship relation, boolean autoSave, boolean isResetRollout) throws WCMException Executes action. Is called by theRolloutManager
.
Callers should assert that the method is not called onLiveRelationships
that are inactive.- Parameters:
source
- The Resource to roll-out. This may beenull
target
- The Resource to receive modification. This may beenull
relation
- LiveRelationship between the two given ResourcesautoSave
- Save modificationsisResetRollout
- True if rollout is run in reset mode- Throws:
WCMException
- if an error occurs- See Also:
-
execute
@Deprecated void execute(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave) throws WCMException Deprecated.Executes action. Is called by the Rollout Manager.- Parameters:
resolver
- resource resolverrelation
- live relationship concerned by action.config
- action configautoSave
- Save modifications- Throws:
WCMException
- if an error occurs- See Also:
-
execute
@Deprecated void execute(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave, boolean isResetRollout) throws WCMException Deprecated.Executes action. Is called by the Rollout Manager.- Parameters:
resolver
- resource resolverrelation
- live relationship concerned by action.config
- action configautoSave
- Save modificationsisResetRollout
- True if rollout is run in reset mode- Throws:
WCMException
- if an error occurs- See Also:
-
getTitle
Deprecated.since 5.5Returns the title of current action. Title is used to be displayed to end-user.- Returns:
- action name
-
getRank
Deprecated.since 5.5 the Rank is defined by the order in theRolloutConfig
Returns execution rank of the action: actions are executed by ascending ranks- Returns:
- action rank
-
getPropertiesNames
Deprecated.since 5.5Returns names of the properties defined for this action.- Returns:
- array of parameters names
-
getParameterName
Deprecated.since 5.5Returns the global parameter name of current action. Parameter name is used in requests.- Returns:
- action parameter name
-
write
Deprecated.since 5.5Description copied from interface:JSONItem
Serializes this descriptor to json- Specified by:
write
in interfaceJSONItem
- Parameters:
out
- json writer- Throws:
JSONException
- if a JSON error occurs
-
execute(org.apache.sling.api.resource.Resource, org.apache.sling.api.resource.Resource, LiveRelationship, boolean, boolean)
instead.