Package org.opencms.ui.apps.user
Class CmsUserTable
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.v7.ui.AbstractLegacyComponent
com.vaadin.v7.ui.AbstractField<Object>
com.vaadin.v7.ui.AbstractSelect
com.vaadin.v7.ui.Table
org.opencms.ui.apps.user.CmsUserTable
- All Implemented Interfaces:
- com.vaadin.event.Action.Container,- com.vaadin.event.Action.ShortcutNotifier,- com.vaadin.event.ConnectorEventListener,- com.vaadin.event.ContextClickEvent.ContextClickNotifier,- com.vaadin.event.dd.DragSource,- com.vaadin.event.dd.DropTarget,- com.vaadin.event.MethodEventSource,- com.vaadin.event.SerializableEventListener,- com.vaadin.server.ClientConnector,- com.vaadin.server.Sizeable,- com.vaadin.server.VariableOwner,- com.vaadin.shared.Connector,- com.vaadin.ui.Component,- com.vaadin.ui.Component.Focusable,- com.vaadin.ui.HasChildMeasurementHint,- com.vaadin.ui.HasComponents,- com.vaadin.ui.LegacyComponent,- com.vaadin.v7.data.Buffered,- com.vaadin.v7.data.BufferedValidatable,- com.vaadin.v7.data.Container,- com.vaadin.v7.data.Container.ItemSetChangeListener,- com.vaadin.v7.data.Container.ItemSetChangeNotifier,- com.vaadin.v7.data.Container.Ordered,- com.vaadin.v7.data.Container.PropertySetChangeListener,- com.vaadin.v7.data.Container.PropertySetChangeNotifier,- com.vaadin.v7.data.Container.Sortable,- com.vaadin.v7.data.Container.Viewer,- com.vaadin.v7.data.Property<Object>,- com.vaadin.v7.data.Property.Editor,- com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener,- com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier,- com.vaadin.v7.data.Property.ValueChangeListener,- com.vaadin.v7.data.Property.ValueChangeNotifier,- com.vaadin.v7.data.Property.Viewer,- com.vaadin.v7.data.Validatable,- com.vaadin.v7.event.ItemClickEvent.ItemClickNotifier,- com.vaadin.v7.ui.Field<Object>,- Serializable,- Iterable<com.vaadin.ui.Component>,- EventListener,- I_CmsFilterableTable,- I_CmsToggleTable
public class CmsUserTable
extends com.vaadin.v7.ui.Table
implements I_CmsFilterableTable, I_CmsToggleTable
Table for user.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class com.vaadin.v7.ui.Tablecom.vaadin.v7.ui.Table.Align, com.vaadin.v7.ui.Table.CacheUpdateException, com.vaadin.v7.ui.Table.CellStyleGenerator, com.vaadin.v7.ui.Table.ColumnCollapseEvent, com.vaadin.v7.ui.Table.ColumnCollapseListener, com.vaadin.v7.ui.Table.ColumnGenerator, com.vaadin.v7.ui.Table.ColumnHeaderMode, com.vaadin.v7.ui.Table.ColumnReorderEvent, com.vaadin.v7.ui.Table.ColumnReorderListener, com.vaadin.v7.ui.Table.ColumnResizeEvent, com.vaadin.v7.ui.Table.ColumnResizeListener, com.vaadin.v7.ui.Table.FooterClickEvent, com.vaadin.v7.ui.Table.FooterClickListener, com.vaadin.v7.ui.Table.GeneratedRow, com.vaadin.v7.ui.Table.HeaderClickEvent, com.vaadin.v7.ui.Table.HeaderClickListener, com.vaadin.v7.ui.Table.RowGenerator, com.vaadin.v7.ui.Table.RowHeaderMode, com.vaadin.v7.ui.Table.TableContextClickEvent, com.vaadin.v7.ui.Table.TableDragMode, com.vaadin.v7.ui.Table.TableDropCriterion, com.vaadin.v7.ui.Table.TableTransferableNested classes/interfaces inherited from class com.vaadin.v7.ui.AbstractSelectcom.vaadin.v7.ui.AbstractSelect.AbstractSelectTargetDetails, com.vaadin.v7.ui.AbstractSelect.AcceptItem, com.vaadin.v7.ui.AbstractSelect.CaptionChangeListener, com.vaadin.v7.ui.AbstractSelect.DefaultNewItemHandler, com.vaadin.v7.ui.AbstractSelect.Filtering, com.vaadin.v7.ui.AbstractSelect.ItemCaptionMode, com.vaadin.v7.ui.AbstractSelect.ItemDescriptionGenerator, com.vaadin.v7.ui.AbstractSelect.NewItemHandler, com.vaadin.v7.ui.AbstractSelect.TargetItemIs, com.vaadin.v7.ui.AbstractSelect.VerticalLocationIsNested classes/interfaces inherited from class com.vaadin.v7.ui.AbstractFieldcom.vaadin.v7.ui.AbstractField.FocusShortcut, com.vaadin.v7.ui.AbstractField.ReadOnlyStatusChangeEventNested classes/interfaces inherited from interface com.vaadin.v7.data.Bufferedcom.vaadin.v7.data.Buffered.SourceExceptionNested classes/interfaces inherited from interface com.vaadin.server.ClientConnectorcom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Componentcom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.ListenerNested classes/interfaces inherited from interface com.vaadin.v7.data.Containercom.vaadin.v7.data.Container.Editor, com.vaadin.v7.data.Container.Filter, com.vaadin.v7.data.Container.Filterable, com.vaadin.v7.data.Container.Hierarchical, com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeEvent, com.vaadin.v7.data.Container.ItemSetChangeListener, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.PropertySetChangeEvent, com.vaadin.v7.data.Container.PropertySetChangeListener, com.vaadin.v7.data.Container.PropertySetChangeNotifier, com.vaadin.v7.data.Container.SimpleFilterable, com.vaadin.v7.data.Container.Sortable, com.vaadin.v7.data.Container.ViewerNested classes/interfaces inherited from interface com.vaadin.v7.ui.Fieldcom.vaadin.v7.ui.Field.ValueChangeEventNested classes/interfaces inherited from interface com.vaadin.ui.HasChildMeasurementHintcom.vaadin.ui.HasChildMeasurementHint.ChildMeasurementHintNested classes/interfaces inherited from interface com.vaadin.ui.HasComponentscom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenerNested classes/interfaces inherited from interface com.vaadin.v7.data.Propertycom.vaadin.v7.data.Property.Editor, com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener, com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.v7.data.Property.Transactional<T>, com.vaadin.v7.data.Property.ValueChangeListener, com.vaadin.v7.data.Property.ValueChangeNotifier, com.vaadin.v7.data.Property.ViewerNested classes/interfaces inherited from interface com.vaadin.server.Sizeablecom.vaadin.server.Sizeable.Unit
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringName of group to show user for, or null.protected I_CmsOuTreeTypeType to be shown.Fields inherited from class com.vaadin.v7.ui.TableALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, alwaysRecalculateColumnWidths, CELL_FIRSTCOL, CELL_GENERATED_ROW, CELL_HEADER, CELL_ICON, CELL_ITEMID, CELL_KEY, COLUMN_HEADER_MODE_EXPLICIT, COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID, COLUMN_HEADER_MODE_HIDDEN, COLUMN_HEADER_MODE_ID, ROW_HEADER_MODE_EXPLICIT, ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID, ROW_HEADER_MODE_HIDDEN, ROW_HEADER_MODE_ICON_ONLY, ROW_HEADER_MODE_ID, ROW_HEADER_MODE_INDEX, ROW_HEADER_MODE_ITEM, ROW_HEADER_MODE_PROPERTYFields inherited from class com.vaadin.v7.ui.AbstractSelectITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY, itemIdMapper, itemsFields inherited from class com.vaadin.ui.AbstractComponentDESIGN_ATTR_PLAIN_TEXTFields inherited from interface com.vaadin.server.SizeableSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
- 
Constructor SummaryConstructorsConstructorDescriptionCmsUserTable(String ou, I_CmsOuTreeType type, CmsAccountsApp app, boolean showAll) public constructor.CmsUserTable(String ou, CmsUUID groupID, I_CmsOuTreeType cmsOuTreeType, boolean showAll, CmsAccountsApp app) puiblic constructor.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddUserToContainer(com.vaadin.v7.data.util.IndexedContainer container, CmsUser user) Adds given user to given IndexedContainer.protected voidfillContainer(boolean showIndirect) Fills the container.protected voidFills the container item for a user.voidMethod which gets called to filter table.intGets the current size of data in table.com.vaadin.v7.ui.VerticalLayoutLayout which gets displayed if table is empty.Gets currently visible user.protected voidinit(boolean showAll) initializes table.protected CmsMenuItemVisibilityModeonlyVisibleForOU(Set<String> context) Checks if all selected items are editable.protected booleanonlyVisibleForOU(CmsUUID userId) Visibility which is only active if user is in right ou.protected voidOpens the user info dialog.voidtoggle(boolean pressed) Toggles the table.Methods inherited from class com.vaadin.v7.ui.TableaddActionHandler, addColumnCollapseListener, addColumnReorderListener, addColumnResizeListener, addContainerProperty, addContainerProperty, addFooterClickListener, addGeneratedColumn, addHeaderClickListener, addItem, addItemAfter, addItemAfter, addItemClickListener, addListener, addListener, addListener, addListener, addListener, attach, beforeClientResponse, bindPropertyToField, changeVariables, containerItemSetChange, containerPropertySetChange, detach, disableContentRefreshing, enableContentRefreshing, firstItemId, formatPropertyValue, getAddedRowCount, getCacheRate, getCellStyleGenerator, getChildMeasurementHint, getCollapseMenuContent, getColumnAlignment, getColumnAlignments, getColumnExpandRatio, getColumnFooter, getColumnGenerator, getColumnHeader, getColumnHeaderMode, getColumnHeaders, getColumnIcon, getColumnIcons, getColumnWidth, getComponentIterator, getConverter, getCurrentPageFirstItemId, getCurrentPageFirstItemIndex, getCustomAttributes, getDragMode, getDropHandler, getFirstAddedItemIndex, getFirstUpdatedItemIndex, getIdByIndex, getItemDescriptionGenerator, getItemIds, getMultiSelectMode, getPageLength, getPropertyValue, getRowGenerator, getRowHeaderMode, getSortableContainerPropertyIds, getSortContainerPropertyId, getState, getState, getTableFieldFactory, getTransferable, getUpdatedRowCount, getVisibleColumns, getVisibleItemIds, hasConverter, indexOfId, isColumnCollapsed, isColumnCollapsible, isColumnCollapsingAllowed, isColumnReorderingAllowed, isEditable, isFirstId, isFooterVisible, isLastId, isMultiSelectTouchDetectionEnabled, isPartialRowUpdate, isRowCacheInvalidated, isSelectable, isSortAscending, isSortDisabled, isSortEnabled, iterator, lastItemId, markAsDirty, markAsDirtyRecursive, nextItemId, paintContent, paintRowAttributes, paintRowHeader, paintRowIcon, prevItemId, readBody, readDesign, readItem, readItems, refreshRenderedCells, refreshRowCache, registerComponent, removeActionHandler, removeAllActionHandlers, removeAllItems, removeColumnCollapseListener, removeColumnReorderListener, removeColumnResizeListener, removeContainerProperty, removeFooterClickListener, removeGeneratedColumn, removeHeaderClickListener, removeItem, removeItemClickListener, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, resetPageBuffer, rowHeadersAreEnabled, setCacheRate, setCellStyleGenerator, setChildMeasurementHint, setCollapseMenuContent, setColumnAlignment, setColumnAlignments, setColumnCollapsed, setColumnCollapsible, setColumnCollapsingAllowed, setColumnExpandRatio, setColumnFooter, setColumnHeader, setColumnHeaderMode, setColumnHeaders, setColumnIcon, setColumnIcons, setColumnReorderingAllowed, setColumnWidth, setContainerDataSource, setContainerDataSource, setConverter, setCurrentPageFirstItemId, setCurrentPageFirstItemIndex, setDragMode, setDropHandler, setEditable, setEnabled, setFooterVisible, setItemDescriptionGenerator, setMultiSelectMode, setMultiSelectTouchDetectionEnabled, setNewItemsAllowed, setPageLength, setRowGenerator, setRowHeaderMode, setSelectable, setSortAscending, setSortContainerPropertyId, setSortDisabled, setSortEnabled, setTableFieldFactory, setVisible, setVisibleColumns, shouldHideAddedRows, sort, sort, translateDropTargetDetails, unregisterComponent, valueChange, writeDesign, writeItem, writeItemsMethods inherited from class com.vaadin.v7.ui.AbstractSelectaddItem, addItem, addItems, addItems, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, containsId, fireItemSetChange, firePropertySetChange, getCaptionChangeListener, getContainerDataSource, getContainerProperty, getContainerPropertyIds, getItem, getItemCaption, getItemCaptionMode, getItemCaptionPropertyId, getItemIcon, getItemIconPropertyId, getItemIds, getListeners, getNewItemHandler, getNullSelectionItemId, getType, getType, getValue, isEmpty, isMultiSelect, isNewItemsAllowed, isNullSelectionAllowed, isSelected, paintItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setMultiSelect, setNewItemHandler, setNullSelectionAllowed, setNullSelectionItemId, setValue, setValue, size, unselectMethods inherited from class com.vaadin.v7.ui.AbstractFieldaddListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, clear, commit, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, shouldHideErrors, validate, validateMethods inherited from class com.vaadin.v7.ui.AbstractLegacyComponentgetExplicitImmediateValue, isImmediate, setImmediateMethods inherited from class com.vaadin.ui.AbstractComponentaddContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setWidth, setWidth, setWidthFull, setWidthUndefinedMethods inherited from class com.vaadin.server.AbstractClientConnectoraddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.event.Action.ShortcutNotifieraddShortcutListener, removeShortcutListenerMethods inherited from interface com.vaadin.server.ClientConnectoraddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.ui.ComponentaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignMethods inherited from interface com.vaadin.shared.ConnectorgetConnectorIdMethods inherited from interface com.vaadin.v7.data.ContaineraddItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, sizeMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface com.vaadin.server.SizeablegetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedMethods inherited from interface com.vaadin.server.VariableOwnerisEnabled
- 
Field Details- 
m_groupName of group to show user for, or null.
- 
m_typeType to be shown.
 
- 
- 
Constructor Details- 
CmsUserTablepublic CmsUserTable(String ou, CmsUUID groupID, I_CmsOuTreeType cmsOuTreeType, boolean showAll, CmsAccountsApp app) puiblic constructor.- Parameters:
- ou- ou name
- groupID- id of group
- cmsOuTreeType- type to be shown
- showAll- show all user including inherited?
- app- the app
 
- 
CmsUserTablepublic constructor.- Parameters:
- ou- name
- type- the tree type
- app- the app
- showAll- boolean
 
 
- 
- 
Method Details- 
filterDescription copied from interface:I_CmsFilterableTableMethod which gets called to filter table.- Specified by:
- filterin interface- I_CmsFilterableTable
- Parameters:
- data- to be matched
- See Also:
 
- 
getCurrentSizeDescription copied from interface:I_CmsToggleTableGets the current size of data in table.- Specified by:
- getCurrentSizein interface- I_CmsToggleTable
- Returns:
- size
- See Also:
 
- 
getEmptyLayoutLayout which gets displayed if table is empty.- Specified by:
- getEmptyLayoutin interface- I_CmsFilterableTable
- Returns:
- VerticalLayout
- See Also:
 
- 
getVisibleUserGets currently visible user.- Returns:
- List of user
 
- 
toggleDescription copied from interface:I_CmsToggleTableToggles the table.- Specified by:
- togglein interface- I_CmsToggleTable
- Parameters:
- pressed- boolean
- See Also:
 
- 
addUserToContainerAdds given user to given IndexedContainer.- Parameters:
- container- to add the user to
- user- to add
 
- 
fillContainerFills the container.- Parameters:
- showIndirect- true-> show all user, false -> only direct user
 
- 
fillItemFills the container item for a user.- Parameters:
- item- the item
- user- the user
 
- 
initinitializes table.- Parameters:
- showAll- boolean
 
- 
onlyVisibleForOUVisibility which is only active if user is in right ou.- Parameters:
- userId- to be checked
- Returns:
- CmsMenuItemVisibilityMode
 
- 
onlyVisibleForOUChecks if all selected items are editable.- Parameters:
- context- items
- Returns:
- CmsMenuItemVisibilityMode
 
- 
openInfoDialogOpens the user info dialog.- Parameters:
- id- of user
- Throws:
- CmsException- exception
 
 
-