Package com.orchestranetworks.ui.action

# Class ServiceActionInCurrentContext

java.lang.Object
com.orchestranetworks.ui.action.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 Summary

  Constructors
  Constructor
  Description
  `ServiceActionInCurrentContext(ServiceKey aServiceKey)`
  Creates an action launching the specified user service.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ServiceKey`
  `getServiceKey()`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ServiceActionInCurrentContext

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

- ## Method Details

  - ### getServiceKey

    public ServiceKey getServiceKey()