Physical persons dictionary. The directory stores a list of persons (physical persons)
Mixes In:
# new cdn_person_ns ()
Members
# attrs : cdnPersonAttrs static
Attributes defined in metadata. Property does not exist in real life and added for IDE
# entity : UBEntity instance
Reference to entity metadata
Methods
# checkPhotoMimeType (ctxt: ubMethodParams, mimeTypes: Array.<string>) instance
Check mime type of uploaded photo is in mimeTypes array
Arguments:
ctxt
: ubMethodParamsmimeTypes
: Array.<string>
# addNew (ctx: ubMethodParams) instance
Create record with filled default values and return it to caller.
Newly created record is not inserted to database. For inserting record to the database insert
method should be called
Arguments:
ctx
: ubMethodParamsmParams
: objectOptional values for attributes of new record
# delete (ctx: ubMethodParams) instance
Delete record by ID
Arguments:
ctx
: ubMethodParamsmParams
: objectDelete method parameters
# fts (ctx: ubMethodParams) instance
Full text search query
Arguments:
ctx
: ubMethodParams
# ftsreindex (ctx: ubMethodParams) instance
Re-create entity FTS index
Arguments:
ctx
: ubMethodParams
# insert (ctx: ubMethodParams) instance
New record insertion
Arguments:
ctx
: ubMethodParamsmParams
: objectInsert method parameters
# newversion (ctx: ubMethodParams) instance
Create new version of specified record
Arguments:
ctx
: ubMethodParams
# select (ctx: ubMethodParams) instance
ORM query for read records
Arguments:
ctx
: ubMethodParamsmParams
: UBQLORM query in UBQL format
# update (ctx: ubMethodParams) instance
Update existed record
Arguments:
ctx
: ubMethodParams