PropertiesAPI.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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, 2020
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @interface PropertiesAPI
  10. * @hideconstructor
  11. * @classdesc API class that is used to obtain the list of properties and property layouts, and manage provider registrations.
  12. * @example dashboard.getFeature('Properties')
  13. */
  14. define([], function () {
  15. var PropertiesAPI = function () {
  16. function PropertiesAPI() {
  17. _classCallCheck(this, PropertiesAPI);
  18. }
  19. /**
  20. * @function PropertiesAPI#getPropertyLayoutList
  21. * @description Returns the list of all property layouts.
  22. * @return {Object[]}
  23. */
  24. PropertiesAPI.prototype.getPropertyLayoutList = function getPropertyLayoutList() {};
  25. /**
  26. * @function PropertiesAPI#getPropertyList
  27. * @description Returns the list of all properties.
  28. * @return {Object[]}
  29. */
  30. PropertiesAPI.prototype.getPropertyList = function getPropertyList() {};
  31. /**
  32. * @function PropertiesAPI#registerProvider
  33. * @description Registers a provider as a properties provider.
  34. * @param {PropertiesProviderAPI} provider Properties provider to register and contribute properties
  35. */
  36. PropertiesAPI.prototype.registerProvider = function registerProvider() {};
  37. /**
  38. * @function PropertiesAPI#deregisterProvider
  39. * @description Deregisters a provider as a properties provider.
  40. * @param {PropertiesProviderAPI} provider Properties provider to deregister and remove properties
  41. */
  42. PropertiesAPI.prototype.deregisterProvider = function deregisterProvider() {};
  43. /**
  44. * for debug usage
  45. */
  46. PropertiesAPI.prototype.getProviderPropertyNameList = function getProviderPropertyNameList() {};
  47. return PropertiesAPI;
  48. }();
  49. return PropertiesAPI;
  50. });
  51. //# sourceMappingURL=PropertiesAPI.js.map