Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AttributesManager

An interface handling three level attributes: request, session and persistence.

Hierarchy

  • AttributesManager

Index

Methods

Optional deletePersistentAttributes

  • deletePersistentAttributes(): Promise<void>

getPersistentAttributes

  • getPersistentAttributes(useSessionCache?: boolean): Promise<object>
  • Provides persistent attributes retrieved and cached from persistence adapter, provide false to useSessionCache to ignore values cached from previous invocations.

    Parameters

    • Optional useSessionCache: boolean

    Returns Promise<object>

getRequestAttributes

  • getRequestAttributes(): object

getSessionAttributes

  • getSessionAttributes<T>(): T

savePersistentAttributes

  • savePersistentAttributes(): Promise<void>

setPersistentAttributes

  • setPersistentAttributes(persistentAttributes: object): void
  • Overwrites and caches the persistent attributes value. Note no persistence layer calls are being made in this function.

    Parameters

    • persistentAttributes: object
      • [key: string]: any

    Returns void

setRequestAttributes

  • setRequestAttributes(requestAttributes: object): void

setSessionAttributes

  • setSessionAttributes(sessionAttributes: object): void