123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Content Explorer
- *| (C) Copyright IBM Corp. 2018
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define([
- './LegacyCAMyContentView',
- './nls/StringResource'
- ], function( MyContentView, StringResource) {
- 'use strict'; //NOSONAR
- var MyPortalPagesView = MyContentView.extend({
- stateId: 'PortalPagesView',
- init: function(options) {
- options.getListControlOptions = function() {
- return {
- contextMenuId: 'com.ibm.bi.contentApps.pageletRefListViewMenu',
- getJSONDataCallback: options.glassContext.services.userProfile.getPortalPages
- };
- };
- MyPortalPagesView.inherited('init', this, arguments);
- this.filterMenuNamePrefix = 'MYPORTALPAGES_';
- this.emptyIcon = '#ba_content_nav-folder-portal-pages_32';
- },
- getRootAncestor: function() {
- var rootAncestor = MyPortalPagesView.inherited('getRootAncestor', this, arguments);
- rootAncestor.defaultName = StringResource.get('myPortalPages');
- rootAncestor.type = 'pageletRefs';
- rootAncestor.id = '.my_portalPages';
- return rootAncestor;
- }
- });
- return MyPortalPagesView;
- });
|