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 IArchiveService
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,..)public String informationArchive(int archiveItemKey)
informationArchive
in interface IArchiveService
archiveItemKey
- the archive idpublic void removeArchive(int archiveItemKey)
removeArchive
in interface IArchiveService
archiveItemKey
- the archive idpublic void runGenerateArchive(StringBuilder sbLogs)
runGenerateArchive
in interface IArchiveService
sbLogs
- the process logpublic void setGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory)
generaArchiveServiceFactory
- The generate archive service factoryCopyright © 2018 City of Paris. All rights reserved.