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

NameTypeMandatoryОбязательныйЗначение по умолчаниюDefault Value
typeStringYДа

NНет

Info

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

  • access доступ
  • approvalsсогласования
  • tasksзадачи
  • notificationsуведомления


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


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

TypeDescriptionОписание
ArrayThis method returns an array of delegatesМетод возвращает массив заместителей.

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


Метод возвращает массив сотрудников, которые делегировали свои полномочия.

Параметры:

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

NНет

Info

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

  • access доступ
  • approvalsсогласования
  • tasksзадачи
  • notificationsуведомления


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

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

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

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)Параметры:

NameTypeMandatoryОбязательныйЗначение по умолчаниюDefault Value
typeStringY

N

Info

Possible values:

  • access
  • approvals
  • tasks
  • notifications


delegateIdIntegerYN
delegatorIdIntegerYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN

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

TypeDescriptionОписание
BooleanThis method returns 'true' if the delegation record with the specified value of the parameters exists. Otherwise, it returns '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