Package com.day.cq.wcm.msm.api
Interface LiveAction
-
- All Superinterfaces:
JSONItem
- All Known Implementing Classes:
BaseAction
,FilteredAction
public interface LiveAction extends JSONItem
Represent an Action to be performed upon a Roll-out from a Source to a Target. Actions are created by aLiveActionFactory
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:
LiveActionFactory
,RolloutManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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.java.lang.String
getName()
Returns name of current action.java.lang.String
getParameterName()
Deprecated.since 5.5java.lang.String[]
getPropertiesNames()
Deprecated.since 5.5int
getRank()
Deprecated.since 5.5 the Rank is defined by the order in theRolloutConfig
java.lang.String
getTitle()
Deprecated.since 5.5void
write(JSONWriter out)
Deprecated.since 5.5
-
-
-
Method Detail
-
getName
java.lang.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:
RolloutManager.rollout(com.day.cq.wcm.msm.api.RolloutManager.RolloutParams)
-
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:
ActionManager.executeAction(org.apache.sling.api.resource.ResourceResolver, LiveRelationship, ActionConfig, boolean)
-
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:
ActionManager.executeAction(org.apache.sling.api.resource.ResourceResolver, LiveRelationship, ActionConfig, boolean, boolean)
-
getTitle
@Deprecated java.lang.String getTitle()
Deprecated.since 5.5Returns the title of current action. Title is used to be displayed to end-user.- Returns:
- action name
-
getRank
@Deprecated int 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 java.lang.String[] getPropertiesNames()
Deprecated.since 5.5Returns names of the properties defined for this action.- Returns:
- array of parameters names
-
getParameterName
@Deprecated java.lang.String getParameterName()
Deprecated.since 5.5Returns the global parameter name of current action. Parameter name is used in requests.- Returns:
- action parameter name
-
write
@Deprecated void write(JSONWriter out) throws JSONException
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
-
-