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
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.logicaldoc.gui.login.client.services.LoginServiceLoginService.Instance
 
- 
 - 
Constructor SummaryConstructors Constructor Description LoginServiceImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GUIValuechangePassword(long userId, String oldPassword, String newPassword)Changes the password of a userGUIUsergetUser(String username)booleanisSecretKeyRequired(String username, String deviceId)Check if a secret key must be provided by the uservoidresetPassword(String username, String emailAddress, String productName)Reset the password for the given email.- 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServletgetSerializationPolicy, init, processCall, processCall, processPost
 
- 
 
- 
- 
- 
Method Detail- 
changePasswordpublic GUIValue changePassword(long userId, String oldPassword, String newPassword) Description copied from interface:LoginServiceChanges the password of a user- Specified by:
- changePasswordin interface- LoginService
- Parameters:
- userId- The user Identifier
- oldPassword- can be null or is the old password
- newPassword- the new password
- Returns:
- the error code and message. 0 if all went ok, 1 if the password is incorrect, 2 if the new password cannot be notified, 3 if the password has been already used, otherwise a positive number grater than 3
 
 - 
getUserpublic GUIUser getUser(String username) - Specified by:
- getUserin interface- LoginService
 
 - 
resetPasswordpublic void resetPassword(String username, String emailAddress, String productName) throws ServerException Description copied from interface:LoginServiceReset the password for the given email.- Specified by:
- resetPasswordin interface- LoginService
- Parameters:
- username- the username for which reset password
- emailAddress- the email for which reset password
- productName- the application product name
- Throws:
- ServerException- error in the server application
 
 - 
isSecretKeyRequiredpublic boolean isSecretKeyRequired(String username, String deviceId) throws ServerException Description copied from interface:LoginServiceCheck if a secret key must be provided by the user- Specified by:
- isSecretKeyRequiredin interface- LoginService
- Parameters:
- username- the username trying to login
- deviceId- identifier of the current device
- Returns:
- True only if the user must provide the secret key
- Throws:
- ServerException- if the user is unexisting or any kind of server error
 
 
- 
 
-