Package com.logicaldoc.web.service
Class LoginServiceImpl
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
com.logicaldoc.web.service.LoginServiceImpl
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,LoginService,jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class LoginServiceImpl
extends com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
implements LoginService
Implementation of the
LoginService- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.login.client.services.LoginService
LoginService.Instance -
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangePassword(long userId, String oldPassword, String newPassword) Changes the password of a uservoidconfirmLegal(String username, String legal) Confirms the reading and understanding of a specific legalgeneratePassword(String username) Generates a password using the configured policies.getLegalsToConfirm(String username) Returns the legals the current user is required to confirmbooleanisSecretKeyRequired(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.jakarta.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
doPostMethods inherited from class jakarta.servlet.http.HttpServlet
serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
LoginServiceImpl
public LoginServiceImpl()
-
-
Method Details
-
changePassword
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:
- 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
-
getUser
- 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
-
isSecretKeyRequired
Description copied from interface:LoginServiceCheck if a secret key must be provided by the user- Specified by:
isSecretKeyRequiredin interfaceLoginService- Parameters:
username- the username trying to logindeviceId- 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
-
generatePassword
Description copied from interface:LoginServiceGenerates a password using the configured policies.- Specified by:
generatePasswordin interfaceLoginService- Parameters:
username- the current user- Returns:
- the generated password
-
getLegalsToConfirm
Description copied from interface:LoginServiceReturns the legals the current user is required to confirm- Specified by:
getLegalsToConfirmin interfaceLoginService- Parameters:
username- The user to check- Returns:
- The legals (name-title)
- Throws:
ServerException- Error retrieving the legals information
-
confirmLegal
Description copied from interface:LoginServiceConfirms the reading and understanding of a specific legal- Specified by:
confirmLegalin interfaceLoginService- Parameters:
username- The user that takes the actionlegal- The name of the legal to confirm- Throws:
ServerException- Error marking the legal as read
-