org.gcube.portlets.admin.usersmanagementportlet.gwt.client.interfaces
Interface UsersManagementService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
UsersManagementServlet

public interface UsersManagementService
extends com.google.gwt.user.client.rpc.RemoteService

A RemoteService interface for the UsersManagement service following GWT RPC design

Author:
Panagiota Koltsida, NKUA

Method Summary
 Boolean addNewUsersToVO(ArrayList<String> users)
           
 Boolean addUsersToVO(ArrayList<String> users)
           
 Boolean denyRequests(String[] users, boolean sendCustomMailToRejectedUsers)
           
 ArrayList<UserInfo> getAllRegisteredUsers()
           
 String[] getAvailableRolesByCurrentGroup()
           
 Integer getNumberOfUserThatReceiveNots()
           
 ArrayList<UserInfo> getRegisteredUsersForaVO()
           
 ArrayList<UserInfo> getUnregisteredUsersForVO()
           
 ArrayList<UserInfo> getUsersRequests()
           
 Boolean removeUsersFromVO(String[] users)
           
 void sendEmail(ArrayList<String> emails, String subject, String body)
           
 void sendEmailToRegisteredUsers(String subject, String body)
           
 void sendEmailWithErrorToSupport(Throwable caught)
           
 String updateUserRoles(String username, String[][] rolesAndValues)
           
 

Method Detail

getAvailableRolesByCurrentGroup

String[] getAvailableRolesByCurrentGroup()

getAllRegisteredUsers

ArrayList<UserInfo> getAllRegisteredUsers()

getRegisteredUsersForaVO

ArrayList<UserInfo> getRegisteredUsersForaVO()

removeUsersFromVO

Boolean removeUsersFromVO(String[] users)
                          throws CurrentGroupRetrievalException,
                                 RolesRetrievalException,
                                 UserRemovalFailureException,
                                 UserInfoRetrievalException
Throws:
CurrentGroupRetrievalException
RolesRetrievalException
UserRemovalFailureException
UserInfoRetrievalException

denyRequests

Boolean denyRequests(String[] users,
                     boolean sendCustomMailToRejectedUsers)
                     throws CurrentGroupRetrievalException,
                            RolesRetrievalException,
                            UserRemovalFailureException,
                            UserInfoRetrievalException
Throws:
CurrentGroupRetrievalException
RolesRetrievalException
UserRemovalFailureException
UserInfoRetrievalException

updateUserRoles

String updateUserRoles(String username,
                       String[][] rolesAndValues)

getUnregisteredUsersForVO

ArrayList<UserInfo> getUnregisteredUsersForVO()

addUsersToVO

Boolean addUsersToVO(ArrayList<String> users)
                     throws RolesRetrievalException,
                            UserInfoRetrievalException,
                            CurrentGroupRetrievalException,
                            GroupAssignmentException
Throws:
RolesRetrievalException
UserInfoRetrievalException
CurrentGroupRetrievalException
GroupAssignmentException

getUsersRequests

ArrayList<UserInfo> getUsersRequests()
                                     throws PendingUsersRetrievalException
Throws:
PendingUsersRetrievalException

addNewUsersToVO

Boolean addNewUsersToVO(ArrayList<String> users)
                        throws CurrentGroupRetrievalException
Throws:
CurrentGroupRetrievalException

sendEmailToRegisteredUsers

void sendEmailToRegisteredUsers(String subject,
                                String body)
                                throws CurrentGroupRetrievalException,
                                       RegisteredUsersRetrievalException,
                                       UserInfoRetrievalException
Throws:
CurrentGroupRetrievalException
RegisteredUsersRetrievalException
UserInfoRetrievalException

getNumberOfUserThatReceiveNots

Integer getNumberOfUserThatReceiveNots()
                                       throws RegisteredUsersRetrievalException
Throws:
RegisteredUsersRetrievalException

sendEmailWithErrorToSupport

void sendEmailWithErrorToSupport(Throwable caught)

sendEmail

void sendEmail(ArrayList<String> emails,
               String subject,
               String body)


Copyright © 2013. All Rights Reserved.