MyPortalPagesView.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Content Explorer
  5. *| (C) Copyright IBM Corp. 2018
  6. *|
  7. *| US Government Users Restricted Rights - Use, duplication or disclosure
  8. *| restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *+------------------------------------------------------------------------+
  10. */
  11. define([
  12. './LegacyCAMyContentView',
  13. './nls/StringResource'
  14. ], function( MyContentView, StringResource) {
  15. 'use strict'; //NOSONAR
  16. var MyPortalPagesView = MyContentView.extend({
  17. stateId: 'PortalPagesView',
  18. init: function(options) {
  19. options.getListControlOptions = function() {
  20. return {
  21. contextMenuId: 'com.ibm.bi.contentApps.pageletRefListViewMenu',
  22. getJSONDataCallback: options.glassContext.services.userProfile.getPortalPages
  23. };
  24. };
  25. MyPortalPagesView.inherited('init', this, arguments);
  26. this.filterMenuNamePrefix = 'MYPORTALPAGES_';
  27. this.emptyIcon = '#ba_content_nav-folder-portal-pages_32';
  28. },
  29. getRootAncestor: function() {
  30. var rootAncestor = MyPortalPagesView.inherited('getRootAncestor', this, arguments);
  31. rootAncestor.defaultName = StringResource.get('myPortalPages');
  32. rootAncestor.type = 'pageletRefs';
  33. rootAncestor.id = '.my_portalPages';
  34. return rootAncestor;
  35. }
  36. });
  37. return MyPortalPagesView;
  38. });