1 16 17 package org.apache.jetspeed.services.security.nosecurity; 18 19 import java.util.Iterator ; 20 import java.util.Vector ; 21 22 import org.apache.jetspeed.services.security.PermissionManagement; 24 25 import org.apache.jetspeed.om.security.Permission; 26 27 import org.apache.jetspeed.om.security.BaseJetspeedPermission; 28 29 import org.apache.jetspeed.services.security.JetspeedSecurityException; 31 32 import org.apache.turbine.services.TurbineBaseService; 34 35 44 public class NoPermissionManagement 45 extends TurbineBaseService 46 implements PermissionManagement 47 { 48 59 public Iterator getPermissions(String rolename) 60 throws JetspeedSecurityException 61 { 62 return new Vector ().iterator(); 63 } 64 65 75 public Iterator getPermissions() 76 throws JetspeedSecurityException 77 { 78 return new Vector ().iterator(); 79 } 80 81 90 public void addPermission(Permission permission) 91 throws JetspeedSecurityException 92 { 93 } 94 95 104 public void savePermission(Permission permission) 105 throws JetspeedSecurityException 106 { 107 } 108 109 119 public void removePermission(String permissionName) 120 throws JetspeedSecurityException 121 { 122 } 123 124 135 public void grantPermission(String roleName, String permissionName) 136 throws JetspeedSecurityException 137 { 138 } 139 140 151 public void revokePermission(String roleName, String permissionName) 152 throws JetspeedSecurityException 153 { 154 } 155 156 167 public boolean hasPermission(String roleName, String permissionName) 168 throws JetspeedSecurityException 169 { 170 return false; 171 } 172 173 184 public Permission getPermission(String permissionName) 185 throws JetspeedSecurityException 186 { 187 BaseJetspeedPermission r = new BaseJetspeedPermission(); 188 r.setName(permissionName); 190 r.setId(permissionName); 191 return r; 192 } 193 } 194 195 | Popular Tags |