Class: Notification

Notification(opts)

The Notification class wraps node operations

Cannot directly be instantiated

Constructor

new Notification(opts)

Creates a Node

Parameters:
Name Type Description
opts object

The configuration options.

Methods

notify(uuids, users, roles, mails, message, attachment) → {Promise.<any>|Promise.<*>}

send notify

Parameters:
Name Type Description
uuids

The list of uuid's

users

The list of assigned users

roles

The list of assigned roles

mails

The list of external emails

message

The message notification

attachment

When true the documents are sent as attachments in the email

Returns:

Return void

Type
Promise.<any> | Promise.<*>

notify(uuids, users, roles, mails, message, attachment) → {Promise.<any>|Promise.<*>}

send notify

Parameters:
Name Type Description
uuids

The list of uuid's

users

The list of assigned users

roles

The list of assigned roles

mails

The list of external emails

message

The message notification

attachment

When true the documents are sent as attachments in the email

Returns:

Return void

Type
Promise.<any> | Promise.<*>

setRestUrl(restUrl)

Set the rest url

Parameters:
Name Type Description
restUrl

The rest url

setRestUrl(restUrl)

Set the rest url

Parameters:
Name Type Description
restUrl

The rest url

setToken(token)

Set the token in Node variables

Parameters:
Name Type Description
token

The authorization token value

setToken(token)

Set the token in Node variables

Parameters:
Name Type Description
token

The authorization token value

Notification(opts)

The Notification class wraps node operations

Cannot directly be instantiated

Constructor

new Notification(opts)

Creates a Node

Parameters:
Name Type Description
opts object

The configuration options.

Methods

notify(uuids, users, roles, mails, message, attachment) → {Promise.<any>|Promise.<*>}

send notify

Parameters:
Name Type Description
uuids

The list of uuid's

users

The list of assigned users

roles

The list of assigned roles

mails

The list of external emails

message

The message notification

attachment

When true the documents are sent as attachments in the email

Returns:

Return void

Type
Promise.<any> | Promise.<*>

notify(uuids, users, roles, mails, message, attachment) → {Promise.<any>|Promise.<*>}

send notify

Parameters:
Name Type Description
uuids

The list of uuid's

users

The list of assigned users

roles

The list of assigned roles

mails

The list of external emails

message

The message notification

attachment

When true the documents are sent as attachments in the email

Returns:

Return void

Type
Promise.<any> | Promise.<*>

setRestUrl(restUrl)

Set the rest url

Parameters:
Name Type Description
restUrl

The rest url

setRestUrl(restUrl)

Set the rest url

Parameters:
Name Type Description
restUrl

The rest url

setToken(token)

Set the token in Node variables

Parameters:
Name Type Description
token

The authorization token value

setToken(token)

Set the token in Node variables

Parameters:
Name Type Description
token

The authorization token value