Interface LoginService
-
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
LoginServiceImpl
@RemoteServiceRelativePath("login") public interface LoginService extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Login Service. This service gives all needed methods to handle the login operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
changePassword(long userId, String oldPassword, String newPassword)
Changes the password of a userGUIUser
getUser(String username)
void
resetPassword(String username, String emailAddress, String productName)
Reset the password for the given email.
-
-
-
Method Detail
-
changePassword
int changePassword(long userId, String oldPassword, String newPassword)
Changes the password of a user- Parameters:
userId
- The user IdentifieroldPassword
- can be null or is the old passwordnewPassword
- the new password- Returns:
- 0 if all is ok, 1 if the password is incorrect, 2 if the new password cannot be notified, otherwise a positive number grater than 2
-
resetPassword
void resetPassword(String username, String emailAddress, String productName) throws ServerException
Reset the password for the given email.- Parameters:
username
- the username for which reset passwordemailAddress
- the email for which reset passwordproductName
- the application product name- Throws:
ServerException
- error in the server application
-
-