System messages recipients. System messages recipient
# new ubs_message_recipient_ns ()
Members
# attrs : ubsMessageRecipientAttrs 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
# accept (ctx: ubMethodParams) instance
Mark message with specified ID as read by recipient (current logged-in user)
Arguments:
ctx
: ubMethodParams
# acceptAll () instance
Mark all non-expired unread messages for the current logged in user as read
# addRoles (ctx: ubMethodParams) instance
Add all users with roles roles
to a message recipient list
Arguments:
ctx
: ubMethodParams
# removeRoles (ctx: ubMethodParams) instance
Add all users with roles roles
to a message recipient list
Arguments:
ctx
: ubMethodParams