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.component.HasStyle
,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="80em",
height="60em",
resizable=true)
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 Downloader
protected EntityImportExport
protected EntityImportPlans
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 FetchPlans
protected com.vaadin.flow.component.combobox.ComboBox<String>
protected TypedDatePicker<LocalDate>
protected TypedTimePicker<LocalTime>
protected FileUploadField
protected ValuePicker<Object>
protected CollectionLoader<LoggedAttribute>
protected CollectionContainer<LoggedEntity>
protected CollectionLoader<LoggedEntity>
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
protected DataGrid<LoggedEntity>
protected com.vaadin.flow.component.orderedlayout.VerticalLayout
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.formlayout.FormLayout
protected com.vaadin.flow.component.tabs.Tabs
protected TypedDatePicker<LocalDate>
protected TypedTimePicker<LocalTime>
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 FetchPlan
protected EntityImportPlan
protected void
protected void
protected String
evaluateEntityLogItemAttrDisplayValue
(EntityLogAttr entityLogAttr, String value) protected String
evaluateEntityLogItemDisplayedEntityName
(EntityLogItem entityLogItem) protected void
export
(DownloadFormat downloadFormat) 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 LocalDateTime
getImportedEntityList
(String fileName, byte[] fileContent) protected LoggedAttribute
getLoggedAttribute
(String name, Set<LoggedAttribute> enabledAttr) protected LocalDateTime
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) void
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) void
void
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, lookupEnterPress, 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, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, 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, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, 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
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
loggedEntityDc
-
loggedEntityDl
-
entityLogDl
-
loggedAttrDl
-
changeTypeField
-
entityNameField
-
userField
-
filterEntityNameField
-
instancePicker
-
entityLogTable
-
loggedEntityTable
-
entityLogAttrTable
-
actionsPaneLayout
-
tillDateField
-
tillTimeField
-
fromDateField
-
fromTimeField
-
cancelBtn
-
importField
-
selectAllCheckBox
-
entityLogAttrDc
-
loggedEntityTableBox
@ViewComponent protected com.vaadin.flow.component.orderedlayout.VerticalLayout loggedEntityTableBox -
tabsheet
-
viewWrapper
-
setupWrapper
-
loggedEntityMiscBox
-
attributesCheckboxGroup
@ViewComponent protected com.vaadin.flow.component.checkbox.CheckboxGroup<String> attributesCheckboxGroup -
userRepository
-
messageTools
-
dialogBuilders
-
entityImportExport
-
entityImportPlans
-
downloader
-
fetchPlans
-
secureOperations
-
messages
-
metadata
-
timeSource
-
referenceToEntitySupport
-
extendedEntities
-
entityLog
-
uiComponents
-
metadataTools
-
dialogs
-
notifications
-
policyStore
-
selectedEntity
-
canSelectAllCheckboxGenerateEvents
protected boolean canSelectAllCheckboxGenerateEvents
-
-
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) -
onRoleModelsTableExportJSON
@Subscribe("loggedEntityTable.exportJSON") public void onRoleModelsTableExportJSON(ActionPerformedEvent event) -
onRoleModelsTableExportZIP
@Subscribe("loggedEntityTable.exportZIP") public void onRoleModelsTableExportZIP(ActionPerformedEvent event) -
export
-
getExportEntityList
-
buildExportFetchPlan
-
onImportFieldFileUploadSucceed
@Subscribe("importField") public void onImportFieldFileUploadSucceed(FileUploadSucceededEvent<FileUploadField> event) -
getImportedEntityList
-
createEntityImportPlan
-