DetailPageLayoutView.js 28.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

define(['require',
    'backbone',
21 22
    'hbs!tmpl/detail_page/DetailPageLayoutView_tmpl',
    'utils/Utils',
23
    'utils/CommonViewFunction',
24
    'utils/Globals',
25 26
    'utils/Enums',
    'utils/Messages',
27
    'utils/UrlLinks'
28
], function(require, Backbone, DetailPageLayoutViewTmpl, Utils, CommonViewFunction, Globals, Enums, Messages, UrlLinks) {
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
    'use strict';

    var DetailPageLayoutView = Backbone.Marionette.LayoutView.extend(
        /** @lends DetailPageLayoutView */
        {
            _viewName: 'DetailPageLayoutView',

            template: DetailPageLayoutViewTmpl,

            /** Layout sub regions */
            regions: {
                REntityDetailTableLayoutView: "#r_entityDetailTableLayoutView",
                RSchemaTableLayoutView: "#r_schemaTableLayoutView",
                RTagTableLayoutView: "#r_tagTableLayoutView",
                RLineageLayoutView: "#r_lineageLayoutView",
44
                RAuditTableLayoutView: "#r_auditTableLayoutView",
45
                RReplicationAuditTableLayoutView: "#r_replicationAuditTableLayoutView",
46
                RProfileLayoutView: "#r_profileLayoutView",
47 48
                RRelationshipLayoutView: "#r_relationshipLayoutView",
                REntityUserDefineView: "#r_entityUserDefineView",
49
                REntityLabelDefineView: "#r_entityLabelDefineView"
50 51
            },
            /** ui selector cache */
52
            ui: {
53
                tagClick: '[data-id="tagClick"]',
54
                termClick: '[data-id="termClick"]',
55
                propagatedTagDiv: '[data-id="propagatedTagDiv"]',
56 57 58 59
                title: '[data-id="title"]',
                description: '[data-id="description"]',
                editBox: '[data-id="editBox"]',
                deleteTag: '[data-id="deleteTag"]',
60
                deleteTerm: '[data-id="deleteTerm"]',
61
                addTag: '[data-id="addTag"]',
62
                addTerm: '[data-id="addTerm"]',
63
                tagList: '[data-id="tagList"]',
64
                termList: '[data-id="termList"]',
65
                propagatedTagList: '[data-id="propagatedTagList"]',
66 67
                tablist: '[data-id="tab-list"] li',
                entityIcon: '[data-id="entityIcon"]'
68
            },
69 70
            templateHelpers: function() {
                return {
71
                    entityUpdate: Globals.entityUpdate
72 73
                };
            },
74 75 76
            /** ui events hash */
            events: function() {
                var events = {};
77
                events["click " + this.ui.tagClick] = function(e) {
78
                    if (e.target.nodeName.toLocaleLowerCase() != "i") {
79 80 81 82 83
                        Utils.setUrl({
                            url: '#!/tag/tagAttribute/' + e.currentTarget.textContent,
                            mergeBrowserUrl: false,
                            trigger: true
                        });
84 85
                    }
                };
86 87 88 89 90
                events["click " + this.ui.termClick] = function(e) {
                    if (e.target.nodeName.toLocaleLowerCase() != "i") {
                        Utils.setUrl({
                            url: '#!/glossary/' + $(e.currentTarget).find('i').data('guid'),
                            mergeBrowserUrl: false,
91
                            urlParams: { gType: "term", viewType: "term", fromView: "entity" },
92 93 94 95 96
                            trigger: true
                        });
                    }
                };
                events["click " + this.ui.addTerm] = 'onClickAddTermBtn';
97
                events["click " + this.ui.deleteTag] = 'onClickTagCross';
98
                events["click " + this.ui.deleteTerm] = 'onClickTermCross';
99
                events["click " + this.ui.addTag] = 'onClickAddTagBtn';
100 101 102 103 104 105 106 107 108 109
                events["click " + this.ui.tablist] = function(e) {
                    var tabValue = $(e.currentTarget).attr('role');
                    Utils.setUrl({
                        url: Utils.getUrlState.getQueryUrl().queyParams[0],
                        urlParams: { tabActive: tabValue || 'properties' },
                        mergeBrowserUrl: false,
                        trigger: false,
                        updateTabState: true
                    });

110
                };
111 112 113 114 115 116 117
                return events;
            },
            /**
             * intialize a new DetailPageLayoutView Layout
             * @constructs
             */
            initialize: function(options) {
118
                _.extend(this, _.pick(options, 'value', 'collection', 'id', 'entityDefCollection', 'typeHeaders', 'enumDefCollection', 'classificationDefCollection', 'glossaryCollection'));
119
                $('body').addClass("detail-page");
120 121
            },
            bindEvents: function() {
122
                var that = this;
123
                this.listenTo(this.collection, 'reset', function() {
124 125
                    this.entityObject = this.collection.first().toJSON();
                    var collectionJSON = this.entityObject.entity;
126
                    this.activeEntityDef = this.entityDefCollection.fullCollection.find({ name: collectionJSON.typeName });
127

128
                    if (collectionJSON && _.startsWith(collectionJSON.typeName, "AtlasGlossary")) {
129 130
                        this.$(".termBox").hide();
                    }
131
                    // MergerRefEntity.
132 133 134 135 136 137 138 139 140
                    Utils.findAndMergeRefEntity({
                        attributeObject: collectionJSON.attributes,
                        referredEntities: this.entityObject.referredEntities
                    });

                    Utils.findAndMergeRefEntity({
                        attributeObject: collectionJSON.relationshipAttributes,
                        referredEntities: this.entityObject.referredEntities
                    });
141

142 143 144 145 146
                    Utils.findAndMergeRelationShipEntity({
                        attributeObject: collectionJSON.attributes,
                        relationshipAttributes: collectionJSON.relationshipAttributes
                    });

147 148 149 150 151 152 153 154 155 156 157 158
                    // check if entity is process
                    var isProcess = false,
                        superTypes = Utils.getNestedSuperTypes({ data: this.activeEntityDef.toJSON(), collection: this.entityDefCollection }),
                        isLineageRender = _.find(superTypes, function(type) {
                            if (type === "DataSet" || type === "Process") {
                                if (type === "Process") {
                                    isProcess = true;
                                }
                                return true;
                            }
                        });

159 160
                    if (collectionJSON && collectionJSON.guid) {
                        var tagGuid = collectionJSON.guid;
161
                        this.readOnly = Enums.entityStateReadOnly[collectionJSON.status];
162
                    } else {
163
                        var tagGuid = this.id;
164
                    }
165 166 167 168 169
                    if (this.readOnly) {
                        this.$el.addClass('readOnly');
                    } else {
                        this.$el.removeClass('readOnly');
                    }
170
                    if (collectionJSON) {
171
                        this.name = Utils.getName(collectionJSON);
172 173
                        if (collectionJSON.attributes) {
                            if (this.name && collectionJSON.typeName) {
174
                                this.name = this.name + ' (' + _.escape(collectionJSON.typeName) + ')';
175
                            }
176
                            if (!this.name && collectionJSON.typeName) {
177
                                this.name = _.escape(collectionJSON.typeName);
178
                            }
179
                            this.description = collectionJSON.attributes.description;
180
                            if (this.name) {
181
                                this.ui.title.show();
182
                                var titleName = '<span>' + this.name + '</span>';
183
                                if (this.readOnly) {
184
                                    titleName += '<button title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i> Deleted</button>';
185 186
                                }
                                this.ui.title.html(titleName);
187
                                var entityData = _.extend({ "serviceType": this.activeEntityDef && this.activeEntityDef.get('serviceType'), "isProcess": isProcess }, collectionJSON);
188 189 190 191 192
                                if (this.readOnly) {
                                    this.ui.entityIcon.addClass('disabled');
                                } else {
                                    this.ui.entityIcon.removeClass('disabled');
                                }
193 194 195
                                if (collectionJSON.isIncomplete === true) {
                                    this.$(".isIncomplete").addClass("show");
                                }
196
                                this.ui.entityIcon.attr('title', _.escape(collectionJSON.typeName)).html('<img src="' + Utils.getEntityIconPath({ entityData: entityData }) + '"/><i class="fa fa-hourglass-half"></i>').find("img").on('error', function() {
197 198
                                    this.src = Utils.getEntityIconPath({ entityData: entityData, errorUrl: this.src });
                                });
199
                            } else {
200
                                this.ui.title.hide();
201 202
                            }
                            if (this.description) {
203
                                this.ui.description.show();
204
                                this.ui.description.html('<span>' + _.escape(this.description) + '</span>');
205
                            } else {
206
                                this.ui.description.hide();
207 208
                            }
                        }
209
                        if (collectionJSON.classifications) {
210
                            this.generateTag(collectionJSON.classifications);
211
                        } else {
212
                            this.generateTag([]);
213
                        }
214
                        if (collectionJSON.relationshipAttributes && collectionJSON.relationshipAttributes.meanings) {
215
                            this.generateTerm(collectionJSON.relationshipAttributes.meanings);
216
                        }
217
                        if (Globals.entityTypeConfList && _.isEmptyArray(Globals.entityTypeConfList)) {
218
                            this.editEntity = true;
219 220
                        } else {
                            if (_.contains(Globals.entityTypeConfList, collectionJSON.typeName)) {
221
                                this.editEntity = true;
222 223
                            }
                        }
224 225
                        if (collectionJSON.attributes && collectionJSON.attributes.columns) {
                            var valueSorted = _.sortBy(collectionJSON.attributes.columns, function(val) {
226
                                return val.attributes && val.attributes.position
227 228 229
                            });
                            collectionJSON.attributes.columns = valueSorted;
                        }
230
                    }
231
                    this.hideLoader();
232 233 234
                    var obj = {
                        entity: collectionJSON,
                        guid: this.id,
235
                        entityName: this.name,
236
                        typeHeaders: this.typeHeaders,
237
                        entityDefCollection: this.entityDefCollection,
238
                        fetchCollection: this.fetchCollection.bind(that),
239
                        enumDefCollection: this.enumDefCollection,
240
                        classificationDefCollection: this.classificationDefCollection,
241
                        glossaryCollection: this.glossaryCollection,
242 243
                        attributeDefs: (function() {
                            return that.getEntityDef(collectionJSON);
244 245
                        })(),
                        editEntity: this.editEntity || false
246
                    }
247
                    this.renderEntityDetailTableLayoutView(obj);
248
                    this.renderEntityUserDefineView(obj);
249
                    this.renderEntityLabelDefineView(obj);
250
                    this.renderRelationshipLayoutView(obj);
251
                    this.renderAuditTableLayoutView(obj);
252
                    this.renderTagTableLayoutView(obj);
253 254

                    // To render profile tab check for attribute "profileData" or typeName = "hive_db","hbase_namespace"
255 256
                    if (collectionJSON && (!_.isUndefined(collectionJSON.attributes['profileData']) || collectionJSON.typeName === "hive_db" || collectionJSON.typeName === "hbase_namespace")) {
                        if (collectionJSON.typeName === "hive_db" || collectionJSON.typeName === "hbase_namespace") {
257 258 259 260 261 262
                            this.$('.profileTab a').text("Tables")
                        }
                        this.$('.profileTab').show();
                        this.renderProfileLayoutView(_.extend({}, obj, {
                            entityDetail: collectionJSON.attributes,
                            profileData: collectionJSON.attributes.profileData,
263 264
                            typeName: collectionJSON.typeName,
                            value: that.value
265 266 267
                        }));
                    }

268
                    if (this.activeEntityDef) {
269 270 271 272 273
                        //to display ReplicationAudit tab
                        if (collectionJSON && collectionJSON.typeName === "AtlasServer") {
                            this.$('.replicationTab').show();
                            this.renderReplicationAuditTableLayoutView(obj);
                        }
274 275
                        // To render Schema check attribute "schemaElementsAttribute"
                        var schemaOptions = this.activeEntityDef.get('options');
276 277
                        var schemaElementsAttribute = schemaOptions && schemaOptions.schemaElementsAttribute;
                        if (!_.isEmpty(schemaElementsAttribute)) {
278 279
                            this.$('.schemaTable').show();
                            this.renderSchemaLayoutView(_.extend({}, obj, {
280
                                attribute: collectionJSON.relationshipAttributes[schemaElementsAttribute] || collectionJSON.attributes[schemaElementsAttribute]
281 282 283 284 285 286 287 288 289 290 291
                            }));
                        } else if (this.value && this.value.tabActive == "schema") {
                            Utils.setUrl({
                                url: Utils.getUrlState.getQueryUrl().queyParams[0],
                                urlParams: { tabActive: 'properties' },
                                mergeBrowserUrl: false,
                                trigger: true,
                                updateTabState: true
                            });
                        }

292
                        if (isLineageRender) {
293
                            this.$('.lineageGraph').show();
294
                            this.renderLineageLayoutView(_.extend(obj, {
295
                                processCheck: isProcess,
296
                                fetchCollection: this.fetchCollection.bind(this),
297
                            }));
298 299 300 301 302 303 304 305 306
                        } else if (this.value && this.value.tabActive == "lineage") {
                            Utils.setUrl({
                                url: Utils.getUrlState.getQueryUrl().queyParams[0],
                                urlParams: { tabActive: 'properties' },
                                mergeBrowserUrl: false,
                                trigger: true,
                                updateTabState: true
                            });
                        }
307
                    }
308 309


310
                }, this);
311
                this.listenTo(this.collection, 'error', function(model, response) {
312
                    this.$('.fontLoader-relative').removeClass('show');
313 314 315 316 317 318
                    if (response.responseJSON) {
                        Utils.notifyError({
                            content: response.responseJSON.errorMessage || response.responseJSON.error
                        });
                    }
                }, this);
319
            },
320 321
            onRender: function() {
                var that = this;
322
                this.bindEvents();
323
                Utils.showTitleLoader(this.$('.page-title .fontLoader'), this.$('.entityDetail'));
324
                this.$('.fontLoader-relative').addClass('show'); // to show tab loader
325
            },
326
            onShow: function() {
327 328 329
                if (this.value && this.value.tabActive) {
                    this.$('.nav.nav-tabs').find('[role="' + this.value.tabActive + '"]').addClass('active').siblings().removeClass('active');
                    this.$('.tab-content').find('[role="' + this.value.tabActive + '"]').addClass('active').siblings().removeClass('active');
330 331 332
                    $("html, body").animate({ scrollTop: (this.$('.tab-content').offset().top + 1200) }, 1000);
                }
            },
333 334 335 336 337
            onDestroy: function() {
                if (!Utils.getUrlState.isDetailPage()) {
                    $('body').removeClass("detail-page");
                }
            },
338 339 340
            fetchCollection: function() {
                this.collection.fetch({ reset: true });
            },
341
            getEntityDef: function(entityObj) {
342 343 344 345 346 347 348 349 350 351 352
                if (this.activeEntityDef) {
                    var data = this.activeEntityDef.toJSON();
                    var attributeDefs = Utils.getNestedSuperTypeObj({
                        data: data,
                        attrMerge: true,
                        collection: this.entityDefCollection
                    });
                    return attributeDefs;
                } else {
                    return [];
                }
353
            },
354
            onClickTagCross: function(e) {
355
                var that = this,
356 357
                    tagName = $(e.currentTarget).parent().text(),
                    entityGuid = $(e.currentTarget).data("entityguid");
358
                CommonViewFunction.deleteTag(_.extend({}, {
359 360
                    guid: that.id,
                    associatedGuid: that.id != entityGuid ? entityGuid : null,
361
                    msg: "<div class='ellipsis-with-margin'>Remove: " + "<b>" + _.escape(tagName) + "</b> assignment from" + " " + "<b>" + this.name + "?</b></div>",
362
                    titleMessage: Messages.removeTag,
363 364
                    okText: "Remove",
                    showLoader: that.showLoader.bind(that),
365
                    hideLoader: that.hideLoader.bind(that),
366
                    tagName: tagName,
367 368 369
                    callback: function() {
                        that.fetchCollection();
                    }
370
                }));
371
            },
372 373 374 375 376 377 378 379 380 381 382 383 384
            onClickTermCross: function(e) {
                var $el = $(e.currentTarget),
                    termGuid = $el.data('guid'),
                    termName = $el.text(),
                    that = this,
                    termObj = _.find(this.collection.first().get('entity').relationshipAttributes.meanings, { guid: termGuid });
                CommonViewFunction.removeCategoryTermAssociation({
                    termGuid: termGuid,
                    model: {
                        guid: that.id,
                        relationshipGuid: termObj.relationshipGuid
                    },
                    collection: that.glossaryCollection,
385
                    msg: "<div class='ellipsis-with-margin'>Remove: " + "<b>" + _.escape(termName) + "</b> assignment from" + " " + "<b>" + this.name + "?</b></div>",
386 387 388 389 390 391 392 393 394 395
                    titleMessage: Messages.glossary.removeTermfromEntity,
                    isEntityView: true,
                    buttonText: "Remove",
                    showLoader: that.showLoader.bind(that),
                    hideLoader: that.hideLoader.bind(that),
                    callback: function() {
                        that.fetchCollection();
                    }
                });
            },
396
            generateTag: function(tagObject) {
397
                var that = this,
398 399 400 401 402 403
                    tagData = "",
                    propagatedTagListData = "",
                    tag = {
                        'self': [],
                        'propagated': []
                    };
404
                _.each(tagObject, function(val) {
405
                    val.entityGuid === that.id ? tag['self'].push(val) : tag['propagated'].push(val);
406
                });
407
                _.each(tag.self, function(val) {
408
                    tagData += '<span class="btn btn-action btn-sm btn-icon btn-blue" data-id="tagClick"><span title=' + val.typeName + ' >' + val.typeName + '</span><i class="fa fa-close" data-id="deleteTag" data-type="tag" title="Remove Classification"></i></span>';
409 410
                });
                _.each(tag.propagated, function(val) {
411
                    var crossButton = '<i class="fa fa-close" data-id="deleteTag" data-entityguid="' + val.entityGuid + '" data-type="tag" title="Remove Classification"></i>';
412
                    propagatedTagListData += '<span class="btn btn-action btn-sm btn-icon btn-blue" title=' + val.typeName + ' data-id="tagClick"><span>' + val.typeName + '</span>' + ((that.id !== val.entityGuid && val.entityStatus === "DELETED") ? crossButton : "") + '</span>';
413 414
                });
                propagatedTagListData !== "" ? this.ui.propagatedTagDiv.show() : this.ui.propagatedTagDiv.hide();
415
                this.ui.tagList.find("span.btn").remove();
416
                this.ui.propagatedTagList.find("span.btn").remove();
417
                this.ui.tagList.prepend(tagData);
418 419
                this.ui.propagatedTagList.html(propagatedTagListData);

420
            },
421
            generateTerm: function(data) {
422 423 424
                var that = this,
                    termData = "";
                _.each(data, function(val) {
425 426
                    // if (val.relationshipStatus == "ACTIVE") {
                    termData += '<span class="btn btn-action btn-sm btn-icon btn-blue" data-id="termClick"><span title=' + _.escape(val.displayText) + '>' + _.escape(val.displayText) + '</span><i class="' + (val.relationshipStatus == "ACTIVE" ? 'fa fa-close' : "") + '" data-id="deleteTerm" data-guid="' + val.guid + '" data-type="term" title="Remove Term"></i></span>';
427
                    // }
428 429 430 431
                });
                this.ui.termList.find("span.btn").remove();
                this.ui.termList.prepend(termData);
            },
432 433 434 435 436 437
            hideLoader: function() {
                Utils.hideTitleLoader(this.$('.page-title .fontLoader'), this.$('.entityDetail'));
            },
            showLoader: function() {
                Utils.showTitleLoader(this.$('.page-title .fontLoader'), this.$('.entityDetail'));
            },
438 439
            onClickAddTagBtn: function(e) {
                var that = this;
440
                require(['views/tag/AddTagModalView'], function(AddTagModalView) {
441 442
                    var tagList = [];
                    _.map(that.entityObject.entity.classifications, function(obj) {
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
                        if (obj.entityGuid === that.id) {
                            tagList.push(obj.typeName);
                        }
                    });
                    var view = new AddTagModalView({
                        guid: that.id,
                        tagList: tagList,
                        callback: function() {
                            that.fetchCollection();
                        },
                        showLoader: that.showLoader.bind(that),
                        hideLoader: that.hideLoader.bind(that),
                        collection: that.classificationDefCollection,
                        enumDefCollection: that.enumDefCollection
                    });
458 459 460 461 462 463
                    view.modal.on('ok', function() {
                        Utils.showTitleLoader(that.$('.page-title .fontLoader'), that.$('.entityDetail'));
                    });
                });
            },
            onClickAddTermBtn: function(e) {
464 465 466 467 468
                var that = this,
                    entityGuid = that.id,
                    associatedTerms = this.collection.first().get('entity').relationshipAttributes.meanings;


469 470 471 472 473 474
                require(['views/glossary/AssignTermLayoutView'], function(AssignTermLayoutView) {
                    var view = new AssignTermLayoutView({
                        guid: that.id,
                        callback: function() {
                            that.fetchCollection();
                        },
475
                        associatedTerms: associatedTerms,
476 477 478 479
                        showLoader: that.showLoader.bind(that),
                        hideLoader: that.hideLoader.bind(that),
                        glossaryCollection: that.glossaryCollection
                    });
480 481 482
                    view.modal.on('ok', function() {
                        Utils.showTitleLoader(that.$('.page-title .fontLoader'), that.$('.entityDetail'));
                    });
483 484
                });
            },
485
            renderEntityDetailTableLayoutView: function(obj) {
486 487
                var that = this;
                require(['views/entity/EntityDetailTableLayoutView'], function(EntityDetailTableLayoutView) {
488
                    that.REntityDetailTableLayoutView.show(new EntityDetailTableLayoutView(obj));
489 490
                });
            },
491 492 493 494 495 496
            renderEntityUserDefineView: function(obj) {
                var that = this;
                require(['views/entity/EntityUserDefineView'], function(EntityUserDefineView) {
                    that.REntityUserDefineView.show(new EntityUserDefineView(obj));
                });
            },
497 498 499 500 501 502
            renderEntityLabelDefineView: function(obj) {
                var that = this;
                require(['views/entity/EntityLabelDefineView'], function(EntityLabelDefineView) {
                    that.REntityLabelDefineView.show(new EntityLabelDefineView(obj));
                });
            },
503
            renderTagTableLayoutView: function(obj) {
504 505
                var that = this;
                require(['views/tag/TagDetailTableLayoutView'], function(TagDetailTableLayoutView) {
506
                    that.RTagTableLayoutView.show(new TagDetailTableLayoutView(obj));
507 508
                });
            },
509
            renderLineageLayoutView: function(obj) {
510
                var that = this;
511 512
                require(['views/graph/LineageLayoutView'], function(LineageLayoutView) {
                    that.RLineageLayoutView.show(new LineageLayoutView(obj));
513
                });
514
            },
515 516 517 518 519 520
            renderRelationshipLayoutView: function(obj) {
                var that = this;
                require(['views/graph/RelationshipLayoutView'], function(RelationshipLayoutView) {
                    that.RRelationshipLayoutView.show(new RelationshipLayoutView(obj));
                });
            },
521
            renderSchemaLayoutView: function(obj) {
522
                var that = this;
523 524
                require(['views/schema/SchemaLayoutView'], function(SchemaLayoutView) {
                    that.RSchemaTableLayoutView.show(new SchemaLayoutView(obj));
525 526
                });
            },
527
            renderAuditTableLayoutView: function(obj) {
528
                var that = this;
529 530
                require(['views/audit/AuditTableLayoutView'], function(AuditTableLayoutView) {
                    that.RAuditTableLayoutView.show(new AuditTableLayoutView(obj));
531
                });
532 533 534 535 536 537
            },
            renderReplicationAuditTableLayoutView: function(obj) {
                var that = this;
                require(['views/audit/ReplicationAuditTableLayoutView'], function(ReplicationAuditTableLayoutView) {
                    that.RReplicationAuditTableLayoutView.show(new ReplicationAuditTableLayoutView(obj));
                });
538
            },
539 540 541 542 543
            renderProfileLayoutView: function(obj) {
                var that = this;
                require(['views/profile/ProfileLayoutView'], function(ProfileLayoutView) {
                    that.RProfileLayoutView.show(new ProfileLayoutView(obj));
                });
544 545 546
            }
        });
    return DetailPageLayoutView;
547
});