![]() |
Infohub JS API
|
COLNEO infohub Licence Services.
Public Member Functions | |
| async | assignLicenceToUser (licenceids, userid) |
| constructor (ctx=({})) | |
| async | createLicence (licence_data) |
| async | deleteLicence (licenceid) |
| async | getLicenceById (licenceid) |
| async | getLicences (filters=({})) |
| async | getLicencesOfUser (userid) |
| async | unassignLicenceFromUser (licenceid, userid) |
| async | updateLicence (licenceid, licence_data) |
| async assignLicenceToUser | ( | licenceids, | |
| userid ) |
Assign a licence to a user.
| {string[]} | licenceids - The licence IDs |
| {string} | userid - The user ID |
| constructor | ( | ctx = ({}) | ) |
| {Context} | ctx - The context |
| async createLicence | ( | licence_data | ) |
Create a licence.
| {object} | licence_data - The licence data |
| {string} | [licence_data.contract] - The contract |
| {string} | [licence_data.licencee] - The licencee |
| {string} | [licence_data.scope] - The scope |
| {string} | [licence_data.module] - The module |
| {string} | [licence_data.maxpermissions] - The max permissions |
| {string} | [licence_data.maxseats] - The max seats |
| {string} | [licence_data.startdate] - The start date |
| {string} | [licence_data.expirated] - The expirated date |
| async deleteLicence | ( | licenceid | ) |
Delete a licence.
| {string} | licenceid - The licence ID |
| async getLicenceById | ( | licenceid | ) |
Get a licence by ID.
| {string} | licenceid - The licence ID |
| async getLicences | ( | filters = ({}) | ) |
List licences with optional filters (all can be combined).
like
| {Record<string,string>} | filters - The filters |
| async getLicencesOfUser | ( | userid | ) |
Get licences of a user.
| {string} | userid - The user ID |
| async unassignLicenceFromUser | ( | licenceid, | |
| userid ) |
Unassign a licence from a user.
| {string} | licenceid - The licence ID |
| {string} | userid - The user ID |
| async updateLicence | ( | licenceid, | |
| licence_data ) |
Update a licence.
| {string} | licenceid - The licence ID |
| {object} | licence_data - The licence data |
| {string} | [licence_data.contract] - The contract |
| {string} | [licence_data.licencee] - The licencee |
| {string} | [licence_data.scope] - The scope |
| {string} | [licence_data.module] - The module |
| {string} | [licence_data.maxpermissions] - The max permissions |
| {string} | [licence_data.maxseats] - The max seats |
| {string} | [licence_data.startdate] - The start date |
| {string} | [licence_data.expirated] - The expirated date |