|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.CmsWorkplace
org.opencms.workplace.CmsLoginHelper
public class CmsLoginHelper
Handles front-end login of users to the OpenCms workplace into the given site and project.
Field Summary |
---|
Constructor Summary | |
---|---|
CmsLoginHelper(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
---|---|
protected void |
checkRole()
Checks that the current user is a workplace user. |
CmsException |
getLoginException()
Returns the loginException. |
java.lang.String |
getStacktrace()
Returns the formatted stack trace. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
boolean |
login(java.lang.String userName,
java.lang.String password,
java.lang.String projectName,
java.lang.String siteRoot,
java.lang.String resourceName)
Logs the user into the given project and site. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsLoginHelper(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page contextreq
- the JSP requestres
- the JSP responseMethod Detail |
---|
public CmsException getLoginException()
public java.lang.String getStacktrace()
public boolean login(java.lang.String userName, java.lang.String password, java.lang.String projectName, java.lang.String siteRoot, java.lang.String resourceName)
Check the getLoginException()
for the error message.
userName
- the user namepassword
- the passwordprojectName
- the optional project name, if null
the default project is usedsiteRoot
- the site of the resource, if null
the default site is usedresourceName
- the resource to display
true
if the login has been successfulprotected void checkRole()
CmsWorkplace
checkRole
in class CmsWorkplace
CmsWorkplace.checkRole()
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsWorkplace
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |