1 package org.enhydra.shark.api.internal.usergroup; 2 3 import org.enhydra.shark.api.RootException; 4 import org.enhydra.shark.api.UserTransaction; 5 import org.enhydra.shark.api.internal.working.CallbackUtilities; 6 7 import java.util.List ; 8 9 15 public interface UserGroupManager { 16 17 26 void configure (CallbackUtilities cus) throws RootException; 27 28 36 List getAllGroupnames (UserTransaction t) throws RootException; 37 38 46 List getAllUsers (UserTransaction t) throws RootException; 47 48 57 List getAllUsers (UserTransaction t,String groupName) throws RootException; 58 59 68 List getAllUsers (UserTransaction t,List groupNames) throws RootException; 69 70 80 List getAllImmediateUsers (UserTransaction t,String groupName) throws RootException; 81 82 91 List getAllSubgroups (UserTransaction t, String groupName) throws RootException; 92 93 102 List getAllSubgroups (UserTransaction t, List groupNames) throws RootException; 103 104 114 List getAllImmediateSubgroups (UserTransaction t, String groupName) throws RootException; 115 116 125 void createGroup (UserTransaction t,String groupName,String description) throws RootException; 126 127 135 void removeGroup (UserTransaction t,String groupName) throws RootException; 136 137 146 boolean doesGroupExist (UserTransaction t,String groupName) throws RootException; 147 148 159 boolean doesGroupBelongToGroup (UserTransaction t,String groupName, String subgroupName) throws RootException; 160 161 170 void updateGroup (UserTransaction t,String groupName,String description) throws RootException; 171 172 181 void addGroupToGroup (UserTransaction t,String groupName,String subgroupName) throws RootException; 182 183 192 void removeGroupFromGroup (UserTransaction t,String groupName,String subgroupName) throws RootException; 193 194 203 void removeGroupTree (UserTransaction t,String groupName) throws RootException; 204 205 214 void removeUsersFromGroupTree (UserTransaction t,String groupName) throws RootException; 215 216 227 void moveGroup (UserTransaction t,String currentParentGroup,String newParentGroup,String subgroupName) throws RootException; 228 229 238 String getGroupDescription (UserTransaction t,String groupName) throws RootException; 239 240 249 void addUserToGroup (UserTransaction t,String groupName,String username) throws RootException; 250 251 260 void removeUserFromGroup (UserTransaction t,String groupName,String username) throws RootException; 261 262 273 void moveUser (UserTransaction t,String currentGroup,String newGroup,String username) throws RootException; 274 275 286 boolean doesUserBelongToGroup (UserTransaction t,String groupName,String username) throws RootException; 287 288 307 void createUser (UserTransaction t,String groupName,String username, String password, String firstName, String lastName, String emailAddress) throws RootException; 308 309 322 void updateUser (UserTransaction t,String username,String firstName, String lastName,String emailAddress) throws RootException; 323 324 333 void removeUser (UserTransaction t,String username) throws RootException; 334 335 344 boolean doesUserExist (UserTransaction t,String username) throws RootException; 345 346 355 void setPassword (UserTransaction t,String username,String password) throws RootException; 356 357 367 String getUserRealName (UserTransaction t,String username) throws RootException; 368 369 378 String getUserFirstName (UserTransaction t,String username) throws RootException; 379 380 389 String getUserLastName (UserTransaction t,String username) throws RootException; 390 391 401 String getUserEMailAddress (UserTransaction t,String username) throws RootException; 402 403 } 404 | Popular Tags |