1 package org.enhydra.shark.api.client.wfservice; 2 3 import org.enhydra.shark.api.client.wfbase.BaseException; 4 import org.enhydra.shark.api.UserTransaction; 5 6 13 14 public interface UserGroupAdministration { 15 16 22 void connect (String userId); 23 24 31 String [] getAllGroupnames () throws BaseException; 32 33 42 String [] getAllGroupnames (UserTransaction t) throws BaseException; 43 44 51 String [] getAllUsers () throws BaseException; 52 53 61 String [] getAllUsers (UserTransaction t) throws BaseException; 62 63 71 String [] getAllUsers (String groupName) throws BaseException; 72 73 82 String [] getAllUsers (UserTransaction t, String groupName) throws BaseException; 83 84 92 String [] getAllUsers (String [] groupNames) throws BaseException; 93 94 103 String [] getAllUsers (UserTransaction t, String [] groupNames) throws BaseException; 104 105 114 String [] getAllImmediateUsers (String groupName) throws BaseException; 115 116 126 String [] getAllImmediateUsers (UserTransaction t, String groupName) throws BaseException; 127 128 136 String [] getAllSubgroups (String groupName) throws BaseException; 137 138 147 String [] getAllSubgroups (UserTransaction t, String groupName) throws BaseException; 148 149 157 String [] getAllSubgroups (String [] groupNames) throws BaseException; 158 159 168 String [] getAllSubgroups (UserTransaction t, String [] groupNames) throws BaseException; 169 170 179 String [] getAllImmediateSubgroups (String groupName) throws BaseException; 180 181 191 String [] getAllImmediateSubgroups (UserTransaction t, String groupName) throws BaseException; 192 193 201 void createGroup (String groupName,String description) throws BaseException; 202 203 212 void createGroup (UserTransaction t, String groupName,String description) throws BaseException; 213 214 221 void removeGroup (String groupName) throws BaseException; 222 223 231 void removeGroup (UserTransaction t, String groupName) throws BaseException; 232 233 241 boolean doesGroupExist (String groupName) throws BaseException; 242 243 252 boolean doesGroupExist (UserTransaction t, String groupName) throws BaseException; 253 254 264 boolean doesGroupBelongToGroup (String groupName, String subgroupName) throws BaseException; 265 266 277 boolean doesGroupBelongToGroup (UserTransaction t, String groupName, String subgroupName) throws BaseException; 278 279 287 void updateGroup (String groupName,String description) throws BaseException; 288 289 298 void updateGroup (UserTransaction t, String groupName,String description) throws BaseException; 299 300 308 void addGroupToGroup (String groupName,String subgroupName) throws BaseException; 309 310 319 void addGroupToGroup (UserTransaction t, String groupName,String subgroupName) throws BaseException; 320 321 329 void removeGroupFromGroup (String groupName,String subgroupName) throws BaseException; 330 331 340 void removeGroupFromGroup (UserTransaction t, String groupName,String subgroupName) throws BaseException; 341 342 350 void removeGroupTree (String groupName) throws BaseException; 351 352 361 void removeGroupTree (UserTransaction t, String groupName) throws BaseException; 362 363 371 void removeUsersFromGroupTree (String groupName) throws BaseException; 372 373 382 void removeUsersFromGroupTree (UserTransaction t,String groupName) throws BaseException; 383 384 394 void moveGroup (String currentParentGroup,String newParentGroup,String subgroupName) throws BaseException; 395 396 397 408 void moveGroup (UserTransaction t,String currentParentGroup,String newParentGroup,String subgroupName) throws BaseException; 409 410 418 String getGroupDescription (String groupName) throws BaseException; 419 420 429 String getGroupDescription (UserTransaction t, String groupName) throws BaseException; 430 431 439 void addUserToGroup (String groupName,String username) throws BaseException; 440 441 450 void addUserToGroup (UserTransaction t, String groupName,String username) throws BaseException; 451 452 460 void removeUserFromGroup (String groupName,String username) throws BaseException; 461 462 471 void removeUserFromGroup (UserTransaction t, String groupName,String username) throws BaseException; 472 473 483 void moveUser (String currentGroup,String newGroup,String username) throws BaseException; 484 485 496 void moveUser (UserTransaction t,String currentGroup,String newGroup,String username) throws BaseException; 497 498 508 boolean doesUserBelongToGroup (String groupName,String username) throws BaseException; 509 510 521 boolean doesUserBelongToGroup (UserTransaction t, String groupName,String username) throws BaseException; 522 523 541 void createUser (String groupName,String username, String password, String firstName, String lastName, String emailAddress) throws BaseException; 542 543 562 void createUser (UserTransaction t, String groupName,String username, String password, String firstName, String lastName, String emailAddress) throws BaseException; 563 564 572 void removeUser (String username) throws BaseException; 573 574 583 void removeUser (UserTransaction t, String username) throws BaseException; 584 585 597 void updateUser (String username, String firstName, String lastName, String emailAddress) throws BaseException; 598 599 612 void updateUser (UserTransaction t, String username, String firstName, String lastName, String emailAddress) throws BaseException; 613 614 622 void setPassword (String username,String password) throws BaseException; 623 624 633 void setPassword (UserTransaction t, String username,String password) throws BaseException; 634 635 643 boolean doesUserExist (String username) throws BaseException; 644 645 654 boolean doesUserExist (UserTransaction t, String username) throws BaseException; 655 656 665 String getUserRealName (String username) throws BaseException; 666 667 677 String getUserRealName (UserTransaction t, String username) throws BaseException; 678 679 680 688 String getUserFirstName (String username) throws BaseException; 689 690 699 String getUserFirstName (UserTransaction t,String username) throws BaseException; 700 701 709 String getUserLastName (String username) throws BaseException; 710 711 720 String getUserLastName (UserTransaction t,String username) throws BaseException; 721 722 731 String getUserEMailAddress (String username) throws BaseException; 732 733 743 String getUserEMailAddress (UserTransaction t, String username) throws BaseException; 744 745 } 746 | Popular Tags |