GlobalParametersService.js 981 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. /**
  3. * Licensed Materials - Property of IBM
  4. * IBM Cognos Products: Cognos Analytics
  5. * Copyright IBM Corp. 2017, 2017
  6. * US Government Users Restricted Rights - Use, duplication or disclosure
  7. * restricted by GSA ADP Schedule Contract with IBM Corp.
  8. */
  9. define(['underscore', 'bi/commons/ui/core/Class'], function (_, Class) {
  10. var GlobalParametersService = Class.extend({
  11. init: function init(options) {
  12. GlobalParametersService.inherited('init', this, arguments);
  13. _.extend(this, options);
  14. this.fetchService = options.glassContext.services.fetch;
  15. },
  16. getSystemUserProfileSettings: function getSystemUserProfileSettings(data) {
  17. return this.fetchService.post('v1/reports', {
  18. 'headers': {
  19. 'SOAPAction': 'http://www.ibm.com/xmlns/prod/cognos/contentManagerService/201703/'
  20. },
  21. 'contentType': 'text/xml; charset=UTF-8',
  22. 'data': data
  23. });
  24. }
  25. });
  26. return GlobalParametersService;
  27. });