Class

Licence

Licence(data)

COLNEO infohub Licence

Information about an infohub user licence. Contains licencee information as well as modules and information about permissions.

Constructor

# new Licence(data)

Create a licence from a JSON object

Parameters:
Name Type Description
data object

The licence data

View Source infohub/Licence.js, line 41

Example
{
  "contract": "",
  "created": "2025-01-01T00:00:00Z",
  "createdby": "user@example.com",
  "expirated": null,
  "id": "00000000-0000-0000-0000-000000000000",
  "licenced_userids": ["user@example.com"],
  "licencee": {
    "address": "{\"street\":\"...\", \"city\":\"...\", \"zip\":\"...\"}",
    "email": "info@example.com",
    "name": "ACME"
  },
  "maxpermissions": 50,
  "maxseats": 0,
  "module": "objecttypes",
  "scope": "cn_dv",
  "startdate": "2025-01-01T00:00:00Z",
  "updated": "2025-01-01T00:00:00Z",
  "updatedby": "user@example.com"
}

Classes

Licence

Members

any

# 'licenced_userid'

View Source infohub/Licence.js, line 77

any

# 'licencee'

View Source infohub/Licence.js, line 70

Methods

# getData() → {object}

Get the licence data

View Source infohub/Licence.js, line 61

object

# getLicencedUserIds() → {Array.<string>}

Get licenced user IDs

View Source infohub/Licence.js, line 76

Array.<string>

# getLicencee() → {any}

Get licencee

View Source infohub/Licence.js, line 69

any

# setData(data) → {void}

Set the licence data

Parameters:
Name Type Description
data object

The licence data

View Source infohub/Licence.js, line 54

void