Class TransferManifestNodeFactoryImpl

java.lang.Object
org.alfresco.repo.transfer.manifest.TransferManifestNodeFactoryImpl
All Implemented Interfaces:
TransferManifestNodeFactory

public class TransferManifestNodeFactoryImpl extends Object implements TransferManifestNodeFactory
Factory to build TransferManifestNodes given their repository NodeRef. Extracts values from the nodeService and instantiates TransferManifestNode.
Author:
Mark Rogers
  • Constructor Details

    • TransferManifestNodeFactoryImpl

      public TransferManifestNodeFactoryImpl()
  • Method Details

    • init

      public void init()
    • createTransferManifestNode

      public TransferManifestNode createTransferManifestNode(NodeRef nodeRef, TransferDefinition definition, TransferContext transferContext)
      Description copied from interface: TransferManifestNodeFactory
      Create an object that represents the specified node in a form that can be used to transfer it elsewhere. Calling this operation is identical to calling TransferManifestNodeFactory.createTransferManifestNode(NodeRef, TransferDefinition, TransferContext, boolean) specifying false as the value of the forceDelete parameter.
      Specified by:
      createTransferManifestNode in interface TransferManifestNodeFactory
      Parameters:
      nodeRef - The identifier of the node to be distilled for transfer
      definition - The transfer definition against which the node is being transferred
      transferContext - internal runtime context of a transfer
      Returns:
      An object that holds a snapshot of the state of the specified node suitable for transfer elsewhere.
    • createTransferManifestNode

      public TransferManifestNode createTransferManifestNode(NodeRef nodeRef, TransferDefinition definition, TransferContext transferContext, boolean forceDelete)
      Description copied from interface: TransferManifestNodeFactory
      Create an object that represents the specified node in a form that can be used to transfer it elsewhere
      Specified by:
      createTransferManifestNode in interface TransferManifestNodeFactory
      Parameters:
      nodeRef - The identifier of the node to be distilled for transfer
      definition - The transfer definition against which the node is being transferred
      transferContext - internal runtime context of a transfer
      forceDelete - If this flag is set then the returned TransferManifestNode object will represent the removal of the specified node, even if the node still exists in this repository. This allows a node to be removed from the target repository even if it hasn't been removed in the source repository.
      Returns:
      An object that holds a snapshot of the state of the specified node suitable for transfer elsewhere.
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • setMlAwareNodeService

      public void setMlAwareNodeService(NodeService mlAwareNodeService)
    • setPermissionService

      public void setPermissionService(PermissionService permissionService)
    • setDictionaryService

      public void setDictionaryService(DictionaryService dictionaryService)