public interface LiveCopy
LiveRelationship
Modifier and Type | Method and Description |
---|---|
boolean |
addExclusion(java.lang.String relativePath)
A LiveCopy can be effective on its Resource or any ancestor of it, if set to be deep, as by
isDeep . |
boolean |
contains(java.lang.String absPath)
Check if the given Path is covered by this LiveCopy.
|
java.lang.String |
getBlueprintPath()
Returns the blueprint path of this Live Copy.
|
java.util.Set<java.lang.String> |
getExclusions()
All relative paths that have been set to be excluded from the LiveCopy by use of
addExclusion(String) . |
java.lang.String |
getPath()
Returns the path of the Live Copy
For example: "/content/copy"
|
java.util.List<RolloutConfig> |
getRolloutConfigs()
Returns the list of
RolloutConfig attached to the current LiveCopy |
java.util.List<RolloutConfig> |
getRolloutConfigs(RolloutManager.Trigger trigger)
Returns the list of
RolloutConfig attached to the current LiveCopy filtered by the
specified trigger. |
boolean |
isDeep()
Returns if the Live Copy is deep
|
boolean |
isRoot()
Returns if the Live Copy is the root of a Live Copy tree
|
boolean |
isTrigger(RolloutManager.Trigger trigger)
Returns if the current
LiveCopy contains at least one RolloutConfig with the
specified trigger. |
boolean |
removeExclusion(java.lang.String relativePath)
Add back the Blueprint Resource at the given path to be part of the LiveRelationship defined by this LiveCopy.
|
java.lang.String getPath()
java.lang.String getBlueprintPath()
boolean isDeep()
true
if deepboolean isRoot()
true
if rootjava.util.List<RolloutConfig> getRolloutConfigs()
RolloutConfig
attached to the current LiveCopy
RolloutConfig
java.util.List<RolloutConfig> getRolloutConfigs(RolloutManager.Trigger trigger)
RolloutConfig
attached to the current LiveCopy
filtered by the
specified trigger.trigger
- list is filtered with this triggerRolloutConfig
boolean isTrigger(RolloutManager.Trigger trigger)
LiveCopy
contains at least one RolloutConfig
with the
specified trigger.trigger
- the trigger to checkboolean addExclusion(java.lang.String relativePath)
isDeep
.
This methods allows to omit ancestor Resources from the LiveCopy's Blueprint to be part of the LiveRelationship.
There will be no immediate change to the Content of the LiveCopy, the change only become effective upon the
next roll-out
If the Resource already exists in the LiveCopy, it will no longer receive updates.
The LiveRelationshipManager.hasLiveRelationship(org.apache.sling.api.resource.Resource)
will resolve to false,
even if the Resource once has been created in a Roll-out process
The exclusion is always effective on the Resource denoted by the path and all its descendants.relativePath
- paths relative to the LiveCopy's path
that are should not be part of LiveRelationShip.contained
beforeboolean removeExclusion(java.lang.String relativePath)
relativePath
- path relative to the LiveCopy's path
that
should take part in inheritance againexcluded
beforeaddExclusion(String)
boolean contains(java.lang.String absPath)
absPath
- the path to be considered, true if LiveCopy is deep and the path is not excluded
or LiveCopy is not deep and path is equal to the LiveCopy's path
java.util.Set<java.lang.String> getExclusions()
addExclusion(String)
.
This means for example that a shallow LiveCopy will return an empty Set though it does not
include
any other path than the LiveCopy's.addExclusion(String)
Copyright © 2010 - 2020 Adobe. All Rights Reserved