SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/common/vo/organization-vo.js

30 lines
629 B
JavaScript

"use strict";
/**
* Value object for sla.
*
* @constructor
*/
function OrganizationVO() {
// simple fields
this.name = '';
// complex fields
this.attributeMap = {};
}
// inherit BaseVO
OrganizationVO.prototype = new BaseVO();
// correct the constructor pointer
OrganizationVO.prototype.constructor = OrganizationVO;
/**
* @override
* @return {Array}
*/
OrganizationVO.prototype.getProps = function () {
return BaseVO.prototype.getProps().concat('name', 'attributeMap');
};
/**
* @override
*/
OrganizationVO.prototype.postBuild = function () {
this.companyName = this.attributeMap.companyName;
};