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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgenerateArchive(String strFolderToArchive, String strArchiveDestination, String strArchiveName, String strArchiveType) request for archiving an folderfr.paris.lutece.portal.service.plugin.PluginInitialize the Form serviceinformationArchive(int archiveItemKey) return the state of the archive with the ID parameter is providedvoidremoveArchive(int archiveItemKey) remove the archive with the ID parameter is providedvoidrunGenerateArchive(StringBuilder sbLogs) method for running the archive processvoidsetGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory) Setter of generaArchiveServiceFactory
-
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:
generateArchivein interfaceIArchiveService- Parameters:
strFolderToArchive- path to the folder to archivestrArchiveDestination- path to the destination folder which will store the archivestrArchiveName- the name of the archivestrArchiveType- the archive type(zip,..)- Returns:
- the archive id
-
informationArchive
return the state of the archive with the ID parameter is provided- Specified by:
informationArchivein interfaceIArchiveService- 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:
removeArchivein interfaceIArchiveService- Parameters:
archiveItemKey- the archive id
-
runGenerateArchive
method for running the archive process- Specified by:
runGenerateArchivein interfaceIArchiveService- Parameters:
sbLogs- the process log
-
setGenerateArchiveServiceFactory
public void setGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory) Setter of generaArchiveServiceFactory- Parameters:
generaArchiveServiceFactory- The generate archive service factory
-