Class ArchiveClientLocalService
java.lang.Object
fr.paris.lutece.plugins.archiveclient.service.archive.AbstractArchiveClientService
fr.paris.lutece.plugins.archiveclient.service.archive.ArchiveClientLocalService
- All Implemented Interfaces:
IArchiveClientService
ArchiveClientLocalService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgenerateArchive(String strFolderToArchive, String strArchiveDestination, String strArchiveName, String strArchiveType) request for archiving an folderinformationArchive(int archiveItemKey) return the state of the archive with the ID parameter is providedvoidremoveArchive(int archiveItemKey) Remove the archive with the ID parameter is providedvoidsetArchiveService(fr.paris.lutece.plugins.archive.service.archive.IArchiveService archiveService) Set the archive serviceMethods inherited from class fr.paris.lutece.plugins.archiveclient.service.archive.AbstractArchiveClientService
getDownloadUrl, setRequestAuthenticatorForUrl
-
Constructor Details
-
ArchiveClientLocalService
public ArchiveClientLocalService()
-
-
Method Details
-
generateArchive
public int generateArchive(String strFolderToArchive, String strArchiveDestination, String strArchiveName, String strArchiveType) throws ArchiveClientException request for archiving an folder- 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
- Throws:
ArchiveClientException- exception if there is a problem
-
informationArchive
return the state of the archive with the ID parameter is provided- Parameters:
archiveItemKey- the archive id- Returns:
- the state of the archive
- Throws:
ArchiveClientException- exception if there is a problem
-
removeArchive
Remove the archive with the ID parameter is provided- Parameters:
archiveItemKey- the archive id- Throws:
ArchiveClientException- exception if there is a problem
-
setArchiveService
public void setArchiveService(fr.paris.lutece.plugins.archive.service.archive.IArchiveService archiveService) Set the archive service- Parameters:
archiveService- the archive service
-