Package com.day.cq.wcm.api.msm
Interface LiveRelationshipManager
- 
@Deprecated public interface LiveRelationshipManagerDeprecated.since 5.3 useLiveRelationshipManagerinstead 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddSkippedPage(Page parentPage, java.lang.String childName, boolean autoSave)Deprecated.Adds a page to the skipped pages list (stored on parent page).voidaddSkippedPages(Page parentPage, java.lang.String[] childName, boolean autoSave)Deprecated.Adds several pages to the skipped pages list (stored on parent page).voidcancelPropertyRelationship(ResourceResolver resolver, LiveRelationship relation, java.lang.String[] names, boolean autoSave)Deprecated.Cancel the relationship of the given relation.voidcancelRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep)voidcancelRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep, boolean autoSave)Deprecated.Cancel the relationship of the given relation.java.util.Map<java.lang.String,LiveCopy>getLiveCopies()Deprecated.Returns all live copies.LiveCopygetLiveCopy(Resource target)Deprecated.Returns the closest Live Copy corresponding thetargetresource.LiveRelationshipgetLiveRelationship(Resource target, boolean advancedStatus)Deprecated.Returns a live relationship of the given livecopy sync resource.java.util.Collection<LiveRelationship>getLiveRelationships(Page source, RolloutManager.Trigger trigger, java.lang.String[] targets, boolean advancedStatus)Deprecated.Returns a collection of live relationships of the given Live Copy source page to its targets.java.util.Collection<LiveRelationship>getLiveRelationships(Resource source, RolloutManager.Trigger trigger, java.lang.String[] targets, boolean advancedStatus)Deprecated.Returns a collection of live relationships of the given livecopy source resource to its targets.java.util.Map<java.lang.String,Page>getSkippedSourcePages(Page parentTargetPage)Deprecated.Returns a map of pairs: Live Copy skipped page's path / Blueprint page.booleanisInBlueprint(Resource source)Deprecated.Checks if the given source is in a blueprint tree.booleanisLiveCopy(Resource target)Deprecated.Checks if the given sync target is part of a Live Copy relationship.booleanisSource(Resource resource)Deprecated.Checks if the given source is the source of a Live Copy relationship.voidreenablePropertyRelationship(ResourceResolver resolver, LiveRelationship relation, java.lang.String[] names, boolean autoSave)Deprecated.Reenable the relationship of a canceled one.voidreenableRelationship(ResourceResolver resolver, LiveRelationship relation)Deprecated.voidreenableRelationship(ResourceResolver resolver, LiveRelationship relation, boolean autoSave)Deprecated.Reenable the relationship of a canceled one.voidremoveSkippedPage(Page parentPage, java.lang.String childName, boolean autoSave)Deprecated.Removes a page from the skipped pages list (stored on parent page).voidremoveSkippedPages(Page parentPage, java.lang.String[] childName, boolean autoSave)Deprecated.Removes several pages from the skipped pages list (stored on parent page).voidtoggleRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep)voidtoggleRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep, boolean autoSave)Deprecated.Cancels or reenables the relationship based on the relation status. 
 - 
 
- 
- 
Method Detail
- 
getLiveCopies
java.util.Map<java.lang.String,LiveCopy> getLiveCopies()
Deprecated.Returns all live copies. the Live Copy path is used as key of the map.- Returns:
 - all live copies.
 
 
- 
getLiveCopy
LiveCopy getLiveCopy(Resource target)
Deprecated.Returns the closest Live Copy corresponding thetargetresource.- Parameters:
 target- resource- Returns:
 - Live Copy or null if no Live Copy found.
 
 
- 
getLiveRelationships
java.util.Collection<LiveRelationship> getLiveRelationships(Page source, RolloutManager.Trigger trigger, java.lang.String[] targets, boolean advancedStatus) throws WCMException
Deprecated.Returns a collection of live relationships of the given Live Copy source page to its targets. The search can be limited by trigger or target by specifying the respective parameters. The given source page does not need to be a Live Copy root.- Parameters:
 source- source pagetrigger- filter for triggerstargets- filter for targetsadvancedStatus- True if advanced status (time consuming) must be computed for relationships- Returns:
 - the relationships
 - Throws:
 WCMException- if an error occurs
 
- 
getLiveRelationships
java.util.Collection<LiveRelationship> getLiveRelationships(Resource source, RolloutManager.Trigger trigger, java.lang.String[] targets, boolean advancedStatus) throws WCMException
Deprecated.Returns a collection of live relationships of the given livecopy source resource to its targets. The search can be limited by trigger or target by specifying the respective parameters. The given source resource does not need to be a livecopy root.- Parameters:
 source- resourcetrigger- filter for triggerstargets- filter for targetsadvancedStatus- True if advanced status (time consuming) must be computed for relationships- Returns:
 - the relationships
 - Throws:
 WCMException- if an error occurrs
 
- 
getLiveRelationship
LiveRelationship getLiveRelationship(Resource target, boolean advancedStatus) throws WCMException
Deprecated.Returns a live relationship of the given livecopy sync resource.- Parameters:
 target- the livecopy sync resourceadvancedStatus- True if advanced status (time consuming) must be computed for relationship- Returns:
 - the relationship or 
nullif the resource is not a livecopy - Throws:
 WCMException- if an error occurrs
 
- 
isLiveCopy
boolean isLiveCopy(Resource target)
Deprecated.Checks if the given sync target is part of a Live Copy relationship.- Parameters:
 target- the resource to check- Returns:
 trueif the resource is live synced
 
- 
isInBlueprint
boolean isInBlueprint(Resource source)
Deprecated.Checks if the given source is in a blueprint tree.- Parameters:
 source- the resource to check- Returns:
 trueif the resource is a blueprint
 
- 
isSource
boolean isSource(Resource resource)
Deprecated.Checks if the given source is the source of a Live Copy relationship.- Parameters:
 resource- the resource to check- Returns:
 trueif the resource is a blueprint
 
- 
cancelRelationship
void cancelRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep, boolean autoSave) throws WCMException
Deprecated.Cancel the relationship of the given relation.- Parameters:
 resolver- resource resolverrelation- relationdeep- iftrueall child relations are canceled, tooautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
reenableRelationship
void reenableRelationship(ResourceResolver resolver, LiveRelationship relation, boolean autoSave) throws WCMException
Deprecated.Reenable the relationship of a canceled one.- Parameters:
 resolver- resource resolverrelation- relation to re-enableautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
toggleRelationship
void toggleRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep, boolean autoSave) throws WCMException
Deprecated.Cancels or reenables the relationship based on the relation status.- Parameters:
 resolver- resource resolverrelation- relation to toggledeep- iftrueall child relations will be cancelled, tooautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
cancelPropertyRelationship
void cancelPropertyRelationship(ResourceResolver resolver, LiveRelationship relation, java.lang.String[] names, boolean autoSave) throws WCMException
Deprecated.Cancel the relationship of the given relation.- Parameters:
 resolver- resource resolverrelation- relationnames- list of property names for which inheritance is canceledautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
reenablePropertyRelationship
void reenablePropertyRelationship(ResourceResolver resolver, LiveRelationship relation, java.lang.String[] names, boolean autoSave) throws WCMException
Deprecated.Reenable the relationship of a canceled one.- Parameters:
 resolver- resource resolverrelation- relation to re-enablenames- list of property names for which inheritance is reenabledautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
cancelRelationship
@Deprecated void cancelRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep) throws WCMException
Deprecated.Cancel the relationship of the given relation. Saves the modifications.- Parameters:
 resolver- resource resolverrelation- relationdeep- iftrueall child relations are canceled, too- Throws:
 WCMException- if an error occurs
 
- 
reenableRelationship
@Deprecated void reenableRelationship(ResourceResolver resolver, LiveRelationship relation) throws WCMException
Deprecated.Reenable the relationship of a canceled one. Saves the modifications.- Parameters:
 resolver- resource resolverrelation- relation to re-enable- Throws:
 WCMException- if an error occurs
 
- 
toggleRelationship
@Deprecated void toggleRelationship(ResourceResolver resolver, LiveRelationship relation, boolean deep) throws WCMException
Deprecated.Cancels or reenables the relationship based on the relation status. Saves the modifications.- Parameters:
 resolver- resource resolverrelation- relation to toggledeep- iftrueall child relations will be cancelled, too- Throws:
 WCMException- if an error occurs
 
- 
getSkippedSourcePages
java.util.Map<java.lang.String,Page> getSkippedSourcePages(Page parentTargetPage) throws WCMException
Deprecated.Returns a map of pairs: Live Copy skipped page's path / Blueprint page. Each Live Copy skipped page's path is the path of a skipped child of the provided page and returned map contains its corresponding Blueprint page.- Parameters:
 parentTargetPage- Parent target page- Returns:
 - the map
 - Throws:
 WCMException- if an error occurs
 
- 
addSkippedPage
void addSkippedPage(Page parentPage, java.lang.String childName, boolean autoSave) throws WCMException
Deprecated.Adds a page to the skipped pages list (stored on parent page).- Parameters:
 parentPage- Parent pageautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
addSkippedPages
void addSkippedPages(Page parentPage, java.lang.String[] childName, boolean autoSave) throws WCMException
Deprecated.Adds several pages to the skipped pages list (stored on parent page).- Parameters:
 parentPage- Parent pageautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
removeSkippedPage
void removeSkippedPage(Page parentPage, java.lang.String childName, boolean autoSave) throws WCMException
Deprecated.Removes a page from the skipped pages list (stored on parent page).- Parameters:
 parentPage- Parent pageautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
- 
removeSkippedPages
void removeSkippedPages(Page parentPage, java.lang.String[] childName, boolean autoSave) throws WCMException
Deprecated.Removes several pages from the skipped pages list (stored on parent page).- Parameters:
 parentPage- Parent pageautoSave- Save modifications- Throws:
 WCMException- if an error occurs
 
 - 
 
 -