Class ArchiveService
- java.lang.Object
-
- fr.paris.lutece.plugins.archive.service.archive.ArchiveService
-
- All Implemented Interfaces:
IArchiveService
public class ArchiveService extends java.lang.Object implements IArchiveService
implementation of @see IArchiveService- Author:
- merlinfe
-
-
Constructor Summary
Constructors Constructor Description ArchiveService()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgenerateArchive(java.lang.String strFolderToArchive, java.lang.String strArchiveDestination, java.lang.String strArchiveName, java.lang.String strArchiveType)request for archiving an folderfr.paris.lutece.portal.service.plugin.PlugingetPlugin()Initialize the Form servicejava.lang.StringinformationArchive(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(java.lang.StringBuilder sbLogs)method for running the archive processvoidsetGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory)Setter of generaArchiveServiceFactory
-
-
-
Method Detail
-
getPlugin
public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
Initialize the Form service- Returns:
- the plugin
-
generateArchive
public int generateArchive(java.lang.String strFolderToArchive, java.lang.String strArchiveDestination, java.lang.String strArchiveName, java.lang.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
public java.lang.String informationArchive(int archiveItemKey)
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
public void runGenerateArchive(java.lang.StringBuilder sbLogs)
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
-
-