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

com.foreach.across.modules.adminweb.menu.EntityAdminMenuEvent Maven / Gradle / Ivy

There is a newer version: 4.5.1
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy