Interface ActivationContextWithDatasetSet<S extends DatasetEntitySelection>

Type Parameters:
S - Defined by the sub-interface to specify the type of entity selection associated with the declared user service.
All Superinterfaces:
ActivationContext<S>, DatasetSet, DataspaceSet
All Known Subinterfaces:
ActivationContextOnAssociation, ActivationContextOnAssociationRecord, ActivationContextOnDataset, ActivationContextOnHierarchy, ActivationContextOnHierarchyNode, ActivationContextOnRecord, ActivationContextOnTableView, ActivationContextWithSchemaNodeSet<S>

public interface ActivationContextWithDatasetSet<S extends DatasetEntitySelection> extends ActivationContext<S>, DataspaceSet, DatasetSet
Provides common methods for activation contexts related to datasets. All these contexts can define a set of datasets in which the service is activated.

Dataset maximum scope for activation

The maximum activation scope for the set of datasets depends on the type of user declaration:

  • when the registration is done in the context of a data model definition, the maximum scope is all datasets that are an instance of the current data model;
  • when the registration is done in the context of a module registration, the maximum scope is all datasets of the repository.
Since:
5.8.0
  • Method Details

    • getDataModelRootNode

      SchemaNode getDataModelRootNode()
      Returns the root node of the current data model, null if the service is being registered in the context of a module.
    • setActivationRule

      void setActivationRule(ServiceActivationRuleForDataset anActivationRule)
      Activates the service using an advanced rule based on the current dataset.

      Deactivated user services are unavailable in the specified context, including in permission UI screens.

      When a service is activated dynamically for a given dataset, the service default permission is set for all profiles in this dataset (see ActivationContext.setDefaultPermission(UserServicePermission)).