System messages recipients. System messages recipient

Mixes In:

# 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 (ctxubMethodParams) 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:

# delete (ctxubMethodParams) instance

Delete record by ID

Arguments:

# insert (ctxubMethodParams) instance

New record insertion

Arguments:

# select (ctxubMethodParams) instance

ORM query for read records

Arguments:

# update (ctxubMethodParams) instance

Update existed record

Arguments:
  • ctx: ubMethodParams
    • mParamsobject

      Update method parameters

    • fieldListarray.<string>

      Optional attributes names. Values of this attributes will be returned in result. Additional DB query is required to return values, so if caller do not need it better to not pass a fieldList to update

# accept (ctxubMethodParams) instance

Mark message with specified ID as read by recipient (current logged-in user)

Arguments:

# acceptAll () instance

Mark all non-expired unread messages for the current logged in user as read

# addRoles (ctxubMethodParams) instance

Add all users with roles roles to a message recipient list

Arguments:

# removeRoles (ctxubMethodParams) instance

Add all users with roles roles to a message recipient list

Arguments: