ALF-4346 & ALF-4348 - More work on schedulable actions, and start to expose this through to the replication service

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22019 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-08-26 13:36:37 +00:00
parent 5e8c77a99b
commit 61583adef0
10 changed files with 430 additions and 70 deletions

View File

@@ -22,6 +22,7 @@ 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;
@@ -35,7 +36,7 @@ import org.alfresco.service.namespace.QName;
*
* @author Nick Burch
*/
public interface ReplicationDefinition extends CancellableAction, Serializable {
public interface ReplicationDefinition extends CancellableAction, SchedulableAction, Serializable {
/**
* @return the name which uniquely identifies this replication definition.
*/
@@ -114,5 +115,12 @@ public interface ReplicationDefinition extends CancellableAction, Serializable {
*/
void setRemoteTransferReport(NodeRef report);
/**
* Is scheduling currently enabled?
* See {@link ReplicationService#enableScheduling(ReplicationDefinition)} and
* {@link ReplicationService#disableScheduling(ReplicationDefinition)}
*/
boolean isSchedulingEnabled();
// TODO Replication options, such as permissions and rules
}