|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.gcube.portlets.admin.usersmanagementportlet.gwt.server.UsersManagementServlet
public class UsersManagementServlet
UsersManagement servlet
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
UsersManagementServlet()
Class constructor |
|
| Method Summary | |
|---|---|
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)
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 |
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 |
| Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
|---|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse |
| Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UsersManagementServlet()
| Method Detail |
|---|
public 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 UsersManagementService
public Boolean removeUsersFromVO(String[] users)
throws CurrentGroupRetrievalException,
RolesRetrievalException,
UserRemovalFailureException,
UserInfoRetrievalException
removeUsersFromVO in interface UsersManagementServiceusers - The users to be removed
CurrentGroupRetrievalException
RolesRetrievalException
UserRemovalFailureException
UserInfoRetrievalException
public Boolean denyRequests(String[] users)
throws CurrentGroupRetrievalException,
RolesRetrievalException,
UserRemovalFailureException,
UserInfoRetrievalException
denyRequests in interface UsersManagementServiceThe - list of users' requests to deny
CurrentGroupRetrievalException
RolesRetrievalException
UserRemovalFailureException
UserInfoRetrievalException
public Boolean addUsersToVO(ArrayList<String> users)
throws RolesRetrievalException,
UserInfoRetrievalException,
CurrentGroupRetrievalException,
GroupAssignmentException
addUsersToVO in interface UsersManagementServiceThe - users to be added
UserInfoRetrievalException
RolesRetrievalException
CurrentGroupRetrievalException
GroupAssignmentException
public Boolean addNewUsersToVO(ArrayList<String> users)
throws CurrentGroupRetrievalException
addNewUsersToVO in interface UsersManagementServiceusers - The users' username that will be added to the VO
CurrentGroupRetrievalException
public 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 user
public ArrayList<UserInfo> getUsersRequests()
throws PendingUsersRetrievalException
getUsersRequests in interface UsersManagementServicePendingUsersRetrievalException
public void sendEmailToRegisteredUsers(String subject,
String body)
throws CurrentGroupRetrievalException,
RegisteredUsersRetrievalException,
UserInfoRetrievalException
sendEmailToRegisteredUsers in interface UsersManagementServicesubject - The email's subjectbody - The email's body
CurrentGroupRetrievalException
RegisteredUsersRetrievalException
UserInfoRetrievalExceptionpublic void sendEmailWithErrorToSupport(Throwable caught)
sendEmailWithErrorToSupport in interface UsersManagementService
public Integer getNumberOfUserThatReceiveNots()
throws RegisteredUsersRetrievalException
getNumberOfUserThatReceiveNots in interface UsersManagementServiceRegisteredUsersRetrievalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||