public final class ZipService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_STATE_ERROR |
static String |
ARCHIVE_STATE_FINAL |
static String |
ARCHIVE_STATE_INITIAL |
static String |
ARCHIVE_STATE_USED |
static String |
EXTENSION_FILE_PDF |
static String |
EXTENSION_FILE_ZIP |
static String |
PROPERTY_ZIP_NAME_REPOSITORY |
| Modifier and Type | Method and Description |
|---|---|
int |
doBasicZip(String strFolderToArchive,
String strArchiveDestination,
String strArchiveName,
String strArchiveType)
Method to do zip
|
boolean |
doDeleteZip(String strIdRecord,
int nArchiveItemKey,
int nIdKeyUser,
int nIdDirectory,
String zipName)
Method to delete zip
|
int |
doGeneratePDFAndZip(fr.paris.lutece.portal.business.user.AdminUser adminUser,
Locale locale,
String strName,
int nIdKeyUser,
int nIdDirectory,
List<Integer> listIdEntryConfig,
int nIdRecord)
Method to generate zip
|
int |
doGeneratePDFAndZip(javax.servlet.http.HttpServletRequest request,
String strName,
int nIdKeyUser,
int nIdDirectory,
List<Integer> listIdEntryConfig,
int nIdRecord)
Method to generate zip
|
String |
getStatutZip(int nArchiveItemKey)
Method to get the zip status
|
String |
getUrlZip(int nArchiveItemKey)
Method to get the url zip
|
void |
setArchiveClientService(fr.paris.lutece.plugins.archiveclient.service.archive.IArchiveClientService archiveClientService)
Method to set _archiveClientService
|
public static final String ARCHIVE_STATE_INITIAL
public static final String ARCHIVE_STATE_USED
public static final String ARCHIVE_STATE_ERROR
public static final String ARCHIVE_STATE_FINAL
public static final String PROPERTY_ZIP_NAME_REPOSITORY
public static final String EXTENSION_FILE_ZIP
public static final String EXTENSION_FILE_PDF
public int doGeneratePDFAndZip(javax.servlet.http.HttpServletRequest request,
String strName,
int nIdKeyUser,
int nIdDirectory,
List<Integer> listIdEntryConfig,
int nIdRecord)
request - requeststrName - directory namenIdKeyUser - id key usernIdDirectory - id directorylistIdEntryConfig - config to build pdfnIdRecord - the id recordpublic int doGeneratePDFAndZip(fr.paris.lutece.portal.business.user.AdminUser adminUser,
Locale locale,
String strName,
int nIdKeyUser,
int nIdDirectory,
List<Integer> listIdEntryConfig,
int nIdRecord)
adminUser - The adminUserlocale - The localestrName - directory namenIdKeyUser - id key usernIdDirectory - id directorylistIdEntryConfig - config to build pdfnIdRecord - the id recordpublic boolean doDeleteZip(String strIdRecord, int nArchiveItemKey, int nIdKeyUser, int nIdDirectory, String zipName)
strIdRecord - id recordnArchiveItemKey - id archive itemnIdKeyUser - id user keynIdDirectory - id directoryzipName - zip namepublic int doBasicZip(String strFolderToArchive, String strArchiveDestination, String strArchiveName, String strArchiveType)
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,..)public String getStatutZip(int nArchiveItemKey)
nArchiveItemKey - id of archive itempublic String getUrlZip(int nArchiveItemKey)
nArchiveItemKey - id of archive itempublic void setArchiveClientService(fr.paris.lutece.plugins.archiveclient.service.archive.IArchiveClientService archiveClientService)
archiveClientService - archiveClientServiceCopyright © 2015 City of Paris. All rights reserved.