|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LiveRelationshipManager
| Method Summary | |
|---|---|
void |
cancelRelationship(org.apache.sling.api.resource.ResourceResolver resolver,
LiveRelationship relation,
boolean deep)
Cancel the relationship of the given relation. |
Map<String,LiveCopy> |
getLiveCopies()
Returns all live copies. |
LiveCopy |
getLiveCopy(org.apache.sling.api.resource.Resource target)
Returns the closest Live Copy corresponding the target resource. |
LiveRelationship |
getLiveRelationship(org.apache.sling.api.resource.Resource target,
boolean advancedStatus)
Returns a live relationship of the given livecopy sync resource. |
Collection<LiveRelationship> |
getLiveRelationships(Page source,
RolloutManager.Trigger trigger,
String[] targets,
boolean advancedStatus)
Returns a collection of live relationships of the given livecopy source page to its targets. |
Collection<LiveRelationship> |
getLiveRelationships(org.apache.sling.api.resource.Resource source,
RolloutManager.Trigger trigger,
String[] targets,
boolean advancedStatus)
Returns a collection of live relationships of the given livecopy source resource to its targets. |
boolean |
isInBlueprint(org.apache.sling.api.resource.Resource source)
Checks if the given source is in a blueprint tree. |
boolean |
isLiveCopy(org.apache.sling.api.resource.Resource target)
Checks if the given sync target is part of a Live Copy relationship. |
boolean |
isSource(org.apache.sling.api.resource.Resource resource)
Checks if the given source is the source of a Live Copy relationship. |
void |
reenableRelationship(org.apache.sling.api.resource.ResourceResolver resolver,
LiveRelationship relation)
Reenable the relationship of a canceled one. |
void |
toggleRelationship(org.apache.sling.api.resource.ResourceResolver resolver,
LiveRelationship relation,
boolean deep)
Cancels or reenables the relationship based on the relation status. |
| Method Detail |
|---|
Map<String,LiveCopy> getLiveCopies()
LiveCopy getLiveCopy(org.apache.sling.api.resource.Resource target)
target resource.
target - resource
Collection<LiveRelationship> getLiveRelationships(Page source,
RolloutManager.Trigger trigger,
String[] targets,
boolean advancedStatus)
throws WCMException
source - source pagetrigger - filter for triggerstargets - filter for targetsadvancedStatus - True if advanced status (time consuming) must be computed for relationships
WCMException - if an error occurrs
Collection<LiveRelationship> getLiveRelationships(org.apache.sling.api.resource.Resource source,
RolloutManager.Trigger trigger,
String[] targets,
boolean advancedStatus)
throws WCMException
source - resourcetrigger - filter for triggerstargets - filter for targetsadvancedStatus - True if advanced status (time consuming) must be computed for relationships
WCMException - if an error occurrs
LiveRelationship getLiveRelationship(org.apache.sling.api.resource.Resource target,
boolean advancedStatus)
throws WCMException
target - the livecopy sync resourceadvancedStatus - True if advanced status (time consuming) must be computed for relationship
null if the resource is not a livecopy
WCMException - if an error occurrsboolean isLiveCopy(org.apache.sling.api.resource.Resource target)
target - the resource to check
true if the resource is live syncedboolean isInBlueprint(org.apache.sling.api.resource.Resource source)
source - the resource to check
true if the resource is a blueprintboolean isSource(org.apache.sling.api.resource.Resource resource)
resource - the resource to check
true if the resource is a blueprint
void cancelRelationship(org.apache.sling.api.resource.ResourceResolver resolver,
LiveRelationship relation,
boolean deep)
throws WCMException
resolver - resource resolverrelation - relationdeep - if true all child relations are canceled, too
WCMException - if an error occurrs
void reenableRelationship(org.apache.sling.api.resource.ResourceResolver resolver,
LiveRelationship relation)
throws WCMException
resolver - resource resolverrelation - relation to re-enable
WCMException - if an error occurrs
void toggleRelationship(org.apache.sling.api.resource.ResourceResolver resolver,
LiveRelationship relation,
boolean deep)
throws WCMException
resolver - resource resolverrelation - relation to toggledeep - if true all child relations will be cancelled, too
WCMException - if an error occurrs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||