com.foreach.across.modules.adminweb.menu.EntityAdminMenuEvent Maven / Gradle / Ivy
package com.foreach.across.modules.adminweb.menu;
import com.foreach.across.modules.web.events.BuildMenuEvent;
import com.foreach.across.modules.web.menu.PathBasedMenuBuilder;
import org.springframework.core.ResolvableType;
/**
* @deprecated since 3.0.0 - migrated to EntityModule
*/
@Deprecated
public class EntityAdminMenuEvent extends BuildMenuEvent>
{
public EntityAdminMenuEvent( EntityAdminMenu menu, PathBasedMenuBuilder menuBuilder ) {
super( menu, menuBuilder, ResolvableType.forClass( menu.getEntityType() ) );
}
public Class getEntityType() {
return getMenu().getEntityType();
}
public T getEntity() {
return getMenu().getEntity();
}
public boolean isForUpdate() {
return getEntity() != null;
}
}