Class EntityViewLinksUtils

java.lang.Object
com.foreach.across.modules.entity.views.util.EntityViewLinksUtils

public final class EntityViewLinksUtils extends Object
Supports configuring the url that should be redirected to after successfully saving an entity afterSave or reconfiguring the url on a ButtonViewElement on the page button. When configuring a redirect, one of the default views can be used or link can be built for the view specifially.

If one of the default links is used, the 'from' request parameter is taken into account. If present, it will take precedence over the fixed configured url, following the flow of the default entity views.

The predefined link options do not include the defaults, being: - After saving, an update view redirects to itself - Cancel button (update/create/delete views) redirects to the list view - Back button (detail view) redirects to the list view

Since:
4.2.0
Author:
Marc Vanbrabant, Steven Gentens