SAP-BTP-Spielwiese/app1/node_modules/@sap/audit-logging/lib/v2/ConfigurationChangeMessage.js
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

28 lines
1 KiB
JavaScript

'use strict';
var utils = require('../utils');
var common = require('./common');
var ConfigurationChangeBase = require('../base-messages/ConfigurationChangeBase');
module.exports = ConfigurationChangeMessage;
function ConfigurationChangeMessage(content, transport) {
ConfigurationChangeBase.call(this, content, transport);
}
require('util').inherits(ConfigurationChangeMessage, ConfigurationChangeBase);
ConfigurationChangeMessage.prototype.attribute = function (attribute) {
utils.validate.object(attribute, 'attribute');
utils.validate.notEmptyString(attribute.name, 'attribute name');
utils.validate.attributeName(this._content.attributes, attribute.name);
utils.validate.string(attribute.old, 'attribute old value');
utils.validate.string(attribute.new, 'attribute new value');
this._content.attributes.push(attribute);
return this;
};
ConfigurationChangeMessage.prototype.logPrepare = common.logPrepare;
ConfigurationChangeMessage.prototype.logSuccess = common.logSuccess;
ConfigurationChangeMessage.prototype.logFailure = common.logFailure;