1 9 package org.jboss.portal.core.security; 10 11 import java.util.Set ; 12 13 17 public class NullAuthorizationRealm implements AuthorizationRealm 18 { 19 20 public static final NullAuthorizationRealm instance = new NullAuthorizationRealm(); 21 22 public boolean hasPermission(String domain, String role, String permission) 23 { 24 return true; 25 } 26 27 public boolean hasPermission(String domain, Set roles, String permission) 28 { 29 return true; 30 } 31 32 public boolean hasPermission(String domain, String role, String [] path, String permission) 33 { 34 return true; 35 } 36 37 public boolean hasPermission(String domain, Set roles, String [] path, String permission) 38 { 39 return true; 40 } 41 42 public boolean hasPermission(String role, String permission) 43 { 44 return true; 45 } 46 47 public boolean hasPermission(Set roles, String permission) 48 { 49 return true; 50 } 51 52 public boolean hasPermission(String role, String [] path, String permission) 53 { 54 return true; 55 } 56 57 public boolean hasPermission(Set roles, String [] path, String permission) 58 { 59 return true; 60 } 61 } 62 | Popular Tags |