Class LdapLoginWorker

java.lang.Object
org.apache.ofbiz.ldap.LdapLoginWorker

public final class LdapLoginWorker extends Object
Common LDAP Login Workers
  • Constructor Details

    • LdapLoginWorker

      protected LdapLoginWorker()
  • Method Details

    • checkLogin

      public static String checkLogin(HttpServletRequest request, HttpServletResponse response)
      An HTTP WebEvent handler that checks to see is a userLogin is logged in. If not, the user is forwarded to the login page.
      Parameters:
      request - The HTTP request object for the current JSP or Servlet request.
      response - The HTTP response object for the current JSP or Servlet request.
      Returns:
      String
    • login

      public static String login(HttpServletRequest request, HttpServletResponse response)
      An HTTP WebEvent handler that logs in a userLogin. This should run before the security check.
      Parameters:
      request - The HTTP request object for the current JSP or Servlet request.
      response - The HTTP response object for the current JSP or Servlet request.
      Returns:
      Return a boolean which specifies whether or not the calling Servlet or JSP should generate its own content. This allows an event to override the default content.
    • logout

      public static String logout(HttpServletRequest request, HttpServletResponse response)
      An HTTP WebEvent handler that logs out a userLogin by clearing the session.
      Parameters:
      request - The HTTP request object for the current request.
      response - The HTTP response object for the current request.
      Returns:
      Return a boolean which specifies whether or not the calling request should generate its own content. This allows an event to override the default content.
    • getRootElement

      protected static Element getRootElement(HttpServletRequest request)