Default EntityViewProcessors

This section lists the general purpose EntityViewProcessor classes that are provided by EntityModule. The default entity views are all built on these processors.

You can use these manually to assemble a DefaultEntityViewFactory, though some will be configured automatically if you use one of the builders.

The class javadoc gives more detailed information. For a full list of all processors available, see the package summary.

Name Purpose

ActionAllowedAuthorizationViewProcessor

Verifies an the entity configuration or association being requested is not hidden, and a configured AllowableAction is present.

DefaultEntityFetchingViewProcessor

Uses the default repository or query fetcher to fetch all items for the current entity view context.

DefaultValidationViewProcessor

Registers the default EntityViewCommandValidator and validates the command object if state changing web request (POST, PUT, DELETE, PATCH) is performed.

DelegatingEntityFetchingViewProcessor

Fetches items using a configured Function or BiFunction.

EntityPropertyRegistryViewProcessor

Registers a custom EntityPropertyRegistry on the view context.

EntityQueryFilterProcessor

Adds an EntityQuery language based filter to a list view. Adds both the form with textbox and fetches the items based on the form values.

GlobalPageFeedbackViewProcessor

Renders global feedback on a PageContentStructure (admin page). Global feedback is usually added using EntityViewPageHelper.

ListFormViewProcessor

Adds a default form at the top of a list view. Optionally add a create button.

ListPageStructureViewProcessor

Generates the page structure for an entity list view. Add a page title and publishes the EntityPageStructureRenderedEvent.

MessagePrefixingViewProcessor

Configures custom prefixes that should be used for message code resolving.

PageableExtensionViewProcessor

Creates a Pageable from request parameters and binds it to an EntityViewCommand extension.

PropertyRenderingViewProcessor

Renders a list of properties: allows the properties to be configured as well as the ViewElementMode for rendering.

SingleEntityFormViewProcessor

Creates a form-based layout for an entity view. Supports configuring the form grid (defaults to 2 columns), adding default actions (save/cancel) and adding global binding error messages.

SingleEntityPageStructureViewProcessor

Generates the page structure for a single entity. Adds a page title, builds the entity specific menu (renders it as tabs) and publishes the EntityPageStructureRenderedEvent.

SortableTableRenderingViewProcessor

Generates a sortable table for a list of entities. Allows several configuration options like properties to render, sorting options etc.

SaveEntityViewProcessor

Enables binding of the form submit to a dto of the currently rendered entity. Will save the entity if no errors occurred and redirect to the update vView

TemplateViewProcessor

Configures the name of the template that should be rendered as the result of the controller.