DashboardTemplates.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class DashboardTemplates
  10. * @hideconstructor
  11. * @classdesc API class that is used to manage DashboardTemplates
  12. * (including the corrsponding view) across API calls
  13. */
  14. define(['./api/impl/DashboardTemplatesImpl'], function (DashboardTemplatesImpl) {
  15. var DashboardTemplates = function () {
  16. function DashboardTemplates(_ref) {
  17. var features = _ref.features;
  18. _classCallCheck(this, DashboardTemplates);
  19. this._dashboardApi = features.API;
  20. this._api = new DashboardTemplatesImpl({
  21. feature: this,
  22. logger: this._dashboardApi.getGlassSvc('.Logger'),
  23. getContentSvc: this._dashboardApi.getGlassSvc('.Content'),
  24. featureChecker: this._dashboardApi.getGlassCoreSvc('.FeatureChecker')
  25. });
  26. }
  27. DashboardTemplates.prototype.getAPI = function getAPI() {
  28. return this._api.getAPI();
  29. };
  30. DashboardTemplates.prototype.destroy = function destroy() {
  31. this._api = null;
  32. };
  33. return DashboardTemplates;
  34. }();
  35. return DashboardTemplates;
  36. });
  37. //# sourceMappingURL=DashboardTemplates.js.map