fr.paris.lutece.plugins.archiveclient.service.archive
Class ArchiveClientLocalService

java.lang.Object
  extended by fr.paris.lutece.plugins.archiveclient.service.archive.AbstractArchiveClientService
      extended by fr.paris.lutece.plugins.archiveclient.service.archive.ArchiveClientLocalService
All Implemented Interfaces:
IArchiveClientService

public class ArchiveClientLocalService
extends AbstractArchiveClientService

Author:
merlinfe

Constructor Summary
ArchiveClientLocalService()
           
 
Method Summary
 int generateArchive(java.lang.String strFolderToArchive, java.lang.String strArchiveDestination, java.lang.String strArchiveName, java.lang.String strArchiveType)
          request for archiving an folder
 java.lang.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)
           
 
Methods inherited from class fr.paris.lutece.plugins.archiveclient.service.archive.AbstractArchiveClientService
getDownloadUrl, setRequestAuthenticatorForUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveClientLocalService

public ArchiveClientLocalService()
Method Detail

generateArchive

public int generateArchive(java.lang.String strFolderToArchive,
                           java.lang.String strArchiveDestination,
                           java.lang.String strArchiveName,
                           java.lang.String strArchiveType)
                    throws ArchiveClientException
Description copied from interface: IArchiveClientService
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
Throws:
ArchiveClientException

informationArchive

public java.lang.String informationArchive(int archiveItemKey)
                                    throws ArchiveClientException
Description copied from interface: IArchiveClientService
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

removeArchive

public void removeArchive(int archiveItemKey)
                   throws ArchiveClientException
Description copied from interface: IArchiveClientService
remove the archive with the ID parameter is provided

Parameters:
archiveItemKey - the archive id
Throws:
ArchiveClientException

setArchiveService

public void setArchiveService(fr.paris.lutece.plugins.archive.service.archive.IArchiveService archiveService)


Copyright © 2011 Mairie de Paris. All Rights Reserved.