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 Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEvent
Nested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected com.vaadin.flow.component.checkbox.CheckboxGroup<String>
protected com.vaadin.flow.component.button.Button
protected boolean
protected JmixSelect<String>
protected DialogWindows
protected Dialogs
protected EntityLog
protected CollectionContainer<EntityLogAttr>
protected DataGrid<EntityLogAttr>
protected CollectionLoader<EntityLogItem>
protected DataGrid<EntityLogItem>
protected com.vaadin.flow.component.combobox.ComboBox<String>
protected ExtendedEntities
protected com.vaadin.flow.component.combobox.ComboBox<String>
protected com.vaadin.flow.component.datetimepicker.DateTimePicker
protected ValuePicker<Object>
protected CollectionLoader<LoggedAttribute>
protected CollectionContainer<LoggedEntity>
protected CollectionLoader<LoggedEntity>
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected DataGrid<LoggedEntity>
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected Notifications
protected PolicyStore
protected ReferenceToEntitySupport
protected SecureOperations
protected com.vaadin.flow.component.checkbox.Checkbox
protected Object
protected com.vaadin.flow.component.orderedlayout.HorizontalLayout
protected com.vaadin.flow.component.tabs.Tabs
protected com.vaadin.flow.component.datetimepicker.DateTimePicker
protected TimeSource
protected UiComponents
protected com.vaadin.flow.component.combobox.ComboBox<String>
protected UserRepository
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
Fields inherited from class io.jmix.flowui.view.StandardListView
DISCARD_ACTION_DEFAULT_ID, LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID, SELECT_ACTION_DEFAULT_ID, selectionHandler, selectionValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
allowLogProperty
(MetaProperty metaProperty) protected boolean
attributeIsSelected
(Set<LoggedAttribute> enabledAttributes, String name, MetaClass metaclass) protected void
protected void
protected String
evaluateEntityLogItemAttrDisplayValue
(EntityLogAttr entityLogAttr, String value) protected String
evaluateEntityLogItemDisplayedEntityName
(EntityLogItem entityLogItem) protected void
fillAttributes
(String metaClassName, LoggedEntity item, boolean editable) protected Object
generateAttributeColumn
(EntityLogAttr entityLogAttr) protected Object
generateEntityIdColumn
(EntityLogItem entityLogItem) protected Object
generateEntityInstanceNameColumn
(EntityLogItem entityLogItem) protected MetaClass
getClassFromEntityName
(String entityName) protected Enum
getEnumById
(List<Enum> enums, String id) protected LoggedAttribute
getLoggedAttribute
(String name, Set<LoggedAttribute> enabledAttr) protected boolean
isEntityHaveAttribute
(String propertyName, MetaClass metaClass, Set<LoggedAttribute> enabledAttr) protected void
onAttributesCheckboxGroupValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.CheckboxGroup<String>, Set<String>> event) protected void
onCancelBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onClearEntityLogTableBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onEntityLogTableSelect
(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<EntityLogItem>, EntityLogItem> event1) protected void
onEntityNameFieldChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected void
onFilterEntityNameFieldComboBoxValueChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<String>, String> event) protected void
onInit
(View.InitEvent event) protected void
protected void
protected void
protected void
onLoggedEntityTableSelectEvent
(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<LoggedEntity>, LoggedEntity> event) protected void
onReloadBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onSaveBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
onSearchBtnClick
(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) protected void
protected void
onSelectAllCheckBoxChange
(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.checkbox.Checkbox, Boolean> event) protected void
onSelectedTabChange
(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) protected void
protected void
protected void
setSelectAllCheckBox
(boolean value) Methods inherited from class io.jmix.flowui.view.StandardListView
closeWithDiscard, doSelect, findLookupComponent, getDiscardAction, getLookupActionsLayout, getLookupComponent, getSelectAction, getSelectionHandler, getSelectionValidator, handleSelection, setLookupComponentMultiSelect, setSelectionHandler, setSelectionValidator, setupLookupComponent, setupSaveShortcut, validateSelectedItems
Methods inherited from class io.jmix.flowui.view.StandardView
initContent
Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, onDetach, setApplicationContext, setId, setViewActions, setViewData, setViewFacets
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getEventBus, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onEnabledStateChanged, scrollIntoView, set, setElement, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
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
-
fromDateField
-
cancelBtn
-
selectAllCheckBox
-
entityLogAttrDc
-
userRepository
-
messageTools
-
dialogBuilders
-
tabsheet
-
viewWrapper
-
setupWrapper
-
loggedEntityMiscBox
-
attributesCheckboxGroup
@ViewComponent protected com.vaadin.flow.component.checkbox.CheckboxGroup<String> attributesCheckboxGroup -
selectedEntity
-
canSelectAllCheckboxGenerateEvents
protected boolean canSelectAllCheckboxGenerateEvents -
secureOperations
-
-
Constructor Details
-
EntityLogView
public EntityLogView()
-
-
Method Details
-
onSelectedTabChange
protected void onSelectedTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) -
onInit
-
generateAttributeColumn
-
generateEntityInstanceNameColumn
-
generateEntityIdColumn
-
evaluateEntityLogItemDisplayedEntityName
-
evaluateEntityLogItemAttrDisplayValue
-
getClassFromEntityName
-
getEnumById
-
onLoggedEntityTableSelectEvent
protected 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) -
onEntityLogTableSelect
protected 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
-
enableControls
protected void enableControls() -
disableControls
protected void disableControls() -
fillAttributes
-
attributeIsSelected
protected boolean attributeIsSelected(Set<LoggedAttribute> enabledAttributes, String name, MetaClass metaclass) -
setSelectAllCheckBox
protected void setSelectAllCheckBox(boolean value) -
setDateFieldTime
protected void setDateFieldTime() -
isEntityHaveAttribute
protected 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) -
onReloadBtnClick
@Subscribe("reloadBtn") protected void onReloadBtnClick(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)
-