Class 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 the LoginService
    Since:
    7.5
    Author:
    Marco Meschieri - LogicalDOC
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int changePassword​(long userId, String oldPassword, String newPassword)
      Changes the password of a user
      GUIUser getUser​(String username)  
      void resetPassword​(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
      • Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

        doPost
      • Methods inherited from class javax.servlet.http.HttpServlet

        service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • LoginServiceImpl

        public LoginServiceImpl()
    • Method Detail

      • changePassword

        public int changePassword​(long userId,
                                  String oldPassword,
                                  String newPassword)
        Description copied from interface: LoginService
        Changes the password of a user
        Specified by:
        changePassword in interface LoginService
        Parameters:
        userId - The user Identifier
        oldPassword - can be null or is the old password
        newPassword - 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

        public void resetPassword​(String username,
                                  String emailAddress,
                                  String productName)
                           throws ServerException
        Description copied from interface: LoginService
        Reset the password for the given email.
        Specified by:
        resetPassword in 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