1 package org.apache.fulcrum.security.util; 2 3 56 57 import java.io.Serializable ; 58 59 import org.apache.fulcrum.security.entity.Group; 60 import org.apache.fulcrum.security.entity.Permission; 61 import org.apache.fulcrum.security.entity.Role; 62 63 64 77 public interface AccessControlList 78 extends Serializable 79 { 80 81 public static final java.lang.String SESSION_KEY = "turbine.AccessControlList"; 82 83 89 RoleSet getRoles(Group group); 90 91 96 RoleSet getRoles(); 97 98 104 PermissionSet getPermissions(Group group); 105 106 111 PermissionSet getPermissions(); 112 113 120 boolean hasRole(Role role, Group group); 121 122 131 boolean hasRole(Role role, GroupSet groupset); 132 133 140 boolean hasRole(String role, String group); 141 142 151 boolean hasRole(String rolename, GroupSet groupset); 152 153 159 boolean hasRole(Role role); 160 161 167 boolean hasRole(String role); 168 169 176 boolean hasPermission(Permission permission, Group group); 177 178 187 boolean hasPermission(Permission permission, GroupSet groupset); 188 189 196 boolean hasPermission(String permission, String group); 197 198 205 boolean hasPermission(String permission, Group group); 206 207 216 boolean hasPermission(String permissionName, GroupSet groupset); 217 218 224 boolean hasPermission(Permission permission); 225 226 232 boolean hasPermission(String permission); 233 234 244 Group [] getAllGroups(); 245 246 } 247 | Popular Tags |