| java.lang.Object org.enhydra.shark.ws.UserGroupManagerAdminWrapper
All known Subclasses: org.enhydra.shark.ejb.UserGroupManagerAdminEJBBean,
UserGroupManagerAdminWrapper | public class UserGroupManagerAdminWrapper implements UserGroupManagerAdmin(Code) | | author: V.Puskas author: S.Bojanic author: T.Jovanovic version: 0.1 |
Method Summary | |
public void | addGroupToGroup(String groupName, String subgroupName) | public void | addUserToGroup(String groupName, String username) | public void | configure(CallbackUtilities cus) | public void | createGroup(String groupName, String description) | public void | createUser(String groupName, String username, String password, String firstName, String lastName, String emailAddress) | public boolean | doesGroupBelongToGroup(WMSessionHandle shandle, String groupName, String subgroupName) Parameters: groupName - name of the given group. Parameters: subgroupName - name of the given subgroup. | public boolean | doesGroupExist(WMSessionHandle shandle, String groupName) Parameters: groupName - name of the given group. | public boolean | doesUserBelongToGroup(WMSessionHandle shandle, String groupName, String username) Parameters: groupName - name of the given group. Parameters: username - username used to uniquely identify shark user. | public boolean | doesUserExist(WMSessionHandle shandle, String username) Parameters: username - username of the shark user. | public String[] | getAllGroupnames(WMSessionHandle shandle) | public String[] | getAllGroupnamesForUser(WMSessionHandle shandle, String userName) Parameters: userName - name of the given user. | public String[] | getAllImmediateSubgroupsForGroup(WMSessionHandle shandle, String groupName) Parameters: groupName - name of the given group. | public String[] | getAllImmediateUsersForGroup(WMSessionHandle shandle, String groupName) Parameters: groupName - name of the given group. | public String[] | getAllSubgroupsForGroups(WMSessionHandle shandle, String[] groupNames) Parameters: groupNames - names of the given groups. | public String[] | getAllUsers(WMSessionHandle shandle) | public String[] | getAllUsersForGroups(WMSessionHandle shandle, String[] groupNames) Parameters: groupNames - names of the given groups. | public String | getGroupDescription(WMSessionHandle shandle, String groupName) Parameters: groupName - name of the given group. | public String[] | getGroups(WMSessionHandle sessionHandle, String expression) | public String[] | getObjects(WMSessionHandle sessionHandle, String expression) | protected UserGroupManagerAdmin | getSharkObject() | public String | getUserEMailAddress(WMSessionHandle shandle, String username) Parameters: username - username of the shark user. | public String | getUserFirstName(WMSessionHandle shandle, String username) Parameters: username - username of the shark user. | public String | getUserLastName(WMSessionHandle shandle, String username) Parameters: username - username of the shark user. | public String | getUserPassword(WMSessionHandle shandle, String username) Parameters: username - username of the shark user. | public String | getUserRealName(WMSessionHandle shandle, String username) Parameters: username - username of the shark user. | public void | moveGroup(String currentParentGroup, String newParentGroup, String subgroupName) | public void | moveUser(String currentGroup, String newGroup, String username) | public void | removeGroup(String groupName) | public void | removeGroupFromGroup(String groupName, String subgroupName) | public void | removeGroupTree(String groupName) | public void | removeUser(String username) | public void | removeUserFromGroup(String groupName, String username) | public void | removeUsersFromGroupTree(String groupName) | public void | setPassword(String username, String password) | public void | updateGroup(String groupName, String description) | public void | updateUser(String username, String firstName, String lastName, String emailAddress) | public boolean | validateUser(String username, String pwd) Parameters: username - user name. Parameters: pwd - user password. |
addGroupToGroup | public void addGroupToGroup(String groupName, String subgroupName) throws Exception(Code) | | 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) | | 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) | | Parameters: cus - an instance of CallbackUtilities used to get properties for configuringuserg roup manager in Shark. exception: Exception - Thrown if configuring doesn't succeed. |
createGroup | public void createGroup(String groupName, String description) throws Exception(Code) | | 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) | | Parameters: groupName - groupName used to uniquely identify group -this parameter is mandatory. Parameters: username - username used to uniquely identify user -this parameter is mandatory. 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 withgiven username already exists). |
doesGroupBelongToGroup | public boolean doesGroupBelongToGroup(WMSessionHandle shandle, String groupName, String subgroupName) throws Exception(Code) | | 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) | | 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) | | 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) | | Parameters: username - username of the shark user. true if the user with the given username exists, otherwise false. throws: Exception - If something unexpected happens. |
getAllGroupnamesForUser | public String[] getAllGroupnamesForUser(WMSessionHandle shandle, String userName) throws Exception(Code) | | 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) | | 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) | | 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. |
getAllSubgroupsForGroups | public String[] getAllSubgroupsForGroups(WMSessionHandle shandle, String[] groupNames) throws Exception(Code) | | Parameters: groupNames - names of the given groups. List of all groups that belong to the given groups. throws: Exception - If something unexpected happens. |
getAllUsersForGroups | public String[] getAllUsersForGroups(WMSessionHandle shandle, String[] groupNames) throws Exception(Code) | | Parameters: groupNames - names of the given groups. List of all users that belong to given groups. throws: Exception - If something unexpected happens. |
moveGroup | public void moveGroup(String currentParentGroup, String newParentGroup, String subgroupName) throws Exception(Code) | | 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) | | 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. |
removeGroup | public void removeGroup(String groupName) throws Exception(Code) | | Parameters: groupName - name of the given group. throws: Exception - If something unexpected happens. |
removeGroupFromGroup | public void removeGroupFromGroup(String groupName, String subgroupName) throws Exception(Code) | | 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) | | Parameters: groupName - name of the given group. throws: Exception - If something unexpected happens. |
removeUser | public void removeUser(String username) throws Exception(Code) | | Parameters: username - username used to uniquely identify user. throws: Exception - If something unexpected happens (i.e the user withgiven username does not exist, or this is a user that can't be removed). |
removeUserFromGroup | public void removeUserFromGroup(String groupName, String username) throws Exception(Code) | | 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) | | Parameters: groupName - name of the given group. throws: Exception - If something unexpected happens. |
setPassword | public void setPassword(String username, String password) throws Exception(Code) | | 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) | | 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) | | Parameters: username - username used to uniquely identify user -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 withgiven username does not exist). |
validateUser | public boolean validateUser(String username, String pwd) throws Exception(Code) | | Parameters: username - user name. Parameters: pwd - user password. true if user is validated, otherwise false. exception: Exception - If something unexpected happens. |
|
|