Options
All
  • Public
  • Public/Protected
  • All
Menu

Class User

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

__store: Store<CoreModel>

If object is attached to its store

_creationDate: Date
_lastUpdate: Date
_user: any
lastUpdate: Date
public: boolean
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
  • addGroup(group: string): void
  • addRole(role: string): void
  • 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
  • getGroups(): string[]
  • getOwner(): any
  • getPassword(): string
  • getRoles(): string[]
  • getService<T>(service: any): T
  • hasRole(role: string): boolean
  • inGroup(group: string): boolean
  • isAttached(): boolean
  • lastPasswordRecoveryBefore(timestamp: number): boolean
  • load(raw: any, secure?: boolean): void
  • removeGroup(group: string): void
  • removeRole(role: string): void
  • save(): Promise<this>
  • setPassword(password: string): void
  • toJSON(): any
  • toStoredJSON(stringify?: boolean): any
  • update(changes: any): Promise<void>
  • validate(ctx: any, updates?: any): Promise<boolean>
  • getActions(): object
  • getUuidField(): string | string[]

Generated using TypeDoc