Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SbManagementDefaultsAdapter

Hierarchy

  • SbManagementDefaultsAdapter

Index

Properties

Methods

Properties

Optional entities

entities: { queue?: SbQueue; subscription?: SbSubscription; topic?: SbTopic }

Type declaration

Methods

Optional onNewSubscriptionRules

  • A function that can be used to create default set of rules that will be added when a new subscription is created. This function, when set, is fired at all time even if the user defined a static array or a dynamic function for the rules.

    If the user provision defines a function for the rules it will be fired first and after that the default rules function will fire.

    The rules from the user's provision is passed to this function and the result from this function will be used as the resolved rules for the subscription. I.E., for pass-through make sure you return the `providedRules array.

    Parameters

    • topicName: string

      The name of the topic grandparent

    • subscriptionName: string

      The name of subscription parent

    • providedRules: SbRuleEntityProvision[]

      The list of rules defined by the user

    • subscriptionProvision: SbTopicSubscriptionEntityProvision

      The provision of the subscription created

    Returns SbRuleEntityProvision[]

Generated using TypeDoc