com.zeevbelkin.web.filter.access
Interface Yaaf.UserRoleResolver

Enclosing class:
Yaaf

public static interface Yaaf.UserRoleResolver

A class that implements a global role resolver should implements this interface.

 public class Resolver implements Yaaf.UserRoleResolver {
    public boolean isUserInRole(String user_id,String role) {
      return "role1".equals(role);
    }
     
     // Creates a new instance of Resolver 
    public Resolver(ServletContext  ctx) {
      ctx.log("**** Resolver has been created");
    }
 }
 


Method Summary
 boolean isUserInRole(java.lang.String user_id, java.lang.String role)
           
 

Method Detail

isUserInRole

boolean isUserInRole(java.lang.String user_id,
                     java.lang.String role)