Options
All
  • Public
  • Public/Protected
  • All
Menu

Discover event.

Hierarchy

Index

Constructors

constructor

Properties

eventRequest

eventRequest: CommunicationEvent<CommunicationEventData> = ...
internal

For internal use in framework only. Do not use in application code.

resolve

resolve: (event: ResolveEvent) => void

Type declaration

    • Respond to an observed Discover event by returning the given event.

      Parameters

      Returns void

Accessors

data

  • get data(): T

eventType

eventTypeFilter

  • get eventTypeFilter(): string

responseEventType

sourceId

  • get sourceId(): string
  • set sourceId(sourceId: string): void

Methods

ensureValidResponseParameters

  • internal

    For internal use in framework only.

    throws

    if the given Resolve event data does not correspond to the event data of this Discover event.

    Parameters

    Returns void

Static isValidEventFilter

  • isValidEventFilter(name: string): boolean
  • Determines whether the given name is valid as an event filter for Coaty communication.

    Event filters are used for Coaty communication event filtering, e.g. to filter a communication namespace, an object type, a channel identifier, or a remote operation.

    An event filter is valid for communication if it is non-empty and does not contain the following characters: NULL (U+0000), # (U+0023), + (U+002B), / (U+002F).

    Parameters

    • name: string

      an event filter

    Returns boolean

    true if the given name can be used for event filtering; false otherwise

Static withCoreTypes

Static withExternalAndObjectId

  • withExternalAndObjectId(externalId: string, objectId: string): DiscoverEvent
  • Create a DiscoverEvent instance for discovering objects with the given external Id and object Id.

    Parameters

    • externalId: string

      the external ID to discover

    • objectId: string

      the object ID to discover

    Returns DiscoverEvent

Static withExternalId

Static withExternalIdAndCoreTypes

  • Create a DiscoverEvent instance for discovering objects with the given external Id and core types.

    Parameters

    • externalId: string

      the external ID to discover

    • coreTypes: CoreType[]

      an array of core types to discover

    Returns DiscoverEvent

Static withExternalIdAndObjectTypes

  • withExternalIdAndObjectTypes(externalId: string, objectTypes: string[]): DiscoverEvent
  • Create a DiscoverEvent instance for discovering objects with the given external Id and object types.

    Parameters

    • externalId: string

      the external ID to discover

    • objectTypes: string[]

      an array of object types to discover

    Returns DiscoverEvent

Static withObjectId

Static withObjectTypes

Generated using TypeDoc