fr.paris.lutece.plugins.archive.service.archive
Interface IArchiveService

All Known Implementing Classes:
ArchiveService

public interface IArchiveService

service allowing the archive creation

Author:
merlinfe

Method Summary
 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 runGenerateArchive(StringBuilder sbLogs)
          method for running the archive process
 

Method Detail

generateArchive

int generateArchive(String strFolderToArchive,
                    String strArchiveDestination,
                    String strArchiveName,
                    String strArchiveType)
request for archiving an folder

Parameters:
strFolderToArchive - path to the folder to archive
strArchiveDestination - path to the destination folder which will store the archive
strArchiveName - the name of the archive
strArchiveType - the archive type(zip,..)
Returns:
the archive id

informationArchive

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(StringBuilder sbLogs)
method for running the archive process

Parameters:
sbLogs - the process log


Copyright © 2014 Mairie de Paris. All Rights Reserved.