public class CmsLoginUI extends A_CmsUI
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsLoginUI.Parameters
Parameters which are initialized during the initial page load of the login dialog.
|
com.vaadin.ui.UI.WindowOrderUpdateEvent, com.vaadin.ui.UI.WindowOrderUpdateListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INIT_DATA_SESSION_ATTR
Attribute used to store initialization data when the UI is first loaded.
|
LAST_OFFLINE_PROJECT| Constructor and Description |
|---|
CmsLoginUI() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
displayVaadinLoginDialog(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns the initial HTML for the Vaadin based login dialog.
|
static java.lang.String |
generateLoginHtmlFragment(CmsObject cms,
com.vaadin.server.VaadinRequest request)
Returns the bootstrap html fragment required to display the login dialog.
|
java.lang.String |
getOrgUnit()
Gets the selected org unit.
|
java.lang.String |
getPassword()
Gets the password.
|
java.lang.String |
getPcType()
Gets the selected PC type.
|
java.lang.String |
getUser()
Gets the user name.
|
protected void |
init(com.vaadin.server.VaadinRequest request) |
void |
openLoginTarget(java.lang.String loginTarget,
boolean isPublicPC)
Opens the login target for a logged in user.
|
static void |
setAdminCmsObject(CmsObject cms)
Sets the admin CMS object.
|
void |
setSelectableOrgUnits(java.util.List<CmsOrganizationalUnit> ous)
Sets the org units which should be selectable by the user.
|
void |
showAlreadyLoggedIn()
Show notification that the user is already loogged in.
|
void |
showForgotPasswordView(java.lang.String authToken)
Shows the 'forgot password view'.
|
void |
showLoginError(java.lang.String messageHtml)
Shows the given login error message.
|
void |
showLoginView(java.lang.String preselectedOu)
Initializes the login view.
|
void |
showPasswordResetDialog()
Shows the password reset dialog.
|
changeProject, changeSite, closeWindows, get, getAttribute, getCmsObject, getDisplayType, getHttpSession, getLastOfflineProject, getParameters, getWorkplaceSettings, openPageOrWarn, openPageOrWarn, reload, setAttribute, setContentToDialog, setContentToDialog, setErroraccess, accessSynchronously, addAction, addActionHandler, addClickListener, addPollListener, addWindow, addWindowOrderUpdateListener, attach, changeVariables, close, detach, doInit, doRefresh, focus, getActionManager, getActiveDragSource, getComponentCount, getConnectorTracker, getCurrent, getEmbedId, getLastHeartbeatTimestamp, getLastProcessedClientToServerId, getLoadingIndicatorConfiguration, getLocaleService, getNavigator, getNotificationConfiguration, getOverlayContainerLabel, getPage, getPollInterval, getPushConfiguration, getPushConnection, getReconnectDialogConfiguration, getScrollLeft, getScrollTop, getSession, getState, getState, getStateType, getTabIndex, getTheme, getTooltipConfiguration, getUI, getUIId, getUiPathInfo, getUiRootPath, getWindows, isClosing, isConnectorEnabled, isMobileHtml5DndEnabled, isResizeLazy, iterator, paintContent, push, refresh, removeAction, removeActionHandler, removeClickListener, removePollListener, removeWindow, scrollIntoView, setActiveDragSource, setCaption, setContent, setCurrent, setFocusedComponent, setLastHeartbeatTimestamp, setLastProcessedClientToServerId, setMobileHtml5DndEnabled, setNavigator, setOverlayContainerLabel, setPollInterval, setPushConnection, setResizeLazy, setScrollLeft, setScrollTop, setSession, setTabIndex, setTheme, showNotification, showNotification, showNotification, showNotification, showNotification, showNotificationaddComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getContent, readDesign, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setHeight, setWidth, writeDesignaddContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, findAncestor, fireComponentErrorEvent, fireComponentEvent, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, handleConnectorRequest, isAttached, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic static final java.lang.String INIT_DATA_SESSION_ATTR
public CmsLoginUI()
public static java.lang.String displayVaadinLoginDialog(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, CmsException
request - the requestresponse - the responsejava.io.IOException - in case writing to the response failsCmsException - in case the user has not the required rolepublic static java.lang.String generateLoginHtmlFragment(CmsObject cms, com.vaadin.server.VaadinRequest request) throws java.io.IOException
cms - the cms contextrequest - the requestjava.io.IOException - in case reading the html template failspublic static void setAdminCmsObject(CmsObject cms)
cms - the admin cms objectpublic java.lang.String getOrgUnit()
public java.lang.String getPassword()
public java.lang.String getPcType()
public java.lang.String getUser()
protected void init(com.vaadin.server.VaadinRequest request)
public void openLoginTarget(java.lang.String loginTarget, boolean isPublicPC)
loginTarget - the login targetisPublicPC - the public PC flagpublic void setSelectableOrgUnits(java.util.List<CmsOrganizationalUnit> ous)
ous - the selectable org unitspublic void showAlreadyLoggedIn()
public void showForgotPasswordView(java.lang.String authToken)
authToken - the authorization token given as a request parameterpublic void showLoginError(java.lang.String messageHtml)
messageHtml - the message HTMLpublic void showLoginView(java.lang.String preselectedOu)
preselectedOu - a potential preselected OUpublic void showPasswordResetDialog()