Package org.apache.ofbiz.ldap
Class LdapLoginWorker
java.lang.Object
org.apache.ofbiz.ldap.LdapLoginWorker
Common LDAP Login Workers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkLogin
(HttpServletRequest request, HttpServletResponse response) An HTTP WebEvent handler that checks to see is a userLogin is logged in.protected static Element
getRootElement
(HttpServletRequest request) static String
login
(HttpServletRequest request, HttpServletResponse response) An HTTP WebEvent handler that logs in a userLogin.static String
logout
(HttpServletRequest request, HttpServletResponse response) An HTTP WebEvent handler that logs out a userLogin by clearing the session.
-
Constructor Details
-
LdapLoginWorker
protected LdapLoginWorker()
-
-
Method Details
-
checkLogin
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
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
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
-