CurrentOperator (Class)

Object containing information on the current operator (name, identifiers, rights, etc.).

This class has a single instance which provides access to certain properties of the applicative server. This singleton is accessible via the property of the application global variable.

Example:

var operator = application.operator

logInfo("login: " + operator.login)
logInfo("id: " + operator.id)
logInfo("description: " + operator.computeString)

logInfo("=== Groups ===")
for each(var id in operator.groups)
  logInfo(id)

logInfo("=== Rights ===")
for each(var right in operator.rights)
  logInfo(right)

Methods

hasRight

Tests if the operator has a specific named right.

Properties

login

Returns the login of the current operator.

id

Returns the internal identifier of the current operator.

computeString

Returns the current operator description string. By default this is the name of the operator followed by their login.

groups

Returns the list of identifiers in the current operator groups.

rights

Returns the list of the current operator's rights.

timezone

Returns the name of the time zone used by the current operator.

home

Returns the name of the root folder of the current operator.

Features

Available in:

  • Content management
  • Delivery properties
  • Typology rule
  • JSSP
  • SOAP Method
  • WebApp
  • Workflow