Class ArchiveService

java.lang.Object
fr.paris.lutece.plugins.archive.service.archive.ArchiveService
All Implemented Interfaces:
IArchiveService

@Named("archive.archiveService") @ApplicationScoped public class ArchiveService extends Object implements IArchiveService
implementation of @see IArchiveService
Author:
merlinfe
  • Constructor Details

    • ArchiveService

      public ArchiveService()
      Constructor
  • Method Details

    • getPlugin

      public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
      Initialize the Form service
      Returns:
      the plugin
    • generateArchive

      public int generateArchive(String strFolderToArchive, String strArchiveDestination, String strArchiveName, String strArchiveType)
      request for archiving an folder
      Specified by:
      generateArchive in interface IArchiveService
      Parameters:
      strFolderToArchive - path to the folder to archive
      strArchiveDestination - path to the destination folder which will store the archive
      strArchiveName - the name of the archive
      strArchiveType - the archive type(zip,..)
      Returns:
      the archive id
    • informationArchive

      public String informationArchive(int archiveItemKey)
      return the state of the archive with the ID parameter is provided
      Specified by:
      informationArchive in interface IArchiveService
      Parameters:
      archiveItemKey - the archive id
      Returns:
      the state of the archive
    • removeArchive

      public void removeArchive(int archiveItemKey)
      remove the archive with the ID parameter is provided
      Specified by:
      removeArchive in interface IArchiveService
      Parameters:
      archiveItemKey - the archive id
    • runGenerateArchive

      public void runGenerateArchive(StringBuilder sbLogs)
      method for running the archive process
      Specified by:
      runGenerateArchive in interface IArchiveService
      Parameters:
      sbLogs - the process log
    • setGenerateArchiveServiceFactory

      public void setGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory)
      Setter of generaArchiveServiceFactory
      Parameters:
      generaArchiveServiceFactory - The generate archive service factory