org.exoplatform.webui.ext.filter.impl
Class FileFilter

java.lang.Object
  extended by org.exoplatform.webui.ext.filter.impl.FileFilter
All Implemented Interfaces:
UIExtensionFilter

public class FileFilter
extends Object
implements UIExtensionFilter

Created by The eXo Platform SARL Author : Dang Van Minh minh.dang@exoplatform.com Aug 18, 2009 7:08:32 AM


Field Summary
protected  List<String> mimeTypes
           
 
Constructor Summary
FileFilter()
           
 
Method Summary
 boolean accept(Map<String,Object> context)
          Indicates whether the given context is accepted by this filter
 UIExtensionFilterType getType()
          Indicates the type of the current filter
 void onDeny(Map<String,Object> context)
          Allows to execute some code when the filter rejects the given context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mimeTypes

protected List<String> mimeTypes
Constructor Detail

FileFilter

public FileFilter()
Method Detail

accept

public boolean accept(Map<String,Object> context)
               throws Exception
Description copied from interface: UIExtensionFilter
Indicates whether the given context is accepted by this filter

Specified by:
accept in interface UIExtensionFilter
Parameters:
context - the context to check
Returns:
true if the context is accepted false otherwise
Throws:
Exception - if an error occurs

getType

public UIExtensionFilterType getType()
Description copied from interface: UIExtensionFilter
Indicates the type of the current filter

Specified by:
getType in interface UIExtensionFilter
Returns:
the type of the filter

onDeny

public void onDeny(Map<String,Object> context)
            throws Exception
Description copied from interface: UIExtensionFilter
Allows to execute some code when the filter rejects the given context

Specified by:
onDeny in interface UIExtensionFilter
Parameters:
context - the context
Throws:
Exception - if an error occurs


Copyright © 2013 eXo Platform SAS. All Rights Reserved.