Package com.day.cq.wcm.msm.api
Interface ResourceNameRolloutConflictHandler
-
public interface ResourceNameRolloutConflictHandlerThis is a Service-Provider Interface. It is intended to implement how conflicts in the Resource names between a Blueprint Resource and a LiveCopy Resource are handled during aroll-out. Following is considered a conflict: A Resource exists for anamein Blueprint and in the LiveCopy. But the LiveCopy's Resource has not been created by a roll-out.- See Also:
RolloutManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandleNameConflict(LiveRelationship conflictRelation, ResourceResolver resourceResolver, boolean isReset)This method will be called in case a Resource to roll-out exists at same name in LiveCopy but is manually created.
-
-
-
Method Detail
-
handleNameConflict
boolean handleNameConflict(LiveRelationship conflictRelation, ResourceResolver resourceResolver, boolean isReset) throws WCMException
This method will be called in case a Resource to roll-out exists at same name in LiveCopy but is manually created. Which would block aResourceto inherit from itsBlueprint.
The implementation can request to roll-out the Blueprint Resource of the conflict after its call by returning true
Returning false will not be considered a failure in conflict resolution. These must be indicated by exception.- Parameters:
conflictRelation- the LiveRelationship that resulted in a name Conflict.resourceResolver- the ResourceResolver used for the conflicting roll-outisReset- if the roll-out was a reset- Returns:
- true in case the handler desires the roll-out to happen after its actions / false if nothing should happen.
- Throws:
WCMException- in case of failure to act.- See Also:
LiveStatus.getAdvancedStatus(String),MSMNameConstants.PARAM_IS_TARGET_MANUALLY_CREATED
-
-