Interface ServicePermissionRuleContext<S extends EntitySelection>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      S getEntitySelection()
      Returns the current selection.
      ServiceKey getServiceKey()
      Returns the current service key.
      Session getSession()
      Returns the current session.
      ToolbarLocation getToolbarLocation()
      When the permission is being evaluated for displaying or hiding the service as a toolbar action (a button or a menu item), returns the toolbar location containing this action.
      boolean isForDisplay()
      Returns true when the permission is being evaluated for displaying or hiding the service as a toolbar action (a button or a menu item).
      boolean isForDisplayInDefaultMenu()
      Returns true when the permission is being evaluated for displaying or hiding the service as part of a EBX® default menu.
      boolean isForExecution()
      Returns true when the permission is being evaluated for executing the service (launched from a toolbar or accessed from a web component).
    • Method Detail

      • getSession

        Session getSession()
        Returns the current session. Never returns null.
      • getServiceKey

        ServiceKey getServiceKey()
        Returns the current service key.
      • isForDisplay

        boolean isForDisplay()
        Returns true when the permission is being evaluated for displaying or hiding the service as a toolbar action (a button or a menu item).
        See Also:
        getToolbarLocation()
      • isForDisplayInDefaultMenu

        boolean isForDisplayInDefaultMenu()
        Returns true when the permission is being evaluated for displaying or hiding the service as part of a EBX® default menu.
      • isForExecution

        boolean isForExecution()
        Returns true when the permission is being evaluated for executing the service (launched from a toolbar or accessed from a web component).
      • getToolbarLocation

        ToolbarLocation getToolbarLocation()
        When the permission is being evaluated for displaying or hiding the service as a toolbar action (a button or a menu item), returns the toolbar location containing this action. Returns null when isForDisplay() is false.