Options
All
  • Public
  • Public/Protected
  • All
Menu

Generates permissions for a SPARQL DELETE/INSERT patch. Updates with only an INSERT can be done with just append permissions, while DELETEs require write permissions as well.

Hierarchy

Index

Constructors

constructor

Methods

canHandle

  • canHandle(__namedParameters: Operation): Promise<void>

handle

handleSafe

  • Helper function that first runs the canHandle function followed by the handle function. Throws the error of the canHandle function if the data can't be handled, or returns the result of the handle function otherwise.

    Parameters

    • input: Operation

      Input data that will be handled if it can be handled.

    Returns Promise<PermissionSet>

    A promise resolving if the input can be handled, rejecting with an Error if not. Return value depends on the given type.

Private isDeleteInsert

  • isDeleteInsert(op: Operation): op is DeleteInsert

Private isSparql

Private isSupported

  • isSupported(op: Operation): boolean

Private needsAppend

  • needsAppend(update: Operation): boolean

Private needsWrite

  • needsWrite(update: Operation): boolean