Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This server class provides methods that allow to interact with delegation recordsВ данном серверном классе представлены методы, позволяющие взаимодействовать с записями делегирования.
getDelegatesOfType()
Метод возвращает массив заместителей.
ПараметрыThis method returnsan array of delegates.Parameter(s):
Name | Type | Mandatory | Обязательный | Значение по умолчаниюDefault Value | |
---|---|---|---|---|---|
type | String | YДа | NНет
| ||
delegatorId | Integer | YДа | NНет | ||
fromDateTime | SimpleDateTime object | NНетN | Нет | ||
toDateTime | SimpleDateTime object | NНетN | Нет |
ReturnsВозвращаемое значение:
Type | DescriptionОписание |
---|---|
Array | This method returns an array of delegatesМетод возвращает массив заместителей. |
ExampleПример:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
let simpleDelegation = new SimpleDelegation(); let result = simpleDelegation.getDelegatesOfType('approvals', '166116760014825307'); setResult(result); |
getDelegatorsOfType()
This method returns an array of the employees who delegated authority.
Parameter(s):
Метод возвращает массив сотрудников, которые делегировали свои полномочия.
Параметры:
Название | Тип | Обязательный | Значение по умолчанию | Name | Type | Mandatory | Default Value |
---|---|---|---|---|---|---|---|
type | String | YДа | NНет
| ||||
delegateId | Integer | YДа | NНет | ||||
fromDateTime | SimpleDateTime object | NНетN | Нет | ||||
toDateTime | SimpleDateTime object | NНетN | Нет |
ReturnsВозвращаемое значение:
TypeТип | DescriptionОписание |
---|---|
Array | This method returns an array of delegatesМетод возвращает массив заместителей. |
ExampleПример:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
let simpleDelegation = new SimpleDelegation(); let result = simpleDelegation.getDelegatorsOfType('tasks', '166116760014825307'); setResult(result); |
hasDelegationOfType()
This method returns 'true' if there is a specific delegation record.
Parameter(s)Параметры:
Name | Type | Mandatory | Обязательный | Значение по умолчаниюDefault Value | |
---|---|---|---|---|---|
type | String | Y | N
| ||
delegateId | Integer | Y | N | ||
delegatorId | Integer | Y | N | ||
fromDateTime | SimpleDateTime object | N | N | ||
toDateTime | SimpleDateTime object | N | N |
ReturnsВозвращаемое значение:
Type | DescriptionОписание |
---|---|
Boolean | This method returns 'true' if the delegation record with the specified value of the parameters exists. Otherwise, it returns 'false'. |
ExampleПример:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
let simpleDelegation = new SimpleDelegation(); let result = simpleDelegation.hasDelegationOfType('access', '166116760014825307', '165951644312968191'); setResult(result); |
Table of Contents | ||||||
---|---|---|---|---|---|---|
|