1 16 17 package org.apache.jetspeed.services.security; 18 19 import java.util.Iterator ; 20 21 import org.apache.turbine.services.Service; 22 import org.apache.jetspeed.om.security.Permission; 23 24 33 34 public interface PermissionManagement extends Service 35 { 36 public String SERVICE_NAME = "PermissionManagement"; 37 38 49 Iterator getPermissions(String rolename) 50 throws JetspeedSecurityException; 51 52 62 Iterator getPermissions() 63 throws JetspeedSecurityException; 64 65 74 void addPermission(Permission permission) 75 throws JetspeedSecurityException; 76 77 86 void savePermission(Permission permission) 87 throws JetspeedSecurityException; 88 89 99 void removePermission(String permissionName) 100 throws JetspeedSecurityException; 101 102 113 void grantPermission(String roleName, String permissionName) 114 throws JetspeedSecurityException; 115 116 127 void revokePermission(String roleName, String permissionName) 128 throws JetspeedSecurityException; 129 130 141 boolean hasPermission(String roleName, String permissionName) 142 throws JetspeedSecurityException; 143 144 155 Permission getPermission(String permissionName) 156 throws JetspeedSecurityException; 157 158 } 159 160 161 162 163 164 165 166 167 168 169 | Popular Tags |