public class CmsUserEditDialog extends CmsBasicDialog implements I_CmsPasswordFetcher
CmsBasicDialog.DialogWidthcom.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.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.DetachListener| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_visSites
Visible sites?
|
| Constructor and Description |
|---|
CmsUserEditDialog(CmsObject cms,
CmsUUID userId,
com.vaadin.ui.Window window,
CmsAccountsApp app)
public constructor.
|
CmsUserEditDialog(CmsObject cms,
com.vaadin.ui.Window window,
java.lang.String ou,
CmsAccountsApp app)
public constructor for new user case.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fetchPassword(java.lang.String password)
Fetches password.
|
protected static void |
iniRole(CmsObject cms,
java.lang.String ou,
com.vaadin.ui.ComboBox<CmsRole> roleComboBox,
org.apache.commons.logging.Log log)
Initialized the role ComboBox.
|
protected static void |
iniRole(CmsObject cms,
java.lang.String ou,
com.vaadin.v7.ui.ComboBox roleComboBox,
org.apache.commons.logging.Log log)
Initialized the role ComboBox.
|
protected boolean |
isNewUser()
Checks if a new user should be created.
|
protected boolean |
isPasswordMismatchingConfirm()
m_next
Is password not matching to confirm field?
|
protected boolean |
isPasswordValid()
Validates the password fields.
|
protected boolean |
isRootSiteSelected()
Checks if currently the root site is chosen as start site.
|
protected boolean |
isSiteNull()
Checks if the chosen site is valid.
|
protected boolean |
isSitePathValid()
Checks if the given path is valid resource in site.
|
protected boolean |
isStartViewAvailableOnRoot()
Checks if the currently chosen start view is visible for root site.
|
protected boolean |
isValid()
Checks if all fields are valid.
|
protected void |
save()
Saves the canged user data.
|
protected static void |
sendMail(CmsObject cms,
java.lang.String password,
CmsUser user,
boolean newUser,
boolean changePassword)
Sends an email to the user.
|
protected static void |
sendMail(CmsObject cms,
java.lang.String password,
CmsUser user,
java.lang.String ou,
boolean newUser,
boolean changePassword) |
protected void |
setButtonVisibility()
Sets the visibility of the buttons.
|
protected void |
setEmailBox()
En/Diables the email box.
|
protected void |
setupStartFolder(java.lang.String startFolder)
Sets the start folder depending on current set site field.
|
protected void |
setupValidators()
Sets up the validators.
|
protected void |
switchTab()
Switches to the next tab.
|
protected boolean |
userAlreadyExists(java.lang.String username)
Checks if given user exists.
|
addButton, addButton, createButtonCancel, createButtonClose, createButtonOK, createResourceListPanel, createResourceListPanelDirectly, displayResourceInfo, displayResourceInfo, displayResourceInfoDirectly, enableMaxHeight, getInfoResources, initActionHandler, prepareWindow, prepareWindow, readDesign, setAbove, setActionHandler, setBelow, setContent, setContentMinHeight, setContentVisibility, setWindowMinFullHeightaddComponentsAndExpand, getState, getStateaddComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, 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, getSession, getStateType, getUI, 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, waitaddComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected boolean m_visSites
public CmsUserEditDialog(CmsObject cms, CmsUUID userId, com.vaadin.ui.Window window, CmsAccountsApp app)
callingOu - cms - CmsObjectuserId - id of userwindow - to be closedapp - public CmsUserEditDialog(CmsObject cms, com.vaadin.ui.Window window, java.lang.String ou, CmsAccountsApp app)
cms - CmsObjectwindow - Windowou - organizational unitprotected static void iniRole(CmsObject cms, java.lang.String ou, com.vaadin.ui.ComboBox<CmsRole> roleComboBox, org.apache.commons.logging.Log log)
cms - CmsObjectou - to load roles forroleComboBox - ComboBoxlog - LOGprotected static void iniRole(CmsObject cms, java.lang.String ou, com.vaadin.v7.ui.ComboBox roleComboBox, org.apache.commons.logging.Log log)
cms - CmsObjectou - to load roles forroleComboBox - ComboBoxlog - LOGprotected static void sendMail(CmsObject cms, java.lang.String password, CmsUser user, boolean newUser, boolean changePassword)
newUser - is the user new?protected static void sendMail(CmsObject cms, java.lang.String password, CmsUser user, java.lang.String ou, boolean newUser, boolean changePassword)
public void fetchPassword(java.lang.String password)
I_CmsPasswordFetcherfetchPassword in interface I_CmsPasswordFetcherpassword - stringI_CmsPasswordFetcher.fetchPassword(java.lang.String)protected boolean isNewUser()
protected boolean isPasswordMismatchingConfirm()
protected boolean isPasswordValid()
protected boolean isRootSiteSelected()
protected boolean isSiteNull()
protected boolean isSitePathValid()
protected boolean isStartViewAvailableOnRoot()
protected boolean isValid()
protected void save()
protected void setButtonVisibility()
protected void setEmailBox()
protected void setupStartFolder(java.lang.String startFolder)
startFolder - default value or nullprotected void setupValidators()
protected void switchTab()
protected boolean userAlreadyExists(java.lang.String username)
username - to check