Interface Replicator


  • @ProviderType
    public interface Replicator
    The Replicator is the replication service. It can be used to replicate content.
    • 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 session
        type - The type of replication
        path - The path specified the content to be replicated
        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 session
        type - The type of replication
        path - 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 - session
        path - path to check
        Returns:
        the replication status or null if 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 session
        path - Path to check
        Returns:
        Subtree paths for activated nodes
        Throws:
        ReplicationException - If error occurs on retrieving node and its descendants