Class TransferDefinition
java.lang.Object
org.alfresco.service.cmr.transfer.TransferDefinition
- All Implemented Interfaces:
Serializable
Definition of what to transfer.
nodes Specifies which node to transfer
isSync specifies whether the list of nodes is to be sync'ed. If sync then the transfer machinery can determine by the absence of a node or association in the transfer that the missing nodes should be deleted on the destination. Else with a non sync transfer then the archive node ref is required to remote a node on the destination.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the aspects to exclude from transfergetNodes()Get which nodes to transferGet the list of nodes that are to be explicitly removed from the target repositorybooleanisReadOnly specifies whether the transferred nodes should be editable on the destination system.booleanisSync()isSync specifies whether the list of nodes is to be sync'ed.voidsetExcludedAspects(Collection<QName> excludedAspects) Sets which aspects to exclude from transfervoidsetExcludedAspects(QName... excludedAspects) Sets which aspects to exclude from transfervoidsetNodes(Collection<NodeRef> nodes) Set which nodes to transfervoidvoidsetNodesToRemove(Collection<NodeRef> nodes) Set nodes that are to be explicitly removed from the the target repositoryvoidsetNodesToRemove(NodeRef... nodes) Set nodes that are to be explicitly removed from the the target repositoryvoidsetReadOnly(boolean isReadOnly) isReadOnly specifies whether the transferred nodes should be editable on the destination system.voidsetSync(boolean isSync) isSync specifies whether the list of nodes is to be sync'ed.
-
Constructor Details
-
TransferDefinition
public TransferDefinition()
-
-
Method Details
-
setNodes
Set which nodes to transfer -
setNodes
-
setNodesToRemove
Set nodes that are to be explicitly removed from the the target repository -
setNodesToRemove
Set nodes that are to be explicitly removed from the the target repository- Parameters:
nodes- NodeRef...
-
getNodes
Get which nodes to transfer -
getNodesToRemove
Get the list of nodes that are to be explicitly removed from the target repository -
setExcludedAspects
Sets which aspects to exclude from transfer- Parameters:
excludedAspects- collection of aspects to exclude
-
setExcludedAspects
Sets which aspects to exclude from transfer- Parameters:
excludedAspects- aspects to exclude from transfer
-
getExcludedAspects
Gets the aspects to exclude from transfer- Returns:
- set of excluded aspects (or null, if none specified)
-
setSync
public void setSync(boolean isSync) isSync specifies whether the list of nodes is to be sync'ed. If sync then the transfer machinery can determine by the absence of a node or association in the transfer that the missing nodes should be deleted on the destination. Else with a non sync transfer then the archive node ref is required to remote a node on the destination. -
isSync
public boolean isSync()isSync specifies whether the list of nodes is to be sync'ed. If sync then the transfer machinery can determine by the absence of a node or association in the transfer that missing nodes should be deleted on the destination. Else with a non sync transfer then the archive node ref is required to remote a node on the destination.- Returns:
- true if the transfer is in "sync" mode.
-
setReadOnly
public void setReadOnly(boolean isReadOnly) isReadOnly specifies whether the transferred nodes should be editable on the destination system. -
isReadOnly
public boolean isReadOnly()isReadOnly specifies whether the transferred nodes should be editable on the destination system.
-