net.sf.click.extras.security
Class RoleAccessController

java.lang.Object
  extended bynet.sf.click.extras.security.RoleAccessController
All Implemented Interfaces:
AccessController

public class RoleAccessController
extends Object
implements AccessController

Provides a Role based access controller class. This access controller uses the JEE servlet container to determine whether an authenticated user has access to a specified role.

Author:
Malcolm Edgar

Constructor Summary
RoleAccessController()
           
 
Method Summary
 boolean hasAccess(HttpServletRequest request, String role)
          Return true if the user is in the specified security access role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleAccessController

public RoleAccessController()
Method Detail

hasAccess

public boolean hasAccess(HttpServletRequest request,
                         String role)
Return true if the user is in the specified security access role.

Specified by:
hasAccess in interface AccessController
Parameters:
request - the user request
role - the security access role to check
Returns:
true if the user is in the specified role
See Also:
AccessController.hasAccess(HttpServletRequest, String)