Class IdentitiesTreeGrid

  • All Implemented Interfaces:
    com.vaadin.data.HasDataProvider<IdentityEntry>, com.vaadin.data.HasHierarchicalDataProvider<IdentityEntry>, com.vaadin.data.HasItems<IdentityEntry>, com.vaadin.event.ContextClickEvent.ContextClickNotifier, com.vaadin.event.MethodEventSource, com.vaadin.event.SortEvent.SortNotifier<com.vaadin.data.provider.GridSortOrder<IdentityEntry>>, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, com.vaadin.ui.Component.Focusable, com.vaadin.ui.HasComponents, java.io.Serializable, java.lang.Iterable<com.vaadin.ui.Component>

    public class IdentitiesTreeGrid
    extends com.vaadin.ui.TreeGrid<IdentityEntry>
    Displays a tree grid with identities. Can present contents in two modes: - flat, where each identity is a fully separate table row - grouped by entity, where each entity has all its entities as children
    Author:
    K. Benedyczak
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vaadin.ui.Grid

        com.vaadin.ui.Grid.AbstractGridExtension<T extends java.lang.Object>, com.vaadin.ui.Grid.Column<T extends java.lang.Object,​V extends java.lang.Object>, com.vaadin.ui.Grid.ColumnReorderEvent, com.vaadin.ui.Grid.ColumnResizeEvent, com.vaadin.ui.Grid.ColumnVisibilityChangeEvent, com.vaadin.ui.Grid.DetailsManager<T extends java.lang.Object>, com.vaadin.ui.Grid.FetchItemsCallback<T extends java.lang.Object>, com.vaadin.ui.Grid.GridContextClickEvent<T extends java.lang.Object>, com.vaadin.ui.Grid.ItemClick<T extends java.lang.Object>, com.vaadin.ui.Grid.SelectionMode
      • Nested classes/interfaces inherited from class com.vaadin.ui.AbstractListing

        com.vaadin.ui.AbstractListing.AbstractListingExtension<T extends java.lang.Object>
      • Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector

        com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
      • Nested classes/interfaces inherited from interface com.vaadin.ui.Component

        com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
      • Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents

        com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
      • Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable

        com.vaadin.server.Sizeable.Unit
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENTITY_DND_TYPE  
      • Fields inherited from class com.vaadin.ui.AbstractComponent

        DESIGN_ATTR_PLAIN_TEXT
      • Fields inherited from interface com.vaadin.server.Sizeable

        SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
    • Constructor Summary

      Constructors 
      Constructor Description
      IdentitiesTreeGrid​(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.engine.api.attributes.AttributeSupport attributeSupport, pl.edu.icm.unity.engine.api.identity.IdentityTypeSupport idTypeSupport, io.imunity.webconsole.directoryBrowser.identities.EntitiesLoader entitiesLoader, pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry attrHandlerRegistry, pl.edu.icm.unity.engine.api.PreferencesManagement preferencesMan, pl.edu.icm.unity.engine.api.CredentialManagement credentialManagement, io.imunity.webconsole.directoryBrowser.identities.EntityDetailsHandler entityDetailsHandler, io.imunity.webconsole.directoryBrowser.identities.AddToGroupHandler addToGroupHandler, io.imunity.webconsole.directoryBrowser.identities.RemoveFromGroupHandler removeFromGroupHandler, io.imunity.webconsole.directoryBrowser.identities.IdentityCreationDialog.IdentityCreationDialogHandler identityCreationDialogHanlder, org.springframework.beans.factory.ObjectFactory<pl.edu.icm.unity.webui.common.credentials.CredentialsChangeDialog> credentialChangeDialogFactory, io.imunity.webconsole.directoryBrowser.identities.ChangeEntityStateHandler changeEntityStateHandler, io.imunity.webconsole.directoryBrowser.identities.ChangeCredentialRequirementHandler credentialRequirementHandler, io.imunity.webconsole.directoryBrowser.identities.EntityAttributeClassHandler entityAttributeClassHandler, io.imunity.webconsole.directoryBrowser.identities.IdentityConfirmationResendHandler confirmationResendHandler, io.imunity.webconsole.directoryBrowser.identities.IdentityConfirmHandler confirmHandler, io.imunity.webconsole.directoryBrowser.identities.DeleteIdentityHandler deleteIdentityHandler, io.imunity.webconsole.directoryBrowser.identities.DeleteEntityHandler deleteEntityHandler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFilter​(io.imunity.webconsole.directoryBrowser.identities.EntityFilter filter)  
      void clearFilters()  
      void expandParent​(IdentityEntry entry)  
      java.util.List<java.lang.String> getColumnIds()  
      java.lang.String getGroup()  
      java.util.List<IdentityEntry> getItems()  
      java.util.Set<java.lang.String> getVisibleColumnIds()  
      java.lang.Boolean isGroupByEntity()  
      java.lang.Boolean isShowTargeted()  
      void removeFilter​(io.imunity.webconsole.directoryBrowser.identities.EntityFilter filter)  
      void selectionChanged​(java.util.Set<IdentityEntry> selectedItems)  
      void setMode​(boolean groupByEntity)  
      void setShowTargeted​(boolean showTargeted)  
      void showGroup​(java.lang.String group)  
      • Methods inherited from class com.vaadin.ui.TreeGrid

        addCollapseListener, addExpandListener, collapse, collapse, collapseRecursively, collapseRecursively, doReadDesign, doWriteDesign, expand, expand, expandRecursively, expandRecursively, getDataCommunicator, getDataProvider, getHierarchyColumn, getItemCollapseAllowedProvider, getState, getState, isExpanded, readData, scrollTo, scrollTo, setDataProvider, setHierarchyColumn, setHierarchyColumn, setItemCollapseAllowedProvider, withPropertySet, writeData
      • Methods inherited from class com.vaadin.ui.Grid

        addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnReorderListener, addColumnResizeListener, addColumnVisibilityChangeListener, addComponentColumn, addContextClickListener, addFooterRowAt, addHeaderRowAt, addItemClickListener, addSelectionListener, addSortListener, appendFooterRow, appendHeaderRow, asMultiSelect, asSingleSelect, beforeClientResponse, clearSortOrder, createColumn, createEditor, createSortingComparator, deselect, deselectAll, deserializeDeclarativeRepresentation, fireColumnVisibilityChangeEvent, getBeanType, getBodyRowHeight, getColumn, getColumnByInternalId, getColumnResizeMode, getColumns, getCustomAttributes, getDefaultHeaderRow, getDescriptionGenerator, getEditor, getFooter, getFooterRow, getFooterRowCount, getFooterRowHeight, getFrozenColumnCount, getHeader, getHeaderRow, getHeaderRowCount, getHeaderRowHeight, getHeightByRows, getHeightMode, getInternalIdForColumn, getPropertySet, getRowHeight, getSelectedItems, getSelectionModel, getSortOrder, getStyleGenerator, internalSetDataProvider, isColumnReorderingAllowed, isDetailsVisible, isFooterVisible, isHeaderVisible, isReadOnly, iterator, prependFooterRow, prependHeaderRow, readItems, recalculateColumnWidths, removeAllColumns, removeColumn, removeColumn, removeFooterRow, removeFooterRow, removeHeaderRow, removeHeaderRow, scrollToEnd, scrollToStart, select, setBeanType, setBeanType, setBodyRowHeight, setColumnId, setColumnOrder, setColumnOrder, setColumnReorderingAllowed, setColumnResizeMode, setColumns, setDataProvider, setDefaultHeaderRow, setDescriptionGenerator, setDescriptionGenerator, setDetailsGenerator, setDetailsVisible, setFooterRowHeight, setFooterVisible, setFrozenColumnCount, setHeaderRowHeight, setHeaderVisible, setHeight, setHeightByRows, setHeightMode, setPropertySet, setReadOnly, setRowHeight, setSelectionMode, setSelectionModel, setSortOrder, setSortOrder, setStyleGenerator, sort, sort, sort, sort
      • Methods inherited from class com.vaadin.ui.AbstractListing

        addDataGenerator, focus, getItemCaptionGenerator, getItemIconGenerator, getTabIndex, internalGetDataProvider, internalSetDataProvider, readDesign, readItem, removeDataGenerator, serializeDeclarativeRepresentation, setItemCaptionGenerator, setItemIconGenerator, setTabIndex, writeDesign, writeItem, writeItems
      • Methods inherited from class com.vaadin.ui.AbstractComponent

        addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, 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, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined
      • Methods inherited from class com.vaadin.server.AbstractClientConnector

        addAttachListener, 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, updateDiffstate
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.vaadin.server.ClientConnector

        addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
      • Methods inherited from interface com.vaadin.ui.Component

        addListener, 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, writeDesign
      • Methods inherited from interface com.vaadin.shared.Connector

        getConnectorId
      • Methods inherited from interface com.vaadin.data.HasHierarchicalDataProvider

        getTreeData, setItems, setItems, setItems, setItems, setItems, setTreeData
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface com.vaadin.server.Sizeable

        getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
    • Field Detail

    • Constructor Detail

      • IdentitiesTreeGrid

        @Autowired
        public IdentitiesTreeGrid​(pl.edu.icm.unity.MessageSource msg,
                                  pl.edu.icm.unity.engine.api.attributes.AttributeSupport attributeSupport,
                                  pl.edu.icm.unity.engine.api.identity.IdentityTypeSupport idTypeSupport,
                                  io.imunity.webconsole.directoryBrowser.identities.EntitiesLoader entitiesLoader,
                                  pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry attrHandlerRegistry,
                                  pl.edu.icm.unity.engine.api.PreferencesManagement preferencesMan,
                                  pl.edu.icm.unity.engine.api.CredentialManagement credentialManagement,
                                  io.imunity.webconsole.directoryBrowser.identities.EntityDetailsHandler entityDetailsHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.AddToGroupHandler addToGroupHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.RemoveFromGroupHandler removeFromGroupHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.IdentityCreationDialog.IdentityCreationDialogHandler identityCreationDialogHanlder,
                                  org.springframework.beans.factory.ObjectFactory<pl.edu.icm.unity.webui.common.credentials.CredentialsChangeDialog> credentialChangeDialogFactory,
                                  io.imunity.webconsole.directoryBrowser.identities.ChangeEntityStateHandler changeEntityStateHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.ChangeCredentialRequirementHandler credentialRequirementHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.EntityAttributeClassHandler entityAttributeClassHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.IdentityConfirmationResendHandler confirmationResendHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.IdentityConfirmHandler confirmHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.DeleteIdentityHandler deleteIdentityHandler,
                                  io.imunity.webconsole.directoryBrowser.identities.DeleteEntityHandler deleteEntityHandler)
    • Method Detail

      • setMode

        public void setMode​(boolean groupByEntity)
      • setShowTargeted

        public void setShowTargeted​(boolean showTargeted)
                             throws pl.edu.icm.unity.exceptions.EngineException
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • getGroup

        public java.lang.String getGroup()
      • showGroup

        public void showGroup​(java.lang.String group)
                       throws pl.edu.icm.unity.exceptions.EngineException
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • addFilter

        public void addFilter​(io.imunity.webconsole.directoryBrowser.identities.EntityFilter filter)
      • removeFilter

        public void removeFilter​(io.imunity.webconsole.directoryBrowser.identities.EntityFilter filter)
      • clearFilters

        public void clearFilters()
      • getColumnIds

        public java.util.List<java.lang.String> getColumnIds()
      • getVisibleColumnIds

        public java.util.Set<java.lang.String> getVisibleColumnIds()
      • isGroupByEntity

        public java.lang.Boolean isGroupByEntity()
      • isShowTargeted

        public java.lang.Boolean isShowTargeted()
      • expandParent

        public void expandParent​(IdentityEntry entry)
      • selectionChanged

        public void selectionChanged​(java.util.Set<IdentityEntry> selectedItems)