Class AbstractProxy<U, T>Abstract

class: AbstractProxy

  • common abstract based class for Proxy

Type Parameters

Hierarchy

  • AbstractProxy

Constructors

Properties

_identity: { [key: string]: NextIdentityAccess } = {}

the cached identity model

Deprecated

useless anymore since 3.2.10

Type declaration

_proxies: ManagerProxy<any, any, string>[] = []

list of manager-proxy

cache?: CacheService<any>

(internal) cache service instance

context: NextContext<NextIdentity<any>>

(internal) current context

parrallel: number

parrallel factor

service: T

(internal) backend-service

Accessors

Methods

  • featch identity-acess from lemon-accounts-api

    Deprecated

    useless anymore since 3.2.10

    Parameters

    • identityId: string
    • Optional domain: string

    Returns Promise<{ $identity: NextIdentityAccess<any>; identityId: string }>

  • get current identity-id

    Parameters

    • throwable: boolean = true

    Returns Promise<string>

  • fetch(or load) identity.

    Returns

    the cached identity-access

    Deprecated

    useless anymore since 3.2.10

    Parameters

    • identityId: string

      id to find

    • Optional force: boolean

      (optional) force to reload if not available

    Returns Promise<NextIdentityAccess<any>>

  • save all updates by each proxies.

    • 업데이트할 항목을 모두 저장함

    Parameters

    • Optional options: { onlyValid?: boolean; parrallel?: number }

      running parameters.

      • Optional onlyValid?: boolean

        (optional) flag to use only valid value (not null) (default true)

      • Optional parrallel?: number

        (optional) the parrallel factor

    Returns Promise<any[]>

Generated using TypeDoc