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

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

public class UserACLFilter
extends Object
implements UIExtensionFilter

This filter is used to add some access permissions to a specific extension Created by The eXo Platform SAS Author : eXoPlatform nicolas.filotto@exoplatform.com 14 mai 2009


Field Summary
protected  List<String> permissions
          The list of all access permissions allowed
 
Constructor Summary
UserACLFilter()
           
 
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

permissions

protected List<String> permissions
The list of all access permissions allowed

Constructor Detail

UserACLFilter

public UserACLFilter()
Method Detail

accept

public boolean accept(Map<String,Object> context)
               throws Exception
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()
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
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.