public class ArchiveClientLocalService extends AbstractArchiveClientService
Constructor and Description |
---|
ArchiveClientLocalService() |
Modifier and Type | Method and Description |
---|---|
int |
generateArchive(String strFolderToArchive,
String strArchiveDestination,
String strArchiveName,
String strArchiveType)
request for archiving an folder
|
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 |
setArchiveService(fr.paris.lutece.plugins.archive.service.archive.IArchiveService archiveService)
Set the archive service
|
getDownloadUrl, setRequestAuthenticatorForUrl
public int generateArchive(String strFolderToArchive, String strArchiveDestination, String strArchiveName, String strArchiveType) throws ArchiveClientException
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,..)ArchiveClientException
- exception if there is a problempublic String informationArchive(int archiveItemKey) throws ArchiveClientException
archiveItemKey
- the archive idArchiveClientException
- exception if there is a problempublic void removeArchive(int archiveItemKey) throws ArchiveClientException
archiveItemKey
- the archive idArchiveClientException
- exception if there is a problempublic void setArchiveService(fr.paris.lutece.plugins.archive.service.archive.IArchiveService archiveService)
archiveService
- the archive serviceCopyright © 2018 City of Paris. All rights reserved.