|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.upload.UnzipUploadManager
public class UnzipUploadManager
Field Summary | |
---|---|
static String |
CTXT_DOC_UNZIP_REQUESTED
DataController's context map key to use in order to enabled or disable automatic unzip of FileDocument during their creation. |
static String |
REVISION
|
Constructor Summary | |
---|---|
UnzipUploadManager()
|
Method Summary | |
---|---|
static boolean |
canUnzipToFileDocuments()
Checks if unzipping of one ZipEntry to n FileDocuments is allowed. |
static void |
clearUnzippingState(javax.servlet.http.HttpServletRequest request)
Clear the request attribute indicating that an unzipping operation is in progress. |
static File |
getZipDirectoryAttribute(javax.servlet.http.HttpServletRequest request,
String filename)
Retrieve the temporarty unzip directory of the specified filename |
static boolean |
isUnzippingInProgress(javax.servlet.http.HttpServletRequest request)
Checks if an unzipping is already being performed. |
static void |
removeZipDirectoryAttribute(javax.servlet.http.HttpServletRequest request,
String filename)
Remove the temporarty unzip directory of the specified filename from the request attibutes. |
static void |
setUnzippingState(javax.servlet.http.HttpServletRequest request)
Set a request attribute indicating that an unzipping operation is in progress. |
static void |
setZipDirectoryAttribute(javax.servlet.http.HttpServletRequest request,
String filename,
File tmpDir)
Store temporary unzip directory of the specified filename in the the request attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static String CTXT_DOC_UNZIP_REQUESTED
Constructor Detail |
---|
public UnzipUploadManager()
Method Detail |
---|
public static boolean canUnzipToFileDocuments()
ZipEntry
to n FileDocuments is allowed.
Current implementation checks property "file-document.allow-unzip"
.
FileDocument.unzipToFileDocuments(java.io.FileFilter, Member)
public static void setZipDirectoryAttribute(javax.servlet.http.HttpServletRequest request, String filename, File tmpDir)
request
- current HttpServletRequestfilename
- the original zip filename for which the unzip directory was createdtmpDir
- the unzip directorypublic static File getZipDirectoryAttribute(javax.servlet.http.HttpServletRequest request, String filename)
request
- current HttpServletRequestfilename
- the zip filename for which we want to retrieve the temporarty zip directory
public static void removeZipDirectoryAttribute(javax.servlet.http.HttpServletRequest request, String filename)
request
- current HttpServletRequestfilename
- the zip filename for which we want to retrieve the temporarty zip directorypublic static boolean isUnzippingInProgress(javax.servlet.http.HttpServletRequest request)
Used by the UnzipRightPolicyFilter to prevent unzipping of zip inside zip
request
- current HttpServletRequest
public static void setUnzippingState(javax.servlet.http.HttpServletRequest request)
request
- current HttpServletRequestpublic static void clearUnzippingState(javax.servlet.http.HttpServletRequest request)
request
- current HttpServletRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |