Package com.day.cq.wcm.msm.api
Interface RolloutManager
-
public interface RolloutManager
Provides a service for managing MSM rollouts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RolloutManager.RolloutParams
Parameters for rollouts, with default valuesstatic interface
RolloutManager.RolloutProgress
Used to report ongoing progress of a rolloutstatic class
RolloutManager.Trigger
Trigger type that defines when a rollout should happen.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
isExcludedNode(Node node)
boolean
isExcludedNodeType(java.lang.String nodeType)
Returns true if aNodeType
is configured as excluded in theRolloutManager
configurationboolean
isExcludedPageProperty(java.lang.String propertyName)
Returns if a property is defined as excluded in theRolloutManager
configuration for a page.boolean
isExcludedParagraphProperty(java.lang.String propertyName)
Returns if a property is defined as excluded in theRolloutManager
configuration for a paragraph.boolean
isExcludedProperty(boolean isPage, java.lang.String propertyName)
Returns if a property is defined as excluded in theRolloutManager
configuration.boolean
isExcludedProperty(java.lang.String propertyName)
Deprecated.Use #isExcludedPageProperty instead.boolean
isReservedProperty(java.lang.String propertyName)
Returns if a property is a MSM reserved propertyvoid
rollout(RolloutManager.RolloutParams params)
Execute a rollout on all live copies of themaster
page.void
rollout(ResourceResolver resolver, LiveRelationship relation, boolean reset)
Rollout the content for one relation ship.void
rollout(ResourceResolver resolver, LiveRelationship relation, boolean reset, boolean autoSave)
Rollout the content for one relation ship.void
updateRolloutInfo(Node node, boolean deepUpdate, boolean autoSave)
Update rollout info on thenode
.
-
-
-
Method Detail
-
rollout
void rollout(RolloutManager.RolloutParams params) throws WCMException
Execute a rollout on all live copies of themaster
page.- Parameters:
params
- combined rollout parameters- Throws:
WCMException
- when rollout fails
-
rollout
void rollout(ResourceResolver resolver, LiveRelationship relation, boolean reset) throws WCMException
Rollout the content for one relation ship.- Parameters:
resolver
- resource resolverrelation
- relation to rolloutreset
- iftrue
rollout is run in reset mode, Live Copy is completely reset- Throws:
WCMException
- if an error during this operation occurs.
-
rollout
void rollout(ResourceResolver resolver, LiveRelationship relation, boolean reset, boolean autoSave) throws WCMException
Rollout the content for one relation ship.- Parameters:
resolver
- resource resolverrelation
- relation to rolloutreset
- iftrue
rollout is run in reset mode, Live Copy is completely resetautoSave
- iftrue
session is saved once the rollout is finished- Throws:
WCMException
- if an error during this operation occurs.
-
updateRolloutInfo
void updateRolloutInfo(Node node, boolean deepUpdate, boolean autoSave) throws WCMException
Update rollout info on thenode
. To use after a rollout operation.- Parameters:
node
- Node to updatedeepUpdate
- Children of the node can be updated by settingdeepUpdate
to true.autoSave
- Save modifications- Throws:
WCMException
- if an error during this operation occurs.
-
isExcludedProperty
boolean isExcludedProperty(java.lang.String propertyName)
Deprecated.Use #isExcludedPageProperty instead.Returns if a property is defined as excluded in theRolloutManager
configuration. Excluded properties include reserved properties.- Parameters:
propertyName
- repository property name.- Returns:
- true if excluded. False otherwise.
-
isExcludedProperty
boolean isExcludedProperty(boolean isPage, java.lang.String propertyName)
Returns if a property is defined as excluded in theRolloutManager
configuration. IfisPage
is true, checks in page exclusion list. Otherwise, check in paragraph exclusion list Excluded properties include reserved properties.- Parameters:
isPage
- Page propertypropertyName
- repository property name.- Returns:
- true if excluded. False otherwise.
-
isExcludedPageProperty
boolean isExcludedPageProperty(java.lang.String propertyName)
Returns if a property is defined as excluded in theRolloutManager
configuration for a page. Excluded properties include reserved properties.- Parameters:
propertyName
- repository property name.- Returns:
- true if excluded. False otherwise.
-
isExcludedParagraphProperty
boolean isExcludedParagraphProperty(java.lang.String propertyName)
Returns if a property is defined as excluded in theRolloutManager
configuration for a paragraph. Excluded properties include reserved properties.- Parameters:
propertyName
- repository property name.- Returns:
- true if excluded. False otherwise.
-
isExcludedNodeType
boolean isExcludedNodeType(java.lang.String nodeType)
Returns true if aNodeType
is configured as excluded in theRolloutManager
configuration- Parameters:
nodeType
-name
of the Repository NodeType.- Returns:
- true if excluded.
-
isExcludedNode
boolean isExcludedNode(Node node) throws RepositoryException
If true the givenNode
will not take part in a roll out.
If one of theNode's
PrimaryNodeType or one of its mixin NodeTypes isexcluded
, this method must return true.
Implementations can extend rules to exclude Nodes from Inheritance for example to excludeprotected
Nodes- Parameters:
node
- Node to check.- Returns:
- true if excluded
- Throws:
RepositoryException
- if an read/write error during this operation occurs.- See Also:
isExcludedNodeType(String)
-
isReservedProperty
boolean isReservedProperty(java.lang.String propertyName)
Returns if a property is a MSM reserved property- Parameters:
propertyName
- repository property name.- Returns:
- true if reserved. False otherwise.
-
-