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.ReadyEventNested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E> -
Field Summary
FieldsModifier 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.StandardListView
DISCARD_ACTION_DEFAULT_ID, LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID, SELECT_ACTION_DEFAULT_ID, selectionHandler, selectionValidator -
Constructor Summary
Constructors -
Method Summary
Modifier 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.StandardListView
closeWithDiscard, doSelect, findLookupComponent, getDiscardAction, getLookupActionsLayout, getLookupComponent, getSelectAction, getSelectionHandler, getSelectionValidator, handleSelection, setLookupComponentMultiSelect, setSelectionHandler, setSelectionValidator, setupLookupComponent, setupSaveShortcut, validateSelectedItemsMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods 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, setViewFacetsMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods 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
-
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
-
canSelectAllCheckboxGenerateEvents
protected boolean canSelectAllCheckboxGenerateEvents -
secureOperations
-
-
Constructor Details
-
EntityLogView
public EntityLogView()
-
-
Method Details
-
onSelectedTabChange
protected void onSelectedTabChange(com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent event) -
getTillDateTime
-
getFromDateTime
-
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) -
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)
-