UNPKG

com.phloxui

Version:

PhloxUI Ng2+ Framework

969 lines 692 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ import { Injectable } from '@angular/core'; import { Headers, RequestOptions, URLSearchParams, RequestMethod } from '@angular/http'; import { ConnectionManager } from './ConnectionManager.service'; var ClassesDataService = /** @class */ (function () { function ClassesDataService(connectionMgr) { this.basePath = 'http://' + window.location.hostname + ':8081/hello/'; this.defaultHeaders = new Headers(); this.connectionMgr = connectionMgr; this.defaultHeaders = new Headers(); } /** * @param {?} headers * @return {?} */ ClassesDataService.prototype.addingSessionIdHeader = /** * @param {?} headers * @return {?} */ function (headers) { if (typeof headers !== 'undefined') { headers.set('Session-Id', "9e43f392-5f0b-4c07-8703-1508a99d0be5"); } }; /** * Configure the persisent class metadata. * * @param {?} body The metadata object to configure. * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.configure = /** * Configure the persisent class metadata. * * @param {?} body The metadata object to configure. * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (body, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.configureWithHttpInfo(body, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Create a new persistent object (insert new row). * * @param {?} body The object to be created. * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.create = /** * Create a new persistent object (insert new row). * * @param {?} body The object to be created. * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (body, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.createWithHttpInfo(body, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Create a new persistent object (insert new row) with the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} body The object to be created. * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.createLang = /** * Create a new persistent object (insert new row) with the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} body The object to be created. * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, body, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.createLangWithHttpInfo(lang, body, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Create a new persistent object (insert new row) with the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} body The object to be created. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.createUUIDLang = /** * Create a new persistent object (insert new row) with the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} body The object to be created. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, body, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.createUUIDLangWithHttpInfo(lang, body, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Delete the object (row) from the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} permanent To permanent delete (destroy) the object or not. The destroyed objects will not be able to be recycled. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.delete = /** * Delete the object (row) from the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} permanent To permanent delete (destroy) the object or not. The destroyed objects will not be able to be recycled. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, permanent, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.deleteWithHttpInfo(uuid, classname, permanent, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Delete the object (row) from the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} permanent To permanent delete (destroy) the object or not. The destroyed objects will not be able to be recycled. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.deleteLang = /** * Delete the object (row) from the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} permanent To permanent delete (destroy) the object or not. The destroyed objects will not be able to be recycled. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, permanent, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.deleteLangWithHttpInfo(lang, uuid, classname, permanent, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Delete (destroy) the specified \"version\" copy of the given object \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be deleted (ISO-639) * @param {?} version The object \"version\" number to be deleted. * @param {?} permanent You must explicitly set this header to \"true\" to perform this operation. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.destroyLangVersion = /** * Delete (destroy) the specified \"version\" copy of the given object \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be deleted (ISO-639) * @param {?} version The object \"version\" number to be deleted. * @param {?} permanent You must explicitly set this header to \"true\" to perform this operation. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, version, permanent, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.destroyLangVersionWithHttpInfo(lang, version, permanent, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Delete (destroy) the specified \"version\" of the given object \"uuid\". * * @param {?} version The object \"version\" number to be deleted. * @param {?} permanent You must explicitly set this header to \"true\" to perform this operation. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.destroyVersion = /** * Delete (destroy) the specified \"version\" of the given object \"uuid\". * * @param {?} version The object \"version\" number to be deleted. * @param {?} permanent You must explicitly set this header to \"true\" to perform this operation. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (version, permanent, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.destroyVersionWithHttpInfo(version, permanent, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Find the object (row) from the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.find = /** * Find the object (row) from the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, deleted, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.findWithHttpInfo(uuid, classname, deleted, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Find the object (row) from the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.findLang = /** * Find the object (row) from the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, deleted, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.findLangWithHttpInfo(lang, uuid, classname, deleted, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Find the specified \"version\" copy of the given object \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to find (ISO-639) * @param {?} version The object \"version\" number to find. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.findLangVersion = /** * Find the specified \"version\" copy of the given object \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to find (ISO-639) * @param {?} version The object \"version\" number to find. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, version, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.findLangVersionWithHttpInfo(lang, version, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Find the specified \"version\" copy of the given object \"uuid\". * * @param {?} version The object \"version\" number to find. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.findVersion = /** * Find the specified \"version\" copy of the given object \"uuid\". * * @param {?} version The object \"version\" number to find. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (version, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.findVersionWithHttpInfo(version, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Get current object's available actions. * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getActions = /** * Get current object's available actions. * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, deleted, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getActionsWithHttpInfo(uuid, classname, deleted, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Get persistent class's info. * * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getClassInfo = /** * Get persistent class's info. * * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getClassInfoWithHttpInfo(classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Get current object's available actions in the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getLangActions = /** * Get current object's available actions in the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, deleted, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getLangActionsWithHttpInfo(lang, uuid, classname, deleted, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Get the current object's state in the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getLangState = /** * Get the current object's state in the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, deleted, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getLangStateWithHttpInfo(lang, uuid, classname, deleted, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * List all object's versions from the given \"uuid\" and the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} startIndex The query cursor start index (or the number of first rows to be skipped). * @param {?=} endIndex The query cursor end index (the max rows to be returned will be [\"endIndex\" - \"startIndex\"]). * @param {?=} sortDescending To sort the result list using field \"_version\" in descending order (newest first). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getLangVersions = /** * List all object's versions from the given \"uuid\" and the specified \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} startIndex The query cursor start index (or the number of first rows to be skipped). * @param {?=} endIndex The query cursor end index (the max rows to be returned will be [\"endIndex\" - \"startIndex\"]). * @param {?=} sortDescending To sort the result list using field \"_version\" in descending order (newest first). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, startIndex, endIndex, sortDescending, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getLangVersionsWithHttpInfo(lang, uuid, classname, startIndex, endIndex, sortDescending, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Get persistent class's metadata. * * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getMetadata = /** * Get persistent class's metadata. * * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getMetadataWithHttpInfo(classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Get the object's json schema. * * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getSchemaInfo = /** * Get the object's json schema. * * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getSchemaInfoWithHttpInfo(classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Get the current object's state. * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getState = /** * Get the current object's state. * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} deleted To query the deleted [true], in-used [false] or both [both|all] object. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, deleted, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getStateWithHttpInfo(uuid, classname, deleted, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * List all object's versions from the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} startIndex The query cursor start index (or the number of first rows to be skipped). * @param {?=} endIndex The query cursor end index (the max rows to be returned will be [\"endIndex\" - \"startIndex\"]). * @param {?=} sortDescending To sort the result list using field \"_version\" in descending order (newest first). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.getVersions = /** * List all object's versions from the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} startIndex The query cursor start index (or the number of first rows to be skipped). * @param {?=} endIndex The query cursor end index (the max rows to be returned will be [\"endIndex\" - \"startIndex\"]). * @param {?=} sortDescending To sort the result list using field \"_version\" in descending order (newest first). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, startIndex, endIndex, sortDescending, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.getVersionsWithHttpInfo(uuid, classname, startIndex, endIndex, sortDescending, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * List all available persistent classes. * * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.listClassNames = /** * List all available persistent classes. * * @param {?=} extraHttpRequestParams * @return {?} */ function (extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.listClassNamesWithHttpInfo(extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Make a stateless object to be stateful with the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.makeLangStateful = /** * Make a stateless object to be stateful with the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.makeLangStatefulWithHttpInfo(lang, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Make a stateless object to be stateful with the given \"uuid\" and \"lang\" starting at the specified \"activityId\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} activityId The \"activityId\" of object's starting state. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.makeLangStatefulActivity = /** * Make a stateless object to be stateful with the given \"uuid\" and \"lang\" starting at the specified \"activityId\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} activityId The \"activityId\" of object's starting state. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, activityId, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.makeLangStatefulActivityWithHttpInfo(lang, activityId, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Make a stateful object to be stateless with the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.makeLangStateless = /** * Make a stateful object to be stateless with the given \"uuid\" and \"lang\". * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.makeLangStatelessWithHttpInfo(lang, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Make a stateless object to be stateful with the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.makeStateful = /** * Make a stateless object to be stateful with the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.makeStatefulWithHttpInfo(uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Make a stateless object to be stateful with the given \"uuid\" starting at the specified \"activityId\". * * @param {?} activityId The \"activityId\" of object's starting state. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.makeStateful1 = /** * Make a stateless object to be stateful with the given \"uuid\" starting at the specified \"activityId\". * * @param {?} activityId The \"activityId\" of object's starting state. * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (activityId, uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.makeStatefulActivityWithHttpInfo(activityId, uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Make a stateful object to be stateless with the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.makeStateless = /** * Make a stateful object to be stateless with the given \"uuid\". * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.makeStatelessWithHttpInfo(uuid, classname, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Partial update the object (row) on the given \"uuid\". \@PATCH operation will only update the fields specified in request data. * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} body The object fields to be updated. All object fields not presented in this request data will be leaved to be the same. * @param {?=} incrementVersion Increment the object \"_version\" (if it is version-controlled). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.patchUpdate = /** * Partial update the object (row) on the given \"uuid\". \@PATCH operation will only update the fields specified in request data. * * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} body The object fields to be updated. All object fields not presented in this request data will be leaved to be the same. * @param {?=} incrementVersion Increment the object \"_version\" (if it is version-controlled). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (uuid, classname, body, incrementVersion, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.patchUpdateWithHttpInfo(uuid, classname, body, incrementVersion, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Partial update the object (row) on the given \"uuid\" and \"lang\". \@PATCH operation will only update the fields specified in request data. * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} body The object fields to be updated. All object fields not presented in this request data will be leaved to be the same. * @param {?=} incrementVersion Increment the object \"_version\" (if it is version-controlled). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ ClassesDataService.prototype.patchUpdateLang = /** * Partial update the object (row) on the given \"uuid\" and \"lang\". \@PATCH operation will only update the fields specified in request data. * * @param {?} lang The object's lang code to be queried (ISO-639) * @param {?} uuid The persistent object (row) \"uuid\". * @param {?} classname The persistent class name. * @param {?=} body The object fields to be updated. All object fields not presented in this request data will be leaved to be the same. * @param {?=} incrementVersion Increment the object \"_version\" (if it is version-controlled). * @param {?=} langPreference The language preference used to perform the operation (especially in READ operations such as find/query). * @param {?=} extraHttpRequestParams * @return {?} */ function (lang, uuid, classname, body, incrementVersion, langPreference, extraHttpRequestParams) { var _this = this; return new Promise(function (resolve, reject) { var /** @type {?} */ prom = _this.patchUpdateLangWithHttpInfo(lang, uuid, classname, body, incrementVersion, langPreference, extraHttpRequestParams); prom.then(function (response) { resolve(response.json()); }, function (error) { reject(error); }); }); }; /** * Partial update the specified \"version\" copy of the given object \"uuid\" and \"lang\". \@PATCH operation will only update the fields specified in request data. * * @param {?} lang The object's lang code to be updated