public class ArchiveService extends Object implements IArchiveService
| Constructor and Description |
|---|
ArchiveService()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
generateArchive(String strFolderToArchive,
String strArchiveDestination,
String strArchiveName,
String strArchiveType)
request for archiving an folder
|
fr.paris.lutece.portal.service.plugin.Plugin |
getPlugin()
Initialize the Form service
|
String |
informationArchive(int archiveItemKey)
return the state of the archive with the ID parameter is provided
|
void |
removeArchive(int archiveItemKey)
remove the archive with the ID parameter is provided
|
void |
runGenerateArchive(StringBuilder sbLogs)
method for running the archive process
|
void |
setGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory)
Setter of generaArchiveServiceFactory
|
public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
public int generateArchive(String strFolderToArchive, String strArchiveDestination, String strArchiveName, String strArchiveType)
generateArchive in interface IArchiveServicestrFolderToArchive - 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,..)public String informationArchive(int archiveItemKey)
informationArchive in interface IArchiveServicearchiveItemKey - the archive idpublic void removeArchive(int archiveItemKey)
removeArchive in interface IArchiveServicearchiveItemKey - the archive idpublic void runGenerateArchive(StringBuilder sbLogs)
runGenerateArchive in interface IArchiveServicesbLogs - the process logpublic void setGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory)
generaArchiveServiceFactory - The generate archive service factoryCopyright © 2016 Mairie de Paris. All rights reserved.