@ProviderType public interface Replicator
Replicator
is the replication service.
It can be used to replicate content.Modifier and Type | Field and Description |
---|---|
static String |
REPLICATE_PRIVILEGE
Replication privilege
|
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(Session session,
ReplicationActionType type,
String path)
Checks if a user session has enough permissions for a provided replication type and path
|
List<ReplicationContentFilter> |
createContentFilterChain(ReplicationAction action)
Deprecated.
|
Iterator<String> |
getActivatedPaths(Session session,
String path)
Returns the paths of all nodes for the given subtree path which are
activated.
|
ReplicationStatus |
getReplicationStatus(Session session,
String path)
Returns a replication status for the given path.
|
void |
replicate(Session session,
ReplicationActionType type,
String path)
Triggers a new replication with supplied options.
|
void |
replicate(Session session,
ReplicationActionType type,
String[] paths,
ReplicationOptions options)
Triggers a new replication with supplied options.
|
void |
replicate(Session session,
ReplicationActionType type,
String path,
ReplicationOptions options)
Triggers a new replication with supplied options.
|
static final String REPLICATE_PRIVILEGE
void replicate(Session session, ReplicationActionType type, String path) throws ReplicationException
session
- user sessiontype
- The type of replicationpath
- The path specified the content to be replicatedReplicationException
- if an error occursvoid replicate(Session session, ReplicationActionType type, String path, ReplicationOptions options) throws ReplicationException
session
- user sessiontype
- The type of replicationpath
- The path specified the content to be replicatedoptions
- Additional replication optionsReplicationException
- if an error occursvoid replicate(Session session, ReplicationActionType type, String[] paths, ReplicationOptions options) throws ReplicationException
session
- user sessiontype
- The type of replicationpaths
- The paths specified the content to be replicatedoptions
- Additional replication optionsReplicationException
- if an error occursvoid checkPermission(Session session, ReplicationActionType type, String path) throws ReplicationException
session
- user sessiontype
- The type of replicationpath
- The path specified the content to be replicatedReplicationException
- if an error occursReplicationStatus getReplicationStatus(Session session, String path)
session
- sessionpath
- path to checknull
if not available.Iterator<String> getActivatedPaths(Session session, String path) throws ReplicationException
session
- User sessionpath
- Path to checkReplicationException
- If error occurs on retrieving node and its
descendants@Deprecated List<ReplicationContentFilter> createContentFilterChain(ReplicationAction action)
List
of ReplicationContentFilter
s to be used by ContentBuilder
s to filter
content for exclusion from the replication content being built. The filters in the list are not in a particular
order.action
- The ReplicationAction
to build the filters contained in the list for.List
of ReplicationContentFilter
s.Copyright © 2010 - 2020 Adobe. All Rights Reserved