Class TransferReportPost

    • Constructor Detail

      • TransferReportPost

        public TransferReportPost()
        Deprecated.
    • Method Detail

      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.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​(org.alfresco.service.cmr.repository.ContentService contentService)
        Deprecated.
        Sets the ContentSerivce instance
        Parameters:
        contentService - ContentService instance
      • executeTransfer

        protected File executeTransfer​(org.alfresco.service.cmr.repository.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,
                                                 org.alfresco.service.cmr.repository.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,
                                                  org.alfresco.service.cmr.repository.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,
                                                  org.alfresco.service.cmr.repository.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 org.alfresco.service.cmr.repository.NodeRef fileTransferReport​(File report,
                                                                                 org.alfresco.service.cmr.repository.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