Class EntityLogView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
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, FragmentOwner, 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:
  • Field Details

  • Constructor Details

    • EntityLogView

      public EntityLogView()
  • Method Details

    • getTillDateTime

      protected LocalDateTime getTillDateTime()
    • getFromDateTime

      protected LocalDateTime getFromDateTime()
    • onInit

      @Subscribe protected void onInit(View.InitEvent event)
    • onUserFieldFetchCallback

      protected Stream<String> onUserFieldFetchCallback(com.vaadin.flow.data.provider.Query<String,String> query)
    • generateAttributeColumn

      protected Object generateAttributeColumn(EntityLogAttr entityLogAttr)
    • generateEntityInstanceNameColumn

      protected Object generateEntityInstanceNameColumn(EntityLogItem entityLogItem)
    • generateEntityIdColumn

      protected Object generateEntityIdColumn(EntityLogItem entityLogItem)
    • evaluateEntityLogItemDisplayedEntityName

      protected String evaluateEntityLogItemDisplayedEntityName(EntityLogItem entityLogItem)
    • evaluateEntityLogItemAttrDisplayValue

      protected String evaluateEntityLogItemAttrDisplayValue(EntityLogAttr entityLogAttr, String value)
    • getClassFromEntityName

      @Nullable protected MetaClass getClassFromEntityName(String entityName)
    • getEnumById

      protected Enum getEnumById(List<Enum> enums, String id)
    • onLoggedEntityTableSelectEvent

      @Subscribe("loggedEntityTable") 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

      @Subscribe("entityLogTable") 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

      protected TreeMap<String,String> getEntityMetaClasses()
    • enableControls

      protected void enableControls()
    • disableControls

      protected void disableControls()
    • fillAttributes

      protected void fillAttributes(String metaClassName, LoggedEntity item, boolean editable)
    • 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

      protected LoggedAttribute getLoggedAttribute(String name, Set<LoggedAttribute> enabledAttr)
    • onValueClearAction

      @Subscribe("instancePicker.valueClearAction") protected void onValueClearAction(ActionPerformedEvent event)
    • onSelectAction

      @Subscribe("instancePicker.selectAction") protected void onSelectAction(ActionPerformedEvent event)
    • 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

      protected boolean allowLogProperty(MetaProperty metaProperty)
    • isTenantIdProperty

      protected boolean isTenantIdProperty(MetaProperty metaProperty)
    • 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

      protected void export(DownloadFormat downloadFormat)
    • getExportEntityList

      protected List<Object> getExportEntityList()
    • buildExportFetchPlan

      protected FetchPlan buildExportFetchPlan()
    • onImportFieldFileUploadSucceed

      @Subscribe("importField") public void onImportFieldFileUploadSucceed(FileUploadSucceededEvent<FileUploadField> event)
    • getImportedEntityList

      protected List<Object> getImportedEntityList(String fileName, byte[] fileContent)
    • createEntityImportPlan

      protected EntityImportPlan createEntityImportPlan()