Class EntityLogView
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.flowui.view.StandardListView<EntityLogItem>
io.jmix.auditflowui.view.entitylog.EntityLogView
- All Implemented Interfaces:
- com.vaadin.flow.component.AttachNotifier,- com.vaadin.flow.component.DetachNotifier,- com.vaadin.flow.component.HasElement,- com.vaadin.flow.router.AfterNavigationObserver,- com.vaadin.flow.router.BeforeEnterObserver,- com.vaadin.flow.router.BeforeLeaveObserver,- com.vaadin.flow.router.HasDynamicTitle,- com.vaadin.flow.router.internal.AfterNavigationHandler,- com.vaadin.flow.router.internal.BeforeEnterHandler,- com.vaadin.flow.router.internal.BeforeLeaveHandler,- LookupView<EntityLogItem>,- MultiSelectLookupView,- Serializable
@Route(value="audit/entitylog",
       layout=DefaultMainViewParent.class)
@ViewController("entityLog.view")
@ViewDescriptor("entity-log-view.xml")
@DialogMode(width="50em",
            height="37.5em")
public class EntityLogView
extends StandardListView<EntityLogItem>
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.view.ViewView.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEventNested classes/interfaces inherited from interface io.jmix.flowui.view.LookupViewLookupView.ValidationContext<E>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.orderedlayout.HorizontalLayoutprotected com.vaadin.flow.component.checkbox.CheckboxGroup<String>protected com.vaadin.flow.component.button.Buttonprotected booleanprotected JmixSelect<String>protected DialogWindowsprotected Dialogsprotected EntityLogprotected CollectionContainer<EntityLogAttr>protected DataGrid<EntityLogAttr>protected CollectionLoader<EntityLogItem>protected DataGrid<EntityLogItem>protected com.vaadin.flow.component.combobox.ComboBox<String>protected ExtendedEntitiesprotected com.vaadin.flow.component.combobox.ComboBox<String>protected TypedDatePicker<LocalDate>protected TypedTimePicker<LocalTime>protected ValuePicker<Object>protected CollectionLoader<LoggedAttribute>protected CollectionContainer<LoggedEntity>protected CollectionLoader<LoggedEntity>protected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected DataGrid<LoggedEntity>protected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected Messagesprotected MessageToolsprotected Metadataprotected MetadataToolsprotected Notificationsprotected PolicyStoreprotected ReferenceToEntitySupportprotected SecureOperationsprotected com.vaadin.flow.component.checkbox.Checkboxprotected Objectprotected com.vaadin.flow.component.formlayout.FormLayoutprotected com.vaadin.flow.component.tabs.Tabsprotected TypedDatePicker<LocalDate>protected TypedTimePicker<LocalTime>protected TimeSourceprotected UiComponentsprotected com.vaadin.flow.component.combobox.ComboBox<String>protected UserRepositoryprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutFields inherited from class io.jmix.flowui.view.StandardListViewDISCARD_ACTION_DEFAULT_ID, LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID, SELECT_ACTION_DEFAULT_ID, selectionHandler, selectionValidator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanallowLogProperty(MetaProperty metaProperty) protected booleanattributeIsSelected(Set<LoggedAttribute> enabledAttributes, String name, MetaClass metaclass) protected voidprotected voidprotected StringevaluateEntityLogItemAttrDisplayValue(EntityLogAttr entityLogAttr, String value) protected StringevaluateEntityLogItemDisplayedEntityName(EntityLogItem entityLogItem) protected voidfillAttributes(String metaClassName, LoggedEntity item, boolean editable) protected ObjectgenerateAttributeColumn(EntityLogAttr entityLogAttr) protected ObjectgenerateEntityIdColumn(EntityLogItem entityLogItem) protected ObjectgenerateEntityInstanceNameColumn(EntityLogItem entityLogItem) protected MetaClassgetClassFromEntityName(String entityName) protected EnumgetEnumById(List<Enum> enums, String id) protected LocalDateTimeprotected LoggedAttributegetLoggedAttribute(String name, Set<LoggedAttribute> enabledAttr) protected LocalDateTimeprotected booleanisEntityHaveAttribute(String propertyName, MetaClass metaClass, Set<LoggedAttribute> enabledAttr) protected voidonAttributesCheckboxGroupValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.CheckboxGroup<String>, Set<String>> event) protected voidonCancelBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonClearEntityLogTableBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonEntityLogTableSelect(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<EntityLogItem>, EntityLogItem> event1) protected voidonEntityNameFieldChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected voidonFilterEntityNameFieldComboBoxValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected voidonInit(View.InitEvent event) protected voidprotected voidprotected voidprotected voidonLoggedEntityTableSelectEvent(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<LoggedEntity>, LoggedEntity> event) protected voidonSaveBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidonSearchBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected voidprotected voidonSelectAllCheckBoxChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox, Boolean> event) protected voidonSelectedTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) protected voidprotected voidprotected voidsetSelectAllCheckBox(boolean value) Methods inherited from class io.jmix.flowui.view.StandardListViewcloseWithDiscard, doSelect, findLookupComponent, getDiscardAction, getLookupActionsLayout, getLookupComponent, getSelectAction, getSelectionHandler, getSelectionValidator, handleSelection, setLookupComponentMultiSelect, setSelectionHandler, setSelectionValidator, setupLookupComponent, setupSaveShortcut, validateSelectedItemsMethods inherited from class io.jmix.flowui.view.StandardViewinitContentMethods inherited from class io.jmix.flowui.view.ViewaddAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, onDetach, setApplicationContext, setId, setViewActions, setViewData, setViewFacetsMethods inherited from class com.vaadin.flow.component.CompositegetChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.ComponentaddListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onEnabledStateChanged, scrollIntoView, set, setElement, setVisibleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifieraddAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifieraddDetachListener
- 
Field Details- 
messages
- 
metadata
- 
timeSource
- 
referenceToEntitySupport
- 
extendedEntities
- 
entityLog
- 
uiComponents
- 
metadataTools
- 
dialogs
- 
notifications
- 
policyStore
- 
loggedEntityDc
- 
loggedEntityDl
- 
entityLogDl
- 
loggedAttrDl
- 
changeTypeField
- 
entityNameField
- 
userField
- 
filterEntityNameField
- 
instancePicker
- 
entityLogTable
- 
loggedEntityTable
- 
entityLogAttrTable
- 
actionsPaneLayout
- 
tillDateField
- 
tillTimeField
- 
fromDateField
- 
fromTimeField
- 
cancelBtn
- 
selectAllCheckBox
- 
entityLogAttrDc
- 
loggedEntityTableBox@ViewComponent protected com.vaadin.flow.component.orderedlayout.VerticalLayout loggedEntityTableBox
- 
userRepository
- 
messageTools
- 
dialogBuilders
- 
tabsheet
- 
viewWrapper
- 
setupWrapper
- 
loggedEntityMiscBox
- 
attributesCheckboxGroup@ViewComponent protected com.vaadin.flow.component.checkbox.CheckboxGroup<String> attributesCheckboxGroup
- 
selectedEntity
- 
canSelectAllCheckboxGenerateEventsprotected boolean canSelectAllCheckboxGenerateEvents
- 
secureOperations
 
- 
- 
Constructor Details- 
EntityLogViewpublic EntityLogView()
 
- 
- 
Method Details- 
onSelectedTabChangeprotected void onSelectedTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) 
- 
getTillDateTime
- 
getFromDateTime
- 
onInit
- 
generateAttributeColumn
- 
generateEntityInstanceNameColumn
- 
generateEntityIdColumn
- 
evaluateEntityLogItemDisplayedEntityName
- 
evaluateEntityLogItemAttrDisplayValue
- 
getClassFromEntityName
- 
getEnumById
- 
onLoggedEntityTableSelectEventprotected void onLoggedEntityTableSelectEvent(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<LoggedEntity>, LoggedEntity> event) 
- 
onFilterEntityNameFieldComboBoxValueChange@Subscribe("filterEntityNameField") protected void onFilterEntityNameFieldComboBoxValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) 
- 
onEntityLogTableSelectprotected void onEntityLogTableSelect(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<EntityLogItem>, EntityLogItem> event1) 
- 
onAttributesCheckboxGroupValueChange@Subscribe("attributesCheckboxGroup") protected void onAttributesCheckboxGroupValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.CheckboxGroup<String>, Set<String>> event) 
- 
onSelectAllCheckBoxChange@Subscribe("selectAllCheckBox") protected void onSelectAllCheckBoxChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox, Boolean> event) 
- 
onEntityNameFieldChange@Subscribe("entityNameField") protected void onEntityNameFieldChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) 
- 
getEntityMetaClasses
- 
enableControlsprotected void enableControls()
- 
disableControlsprotected void disableControls()
- 
fillAttributes
- 
attributeIsSelectedprotected boolean attributeIsSelected(Set<LoggedAttribute> enabledAttributes, String name, MetaClass metaclass) 
- 
setSelectAllCheckBoxprotected void setSelectAllCheckBox(boolean value) 
- 
setDateFieldTimeprotected void setDateFieldTime()
- 
isEntityHaveAttributeprotected boolean isEntityHaveAttribute(String propertyName, MetaClass metaClass, Set<LoggedAttribute> enabledAttr) 
- 
getLoggedAttribute
- 
onValueClearAction@Subscribe("instancePicker.valueClearAction") protected void onValueClearAction(ActionPerformedEvent event) 
- 
onSelectAction
- 
onLoggedEntityTableCreate@Subscribe("loggedEntityTable.create") protected void onLoggedEntityTableCreate(ActionPerformedEvent event) 
- 
onLoggedEntityTableEdit@Subscribe("loggedEntityTable.edit") protected void onLoggedEntityTableEdit(ActionPerformedEvent event) 
- 
onSearchBtnClick@Subscribe("searchBtn") protected void onSearchBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) 
- 
onClearEntityLogTableBtnClick@Subscribe("clearEntityLogTableBtn") protected void onClearEntityLogTableBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) 
- 
allowLogProperty
- 
onSaveBtnClick@Subscribe("saveBtn") protected void onSaveBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) 
- 
onLoggedEntityTableRemove@Subscribe("loggedEntityTable.remove") protected void onLoggedEntityTableRemove(ActionPerformedEvent event) 
- 
onCancelBtnClick@Subscribe("cancelBtn") protected void onCancelBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) 
 
-