org.exoplatform.clouddrive.ecms.filters
Class FileTypeFilter

java.lang.Object
  extended by 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

Field Summary
protected  List<MimeType> accepted
           
protected static org.exoplatform.services.log.Log LOG
           
protected  Set<String> mimeTypes
           
 
Constructor Summary
FileTypeFilter()
           
 
Method Summary
 boolean accept(Map<String,Object> context)
           
 org.exoplatform.webui.ext.filter.UIExtensionFilterType getType()
           
 void onDeny(Map<String,Object> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.exoplatform.services.log.Log LOG

mimeTypes

protected Set<String> mimeTypes

accepted

protected List<MimeType> accepted
Constructor Detail

FileTypeFilter

public FileTypeFilter()
Method Detail

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.