mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Addition of "isComplete" to transfer API. At the moment it "goes nowhere and does nothing", the implementation will follow next week.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20902 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,9 +27,14 @@ import java.util.Set;
|
|||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Definition of a transfer.
|
* Definition of what to transfer.
|
||||||
*
|
*
|
||||||
* Specifies which node to transfer
|
* nodes Specifies which node to transfer
|
||||||
|
* <p>
|
||||||
|
* isComplete specifies whether the list of nodes is complete. If complete then the transfer
|
||||||
|
* machinery can determine by the absence of a node that the missing node should be deleted.
|
||||||
|
* if the transfer is not complete (a partial transfer) then the archive node ref is required
|
||||||
|
* to delete a remote node.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class TransferDefinition implements Serializable
|
public class TransferDefinition implements Serializable
|
||||||
@@ -41,6 +46,9 @@ public class TransferDefinition implements Serializable
|
|||||||
|
|
||||||
// Which nodes to deploy
|
// Which nodes to deploy
|
||||||
private Set<NodeRef> nodes;
|
private Set<NodeRef> nodes;
|
||||||
|
|
||||||
|
// is complete
|
||||||
|
private boolean isComplete = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set which nodes to transfer
|
* Set which nodes to transfer
|
||||||
@@ -64,4 +72,25 @@ public class TransferDefinition implements Serializable
|
|||||||
{
|
{
|
||||||
return nodes;
|
return nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* isComplete specifies whether the list of nodes is complete. If complete then the transfer
|
||||||
|
* machinery can determine by the absence of a node in the transfer that the missing node should be deleted.
|
||||||
|
* Else with a partial transfer then the archive node ref is required to delete a remote node.
|
||||||
|
*/
|
||||||
|
public void setComplete(boolean isComplete)
|
||||||
|
{
|
||||||
|
this.isComplete = isComplete;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* isComplete specifies whether the list of nodes is complete. If complete then the transfer
|
||||||
|
* machinery can determine by the absence of a node in the transfer that the missing node should be deleted.
|
||||||
|
* Else with a partial transfer then the archive node ref is required to delete a remote node.
|
||||||
|
* @return true if the transfer contains a full list of dependent nodes.
|
||||||
|
*/
|
||||||
|
public boolean isComplete()
|
||||||
|
{
|
||||||
|
return isComplete;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user