Interface IPluginMenuEntry


  • public interface IPluginMenuEntry
    Interface 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
    • Method Detail

      • getText

        String getText​(Locale locale)
        Getter for the text to show in the menu entry.
        Parameters:
        locale - the current Locale of the ui
        Returns:
        String the text of this menu entry
      • getIcon

        String getIcon()
        Getter for the CSS class for the icon of this menu entry
        Returns:
        String the CSS class for the icon
      • isOpenNewWindow

        boolean isOpenNewWindow()
        Getter for whether the target of the menu entry should be opened in a new window or tab
        Returns:
        Boolean if the target should be opened in a new window or tab
      • isPublic

        default boolean isPublic()
        Returns:
        true when this menu entry is available without logging in, or false otherwise. Defaults to false.
      • isShowOnSystemUser

        default boolean isShowOnSystemUser()
        Getter for whether this menu entry should be shown when the system administrator is logged in.
        Returns:
        Boolean true if 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:
        Boolean true if the menu entry should only be shown if a client is selected in the backend UI. Default: true.
      • getNeededCustomAccessProperties

        default IAccessProperty[] getNeededCustomAccessProperties()
        Getter for a list of custom IAccessPropertys which all have to be present on the user's role for this menu entry to be shown.
        Returns:
        IAccessProperty array. Default: empty array.
      • getNeededAccessProperties

        default EAccessProperty[] getNeededAccessProperties()
        Getter for an array of standard EAccessPropertys which all have to be present on the user's role for this menu entry to be shown.
        Returns:
        EAccessProperty array. 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 as getNeededAccessProperties()).
        Returns:
        Boolean true if this menu entry should be rendered. Default: false.