1 16 17 package org.apache.jetspeed.services.security.nosecurity; 18 19 import java.util.Iterator ; 20 import java.util.Vector ; 21 import java.util.HashMap ; 22 23 import org.apache.jetspeed.services.security.GroupManagement; 25 26 import org.apache.jetspeed.om.security.Group; 27 import org.apache.jetspeed.om.security.BaseJetspeedGroup; 28 29 import org.apache.jetspeed.services.security.JetspeedSecurityException; 31 32 import org.apache.turbine.services.TurbineBaseService; 34 35 44 public class NoGroupManagement 45 extends TurbineBaseService 46 implements GroupManagement 47 { 48 59 public Iterator getGroups(String username) 60 throws JetspeedSecurityException 61 { 62 return new Vector ().iterator(); 63 } 64 65 75 public Iterator getGroups() 76 throws JetspeedSecurityException 77 { 78 return new Vector ().iterator(); 79 } 80 81 90 public void addGroup(Group group) 91 throws JetspeedSecurityException 92 { 93 } 94 95 104 public void saveGroup(Group group) 105 throws JetspeedSecurityException 106 { 107 } 108 109 119 public void removeGroup(String groupname) 120 throws JetspeedSecurityException 121 { 122 } 123 124 133 public void joinGroup(String username, String groupname) 134 throws JetspeedSecurityException 135 { 136 } 137 138 147 public void joinGroup(String username, String groupname, String rolename) 148 throws JetspeedSecurityException 149 { 150 } 151 152 161 public void unjoinGroup(String username, String groupname) 162 throws JetspeedSecurityException 163 { 164 } 165 166 175 176 public void unjoinGroup(String username, String groupname, String rolename) 177 throws JetspeedSecurityException 178 { 179 } 180 181 182 191 public boolean inGroup(String username, String groupname) 192 throws JetspeedSecurityException 193 { 194 return false; 195 } 196 197 208 public Group getGroup(String groupname) 209 throws JetspeedSecurityException 210 { 211 BaseJetspeedGroup r = new BaseJetspeedGroup(); 212 r.setName(groupname); 214 r.setId(groupname); 215 return r; 216 } 217 218 228 public HashMap getTurbineGroupRole(String username) 229 throws JetspeedSecurityException 230 { 231 HashMap h = new HashMap (); 232 return h; 233 } 234 } 235 236 | Popular Tags |