public class CmsLogin extends CmsJspLoginBean
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ACTION_DISPLAY
Action constant: Default action, display the dialog.
|
static int |
ACTION_LOGIN
Action constant: Login successful.
|
static int |
ACTION_LOGOUT
Action constant: Logout.
|
static java.lang.String |
PARAM_ACTION_GETOULIST
The parameter name for the "getoulist" action.
|
static java.lang.String |
PARAM_ACTION_LOGIN
The parameter name for the "login" action.
|
static java.lang.String |
PARAM_ACTION_LOGOUT
The parameter name for the "logout" action.
|
static java.lang.String |
PARAM_FORM
The html id for the login form.
|
static java.lang.String |
PARAM_OUFQN
The parameter name for the organizational unit.
|
static java.lang.String |
PARAM_OUSEARCH
The parameter name for the search organizational unit.
|
static java.lang.String |
PARAM_PASSWORD
The parameter name for the password.
|
static java.lang.String |
PARAM_PCTYPE
The parameter name for the PC type.
|
static java.lang.String |
PARAM_PREDEF_OUFQN
The parameter name for the organizational unit.
|
static java.lang.String |
PARAM_USERNAME
The parameter name for the user name.
|
static java.lang.String |
PARAM_WPDATA
The parameter name for the workplace data.
|
static java.lang.String |
PCTYPE_PRIVATE
PC type constant: private PC.
|
static java.lang.String |
PCTYPE_PUBLIC
PC type constant: public PC.
|
NOT_INITIALIZED| 构造器和说明 |
|---|
CmsLogin(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor for login page.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
appendDefaultLoginScript(java.lang.StringBuffer html,
CmsMessageContainer message)
Appends the JavaScript for the login screen to the given HTML buffer.
|
protected void |
appendDirectEditOpenerScript(java.lang.StringBuffer html)
Appends the JavaScript that opens the Direct Edit window after a successful login
to the given HTML buffer.
|
protected void |
appendId(java.lang.StringBuffer html,
java.lang.String id)
Appends the HTML form name/id code for the given id to the given html.
|
protected void |
appendWorkplaceOpenerScript(java.lang.StringBuffer html,
java.lang.String requestedResource,
CmsMessageContainer message)
Appends the JavaScript that opens the Workplace window after a successful login
to the given HTML buffer.
|
java.lang.String |
buildOrgUnitSelector()
Returns the HTML code for selecting an organizational unit.
|
java.lang.String |
displayDialog()
Returns the HTML for the login dialog in it's current state.
|
protected java.lang.String |
displayLoginForm()
Returns the HTML for the login form.
|
protected javax.servlet.http.Cookie |
getCookie(java.lang.String name)
Returns the cookie with the given name, if not cookie is found a new one is created.
|
void |
getCookieData()
Gets the login info from the cookies.
|
java.lang.String |
getFormLink()
Returns the link to the form that contains the login element.
|
java.lang.String |
getJsonOrgUnitList()
Returns the available organizational units as JSON array string.
|
protected java.util.List<CmsOrganizationalUnit> |
getOus()
Returns all organizational units in the system.
|
protected java.lang.String |
getPreDefOuFqn()
Returns the predefined organizational unit fqn.
|
protected void |
setCookie(javax.servlet.http.Cookie cookie,
boolean delete)
Sets the cookie in the response.
|
void |
setCookieData()
Sets the login cookies.
|
getLoginException, getUser, getUserName, isLoggedIn, isLoginSuccess, login, login, login, logouteditable, editable, editable, editableManualClose, editableManualOpen, getContent, getContent, getMessages, getMessages, getMessages, getMessages, getNavigation, getNavigationUri, img, img, include, include, include, include, include, include, includeSilent, includeSilent, includeSilent, includeSilent, info, label, link, link, properties, properties, property, property, property, property, template, template, template, toAbsolute, usergetCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptionspublic static final int ACTION_DISPLAY
public static final int ACTION_LOGIN
public static final int ACTION_LOGOUT
public static final java.lang.String PARAM_ACTION_GETOULIST
public static final java.lang.String PARAM_ACTION_LOGIN
public static final java.lang.String PARAM_ACTION_LOGOUT
public static final java.lang.String PARAM_FORM
public static final java.lang.String PARAM_OUFQN
public static final java.lang.String PARAM_OUSEARCH
public static final java.lang.String PARAM_PASSWORD
public static final java.lang.String PARAM_PCTYPE
public static final java.lang.String PARAM_PREDEF_OUFQN
public static final java.lang.String PARAM_USERNAME
public static final java.lang.String PARAM_WPDATA
public static final java.lang.String PCTYPE_PRIVATE
public static final java.lang.String PCTYPE_PUBLIC
public CmsLogin(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
context - the JSP page context objectreq - the JSP requestres - the JSP responsepublic java.lang.String buildOrgUnitSelector()
public java.lang.String displayDialog()
throws java.io.IOException
java.io.IOException - in case a redirect failspublic void getCookieData()
public java.lang.String getFormLink()
CmsJspLoginBeangetFormLink 在类中 CmsJspLoginBeanCmsJspLoginBean.getFormLink()public java.lang.String getJsonOrgUnitList()
public void setCookieData()
protected void appendDefaultLoginScript(java.lang.StringBuffer html,
CmsMessageContainer message)
html - the HTML buffer to append the script tomessage - the message to display after an unsuccessful loginprotected void appendDirectEditOpenerScript(java.lang.StringBuffer html)
html - the html buffer to append the script toprotected void appendId(java.lang.StringBuffer html,
java.lang.String id)
html - the html where to append the id toid - the id to appendprotected void appendWorkplaceOpenerScript(java.lang.StringBuffer html,
java.lang.String requestedResource,
CmsMessageContainer message)
html - the html buffer to append the script torequestedResource - the requested resource to open in a new windowmessage - the message to display if the originally requested resource is not availableprotected java.lang.String displayLoginForm()
protected javax.servlet.http.Cookie getCookie(java.lang.String name)
name - the name of the cookieprotected java.util.List<CmsOrganizationalUnit> getOus()
CmsOrganizationalUnit objectsprotected java.lang.String getPreDefOuFqn()
This is normally selected by url, and set by the CmsWorkplaceLoginHandler.
protected void setCookie(javax.servlet.http.Cookie cookie,
boolean delete)
cookie - the cookie to setdelete - flag to determine if the cookir should be deleted