System messages. System messages
Mixes In:
# new ubs_message_edit_ns ()
Members
# attrs : ubsMessageEditAttrs static
Attributes defined in metadata. Property does not exist in real life and added for IDE
# entity : UBEntity instance
Reference to entity metadata
Methods
# 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
# insert (ctx: ubMethodParams) instance
New record insertion
Arguments:
ctx
: ubMethodParamsmParams
: objectInsert method parameters
# 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
# notifyAllMessageRecipients (messageID: number) instance
Send a WS command ubs_message
to all recipient of message with ID messageID
Arguments:
messageID
: number
# notifyAllRecipients () instance
Send a WS command ubs_message
to all recipient who are ready to send unaccepted messages.
To be user in scheduler for sending notification