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

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

public class ArchiveClientWsService
extends AbstractArchiveClientService

ArchiveClientWsService

Author:
merlinfe

Constructor Summary
ArchiveClientWsService()
           
 
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 setRequestAuthenticatorForWS(fr.paris.lutece.util.signrequest.RequestAuthenticator requestAuthenticatorForWS)
          setter method for _requestAuthenticatorForWS
 
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

ArchiveClientWsService

public ArchiveClientWsService()
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

setRequestAuthenticatorForWS

public void setRequestAuthenticatorForWS(fr.paris.lutece.util.signrequest.RequestAuthenticator requestAuthenticatorForWS)
setter method for _requestAuthenticatorForWS

Parameters:
requestAuthenticatorForWS -


Copyright © 2011 Mairie de Paris. All Rights Reserved.