Class TransferReportPost

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
All Implemented Interfaces:
RecordsManagementCustomModel, RecordsManagementModel, org.springframework.extensions.webscripts.WebScript

@Deprecated public class TransferReportPost extends BaseTransferWebScript
Deprecated.
Files a transfer report as a record.
Author:
Gavin Cornwell
  • Field Details

  • Constructor Details

    • TransferReportPost

      public TransferReportPost()
      Deprecated.
  • Method Details

    • setDictionaryService

      public void setDictionaryService(DictionaryService ddService)
      Deprecated.
      Sets the DictionaryService instance
      Parameters:
      ddService - The DictionaryService instance
    • setDispositionService

      public void setDispositionService(DispositionService dispositionService)
      Deprecated.
      Sets the disposition service
      Parameters:
      dispositionService - disposition service
    • setRecordsManagementActionService

      public void setRecordsManagementActionService(RecordsManagementActionService rmActionService)
      Deprecated.
      Sets the RecordsManagementActionService instance
      Parameters:
      rmActionService - RecordsManagementActionService instance
    • setContentService

      public void setContentService(ContentService contentService)
      Deprecated.
      Sets the ContentSerivce instance
      Parameters:
      contentService - ContentService instance
    • executeTransfer

      protected File executeTransfer(NodeRef transferNode, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache) throws IOException
      Deprecated.
      Description copied from class: BaseTransferWebScript
      Abstract method subclasses implement to perform the actual logic required.
      Specified by:
      executeTransfer in class BaseTransferWebScript
      Parameters:
      transferNode - The transfer node
      req - The request
      res - The response
      status - Status object
      cache - Cache object
      Returns:
      File object representing the file containing the JSON of the report
      Throws:
      IOException
    • generateTransferItemsHTML

      protected void generateTransferItemsHTML(Writer writer, NodeRef[] itemsToTransfer) throws IOException
      Deprecated.
      Generates the JSON to represent the given NodeRefs
      Parameters:
      writer - Writer to write to
      itemsToTransfer - NodeRefs being transferred
      Throws:
      IOException
    • generateTransferFolderHTML

      protected void generateTransferFolderHTML(Writer writer, NodeRef folderNode) throws IOException
      Deprecated.
      Generates the JSON to represent the given folder.
      Parameters:
      writer - Writer to write to
      folderNode - Folder being transferred
      Throws:
      IOException
    • generateTransferRecordHTML

      protected void generateTransferRecordHTML(Writer writer, NodeRef recordNode) throws IOException
      Deprecated.
      Generates the JSON to represent the given record.
      Parameters:
      writer - Writer to write to
      recordNode - Record being transferred
      Throws:
      IOException
    • fileTransferReport

      protected NodeRef fileTransferReport(File report, NodeRef destination)
      Deprecated.
      Files the given transfer report as a record in the given record folder.
      Parameters:
      report - Report to file
      destination - The destination record folder
      Returns:
      NodeRef of the created record