Class EntityViewFactoryAttributes

java.lang.Object
com.foreach.across.modules.entity.views.EntityViewFactoryAttributes

public final class EntityViewFactoryAttributes extends Object
Contains common EntityViewFactory configuration attributes. During view processing these can usually be retrieved using EntityViewRequest.getConfigurationAttributes().
Since:
3.0.0
Author:
Arne Vandamme
  • Field Details

    • VIEW_NAME

      public static final String VIEW_NAME
      Contains the name of the view.
    • VIEW_TEMPLATE_NAME

      public static final String VIEW_TEMPLATE_NAME
      Contains the template name of the view.
    • ADMIN_MENU

      public static final String ADMIN_MENU
      Contains a Consumer that takes an EntityAdminMenuEvent as parameter. Any view with this attribute will usually generate a menu item when the entity menu is being built.
    • ACCESS_VALIDATOR

      public static final String ACCESS_VALIDATOR
      Contains a java.util.function.BiPredicate<EntityViewFactory,EntityViewContext> that is to be used for checking if access to the EntityViewFactory is allowed. Usually the value of defaultAccessValidator() instance will be set, which checks on the presence of an AllowableAction.

      Note that it is not strictly required to have a EntityViewContext for using the validator, meaning that implementations should take into account that the second argument can be null.

  • Method Details