12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Content Explorer
- *| (C) Copyright IBM Corp. 2017, 2018
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define([
- 'bi/content_apps/LegacyCATeamFoldersView',
- 'bacontentnav/utils/ContentServiceUrls'
- ], function(TeamFoldersSlideoutView, ContentServiceUrls) {
- 'use strict'; //NOSONAR
- var CustomFoldersSlideoutView = TeamFoldersSlideoutView.extend({
- init: function(options) {
- void(options);
- CustomFoldersSlideoutView.inherited('init', this, arguments);
- var teamFolders = this.glassContext.getCoreSvc('.UserProfile').userProfileSettings.ui_teamFolders;
- if (teamFolders) {
- this.folder = teamFolders.pathRef;
- }
- },
- _getModuleName: function() {
- return 'bi/content_apps/CustomFoldersSlideoutView';
- },
- _getSwitchedModuleName: function() {
- this.logger.error('CustomFolders slideout does not support a wide view');
- },
- _getDefaultRequestURL: function() {
- var returnUrl = CustomFoldersSlideoutView.inherited('_getDefaultRequestURL', this, arguments);
- if (this.folder) {
- returnUrl = ContentServiceUrls.getBaseObjectsURL() + '/' + this.folder + '/items';
- }
- return returnUrl;
- },
- _getDefaultSelfURL: function() {
- var url = CustomFoldersSlideoutView.inherited('_getDefaultSelfURL', this, arguments);
- if (this.folder) {
- url = ContentServiceUrls.getBaseObjectsURL() + '/' + this.folder;
- }
- return url;
- }
- });
- return CustomFoldersSlideoutView;
- });
|