Package com.orchestranetworks.userservice.permission

# Interface ServiceActivationRuleForDataset

public interface ServiceActivationRuleForDataset
This interface can be implemented to dynamically figure out whether a user service is globally disabled on a dataset and/or a dataspace.

Since:
  5.8.0

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final ServiceActivationRuleForDataset`
  `ALWAYS_UNAVAILABLE`
  Deactivates the service, regardless of the context.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isAvailableFor(ServiceActivationRuleForDatasetContext aContext)`
  Returns whether the current service is available for the specified dataset context.

- ## Field Details

  - ### ALWAYS_UNAVAILABLE

    static final ServiceActivationRuleForDataset ALWAYS_UNAVAILABLE
    Deactivates the service, regardless of the context.

- ## Method Details

  - ### isAvailableFor

    boolean isAvailableFor(ServiceActivationRuleForDatasetContext aContext)
    Returns whether the current service is available for the specified dataset context.

    If this method returns `false`, the current user service is unavailable in the specified dataset, including in the user interface to define permissions.