Files
alfresco-community-repo/source/java/org/alfresco/service/cmr/replication/ReplicationDefinition.java
Raluca Munteanu 8674e2bfc8 Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2)
      125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2016-04-26 12:48:49 +00:00

115 lines
3.3 KiB
Java

package org.alfresco.service.cmr.replication;
import java.io.Serializable;
import java.util.List;
import org.alfresco.service.cmr.action.CancellableAction;
import org.alfresco.service.cmr.action.scheduled.SchedulableAction;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.namespace.QName;
/**
* This class is used to fully specify an inter-repository replication. It
* specifies which node(s) should be transfered, which associated content
* should be sent with them, and which target they should be sent to.
* <P/>
* Every ReplicationDefinition has a <code>replicationName</code> attribute
* which uniquely identifies it. It also has a single target.
*
* @author Nick Burch
*/
public interface ReplicationDefinition extends CancellableAction, SchedulableAction, Serializable {
/**
* @return the name which uniquely identifies this replication definition.
*/
String getReplicationName();
/**
* @return the qualified name which uniquely identifies this replication definition.
*/
QName getReplicationQName();
/**
* @return the name of the target repository.
*/
String getTargetName();
/**
* Sets the name of the target repository.
*/
void setTargetName(String targetName);
/**
* Is this Replication Definition currently
* enabled (can be run), or disabled
* (can't be run)?
* @return Whether the definition is enabled or not
*/
boolean isEnabled();
/**
* Enable or Disable the Replication
* Definition.
*/
void setEnabled(boolean enabled);
/**
* The list of Nodes to be transfered. This
* list can be edited as required.
* @return An editable list of the nodes to be transfered
*/
List<NodeRef> getPayload();
/**
* 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.
* @return The transfer report on the local repository
*/
NodeRef getLocalTransferReport();
/**
* Records the location on the local repository
* of the transfer service report on the
* replication.
*/
void setLocalTransferReport(NodeRef report);
/**
* 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.
* @return The transfer report on the remote repository
*/
NodeRef getRemoteTransferReport();
/**
* Records the location on the local repository
* of the transfer service report that was
* generated on the remote repository for the
* replication.
*/
void setRemoteTransferReport(NodeRef report);
/**
* Is scheduling currently enabled?
* See {@link ReplicationService#enableScheduling(ReplicationDefinition)} and
* {@link ReplicationService#disableScheduling(ReplicationDefinition)}
*/
boolean isSchedulingEnabled();
/**
* Does the target exist?
* @return true it does
*/
boolean isTargetExists();
// TODO Replication options, such as permissions and rules
}