fr.paris.lutece.plugins.archive.service.archive
Class ArchiveService

java.lang.Object
  extended by fr.paris.lutece.plugins.archive.service.archive.ArchiveService
All Implemented Interfaces:
IArchiveService

public class ArchiveService
extends java.lang.Object
implements IArchiveService

implementation of @see IArchiveService

Author:
merlinfe

Constructor Summary
ArchiveService()
          Constructor
 
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
 fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
          Initialize the Form service
 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 runGenerateArchive(java.lang.StringBuilder sbLogs)
          method for running the archive process
 void setGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory)
          Setter of generaArchiveServiceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveService

public ArchiveService()
Constructor

Method Detail

getPlugin

public fr.paris.lutece.portal.service.plugin.Plugin getPlugin()
Initialize the Form service

Returns:
the plugin

generateArchive

public int generateArchive(java.lang.String strFolderToArchive,
                           java.lang.String strArchiveDestination,
                           java.lang.String strArchiveName,
                           java.lang.String strArchiveType)
request for archiving an folder

Specified by:
generateArchive in interface IArchiveService
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

public java.lang.String informationArchive(int archiveItemKey)
return the state of the archive with the ID parameter is provided

Specified by:
informationArchive in interface IArchiveService
Parameters:
archiveItemKey - the archive id
Returns:
the state of the archive

removeArchive

public void removeArchive(int archiveItemKey)
remove the archive with the ID parameter is provided

Specified by:
removeArchive in interface IArchiveService
Parameters:
archiveItemKey - the archive id

runGenerateArchive

public void runGenerateArchive(java.lang.StringBuilder sbLogs)
method for running the archive process

Specified by:
runGenerateArchive in interface IArchiveService
Parameters:
sbLogs - the process log

setGenerateArchiveServiceFactory

public void setGenerateArchiveServiceFactory(IGenerateArchiveServiceFactory generaArchiveServiceFactory)
Setter of generaArchiveServiceFactory

Parameters:
generaArchiveServiceFactory - The generate archive service factory


Copyright © 2011 Mairie de Paris. All Rights Reserved.