Interface IArchiveService
-
- All Known Implementing Classes:
ArchiveService
public interface IArchiveServiceservice allowing the archive creation- Author:
- merlinfe
-
-
Method Summary
All Methods Instance Methods Abstract 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 folderjava.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 process
-
-
-
Method Detail
-
generateArchive
int generateArchive(java.lang.String strFolderToArchive, java.lang.String strArchiveDestination, java.lang.String strArchiveName, java.lang.String strArchiveType)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
-
informationArchive
java.lang.String informationArchive(int archiveItemKey)
return the state of the archive with the ID parameter is provided- Parameters:
archiveItemKey- the archive id- Returns:
- the state of the archive
-
removeArchive
void removeArchive(int archiveItemKey)
remove the archive with the ID parameter is provided- Parameters:
archiveItemKey- the archive id
-
runGenerateArchive
void runGenerateArchive(java.lang.StringBuilder sbLogs)
method for running the archive process- Parameters:
sbLogs- the process log
-
-