public final class CmsImportExportUserDialog extends A_CmsImportExportUserDialog implements com.vaadin.ui.Upload.Receiver, 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 |
|---|---|
static java.lang.String |
DIALOG_HEIGHT
The dialog height.
|
protected com.vaadin.ui.Label |
m_uploadname
Label to show uploaded file.
|
m_ou, m_window| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<CmsUUID,CmsUser> |
addExportAllUsers(CmsObject cms,
java.lang.String ou,
java.util.Map<CmsUUID,CmsUser> exportUsers)
Returns a map with the users to export added.
|
static java.util.Map<CmsUUID,CmsUser> |
addExportUsersFromGroups(CmsObject cms,
java.util.List<java.lang.String> groups,
java.util.Map<CmsUUID,CmsUser> exportUsers)
Returns a map with the users to export added.
|
static java.util.Map<CmsUUID,CmsUser> |
addExportUsersFromRoles(CmsObject cms,
java.lang.String ou,
java.util.List<java.lang.String> roles,
java.util.Map<CmsUUID,CmsUser> exportUsers)
Returns a map with the users to export added.
|
void |
fetchPassword(java.lang.String password)
Fetches password.
|
static CmsImportExportUserDialog |
getExportUserDialogForGroup(CmsUUID groupID,
java.lang.String ou,
com.vaadin.ui.Window window,
boolean allowTechnicalFieldsExport)
Gets an dialog instance for fixed group.
|
static CmsImportExportUserDialog |
getExportUserDialogForOU(java.lang.String ou,
com.vaadin.ui.Window window,
boolean allowTechnicalFieldsExport)
Gets an dialog instance for fixed group.
|
protected CmsPrincipalSelect |
getGroupSelect(java.lang.String ou,
boolean enabled,
CmsUUID groupID)
Get a principle select for choosing groups.
|
protected com.vaadin.ui.ComboBox<CmsRole> |
getRoleComboBox(java.lang.String ou)
Get ComboBox for selecting roles.
|
protected java.util.List<CmsUser> |
getUsersFromFile()
Reads user from import file.
|
protected void |
importUserFromFile()
Import user from file.
|
java.io.OutputStream |
receiveUpload(java.lang.String filename,
java.lang.String mimeType) |
init, initDownloadButton, isExportableaddButton, 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, setErrorHandlerpublic static final java.lang.String DIALOG_HEIGHT
protected com.vaadin.ui.Label m_uploadname
public static java.util.Map<CmsUUID,CmsUser> addExportAllUsers(CmsObject cms, java.lang.String ou, java.util.Map<CmsUUID,CmsUser> exportUsers) throws CmsException
cms - CmsObjectou - ou nameexportUsers - the map to add the usersCmsException - if getting users failedpublic static java.util.Map<CmsUUID,CmsUser> addExportUsersFromGroups(CmsObject cms, java.util.List<java.lang.String> groups, java.util.Map<CmsUUID,CmsUser> exportUsers) throws CmsException
cms - CmsObjectgroups - the selected groupsexportUsers - the map to add the usersCmsException - if getting groups or users of group failedpublic static java.util.Map<CmsUUID,CmsUser> addExportUsersFromRoles(CmsObject cms, java.lang.String ou, java.util.List<java.lang.String> roles, java.util.Map<CmsUUID,CmsUser> exportUsers) throws CmsException
cms - CmsObjectou - ou nameroles - the selected rolesexportUsers - the map to add the usersCmsException - if getting roles or users of role failedpublic static CmsImportExportUserDialog getExportUserDialogForGroup(CmsUUID groupID, java.lang.String ou, com.vaadin.ui.Window window, boolean allowTechnicalFieldsExport)
groupID - idou - ou namewindow - windowallowTechnicalFieldsExport - flag indicates if technical field export option should be availablepublic static CmsImportExportUserDialog getExportUserDialogForOU(java.lang.String ou, com.vaadin.ui.Window window, boolean allowTechnicalFieldsExport)
ou - ou namewindow - windowallowTechnicalFieldsExport - flag indicates if technical field export option should be availablepublic void fetchPassword(java.lang.String password)
I_CmsPasswordFetcherfetchPassword in interface I_CmsPasswordFetcherpassword - stringI_CmsPasswordFetcher.fetchPassword(java.lang.String)public java.io.OutputStream receiveUpload(java.lang.String filename, java.lang.String mimeType)
receiveUpload in interface com.vaadin.ui.Upload.ReceiverUpload.Receiver.receiveUpload(java.lang.String, java.lang.String)protected CmsPrincipalSelect getGroupSelect(java.lang.String ou, boolean enabled, CmsUUID groupID)
ou - nameenabled - enabled?groupID - default valueprotected com.vaadin.ui.ComboBox<CmsRole> getRoleComboBox(java.lang.String ou)
ou - nameprotected java.util.List<CmsUser> getUsersFromFile()
protected void importUserFromFile()