1 16 17 package org.apache.jetspeed.services.security; 18 19 import java.util.Iterator ; 20 21 import org.apache.jetspeed.om.security.Group; 22 import org.apache.turbine.services.Service; 23 24 33 34 public interface GroupManagement extends Service 35 { 36 public String SERVICE_NAME = "GroupManagement"; 37 38 public String DEFAULT_GROUP_NAME = "Jetspeed"; 39 40 51 Iterator getGroups(String username) 52 throws JetspeedSecurityException; 53 54 64 Iterator getGroups() 65 throws JetspeedSecurityException; 66 67 76 void addGroup(Group group) 77 throws JetspeedSecurityException; 78 79 88 void saveGroup(Group group) 89 throws JetspeedSecurityException; 90 91 101 void removeGroup(String groupname) 102 throws JetspeedSecurityException; 103 104 113 void joinGroup(String username, String groupname) 114 throws JetspeedSecurityException; 115 116 125 void joinGroup(String username, String groupname, String rolename) 126 throws JetspeedSecurityException; 127 128 137 void unjoinGroup(String username, String groupname) 138 throws JetspeedSecurityException; 139 140 149 void unjoinGroup(String username, String groupname, String rolename) 150 throws JetspeedSecurityException; 151 152 161 boolean inGroup(String username, String groupname) 162 throws JetspeedSecurityException; 163 164 175 Group getGroup(String groupname) 176 throws JetspeedSecurityException; 177 } 178 179 180 181 182 183 184 185 186 187 188 | Popular Tags |