Class TransferDefinition
- java.lang.Object
-
- org.alfresco.service.cmr.transfer.TransferDefinition
-
- All Implemented Interfaces:
java.io.Serializable
public class TransferDefinition extends java.lang.Object implements java.io.SerializableDefinition of what to transfer. nodes Specifies which node to transferisSync 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TransferDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<org.alfresco.service.namespace.QName>getExcludedAspects()Gets the aspects to exclude from transferjava.util.Set<org.alfresco.service.cmr.repository.NodeRef>getNodes()Get which nodes to transferjava.util.Set<org.alfresco.service.cmr.repository.NodeRef>getNodesToRemove()Get the list of nodes that are to be explicitly removed from the target repositorybooleanisReadOnly()isReadOnly 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(java.util.Collection<org.alfresco.service.namespace.QName> excludedAspects)Sets which aspects to exclude from transfervoidsetExcludedAspects(org.alfresco.service.namespace.QName... excludedAspects)Sets which aspects to exclude from transfervoidsetNodes(java.util.Collection<org.alfresco.service.cmr.repository.NodeRef> nodes)Set which nodes to transfervoidsetNodes(org.alfresco.service.cmr.repository.NodeRef... nodes)voidsetNodesToRemove(java.util.Collection<org.alfresco.service.cmr.repository.NodeRef> nodes)Set nodes that are to be explicitly removed from the the target repositoryvoidsetNodesToRemove(org.alfresco.service.cmr.repository.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.
-
-
-
Method Detail
-
setNodes
public void setNodes(java.util.Collection<org.alfresco.service.cmr.repository.NodeRef> nodes)
Set which nodes to transfer
-
setNodes
public void setNodes(org.alfresco.service.cmr.repository.NodeRef... nodes)
-
setNodesToRemove
public void setNodesToRemove(java.util.Collection<org.alfresco.service.cmr.repository.NodeRef> nodes)
Set nodes that are to be explicitly removed from the the target repository
-
setNodesToRemove
public void setNodesToRemove(org.alfresco.service.cmr.repository.NodeRef... nodes)
Set nodes that are to be explicitly removed from the the target repository- Parameters:
nodes- NodeRef...
-
getNodes
public java.util.Set<org.alfresco.service.cmr.repository.NodeRef> getNodes()
Get which nodes to transfer
-
getNodesToRemove
public java.util.Set<org.alfresco.service.cmr.repository.NodeRef> getNodesToRemove()
Get the list of nodes that are to be explicitly removed from the target repository
-
setExcludedAspects
public void setExcludedAspects(java.util.Collection<org.alfresco.service.namespace.QName> excludedAspects)
Sets which aspects to exclude from transfer- Parameters:
excludedAspects- collection of aspects to exclude
-
setExcludedAspects
public void setExcludedAspects(org.alfresco.service.namespace.QName... excludedAspects)
Sets which aspects to exclude from transfer- Parameters:
excludedAspects- aspects to exclude from transfer
-
getExcludedAspects
public java.util.Set<org.alfresco.service.namespace.QName> 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.
-
-