Interface ReplicationDefinition

    • Method Detail

      • getReplicationName

        String getReplicationName()
        Returns:
        the name which uniquely identifies this replication definition.
      • getReplicationQName

        org.alfresco.service.namespace.QName getReplicationQName()
        Returns:
        the qualified name which uniquely identifies this replication definition.
      • getTargetName

        String getTargetName()
        Returns:
        the name of the target repository.
      • setTargetName

        void setTargetName​(String targetName)
        Sets the name of the target repository.
      • isEnabled

        boolean isEnabled()
        Is this Replication Definition currently enabled (can be run), or disabled (can't be run)?
        Returns:
        Whether the definition is enabled or not
      • setEnabled

        void setEnabled​(boolean enabled)
        Enable or Disable the Replication Definition.
      • getPayload

        List<org.alfresco.service.cmr.repository.NodeRef> getPayload()
        The list of Nodes to be transfered. This list can be edited as required.
        Returns:
        An editable list of the nodes to be transfered
      • getLocalTransferReport

        org.alfresco.service.cmr.repository.NodeRef getLocalTransferReport()
        Returns the local side of the report on the transfer. The transfer service generates two reports, one on the local repository, and one on the remote repository. This returns the local version of the report.
        Returns:
        The transfer report on the local repository
      • setLocalTransferReport

        void setLocalTransferReport​(org.alfresco.service.cmr.repository.NodeRef report)
        Records the location on the local repository of the transfer service report on the replication.
      • getRemoteTransferReport

        org.alfresco.service.cmr.repository.NodeRef getRemoteTransferReport()
        Returns the remote side of the report on the transfer. The transfer service generates two reports, one on the local repository, and one on the remote repository. This returns the remote version of the report.
        Returns:
        The transfer report on the remote repository
      • setRemoteTransferReport

        void setRemoteTransferReport​(org.alfresco.service.cmr.repository.NodeRef report)
        Records the location on the local repository of the transfer service report that was generated on the remote repository for the replication.
      • isTargetExists

        boolean isTargetExists()
        Does the target exist?
        Returns:
        true it does