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 aLiveActionFactorythat 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 voidexecute(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave)Deprecated.voidexecute(ResourceResolver resolver, LiveRelationship relation, ActionConfig config, boolean autoSave, boolean isResetRollout)Deprecated.voidexecute(Resource source, Resource target, LiveRelationship relation, boolean autoSave, boolean isResetRollout)Executes action.java.lang.StringgetName()Returns name of current action.java.lang.StringgetParameterName()Deprecated.since 5.5java.lang.String[]getPropertiesNames()Deprecated.since 5.5intgetRank()Deprecated.since 5.5 the Rank is defined by the order in theRolloutConfigjava.lang.StringgetTitle()Deprecated.since 5.5voidwrite(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 onLiveRelationshipsthat are inactive.- Parameters:
source- The Resource to roll-out. This may beenulltarget- The Resource to receive modification. This may beenullrelation- 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 theRolloutConfigReturns 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:JSONItemSerializes this descriptor to json- Specified by:
writein interfaceJSONItem- Parameters:
out- json writer- Throws:
JSONException- if a JSON error occurs
-
-