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
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 Summary
ConstructorsModifierConstructorDescriptionprotectedEntityAdminMenuEvent(EntityAdminMenu<T> menu, com.foreach.across.modules.web.menu.PathBasedMenuBuilder menuBuilder) -
Method Summary
Modifier and TypeMethodDescriptioncom.foreach.across.modules.spring.security.actions.AllowableActionsgetMenu()booleanMethods inherited from class com.foreach.across.modules.adminweb.menu.EntityAdminMenuEvent
getEntity, getEntityType, isForUpdateMethods inherited from class com.foreach.across.modules.web.events.BuildMenuEvent
addMenuPostProcessor, builder, getEventName, getMenuName, getMenuPostProcessors, getMenuSelector, getResolvableType, group, isForMenuOfType, item, optionalItem, setMenuSelector
-
Constructor Details
-
Method Details
-
getMenu
- Overrides:
getMenuin classcom.foreach.across.modules.web.events.BuildMenuEvent<EntityAdminMenu<T>>
-
getEntityName
- Returns:
- name of the registered entity type
-
holdsEntity
public boolean holdsEntity()- Returns:
- is an entity present
-
getViewContext
- Returns:
- the view context for the current entity
-
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)
-