org.alfresco.repo.transfer.report
Class TransferReporterImpl

java.lang.Object
  extended by org.alfresco.repo.transfer.report.TransferReporterImpl
All Implemented Interfaces:
TransferReporter

public class TransferReporterImpl
extends java.lang.Object
implements TransferReporter

Implementation of TransferReporter


Constructor Summary
TransferReporterImpl()
           
 
Method Summary
 org.alfresco.service.cmr.repository.NodeRef createDestinationTransferReport(TransferTarget target)
           
 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)
          Write exception transfer report
 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 new transfer report of success
 ContentService getContentService()
           
 org.alfresco.service.cmr.repository.NodeService getNodeService()
           
 void init()
           
 void setContentService(ContentService contentService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferReporterImpl

public TransferReporterImpl()
Method Detail

init

public void init()

createDestinationTransferReport

public org.alfresco.service.cmr.repository.NodeRef createDestinationTransferReport(TransferTarget target)

createTransferReport

public 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)
Write exception transfer report

Specified by:
createTransferReport in interface TransferReporter
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
snapshotFile - the snapshot file
Returns:
NodeRef the node ref of the new transfer report

createTransferReport

public 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 new transfer report of success

Specified by:
createTransferReport in interface TransferReporter
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
events - the transfer events generated by the transfer.
snapshotFile - the snapshot file
Returns:
NodeRef the node ref of the new transfer report

writeDestinationReport

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

Specified by:
writeDestinationReport in interface TransferReporter
Parameters:
transferName - the unique name of this transfer - probably based upon the time of transfer.
target - the target of the transfer
tempFile - the temporary file containing the contents of the destination side transfer report.
Returns:
the node ref of the transfer report

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

getNodeService

public org.alfresco.service.cmr.repository.NodeService getNodeService()

setContentService

public void setContentService(ContentService contentService)

getContentService

public ContentService getContentService()


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