Java Doc for DODSUserGroupManagerAdmin.java in  » Workflow-Engines » shark » org » enhydra » shark » usergroup » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » shark » org.enhydra.shark.usergroup 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.shark.usergroup.DODSUserGroupManagerAdmin

DODSUserGroupManagerAdmin
public class DODSUserGroupManagerAdmin implements UserGroupManagerAdmin(Code)
Used for managing users, groups and their relations.
author:
   Sasa Bojanic, Vladimir Puskas, Tanja Jovanovic
version:
   0.1




Method Summary
public  voidaddGroupToGroup(String groupName, String subgroupName)
     Adds an existing group subgroupName to the group groupName.
public  voidaddUserToGroup(String groupName, String username)
     Adds an existing user with a given username to the given group.
public  voidconfigure(CallbackUtilities cus)
     Method configure is called at Shark start up, to configure implementation of DODSUserGroupManager.
public  voidcreateGroup(String groupName, String description)
     Creates a new user group.
public  voidcreateUser(String groupName, String username, String password, String firstName, String lastName, String emailAddress)
     Allows administrator to create new user.
public  booleandoesGroupBelongToGroup(WMSessionHandle shandle, String groupName, String subgroupName)
     Returns true if group subgroupName is subgroup of group groupName.
Parameters:
  groupName - name of the given group.
Parameters:
  subgroupName - name of the given subgroup.
public  booleandoesGroupExist(WMSessionHandle shandle, String groupName)
     Returns true if user group with given name exists.
Parameters:
  groupName - name of the given group.
protected  booleandoesGroupExist(String groupName)
     Returns true if user group with given name exists.
Parameters:
  groupName - name of the given group.
public  booleandoesUserBelongToGroup(WMSessionHandle shandle, String groupName, String username)
     Returns true if the given user belongs to the given group.
Parameters:
  groupName - name of the given group.
Parameters:
  username - username used to uniquely identify shark user.
public  booleandoesUserExist(WMSessionHandle shandle, String username)
     Returns true if user with given username exists.
Parameters:
  username - username of the shark user.
protected  booleandoesUserExist(String username)
     Returns true if user with given username exists.
Parameters:
  username - username of the shark user.
public  String[]getAllGroupnames(WMSessionHandle shandle)
     Returns Ids of all user groups.
public  String[]getAllGroupnamesForUser(WMSessionHandle shandle, String userName)
     Returns Ids of all groups for the given user.
Parameters:
  userName - name of the given user.
public  String[]getAllImmediateSubgroupsForGroup(WMSessionHandle shandle, String groupName)
     Returns all groups that are immediate children of the given group (which are on the first level bellow the level of the given group).
Parameters:
  groupName - name of the given group.
public  String[]getAllImmediateUsersForGroup(WMSessionHandle shandle, String groupName)
     Returns all users that are immediate children of the given group.
Parameters:
  groupName - name of the given group.
protected  String[]getAllSubgroupsForGroup(WMSessionHandle shandle, String groupName)
     Returns all groups that belong to the given group.
Parameters:
  groupName - name of the given group.
public  String[]getAllSubgroupsForGroups(WMSessionHandle shandle, String[] groupNames)
     Returns all groups that belong to the given groups.
Parameters:
  groupNames - names of the given groups.
public  String[]getAllUsers(WMSessionHandle shandle)
     Returns Ids of all users.
protected  String[]getAllUsersForGroup(WMSessionHandle shandle, String groupName)
     Returns all usernames that belong to the given group.
Parameters:
  groupName - name of the given group.
public  String[]getAllUsersForGroups(WMSessionHandle shandle, String[] groupNames)
     Returns all users that belong to the given groups.
Parameters:
  groupNames - names of the given groups.
protected  DBTransactiongetDBTransaction()
    
public  StringgetGroupDescription(WMSessionHandle shandle, String groupName)
     Returns a group description.
Parameters:
  groupName - name of the given group.
public  String[]getGroups(WMSessionHandle sessionHandle, String expression)
    
public  String[]getObjects(WMSessionHandle sessionHandle, String expression)
    
public  StringgetUserEMailAddress(WMSessionHandle shandle, String username)
     Returns string representing email address for the user with the given username.
Parameters:
  username - username of the shark user.
public  StringgetUserFirstName(WMSessionHandle shandle, String username)
     Returns string representing user's first name.
Parameters:
  username - username of the shark user.
public  StringgetUserLastName(WMSessionHandle shandle, String username)
     Returns string representing user's last name.
Parameters:
  username - username of the shark user.
public  StringgetUserPassword(WMSessionHandle shandle, String username)
    
public  StringgetUserRealName(WMSessionHandle shandle, String username)
     Returns string representing the real name for the shark user with the given username (first and last name).
Parameters:
  username - username of the shark user.
public  voidmoveGroup(String currentParentGroup, String newParentGroup, String subgroupName)
     Moves group subgroupName from the group currentParentGroup to group newParentGroup.
public  voidmoveUser(String currentGroup, String newGroup, String username)
     Moves user username from the group currentGroup to group newGroup.
protected  voidrefreshDOCaches()
    
public  voidremoveGroup(String groupName)
     Removes user group.
public  voidremoveGroupFromGroup(String groupName, String subgroupName)
     Removes group subgroupName from the group groupName.
public  voidremoveGroupTree(String groupName)
     Deletes group groupName and all its child groups that don't belong to any other group except this one.
public  voidremoveUser(String username)
     Allows administrator to remove the user.
public  voidremoveUserFromGroup(String groupName, String username)
     Removes the user from the group.
public  voidremoveUsersFromGroupTree(String groupName)
     Removes all users from group group that don't belong to any other group except this one.
protected  voidsetLDBName()
    
public  voidsetPassword(String username, String password)
     Sets user password.
public  voidupdateGroup(String groupName, String description)
     Allows administrator to update data about group.
public  voidupdateUser(String username, String firstName, String lastName, String emailAddress)
     Allows administrator to update data about user.
public  booleanvalidateUser(String username, String password)
     Validates user.
Parameters:
  username - user name.
Parameters:
  password - user password.



Method Detail
addGroupToGroup
public void addGroupToGroup(String groupName, String subgroupName) throws Exception(Code)
Adds an existing group subgroupName to the group groupName.
Parameters:
  groupName - name of the given group.
Parameters:
  subgroupName - name of the given subgroup to be added.
throws:
  Exception - If something unexpected happens.



addUserToGroup
public void addUserToGroup(String groupName, String username) throws Exception(Code)
Adds an existing user with a given username to the given group.
Parameters:
  groupName - name of the given group.
Parameters:
  username - username used to uniquely identify shark user.
throws:
  Exception - If something unexpected happens.



configure
public void configure(CallbackUtilities cus) throws Exception(Code)
Method configure is called at Shark start up, to configure implementation of DODSUserGroupManager.
Parameters:
  cus - an instance of CallbackUtilities used to get properties for configuringuser group manager in Shark.
exception:
  Exception - thrown if configuring doesn't succeed.



createGroup
public void createGroup(String groupName, String description) throws Exception(Code)
Creates a new user group.
Parameters:
  groupName - name of the given group.
Parameters:
  description - group description.
throws:
  Exception - If something unexpected happens.



createUser
public void createUser(String groupName, String username, String password, String firstName, String lastName, String emailAddress) throws Exception(Code)
Allows administrator to create new user. After its creation, the client application will always be able to log onto shark using username and password defined for the user.
Parameters:
  groupName - groupName used to uniquely identify group - this parameter ismandatory.
Parameters:
  username - username used to uniquely identify user - this parameter ismandatory.
Parameters:
  password - password used to authenticate - this parameter is mandatory.
Parameters:
  firstName - the user's first name.
Parameters:
  lastName - the user's last name.
Parameters:
  emailAddress - email address of the user.
throws:
  Exception - If something unexpected happens (i.e the user with given usernamealready exists).



doesGroupBelongToGroup
public boolean doesGroupBelongToGroup(WMSessionHandle shandle, String groupName, String subgroupName) throws Exception(Code)
Returns true if group subgroupName is subgroup of group groupName.
Parameters:
  groupName - name of the given group.
Parameters:
  subgroupName - name of the given subgroup. true if group subgroupName is subgroup of group groupName,otherwise false.
throws:
  Exception - If something unexpected happens.



doesGroupExist
public boolean doesGroupExist(WMSessionHandle shandle, String groupName) throws Exception(Code)
Returns true if user group with given name exists.
Parameters:
  groupName - name of the given group. true if user group exists, otherwise false.
throws:
  Exception - If something unexpected happens.



doesGroupExist
protected boolean doesGroupExist(String groupName) throws Exception(Code)
Returns true if user group with given name exists.
Parameters:
  groupName - name of the given group. true if user group exists, otherwise false.
throws:
  Exception - If something unexpected happens.



doesUserBelongToGroup
public boolean doesUserBelongToGroup(WMSessionHandle shandle, String groupName, String username) throws Exception(Code)
Returns true if the given user belongs to the given group.
Parameters:
  groupName - name of the given group.
Parameters:
  username - username used to uniquely identify shark user. true if the given user belongs to the given group, otherwise false.
throws:
  Exception - If something unexpected happens.



doesUserExist
public boolean doesUserExist(WMSessionHandle shandle, String username) throws Exception(Code)
Returns true if user with given username exists.
Parameters:
  username - username of the shark user. true if the user with the given username exists, otherwise false.
throws:
  Exception - If something unexpected happens.



doesUserExist
protected boolean doesUserExist(String username) throws Exception(Code)
Returns true if user with given username exists.
Parameters:
  username - username of the shark user. true if the user with the given username exists, otherwise false.
throws:
  Exception - If something unexpected happens.



getAllGroupnames
public String[] getAllGroupnames(WMSessionHandle shandle) throws Exception(Code)
Returns Ids of all user groups. List of user group Ids.
throws:
  Exception - If something unexpected happens.



getAllGroupnamesForUser
public String[] getAllGroupnamesForUser(WMSessionHandle shandle, String userName) throws Exception(Code)
Returns Ids of all groups for the given user.
Parameters:
  userName - name of the given user. List of all group ids for the given user.
throws:
  Exception - If something unexpected happens.



getAllImmediateSubgroupsForGroup
public String[] getAllImmediateSubgroupsForGroup(WMSessionHandle shandle, String groupName) throws Exception(Code)
Returns all groups that are immediate children of the given group (which are on the first level bellow the level of the given group).
Parameters:
  groupName - name of the given group. List of all groups that are immediate children of the given group.
throws:
  Exception - If something unexpected happens.



getAllImmediateUsersForGroup
public String[] getAllImmediateUsersForGroup(WMSessionHandle shandle, String groupName) throws Exception(Code)
Returns all users that are immediate children of the given group.
Parameters:
  groupName - name of the given group. List of all immediate (direct) users that belong to the given group.
throws:
  Exception - If something unexpected happens.



getAllSubgroupsForGroup
protected String[] getAllSubgroupsForGroup(WMSessionHandle shandle, String groupName) throws Exception(Code)
Returns all groups that belong to the given group.
Parameters:
  groupName - name of the given group. List of all groups that belong to the given group.
throws:
  Exception - If something unexpected happens.



getAllSubgroupsForGroups
public String[] getAllSubgroupsForGroups(WMSessionHandle shandle, String[] groupNames) throws Exception(Code)
Returns all groups that belong to the given groups.
Parameters:
  groupNames - names of the given groups. List of all groups that belong to the given groups.
throws:
  Exception - If something unexpected happens.



getAllUsers
public String[] getAllUsers(WMSessionHandle shandle) throws Exception(Code)
Returns Ids of all users. List of user Ids.
throws:
  Exception - If something unexpected happens.



getAllUsersForGroup
protected String[] getAllUsersForGroup(WMSessionHandle shandle, String groupName) throws Exception(Code)
Returns all usernames that belong to the given group.
Parameters:
  groupName - name of the given group. List of all usernames that belong to given group.
throws:
  Exception - If something unexpected happens.



getAllUsersForGroups
public String[] getAllUsersForGroups(WMSessionHandle shandle, String[] groupNames) throws Exception(Code)
Returns all users that belong to the given groups.
Parameters:
  groupNames - names of the given groups. List of all users that belong to given groups.
throws:
  Exception - If something unexpected happens.



getDBTransaction
protected DBTransaction getDBTransaction() throws Exception(Code)



getGroupDescription
public String getGroupDescription(WMSessionHandle shandle, String groupName) throws Exception(Code)
Returns a group description.
Parameters:
  groupName - name of the given group. Group description.
throws:
  Exception - If something unexpected happens.



getGroups
public String[] getGroups(WMSessionHandle sessionHandle, String expression) throws Exception(Code)



getObjects
public String[] getObjects(WMSessionHandle sessionHandle, String expression) throws Exception(Code)



getUserEMailAddress
public String getUserEMailAddress(WMSessionHandle shandle, String username) throws Exception(Code)
Returns string representing email address for the user with the given username.
Parameters:
  username - username of the shark user. Email of the shark user.
throws:
  Exception - If something unexpected happens.



getUserFirstName
public String getUserFirstName(WMSessionHandle shandle, String username) throws Exception(Code)
Returns string representing user's first name.
Parameters:
  username - username of the shark user. First name of the shark user.
throws:
  Exception - If something unexpected happens.



getUserLastName
public String getUserLastName(WMSessionHandle shandle, String username) throws Exception(Code)
Returns string representing user's last name.
Parameters:
  username - username of the shark user. Last name of the shark user.
throws:
  Exception - If something unexpected happens.



getUserPassword
public String getUserPassword(WMSessionHandle shandle, String username) throws Exception(Code)



getUserRealName
public String getUserRealName(WMSessionHandle shandle, String username) throws Exception(Code)
Returns string representing the real name for the shark user with the given username (first and last name).
Parameters:
  username - username of the shark user. Real name of the shark user.
throws:
  Exception - If something unexpected happens.



moveGroup
public void moveGroup(String currentParentGroup, String newParentGroup, String subgroupName) throws Exception(Code)
Moves group subgroupName from the group currentParentGroup to group newParentGroup.
Parameters:
  currentParentGroup - current group that contains group subgroupName.
Parameters:
  newParentGroup - new group where group subgroupName will be moved to.
Parameters:
  subgroupName - subgroup that will be moved.
throws:
  Exception - If something unexpected happens.



moveUser
public void moveUser(String currentGroup, String newGroup, String username) throws Exception(Code)
Moves user username from the group currentGroup to group newGroup.
Parameters:
  currentGroup - current group that contains the user.
Parameters:
  newGroup - new group where the user will be moved to.
Parameters:
  username - the user that will be moved.
throws:
  Exception - If something unexpected happens.



refreshDOCaches
protected void refreshDOCaches() throws Exception(Code)



removeGroup
public void removeGroup(String groupName) throws Exception(Code)
Removes user group.
Parameters:
  groupName - name of the given group.
throws:
  Exception - If something unexpected happens.



removeGroupFromGroup
public void removeGroupFromGroup(String groupName, String subgroupName) throws Exception(Code)
Removes group subgroupName from the group groupName.
Parameters:
  groupName - name of the given group.
Parameters:
  subgroupName - name of the given subgroup to be removed.
throws:
  Exception - If something unexpected happens.



removeGroupTree
public void removeGroupTree(String groupName) throws Exception(Code)
Deletes group groupName and all its child groups that don't belong to any other group except this one.
Parameters:
  groupName - name of the given group.
throws:
  Exception - If something unexpected happens.



removeUser
public void removeUser(String username) throws Exception(Code)
Allows administrator to remove the user.
Parameters:
  username - username used to uniquely identify user.
throws:
  Exception - If something unexpected happens (i.e the user with given usernamedoes not exist, or this is a user that can't be removed).



removeUserFromGroup
public void removeUserFromGroup(String groupName, String username) throws Exception(Code)
Removes the user from the group.
Parameters:
  groupName - name of the given group.
Parameters:
  username - username used to uniquely identify shark user.
throws:
  Exception - If something unexpected happens.



removeUsersFromGroupTree
public void removeUsersFromGroupTree(String groupName) throws Exception(Code)
Removes all users from group group that don't belong to any other group except this one.
Parameters:
  groupName - name of the given group.
throws:
  Exception - If something unexpected happens.



setLDBName
protected void setLDBName()(Code)



setPassword
public void setPassword(String username, String password) throws Exception(Code)
Sets user password.
Parameters:
  username - username of the shark user.
Parameters:
  password - new password of the shark user.
throws:
  Exception - If something unexpected happens.



updateGroup
public void updateGroup(String groupName, String description) throws Exception(Code)
Allows administrator to update data about group.
Parameters:
  groupName - name of the given group.
Parameters:
  description - group description.
throws:
  Exception - If something unexpected happens.



updateUser
public void updateUser(String username, String firstName, String lastName, String emailAddress) throws Exception(Code)
Allows administrator to update data about user.
Parameters:
  username - username used to uniquely identify user - this parameter ismandatory.
Parameters:
  firstName - the user's first name.
Parameters:
  lastName - the user's last name.
Parameters:
  emailAddress - email address of the user.
throws:
  Exception - If something unexpected happens (i.e the user with given usernamedoes not exist).



validateUser
public boolean validateUser(String username, String password) throws Exception(Code)
Validates user.
Parameters:
  username - user name.
Parameters:
  password - user password. true if user is validated, otherwise false.
exception:
  Exception - If something unexpected happens.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.