Class User
Hierarchy
-
CoreModel
- User
Properties
Methods
Properties
Object context
If an object is deleted but not removed from DB for historic
If object is attached to its store
Methods
-
Return the object schema, if defined any modification done to the object by external source must comply to this schema
Returns any
-
Parameters
-
key: any
-
value: any
Returns any
-
-
Returns Promise<void>
-
Returns Promise<void>
-
Returns Promise<void>
-
Returns Promise<void>
-
Returns Promise<void>
-
Parameters
-
updates: any
Returns Promise<void>
-
-
Returns Promise<void>
-
Parameters
-
secure: any
Returns any
-
-
Parameters
-
group: string
Returns void
-
-
Parameters
-
role: string
Returns void
-
-
Parameters
-
ctx: Context
-
action: string
Returns Promise<this>
-
-
Return false if can't create
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Return false if can't delete
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Return false if can't get
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Return false if can't update
Parameters
-
ctx: Context
Returns Promise<this>
-
-
Delete this object
Returns Promise<void>
-
Parameters
-
Default value object: any = undefined
Returns string
-
-
Get actions available for the current instance of an object
Returns object
-
Get object context
Global object does not belong to a request
Returns Context
-
Returns string[]
-
Returns any
-
Returns string
-
Returns string[]
-
Get a pre typed service
Type parameters
-
T: Service
Parameters
-
service: any
to retrieve WARNING: Only object attached to a store can retrieve service
Returns T
-
-
Return the object registered store
Returns Store<CoreModel, StoreParameters>
-
Parameters
-
role: string
Returns boolean
-
-
Parameters
-
group: string
Returns boolean
-
-
Return if an object is attached to its store
Returns boolean
-
Parameters
-
timestamp: number
Returns boolean
-
-
Load an object from RAW
Parameters
-
raw: any
data
-
Default value secure: boolean = false
if false will ignore any _ variable
Returns void
-
-
Get the object again
Returns Promise<CoreModel>
-
Parameters
-
group: string
Returns void
-
-
Parameters
-
role: string
Returns void
-
-
Save this object
Returns Promise<this>
-
Context of the request
Parameters
-
ctx: Context
Returns void
-
-
Parameters
-
password: string
Returns void
-
-
Returns any
-
Parameters
-
Default value stringify: boolean = false
Returns any
-
-
Update this object
Parameters
-
changes: any
Returns Promise<void>
-
-
Parameters
-
ctx: any
-
Default value updates: any = undefined
Returns Promise<boolean>
-
-
Get actions callable on an object
This will expose them by the Store with /storeUrl/{uuid}/{action}
Returns object
-
Get the UUID property
Returns string | string[]
Generated using TypeDoc
First basic model for Ident