1 package org.apache.turbine.util.security; 2 3 18 19 import java.io.Serializable ; 20 21 import org.apache.turbine.om.security.Group; 22 import org.apache.turbine.om.security.Permission; 23 import org.apache.turbine.om.security.Role; 24 25 38 public interface AccessControlList 39 extends Serializable 40 { 41 42 public static final java.lang.String SESSION_KEY = "turbine.AccessControlList"; 43 44 50 RoleSet getRoles(Group group); 51 52 57 RoleSet getRoles(); 58 59 65 PermissionSet getPermissions(Group group); 66 67 72 PermissionSet getPermissions(); 73 74 81 boolean hasRole(Role role, Group group); 82 83 92 boolean hasRole(Role role, GroupSet groupset); 93 94 101 boolean hasRole(String role, String group); 102 103 112 boolean hasRole(String rolename, GroupSet groupset); 113 114 120 boolean hasRole(Role role); 121 122 128 boolean hasRole(String role); 129 130 137 boolean hasPermission(Permission permission, Group group); 138 139 148 boolean hasPermission(Permission permission, GroupSet groupset); 149 150 157 boolean hasPermission(String permission, String group); 158 159 166 boolean hasPermission(String permission, Group group); 167 168 177 boolean hasPermission(String permissionName, GroupSet groupset); 178 179 185 boolean hasPermission(Permission permission); 186 187 193 boolean hasPermission(String permission); 194 195 205 Group[] getAllGroups(); 206 } 207 | Popular Tags |