Interface IPluginMenuEntry
-
public interface IPluginMenuEntryInterface for a plugin menu entry in the backend UI. The menu entry is shown in the main menu to the left.- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIPluginMenuEntry.EPluginMenuTargetTypeEnumeration of possible target types for aIPluginMenuEntry.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancustomIsRendered()Custom method to extend the check for whether the menu entry should be available.default Collection<IPluginMenuEntry>getChildEntries()Getter for the child menu entries of this menu entry.StringgetIcon()Getter for the CSS class for the icon of this menu entrydefault EAccessProperty[]getNeededAccessProperties()Getter for an array of standardEAccessPropertys which all have to be present on the user's role for this menu entry to be shown.default IAccessProperty[]getNeededCustomAccessProperties()Getter for a list of customIAccessPropertys which all have to be present on the user's role for this menu entry to be shown.IPluginMenuEntry.EPluginMenuTargetTypegetTargetType()Getter for the target type of the menu entry, seeIPluginMenuEntry.EPluginMenuTargetType.StringgetTargetURL()Getter for the menu entry target URL or URI.StringgetText(Locale locale)Getter for the text to show in the menu entry.default booleanisClientScopeOnly()Getter for whether this menu entry should only be shown if a client is selected in the backend UI.booleanisOpenNewWindow()Getter for whether the target of the menu entry should be opened in a new window or tabdefault booleanisShowOnSystemUser()Getter for whether this menu entry should be shown when the system administrator is logged in.
-
-
-
Method Detail
-
getIcon
String getIcon()
Getter for the CSS class for the icon of this menu entry- Returns:
Stringthe CSS class for the icon
-
getTargetURL
String getTargetURL()
Getter for the menu entry target URL or URI. This depends on thegetTargetType():IPluginMenuEntry.EPluginMenuTargetType.PARENT: the target URL is ignored.IPluginMenuEntry.EPluginMenuTargetType.ABSOLUT: an absolute URL or URI that can be opened in a browserIPluginMenuEntry.EPluginMenuTargetType.RELATIV: a path relative to the current context path of the FORMCYCLE applicationIPluginMenuEntry.EPluginMenuTargetType.PORTAL: a path to an XHTML page of the plugin, relative to the top directory in the JAR file of the plugin
- Returns:
Stringthe menu entry target URL.
-
isOpenNewWindow
boolean isOpenNewWindow()
Getter for whether the target of the menu entry should be opened in a new window or tab- Returns:
Booleanif the target should be opened in a new window or tab
-
getTargetType
IPluginMenuEntry.EPluginMenuTargetType getTargetType()
Getter for the target type of the menu entry, seeIPluginMenuEntry.EPluginMenuTargetType.- Returns:
IPluginMenuEntry.EPluginMenuTargetTypethe target type
-
isShowOnSystemUser
default boolean isShowOnSystemUser()
Getter for whether this menu entry should be shown when the system administrator is logged in.- Returns:
Booleantrueif this menu entry should be shown for the system administrator. Default:false.
-
isClientScopeOnly
default boolean isClientScopeOnly()
Getter for whether this menu entry should only be shown if a client is selected in the backend UI.- Returns:
Booleantrueif the menu entry should only be shown if a client is selected in the backend UI. Default:true.
-
getChildEntries
default Collection<IPluginMenuEntry> getChildEntries()
Getter for the child menu entries of this menu entry. Child menu entries are shown as a submenu.- Returns:
CollectionofIPluginMenuEntrys. Default: no child entries.
-
getNeededCustomAccessProperties
default IAccessProperty[] getNeededCustomAccessProperties()
Getter for a list of customIAccessPropertys which all have to be present on the user's role for this menu entry to be shown.- Returns:
IAccessPropertyarray. Default: empty array.
-
getNeededAccessProperties
default EAccessProperty[] getNeededAccessProperties()
Getter for an array of standardEAccessPropertys which all have to be present on the user's role for this menu entry to be shown.- Returns:
EAccessPropertyarray. Default: empty array
-
customIsRendered
default boolean customIsRendered()
Custom method to extend the check for whether the menu entry should be available. This check is or-connected with the other checks (such asgetNeededAccessProperties()).- Returns:
Booleantrueif this menu entry should be rendered. Default:false.
-
-