public class UsersManagementServlet extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements UsersManagementService
| Constructor and Description |
|---|
UsersManagementServlet()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
addNewUsersToVO(ArrayList<String> users)
This method is invoked to add new Users to a VO.
|
Boolean |
addUsersToVO(ArrayList<String> users)
Add users to the current VO
|
Boolean |
denyRequests(String[] users,
boolean sendCustomMailToRejectedUsers)
Denies a list of requests from users for registration
|
ArrayList<UserInfo> |
getAllRegisteredUsers()
Returns all the users that are registered in VOMS.
|
String[] |
getAvailableRolesByCurrentGroup()
Returns the available roles of the current VO
|
Integer |
getNumberOfUserThatReceiveNots() |
ArrayList<UserInfo> |
getRegisteredUsersForaVO()
Returns all the users and their roles that are registered to the current VO
|
ArrayList<UserInfo> |
getUnregisteredUsersForVO()
Retrieves all the users that are registered to portal but are not registered to the current VO
|
ArrayList<UserInfo> |
getUsersRequests()
This method returns a hash map with key the username of the new user and value an array list with all the roles that this
user requests
|
Boolean |
removeUsersFromVO(String[] users)
Removes the users with the given username from the current VO
|
void |
sendEmail(ArrayList<String> emails,
String subject,
String body)
Sends an email with the given subject and body to all registered users of the current VO/VRE
|
void |
sendEmailToRegisteredUsers(String subject,
String body)
Sends an email with the given subject and body to all registered users of the current VO/VRE
|
void |
sendEmailWithErrorToSupport(Throwable caught) |
String |
updateUserRoles(String username,
String[][] rolesAndValues)
Update the user's roles
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic String[] getAvailableRolesByCurrentGroup()
getAvailableRolesByCurrentGroup in interface UsersManagementServicepublic ArrayList<UserInfo> getAllRegisteredUsers()
getAllRegisteredUsers in interface UsersManagementServicepublic ArrayList<UserInfo> getUnregisteredUsersForVO()
getUnregisteredUsersForVO in interface UsersManagementServicepublic ArrayList<UserInfo> getRegisteredUsersForaVO()
getRegisteredUsersForaVO in interface UsersManagementServicepublic Boolean removeUsersFromVO(String[] users) throws CurrentGroupRetrievalException, RolesRetrievalException, UserRemovalFailureException, UserInfoRetrievalException
removeUsersFromVO in interface UsersManagementServiceusers - The users to be removedCurrentGroupRetrievalExceptionRolesRetrievalExceptionUserRemovalFailureExceptionUserInfoRetrievalExceptionpublic Boolean denyRequests(String[] users, boolean sendCustomMailToRejectedUsers) throws CurrentGroupRetrievalException, RolesRetrievalException, UserRemovalFailureException, UserInfoRetrievalException
denyRequests in interface UsersManagementServiceThe - list of users' requests to denyCurrentGroupRetrievalExceptionRolesRetrievalExceptionUserRemovalFailureExceptionUserInfoRetrievalExceptionpublic Boolean addUsersToVO(ArrayList<String> users) throws RolesRetrievalException, UserInfoRetrievalException, CurrentGroupRetrievalException, GroupAssignmentException
addUsersToVO in interface UsersManagementServiceThe - users to be addedUserInfoRetrievalExceptionRolesRetrievalExceptionCurrentGroupRetrievalExceptionGroupAssignmentExceptionpublic Boolean addNewUsersToVO(ArrayList<String> users) throws CurrentGroupRetrievalException
addNewUsersToVO in interface UsersManagementServiceusers - The users' username that will be added to the VOCurrentGroupRetrievalExceptionpublic String updateUserRoles(String username, String[][] rolesAndValues)
updateUserRoles in interface UsersManagementServiceusername - User's usernamerolesAndValues - A 2-dimensional array with the roles names and the values for the specified userpublic ArrayList<UserInfo> getUsersRequests() throws PendingUsersRetrievalException
getUsersRequests in interface UsersManagementServicePendingUsersRetrievalExceptionpublic void sendEmailToRegisteredUsers(String subject, String body) throws CurrentGroupRetrievalException, RegisteredUsersRetrievalException, UserInfoRetrievalException
sendEmailToRegisteredUsers in interface UsersManagementServicesubject - The email's subjectbody - The email's bodyCurrentGroupRetrievalExceptionRegisteredUsersRetrievalExceptionUserInfoRetrievalExceptionpublic void sendEmail(ArrayList<String> emails, String subject, String body)
sendEmail in interface UsersManagementServicesubject - The email's subjectbody - The email's bodyCurrentGroupRetrievalExceptionRegisteredUsersRetrievalExceptionUserInfoRetrievalExceptionpublic void sendEmailWithErrorToSupport(Throwable caught)
sendEmailWithErrorToSupport in interface UsersManagementServicepublic Integer getNumberOfUserThatReceiveNots() throws RegisteredUsersRetrievalException
getNumberOfUserThatReceiveNots in interface UsersManagementServiceRegisteredUsersRetrievalExceptionCopyright © 2014. All Rights Reserved.