org.exoplatform.webui.ext.filter.impl
Class FileFilter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mimeTypes
protected List<String> mimeTypes
FileFilter
public FileFilter()
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 © 2003-2013 eXo Platform SAS. All Rights Reserved.