org.exoplatform.clouddrive.ecms.filters
Class FileTypeFilter
java.lang.Object
org.exoplatform.clouddrive.ecms.filters.FileTypeFilter
- All Implemented Interfaces:
- org.exoplatform.webui.ext.filter.UIExtensionFilter
public class FileTypeFilter
- extends Object
- implements org.exoplatform.webui.ext.filter.UIExtensionFilter
Filter files by MIME type including wildcard types.
Created by The eXo Platform SAS.
- Version:
- $Id: FileTypeFilter.java 00000 Nov 24, 2014 pnedonosko $
- Author:
- Peter Nedonosko
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.exoplatform.services.log.Log LOG
mimeTypes
protected Set<String> mimeTypes
accepted
protected List<MimeType> accepted
FileTypeFilter
public FileTypeFilter()
accept
public boolean accept(Map<String,Object> context)
throws Exception
- Specified by:
accept in interface org.exoplatform.webui.ext.filter.UIExtensionFilter
- Throws:
Exception
getType
public org.exoplatform.webui.ext.filter.UIExtensionFilterType getType()
- Specified by:
getType in interface org.exoplatform.webui.ext.filter.UIExtensionFilter
onDeny
public void onDeny(Map<String,Object> context)
throws Exception
- Specified by:
onDeny in interface org.exoplatform.webui.ext.filter.UIExtensionFilter
- Throws:
Exception
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.