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):

NameTypeMandatoryDefault Value
typeStringYДа

NНет

Info

Possible valuesВозможные значения:

  • access
  • approvals
  • tasks
  • notifications


delegatorIdIntegerStringYДаNНет
fromDateTimeSimpleDateTime objectNНетNНет
toDateTimeSimpleDateTime objectNНетNНет

ReturnsВозвращаемое значение:

TypeТипDescriptionОписание
Array This method returns an array of delegates.of SimpleRecordsМетод возвращает массив заместителей.

ПримерExample:

Code Block
languagejs
themeEclipse
titlegetDelegatesOfType()
linenumberstrue
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):


Используйте метод, чтобы получить массив сотрудников, которые делегировали свои полномочия указанному в параметре delegateId пользователю.

Параметры:

НазваниеТипОбязательныйЗначение по умолчаниюNameTypeMandatoryDefault Value
typeStringYДа

NНет

Info

Possible valuesВозможные значения:

  • access
  • approvals
  • tasks
  • notifications


delegateIdIntegerStringYДаNНет
fromDateTimeSimpleDateTime objectNНетNНет
toDateTimeSimpleDateTime objectNНетNНет

ReturnsВозвращаемое значение:

TypeТипDescriptionОписание
Array This method returns an array of delegates.of SimpleRecordsМетод возвращает массив сотрудников, делегировавших свои обязанности.

ПримерExample:

Code Block
languagejs
themeEclipse
titlegetDelegatorsOfType()
linenumberstrue
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):


Используйте этот метод, чтобы проверить наличие записей делегирования.

Параметры:

НазваниеТипОбязательныйЗначение по умолчаниюNameTypeMandatoryDefault Value
typeStringYДа

NНет

Info

Possible valuesВозможные значения:

  • access
  • approvals
  • tasks
  • notifications


delegateIddelegatorIdsIntegerArray of StringsYДаNНет
delegatorIddelegateIdIntegerStringYДаNНет
fromDateTimeSimpleDateTime objectNНетNНет
toDateTimeSimpleDateTime objectNНетNНет

ReturnsВозвращаемое значение:

TypeТипDescriptionОписание
BooleanThis method returns 'true' if the delegation record with the specified value of the parameters exists. Otherwise, it returns 'false'.Метод возвращает true, если существует запись делегирования с указанными значениями параметров; если записи не существует, метод возвращает false.

ПримерExample:

Code Block
languagejs
themeEclipse
titlehasDelegationOfType()
linenumberstrue
let simpleDelegation = new SimpleDelegation();
let result = simpleDelegation.hasDelegationOfType('access', ['166116760014825307'], '165951644312968191');
setResult(result);


Table of Contents
absoluteUrltrue
classfixedPosition
printablefalse