Package com.orchestranetworks.userservice.permission

# Interface ServiceActivationRuleForDataspace

public interface ServiceActivationRuleForDataspace
This interface can be implemented to specify whether a user service is disabled for a given dataspace. Deactivated user services are never displayed in the specified context, including in permission UI screens.

Since:
  5.8.0

- ## Field Summary

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

- ## Method Summary

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

- ## Field Details

  - ### ALWAYS_UNAVAILABLE

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

- ## Method Details

  - ### isAvailableFor

    boolean isAvailableFor(ServiceActivationRuleForDataspaceContext aContext)
    Returns whether the service is available for the specified dataspace context.

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