org.exoplatform.webui.ext.filter
Interface UIExtensionFilter

All Known Implementing Classes:
FileFilter, UIExtensionAbstractFilter, UIExtensionORFilter, UserACLFilter

public interface UIExtensionFilter

This class is used to add custom filters on an UI Extension in order to force the UIExtensionManager to hide the extension if the filter Created by The eXo Platform SAS Author : eXoPlatform nicolas.filotto@exoplatform.com May 04, 2009


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
 

Method Detail

accept

boolean accept(Map<String,Object> context)
               throws Exception
Indicates whether the given context is accepted by this filter

Parameters:
context - the context to check
Returns:
true if the context is accepted false otherwise
Throws:
Exception - if an error occurs

onDeny

void onDeny(Map<String,Object> context)
            throws Exception
Allows to execute some code when the filter rejects the given context

Parameters:
context - the context
Throws:
Exception - if an error occurs

getType

UIExtensionFilterType getType()
Indicates the type of the current filter

Returns:
the type of the filter


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.