net.sf.click.extras.security
Interface AccessController
- All Known Implementing Classes:
- RoleAccessController
- public interface AccessController
Provides an interface for controlling request access to security
resources. A security resource is an abstract term which may refer to a
role, permission or authority.
- Author:
- Malcolm Edgar
Method Summary |
boolean |
hasAccess(HttpServletRequest request,
String resource)
Return true if the user request has access to the specified security
resource (role, permission, authority). |
hasAccess
public boolean hasAccess(HttpServletRequest request,
String resource)
- Return true if the user request has access to the specified security
resource (role, permission, authority).
- Parameters:
request
- the user requestresource
- the security resource (role, permission, authority)
- Returns:
- true if the specified user request has access to the security
resource