1 9 package org.jboss.portal.core.security; 10 11 import java.util.Set ; 12 import java.util.Collections ; 13 14 21 public interface AuthorizationRealm 22 { 23 24 String ANONYMOUS_ROLE = "".intern(); 25 26 27 Set ANONYMOUS_ROLE_SET = Collections.singleton(ANONYMOUS_ROLE); 28 29 32 boolean hasPermission(String domain, String role, String permission); 33 34 37 boolean hasPermission(String domain, Set roles, String permission); 38 39 42 boolean hasPermission(String domain, String role, String [] path, String permission); 43 44 47 boolean hasPermission(String domain, Set roles, String [] path, String permission); 48 49 52 boolean hasPermission(String role, String permission); 53 54 57 boolean hasPermission(Set roles, String permission); 58 59 62 boolean hasPermission(String role, String [] path, String permission); 63 64 67 boolean hasPermission(Set roles, String [] path, String permission); 68 } 69 | Popular Tags |