Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ident

First basic model for Ident

Hierarchy

Properties

__ctx: Context

Object context

__deleted: boolean

If an object is deleted but not removed from DB for historic

__new: boolean
__profile: any
__store: Store<CoreModel>

If object is attached to its store

__tokens: IdentTokens
_creationDate: Date
_failedLogin: number
_lastUpdate: Date
_lastUsed: Date
_lastValidationEmail: number
_type: string
_user: string
_validation: Date
lastUpdate: Date
public: boolean
uid: string
uuid: string
jsonExcludes: string[] = ["__store", "__ctx"]

Methods

  • _getSchema(): any
  • _jsonFilter(key: any, value: any): any
  • _onDelete(): Promise<void>
  • _onDeleted(): Promise<void>
  • _onGet(): Promise<void>
  • _onSave(): Promise<void>
  • _onSaved(): Promise<void>
  • _onUpdate(updates: any): Promise<void>
  • _onUpdated(): Promise<void>
  • _toJSON(secure: any): any
  • canAct(ctx: Context, action: string): Promise<this>
  • canCreate(ctx: Context): Promise<this>
  • canDelete(ctx: Context): Promise<this>
  • canGet(ctx: Context): Promise<this>
  • canUpdate(ctx: Context): Promise<this>
  • delete(): Promise<void>
  • generateUid(object?: any): string
  • getAvailableActions(): object
  • getOwner(): any
  • getService<T>(service: any): T
  • getType(): string
  • getUser(): string
  • isAttached(): boolean
  • load(raw: any, secure?: boolean): void
  • save(): Promise<this>
  • setType(type: any): void
  • setUser(user: any): void
  • toJSON(): any
  • toStoredJSON(stringify?: boolean): any
  • update(changes: any): Promise<void>
  • validate(ctx: any, updates?: any): Promise<boolean>
  • getActions(): object
  • getUuidField(): string | string[]
  • init(type: string, uid: string, accessToken?: string, refreshToken?: string, profile?: object): Ident

Generated using TypeDoc