Package com.logicaldoc.web.service
Class LoginServiceImpl
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
-
- com.google.gwt.user.server.rpc.RemoteServiceServlet
-
- com.logicaldoc.web.service.LoginServiceImpl
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,LoginService,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class LoginServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements LoginService
Implementation of theLoginService- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoginServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intchangePassword(long userId, String oldPassword, String newPassword)Changes the password of a userGUIUsergetUser(String username)voidresetPassword(String username, String emailAddress, String productName)Reset the password for the given email.-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
-
-
-
-
Method Detail
-
changePassword
public int changePassword(long userId, String oldPassword, String newPassword)Description copied from interface:LoginServiceChanges the password of a user- Specified by:
changePasswordin interfaceLoginService- 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
-
getUser
public GUIUser getUser(String username)
- Specified by:
getUserin interfaceLoginService
-
resetPassword
public void resetPassword(String username, String emailAddress, String productName) throws ServerException
Description copied from interface:LoginServiceReset the password for the given email.- Specified by:
resetPasswordin interfaceLoginService- 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
-
-