Class ImporterActionExecuter

    • Field Detail

      • PARAM_DESTINATION_FOLDER

        public static final java.lang.String PARAM_DESTINATION_FOLDER
        See Also:
        Constant Field Values
      • ARCHIVE_CONTAINS_SUSPICIOUS_PATHS_ERROR

        public static final java.lang.String ARCHIVE_CONTAINS_SUSPICIOUS_PATHS_ERROR
        See Also:
        Constant Field Values
    • Constructor Detail

      • ImporterActionExecuter

        public ImporterActionExecuter()
    • Method Detail

      • setImporterService

        public void setImporterService​(ImporterService importerService)
        Sets the ImporterService to use
        Parameters:
        importerService - The ImporterService
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Sets the NodeService to use
        Parameters:
        nodeService - The NodeService
      • setContentService

        public void setContentService​(ContentService contentService)
        Sets the ContentService to use
        Parameters:
        contentService - The ContentService
      • setFileFolderService

        public void setFileFolderService​(FileFolderService fileFolderService)
        Sets the FileFolderService to use
        Parameters:
        fileFolderService - The FileFolderService
      • isHighByteZip

        public boolean isHighByteZip()
        Returns:
        the highByteZip encoding switch
      • setHighByteZip

        public void setHighByteZip​(boolean highByteZip)
        Parameters:
        highByteZip - the encoding switch for high-byte ZIP filenames to set
      • extractFile

        public static void extractFile​(org.apache.commons.compress.archivers.zip.ZipFile archive,
                                       java.lang.String extractDir)
        Extract the file and folder structure of a ZIP file into the specified directory
        Parameters:
        archive - The ZIP archive to extract
        extractDir - The directory to extract into
      • deleteDir

        public static void deleteDir​(java.io.File dir)
        Recursively delete a dir of files and directories
        Parameters:
        dir - directory to delete