org.alfresco.repo.transfer.report
Interface TransferReporter

All Known Implementing Classes:
TransferReporterImpl

public interface TransferReporter

Provides methods to create transfer report.


Method Summary
 org.alfresco.service.cmr.repository.NodeRef createTransferReport(java.lang.String transferName, java.lang.Exception e, TransferTarget target, TransferDefinition definition, java.util.List events, java.io.File snapshotFile)
          Create a transfer report of failure
 org.alfresco.service.cmr.repository.NodeRef createTransferReport(java.lang.String transferName, Transfer transfer, TransferTarget target, TransferDefinition definition, java.util.List events, java.io.File snapshotFile)
          Create a transfer report of success
 org.alfresco.service.cmr.repository.NodeRef writeDestinationReport(java.lang.String transferName, TransferTarget target, java.io.File tempFile)
          Write the destination transfer report into the local repo.
 

Method Detail

createTransferReport

org.alfresco.service.cmr.repository.NodeRef createTransferReport(java.lang.String transferName,
                                                                 Transfer transfer,
                                                                 TransferTarget target,
                                                                 TransferDefinition definition,
                                                                 java.util.List events,
                                                                 java.io.File snapshotFile)
Create a transfer report of success

Parameters:
target - the target of the transfer
definition - the definition of the transfer
events - the transfer events generated by the transfer.
snapshotFile - the snapshot file
destinationReport - the destination report, may be null if it does not exist.
transferName - - the unique name of this transfer - probably based upon the time of transfer.
Returns:
the node ref of the transfer report

createTransferReport

org.alfresco.service.cmr.repository.NodeRef createTransferReport(java.lang.String transferName,
                                                                 java.lang.Exception e,
                                                                 TransferTarget target,
                                                                 TransferDefinition definition,
                                                                 java.util.List events,
                                                                 java.io.File snapshotFile)
Create a transfer report of failure

Parameters:
transferName - - the unique name of this transfer - probably based upon the time of transfer.
e - the exception
target - the target of the transfer
definition - the definition of the transfer
events -
snapshotFile - the snapshot file
Returns:
the node ref of the transfer report

writeDestinationReport

org.alfresco.service.cmr.repository.NodeRef writeDestinationReport(java.lang.String transferName,
                                                                   TransferTarget target,
                                                                   java.io.File tempFile)
Write the destination transfer report into the local repo.

Parameters:
transferName - the unique name of this transfer - probably based upon the time of transfer.
target - the target of the transfer
definition - the definition of the transfer
tempFile - the temporary file containing the contents of the destination side transfer report.
Returns:
the node ref of the transfer report


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.