Class ServiceActionInCurrentContext

  • All Implemented Interfaces:
    Action

    public final class ServiceActionInCurrentContext
    extends Object
    implements Action
    Defines a user service call that can be used on a toolbar element with an action.

    Permissions are resolved on this type of action, meaning that if, in the current user session, it is not allowed to call the specified service, the element triggering the action will not display.

    The user service call is done on the same page and same session as the toolbar (not in a pop-up). In this way, the service can access the current record selection.

    To call a service in the standard pop-up, please use WebComponentAction. In this way, the service is called in a sub-session. In this case, the record selection is not accessible, and permissions on the toolbar element cannot be resolved.

    Since:
    5.7.1.
    See Also:
    WebComponentAction
    • Constructor Detail

      • ServiceActionInCurrentContext

        public ServiceActionInCurrentContext​(ServiceKey aServiceKey)
        Creates an action launching the specified user service.
        Parameters:
        aServiceKey - identifies the user service to be launched.
    • Method Detail

      • getServiceKey

        public ServiceKey getServiceKey()