Package com.jalios.jcms.upload
Class UnzipRightPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.policy.BasicRightPolicyFilter
-
- com.jalios.jcms.upload.UnzipRightPolicyFilter
-
- All Implemented Interfaces:
PluginComponent
,PolicyFilter
,RightPolicyFilter
,java.lang.Comparable
public class UnzipRightPolicyFilter extends BasicRightPolicyFilter
Monitors FileDocument upload and unzip them if requested. As of current implementation, only unzip the file to a temporary directory which is used later on by the UnzipDataController.- Since:
- jcms-5.7.3
- Version:
- $Revision: 33681 $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
Fields inherited from interface com.jalios.jcms.policy.RightPolicyFilter
CTXT_CATEGORIES
-
-
Constructor Summary
Constructors Constructor Description UnzipRightPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkAfterUpload(DocUploadInfo info)
Checks if the uploaded file must be accepted or rejected.-
Methods inherited from class com.jalios.jcms.policy.BasicRightPolicyFilter
callCanBeReadBy, callCanBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canCreateContact, canCreateWorkspace, canDeleteOther, canDeleteOther, canManageCategory, canPublish, canUpdateOther, canUpdateOther, canUseCategory, canWorkOn, canWorkOn, checkAccess, checkBeforeUpload, checkHtml, getWorkspaceSet, init, isAdmin, isWorker
-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jalios.jcms.policy.RightPolicyFilter
getOrder
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkAfterUpload
public boolean checkAfterUpload(DocUploadInfo info)
Description copied from interface:RightPolicyFilter
Checks if the uploaded file must be accepted or rejected. This method is called by DocUploadInfo.doUpload() called by DocUploadHandler and EditDataHandler for MultiPartRequest BEFORE JavaBean validation. The method Channel.getCurrentJcmsContext() must be called to get more information about Member and Workspace.A DataController must be used to check Document during validation.- Specified by:
checkAfterUpload
in interfaceRightPolicyFilter
- Overrides:
checkAfterUpload
in classBasicRightPolicyFilter
- Parameters:
info
- information about the uploaded file- Returns:
- true if the file is accepted
- See Also:
RightPolicyFilter.checkAfterUpload(DocUploadInfo)
-
-