public class ZipHelper extends Object
| Constructor and Description |
|---|
ZipHelper() |
| Modifier and Type | Method and Description |
|---|---|
static ZipHelper |
getInstance() |
void |
unzip(List<String> paths,
boolean removeArchive,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
boolean |
unzipFile(JCRNodeWrapper zipfile,
JCRNodeWrapper destination,
JCRSessionWrapper currentUserSession) |
void |
zip(List<String> paths,
String archiveName,
JCRSessionWrapper currentUserSession,
Locale uiLocale) |
List<String> |
zipFiles(JCRNodeWrapper parentDirectory,
String zipname,
List<JCRNodeWrapper> files) |
public static ZipHelper getInstance()
public List<String> zipFiles(JCRNodeWrapper parentDirectory, String zipname, List<JCRNodeWrapper> files)
parentDirectory - the directory to create the archive intozipname - the archive namefiles - the file listjavax.jcr.RepositoryException - in case of JCR-related errorspublic boolean unzipFile(JCRNodeWrapper zipfile, JCRNodeWrapper destination, JCRSessionWrapper currentUserSession) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void zip(List<String> paths, String archiveName, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionpublic void unzip(List<String> paths, boolean removeArchive, JCRSessionWrapper currentUserSession, Locale uiLocale) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
org.jahia.ajax.gwt.client.service.GWTJahiaServiceExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.