All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy