public final class ServiceActionInCurrentContext extends Object implements 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.
WebComponentAction
Constructor and Description |
---|
ServiceActionInCurrentContext(ServiceKey aServiceKey)
Creates an action launching the specified user service.
|
Modifier and Type | Method and Description |
---|---|
ServiceKey |
getServiceKey() |
public ServiceActionInCurrentContext(ServiceKey aServiceKey)
aServiceKey
- identifies the user service to be launched.public ServiceKey getServiceKey()