Class EntityAdminMenuEvent<T>

java.lang.Object
com.foreach.across.modules.web.events.BuildMenuEvent<EntityAdminMenu<T>>
com.foreach.across.modules.adminweb.menu.EntityAdminMenuEvent<T>
com.foreach.across.modules.entity.views.menu.EntityAdminMenuEvent<T>
Type Parameters:
T - entity type
All Implemented Interfaces:
com.foreach.across.core.events.AcrossEvent, com.foreach.across.core.events.NamedAcrossEvent, org.springframework.core.ResolvableTypeProvider

public class EntityAdminMenuEvent<T> extends EntityAdminMenuEvent<T>
Event published when an EntityAdminMenu is being generated.

Extends the deprecated EntityAdminMenuEvent for backwards compatibility. Provides some direct information about the entity for which the admin menu is being built. The entire view context is exposed using getViewContext().

Since:
3.0.0
Author:
Arne Vandamme
  • Constructor Details

    • EntityAdminMenuEvent

      protected EntityAdminMenuEvent(EntityAdminMenu<T> menu, com.foreach.across.modules.web.menu.PathBasedMenuBuilder menuBuilder)
  • Method Details

    • getMenu

      public EntityAdminMenu<T> getMenu()
      Overrides:
      getMenu in class com.foreach.across.modules.web.events.BuildMenuEvent<EntityAdminMenu<T>>
    • getEntityName

      public String getEntityName()
      Returns:
      name of the registered entity type
    • holdsEntity

      public boolean holdsEntity()
      Returns:
      is an entity present
    • getViewContext

      public EntityViewContext getViewContext()
      Returns:
      the view context for the current entity
    • getLinkBuilder

      public EntityViewLinkBuilder getLinkBuilder()
      Returns:
      the link builder for the current entity type
    • getAllowableActions

      public com.foreach.across.modules.spring.security.actions.AllowableActions getAllowableActions()
      Returns:
      the allowable actions for the current entity (or configuration)