Interface NavigationMenu
- All Superinterfaces:
org.pf4j.ExtensionPoint
public interface NavigationMenu
extends org.pf4j.ExtensionPoint
A pf4j extension point. Classes implementing this interface define
the characteristics of one or more navigation menu items that can be added to Gluu Casa UI.
- Author:
- jgomer
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies a path that points to the actual contents of the menu items to be added to Casa UI.floatA value used to determine a relative order among extensions that implement this particular extension point.default MenuTypemenuType()Specifies the type of menu the extension deals with.
-
Method Details
-
getContentsUrl
String getContentsUrl()Specifies a path that points to the actual contents of the menu items to be added to Casa UI. This can point to a .zul, .jsp or static document relative to the base URL of the plugin to which the extension (that implements this extension point) belongs to.As an example, if your
Plugin-Idismy-pluginand you want to point to fileassests/abc/menu.zulof your maven project (which will be web-accessible viahttps://host/casa/pl/my-plugin/abc/menu.zul), you'll just have to returnabc/menu.zul.For more information, visit plugin's developer guide at Jans Casa docs
- Returns:
- The URL that serves the markup of this menu set.
-
getPriority
float getPriority()A value used to determine a relative order among extensions that implement this particular extension point. That is, it determines which menus added by extensions are rendered first (top), second, etc. within the same class (eg. menus targetted at regular users, or for admin dashboard). The first menu to be shown will be that with the greatest priority value and the last menu included will correspond to the one with the lowest.- Returns:
- A priority value. It is recommended to use values in the interval [0,1].
-