Interface TransferTransmitter

    • Method Detail

      • begin

        Transfer begin​(TransferTarget target,
                       java.lang.String fromRepositoryId,
                       TransferVersion fromVersion)
                throws TransferException
        Begin a transfer, the transfer object returned will be used by subsequent calls to the transfer service.
        Parameters:
        target - definition of where to transfer to.
        fromRepositoryId - the repositoryID of the sending system
        fromVersion - the version of the repository sending
        Returns:
        the transfer object or null if the target cannot be locked.
        Throws:
        TransferException
      • sendManifest

        void sendManifest​(Transfer transfer,
                          java.io.File manifest,
                          java.io.OutputStream results)
                   throws TransferException
        Parameters:
        manifest - the transfer manifest file
        transfer - the transfer object returned by an earlier call to begin
        results - - where to write the results, probably a temporary file the output steam should be open and will be closed before the method returns.
        Throws:
        TransferException
      • sendContent

        void sendContent​(Transfer transfer,
                         java.util.Set<org.alfresco.service.cmr.repository.ContentData> data)
        Send the content of the specified urls
        Parameters:
        transfer - the transfer object returned by an earlier call to begin
        data - the content to send
        Throws:
        TransferException
      • getTransferReport

        void getTransferReport​(Transfer transfer,
                               java.io.OutputStream results)
        Get the destination side transfer report from the destination and write it to the specified output stream.

        The result stream will be closed.

        Parameters:
        transfer - the transfer object returned by an earlier call to begin
        results - - where to write the contents of the transfer report.