Package com.day.cq.replication
Interface Replicator
-
@ProviderType public interface Replicator
TheReplicatoris the replication service. It can be used to replicate content.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREPLICATE_PRIVILEGEReplication privilege
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcheckPermission(Session session, ReplicationActionType type, java.lang.String path)Checks if a user session has enough permissions for a provided replication type and pathjava.util.List<ReplicationContentFilter>createContentFilterChain(ReplicationAction action)Deprecated.java.util.Iterator<java.lang.String>getActivatedPaths(Session session, java.lang.String path)Returns the paths of all nodes for the given subtree path which are activated.ReplicationStatusgetReplicationStatus(Session session, java.lang.String path)Returns a replication status for the given path.voidreplicate(Session session, ReplicationActionType type, java.lang.String path)Triggers a new replication with supplied options.voidreplicate(Session session, ReplicationActionType type, java.lang.String[] paths, ReplicationOptions options)Triggers a new replication with supplied options.voidreplicate(Session session, ReplicationActionType type, java.lang.String path, ReplicationOptions options)Triggers a new replication with supplied options.
-
-
-
Field Detail
-
REPLICATE_PRIVILEGE
static final java.lang.String REPLICATE_PRIVILEGE
Replication privilege- Since:
- 5.5
- See Also:
- Constant Field Values
-
-
Method Detail
-
replicate
void replicate(Session session, ReplicationActionType type, java.lang.String path) throws ReplicationException
Triggers a new replication with supplied options.- Parameters:
session- user sessiontype- The type of replicationpath- The path specified the content to be replicated- Throws:
ReplicationException- if an error occurs
-
replicate
void replicate(Session session, ReplicationActionType type, java.lang.String path, ReplicationOptions options) throws ReplicationException
Triggers a new replication with supplied options.- Parameters:
session- user sessiontype- The type of replicationpath- The path specified the content to be replicatedoptions- Additional replication options- Throws:
ReplicationException- if an error occurs
-
replicate
void replicate(Session session, ReplicationActionType type, java.lang.String[] paths, ReplicationOptions options) throws ReplicationException
Triggers a new replication with supplied options.- Parameters:
session- user sessiontype- The type of replicationpaths- The paths specified the content to be replicatedoptions- Additional replication options- Throws:
ReplicationException- if an error occurs
-
checkPermission
void checkPermission(Session session, ReplicationActionType type, java.lang.String path) throws ReplicationException
Checks if a user session has enough permissions for a provided replication type and path- Parameters:
session- user sessiontype- The type of replicationpath- The path specified the content to be replicated- Throws:
ReplicationException- if an error occurs- Since:
- 5.5
-
getReplicationStatus
ReplicationStatus getReplicationStatus(Session session, java.lang.String path)
Returns a replication status for the given path.- Parameters:
session- sessionpath- path to check- Returns:
- the replication status or
nullif not available.
-
getActivatedPaths
java.util.Iterator<java.lang.String> getActivatedPaths(Session session, java.lang.String path) throws ReplicationException
Returns the paths of all nodes for the given subtree path which are activated.- Parameters:
session- User sessionpath- Path to check- Returns:
- Subtree paths for activated nodes
- Throws:
ReplicationException- If error occurs on retrieving node and its descendants
-
createContentFilterChain
@Deprecated java.util.List<ReplicationContentFilter> createContentFilterChain(ReplicationAction action)
Deprecated.Creates aListofReplicationContentFilters to be used byContentBuilders to filter content for exclusion from the replication content being built. The filters in the list are not in a particular order.- Parameters:
action- TheReplicationActionto build the filters contained in the list for.- Returns:
- A
ListofReplicationContentFilters.
-
-