sp-jsom-node
Version:
SharePoint JavaScript Object Model for Node.js
1,175 lines (1,043 loc) • 114 kB
JavaScript
// JScript File
Type.registerNamespace('SP.Publishing');
SP.Publishing.AddinPlugin = function SP_Publishing_AddinPlugin(context) {
SP.Publishing.AddinPlugin.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{698097b9-bbe7-4c07-a37b-23e2f07bc9a4}', arguments) ]);
}
SP.Publishing.AddinPlugin.newObject = function SP_Publishing_AddinPlugin$newObject(context) {
return new SP.Publishing.AddinPlugin(context, new SP.ObjectPathConstructor(context, '{698097b9-bbe7-4c07-a37b-23e2f07bc9a4}', null));
}
SP.Publishing.AddinPlugin.prototype = {
get_description: function SP_Publishing_AddinPlugin$get_description() {
this.checkUninitializedProperty('Description');
return ((this.get_objectData().get_properties()['Description']));
},
set_description: function SP_Publishing_AddinPlugin$set_description(value) {
this.get_objectData().get_properties()['Description'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Description', value));
}
return value;
},
get_markup: function SP_Publishing_AddinPlugin$get_markup() {
this.checkUninitializedProperty('Markup');
return ((this.get_objectData().get_properties()['Markup']));
},
set_markup: function SP_Publishing_AddinPlugin$set_markup(value) {
this.get_objectData().get_properties()['Markup'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Markup', value));
}
return value;
},
get_title: function SP_Publishing_AddinPlugin$get_title() {
this.checkUninitializedProperty('Title');
return ((this.get_objectData().get_properties()['Title']));
},
set_title: function SP_Publishing_AddinPlugin$set_title(value) {
this.get_objectData().get_properties()['Title'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Title', value));
}
return value;
},
initPropertiesFromJson: function SP_Publishing_AddinPlugin$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.Description;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Description'] = ($v_0);
delete parentNode.Description;
}
$v_0 = parentNode.Markup;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Markup'] = ($v_0);
delete parentNode.Markup;
}
$v_0 = parentNode.Title;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Title'] = ($v_0);
delete parentNode.Title;
}
}
}
SP.Publishing.AddinPluginPropertyNames = function SP_Publishing_AddinPluginPropertyNames() {
}
SP.Publishing.AddinSettings = function SP_Publishing_AddinSettings(context, id) {
SP.Publishing.AddinSettings.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{7bc23bc0-cb63-4523-b967-a910c8b43668}', arguments) ]);
}
SP.Publishing.AddinSettings.newObject = function SP_Publishing_AddinSettings$newObject(context, id) {
return new SP.Publishing.AddinSettings(context, new SP.ObjectPathConstructor(context, '{7bc23bc0-cb63-4523-b967-a910c8b43668}', [ id ]));
}
SP.Publishing.AddinSettings.prototype = {
get_description: function SP_Publishing_AddinSettings$get_description() {
this.checkUninitializedProperty('Description');
return ((this.get_objectData().get_properties()['Description']));
},
set_description: function SP_Publishing_AddinSettings$set_description(value) {
this.get_objectData().get_properties()['Description'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Description', value));
}
return value;
},
get_enabled: function SP_Publishing_AddinSettings$get_enabled() {
this.checkUninitializedProperty('Enabled');
return ((this.get_objectData().get_properties()['Enabled']));
},
set_enabled: function SP_Publishing_AddinSettings$set_enabled(value) {
this.get_objectData().get_properties()['Enabled'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Enabled', value));
}
return value;
},
get_headScript: function SP_Publishing_AddinSettings$get_headScript() {
this.checkUninitializedProperty('HeadScript');
return ((this.get_objectData().get_properties()['HeadScript']));
},
set_headScript: function SP_Publishing_AddinSettings$set_headScript(value) {
this.get_objectData().get_properties()['HeadScript'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HeadScript', value));
}
return value;
},
get_htmlEndBody: function SP_Publishing_AddinSettings$get_htmlEndBody() {
this.checkUninitializedProperty('HtmlEndBody');
return ((this.get_objectData().get_properties()['HtmlEndBody']));
},
set_htmlEndBody: function SP_Publishing_AddinSettings$set_htmlEndBody(value) {
this.get_objectData().get_properties()['HtmlEndBody'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HtmlEndBody', value));
}
return value;
},
get_htmlStartBody: function SP_Publishing_AddinSettings$get_htmlStartBody() {
this.checkUninitializedProperty('HtmlStartBody');
return ((this.get_objectData().get_properties()['HtmlStartBody']));
},
set_htmlStartBody: function SP_Publishing_AddinSettings$set_htmlStartBody(value) {
this.get_objectData().get_properties()['HtmlStartBody'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HtmlStartBody', value));
}
return value;
},
get_id: function SP_Publishing_AddinSettings$get_id() {
this.checkUninitializedProperty('Id');
return ((this.get_objectData().get_properties()['Id']));
},
get_metaTagPagePropertyMappings: function SP_Publishing_AddinSettings$get_metaTagPagePropertyMappings() {
this.checkUninitializedProperty('MetaTagPagePropertyMappings');
return ((this.get_objectData().get_properties()['MetaTagPagePropertyMappings']));
},
set_metaTagPagePropertyMappings: function SP_Publishing_AddinSettings$set_metaTagPagePropertyMappings(value) {
this.get_objectData().get_properties()['MetaTagPagePropertyMappings'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'MetaTagPagePropertyMappings', value));
}
return value;
},
get_namespace: function SP_Publishing_AddinSettings$get_namespace() {
this.checkUninitializedProperty('Namespace');
return ((this.get_objectData().get_properties()['Namespace']));
},
set_namespace: function SP_Publishing_AddinSettings$set_namespace(value) {
this.get_objectData().get_properties()['Namespace'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Namespace', value));
}
return value;
},
get_title: function SP_Publishing_AddinSettings$get_title() {
this.checkUninitializedProperty('Title');
return ((this.get_objectData().get_properties()['Title']));
},
set_title: function SP_Publishing_AddinSettings$set_title(value) {
this.get_objectData().get_properties()['Title'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Title', value));
}
return value;
},
initPropertiesFromJson: function SP_Publishing_AddinSettings$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.Description;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Description'] = ($v_0);
delete parentNode.Description;
}
$v_0 = parentNode.Enabled;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Enabled'] = ($v_0);
delete parentNode.Enabled;
}
$v_0 = parentNode.HeadScript;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['HeadScript'] = ($v_0);
delete parentNode.HeadScript;
}
$v_0 = parentNode.HtmlEndBody;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['HtmlEndBody'] = ($v_0);
delete parentNode.HtmlEndBody;
}
$v_0 = parentNode.HtmlStartBody;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['HtmlStartBody'] = ($v_0);
delete parentNode.HtmlStartBody;
}
$v_0 = parentNode.Id;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Id'] = ($v_0);
delete parentNode.Id;
}
$v_0 = parentNode.MetaTagPagePropertyMappings;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['MetaTagPagePropertyMappings'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));
delete parentNode.MetaTagPagePropertyMappings;
}
$v_0 = parentNode.Namespace;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Namespace'] = ($v_0);
delete parentNode.Namespace;
}
$v_0 = parentNode.Title;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Title'] = ($v_0);
delete parentNode.Title;
}
}
}
SP.Publishing.AddinSettingsPropertyNames = function SP_Publishing_AddinSettingsPropertyNames() {
}
SP.Publishing.CustomizableString = function SP_Publishing_CustomizableString(context, objectPath) {
SP.Publishing.CustomizableString.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.CustomizableString.prototype = {
get_defaultValue: function SP_Publishing_CustomizableString$get_defaultValue() {
this.checkUninitializedProperty('DefaultValue');
return ((this.get_objectData().get_properties()['DefaultValue']));
},
get_usesDefaultValue: function SP_Publishing_CustomizableString$get_usesDefaultValue() {
this.checkUninitializedProperty('UsesDefaultValue');
return ((this.get_objectData().get_properties()['UsesDefaultValue']));
},
set_usesDefaultValue: function SP_Publishing_CustomizableString$set_usesDefaultValue(value) {
this.get_objectData().get_properties()['UsesDefaultValue'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'UsesDefaultValue', value));
}
return value;
},
get_value: function SP_Publishing_CustomizableString$get_value() {
this.checkUninitializedProperty('Value');
return ((this.get_objectData().get_properties()['Value']));
},
set_value: function SP_Publishing_CustomizableString$set_value(value) {
this.get_objectData().get_properties()['Value'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Value', value));
}
return value;
},
initPropertiesFromJson: function SP_Publishing_CustomizableString$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.DefaultValue;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['DefaultValue'] = ($v_0);
delete parentNode.DefaultValue;
}
$v_0 = parentNode.UsesDefaultValue;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['UsesDefaultValue'] = ($v_0);
delete parentNode.UsesDefaultValue;
}
$v_0 = parentNode.Value;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Value'] = ($v_0);
delete parentNode.Value;
}
}
}
SP.Publishing.CustomizableStringPropertyNames = function SP_Publishing_CustomizableStringPropertyNames() {
}
SP.Publishing.DesignPackage = function SP_Publishing_DesignPackage() {
}
SP.Publishing.DesignPackage.install = function SP_Publishing_DesignPackage$install(context, site, info, path) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'Install', [ site, info, path ]);
context.addQuery($v_0);
}
SP.Publishing.DesignPackage.unInstall = function SP_Publishing_DesignPackage$unInstall(context, site, info) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'UnInstall', [ site, info ]);
context.addQuery($v_0);
}
SP.Publishing.DesignPackage.apply = function SP_Publishing_DesignPackage$apply(context, site, info) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'Apply', [ site, info ]);
context.addQuery($v_0);
}
SP.Publishing.DesignPackage.exportEnterprise = function SP_Publishing_DesignPackage$exportEnterprise(context, site, includeSearchConfiguration) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'ExportEnterprise', [ site, includeSearchConfiguration ]);
context.addQuery($v_1);
$v_0 = new SP.Publishing.DesignPackageInfo();
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
return $v_0;
}
SP.Publishing.DesignPackage.exportSmallBusiness = function SP_Publishing_DesignPackage$exportSmallBusiness(context, site, packageName, includeSearchConfiguration) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'ExportSmallBusiness', [ site, packageName, includeSearchConfiguration ]);
context.addQuery($v_1);
$v_0 = new SP.Publishing.DesignPackageInfo();
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
return $v_0;
}
SP.Publishing.DesignPackageInfo = function SP_Publishing_DesignPackageInfo() {
SP.Publishing.DesignPackageInfo.initializeBase(this);
}
SP.Publishing.DesignPackageInfo.prototype = {
$3_1: 0,
$5_1: 0,
$8_1: null,
$9_1: null,
get_majorVersion: function SP_Publishing_DesignPackageInfo$get_majorVersion() {
return this.$3_1;
},
set_majorVersion: function SP_Publishing_DesignPackageInfo$set_majorVersion(value) {
this.$3_1 = value;
return value;
},
get_minorVersion: function SP_Publishing_DesignPackageInfo$get_minorVersion() {
return this.$5_1;
},
set_minorVersion: function SP_Publishing_DesignPackageInfo$set_minorVersion(value) {
this.$5_1 = value;
return value;
},
get_packageGuid: function SP_Publishing_DesignPackageInfo$get_packageGuid() {
return this.$8_1;
},
set_packageGuid: function SP_Publishing_DesignPackageInfo$set_packageGuid(value) {
this.$8_1 = value;
return value;
},
get_packageName: function SP_Publishing_DesignPackageInfo$get_packageName() {
return this.$9_1;
},
set_packageName: function SP_Publishing_DesignPackageInfo$set_packageName(value) {
this.$9_1 = value;
return value;
},
get_typeId: function SP_Publishing_DesignPackageInfo$get_typeId() {
return '{5332b37d-a6d1-4231-83cd-d7dd274540b7}';
},
writeToXml: function SP_Publishing_DesignPackageInfo$writeToXml(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = [ 'MajorVersion', 'MinorVersion', 'PackageGuid', 'PackageName' ];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function SP_Publishing_DesignPackageInfo$initPropertiesFromJson(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.MajorVersion;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$3_1 = ($v_0);
delete parentNode.MajorVersion;
}
$v_0 = parentNode.MinorVersion;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$5_1 = ($v_0);
delete parentNode.MinorVersion;
}
$v_0 = parentNode.PackageGuid;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$8_1 = ($v_0);
delete parentNode.PackageGuid;
}
$v_0 = parentNode.PackageName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$9_1 = ($v_0);
delete parentNode.PackageName;
}
}
}
SP.Publishing.ImageRendition = function SP_Publishing_ImageRendition() {
SP.Publishing.ImageRendition.initializeBase(this);
}
SP.Publishing.ImageRendition.prototype = {
$2_1: 0,
$C_1: 0,
$D_1: 0,
$0_1: null,
$F_1: 0,
$A_1: 0,
get_height: function SP_Publishing_ImageRendition$get_height() {
return this.$2_1;
},
set_height: function SP_Publishing_ImageRendition$set_height(value) {
this.$2_1 = value;
return value;
},
get_id: function SP_Publishing_ImageRendition$get_id() {
return this.$C_1;
},
get_name: function SP_Publishing_ImageRendition$get_name() {
return this.$0_1;
},
set_name: function SP_Publishing_ImageRendition$set_name(value) {
this.$0_1 = value;
return value;
},
get_version: function SP_Publishing_ImageRendition$get_version() {
return this.$F_1;
},
get_width: function SP_Publishing_ImageRendition$get_width() {
return this.$A_1;
},
set_width: function SP_Publishing_ImageRendition$set_width(value) {
this.$A_1 = value;
return value;
},
get_typeId: function SP_Publishing_ImageRendition$get_typeId() {
return '{cb63161f-1f15-446f-9ba9-af89ae03cd45}';
},
writeToXml: function SP_Publishing_ImageRendition$writeToXml(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = [ 'Height', 'Id', 'Name', 'Version', 'Width' ];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
writer.writeStartElement(SP.ClientConstants.Property);
writer.writeAttributeString(SP.ClientConstants.Name, 'IdCsom');
SP.DataConvert.writeValueToXmlElement(writer, this.$D_1, serializationContext);
writer.writeEndElement();
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function SP_Publishing_ImageRendition$initPropertiesFromJson(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.Height;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$2_1 = ($v_0);
delete parentNode.Height;
}
$v_0 = parentNode.Id;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$C_1 = ($v_0);
delete parentNode.Id;
}
$v_0 = parentNode.IdCsom;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$D_1 = ($v_0);
delete parentNode.IdCsom;
}
$v_0 = parentNode.Name;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$0_1 = ($v_0);
delete parentNode.Name;
}
$v_0 = parentNode.Version;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$F_1 = ($v_0);
delete parentNode.Version;
}
$v_0 = parentNode.Width;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$A_1 = ($v_0);
delete parentNode.Width;
}
}
}
SP.Publishing.PageLayoutCreationInformation = function SP_Publishing_PageLayoutCreationInformation() {
SP.Publishing.PageLayoutCreationInformation.initializeBase(this);
}
SP.Publishing.PageLayoutCreationInformation.prototype = {
$1_1: null,
$4_1: null,
$6_1: null,
$7_1: null,
$G_1: null,
get_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$get_associatedContentTypeId() {
return this.$1_1;
},
set_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$set_associatedContentTypeId(value) {
this.$1_1 = value;
return value;
},
get_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$get_masterPageUrl() {
return this.$4_1;
},
set_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$set_masterPageUrl(value) {
this.$4_1 = value;
return value;
},
get_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutEditablePath() {
return this.$6_1;
},
set_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutEditablePath(value) {
this.$6_1 = value;
return value;
},
get_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutNameWithoutExtension() {
return this.$7_1;
},
set_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutNameWithoutExtension(value) {
this.$7_1 = value;
return value;
},
get_web: function SP_Publishing_PageLayoutCreationInformation$get_web() {
return this.$G_1;
},
set_web: function SP_Publishing_PageLayoutCreationInformation$set_web(value) {
this.$G_1 = value;
return value;
},
get_typeId: function SP_Publishing_PageLayoutCreationInformation$get_typeId() {
return '{d36987c1-ddf0-4e73-8b1a-e7e444ef3d3f}';
},
writeToXml: function SP_Publishing_PageLayoutCreationInformation$writeToXml(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = [ 'AssociatedContentTypeId', 'MasterPageUrl', 'NewPageLayoutEditablePath', 'NewPageLayoutNameWithoutExtension', 'Web' ];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function SP_Publishing_PageLayoutCreationInformation$initPropertiesFromJson(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.AssociatedContentTypeId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$1_1 = ($v_0);
delete parentNode.AssociatedContentTypeId;
}
$v_0 = parentNode.MasterPageUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$4_1 = ($v_0);
delete parentNode.MasterPageUrl;
}
$v_0 = parentNode.NewPageLayoutEditablePath;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$6_1 = ($v_0);
delete parentNode.NewPageLayoutEditablePath;
}
$v_0 = parentNode.NewPageLayoutNameWithoutExtension;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$7_1 = ($v_0);
delete parentNode.NewPageLayoutNameWithoutExtension;
}
$v_0 = parentNode.Web;
if (!SP.ScriptUtility.isUndefined($v_0)) {
delete parentNode.Web;
}
}
}
SP.Publishing.PublishingPage = function SP_Publishing_PublishingPage(context, objectPath) {
SP.Publishing.PublishingPage.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.PublishingPage.getPublishingPage = function SP_Publishing_PublishingPage$getPublishingPage(context, sourceListItem) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.PublishingPage(context, new SP.ObjectPathStaticMethod(context, '{e361280d-01dc-431a-9823-4afacd06418b}', 'GetPublishingPage', [ sourceListItem ]));
return $v_0;
}
SP.Publishing.PublishingPage.prototype = {
addFriendlyUrl: function SP_Publishing_PublishingPage$addFriendlyUrl(friendlyUrlSegment, editableParent, doAddToNavigation) {
var $v_0 = this.get_context();
var $v_1;
var $v_2 = new SP.ClientActionInvokeMethod(this, 'AddFriendlyUrl', [ friendlyUrlSegment, editableParent, doAddToNavigation ]);
$v_0.addQuery($v_2);
$v_1 = new SP.StringResult();
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
return $v_1;
}
}
SP.Publishing.PublishingPageInformation = function SP_Publishing_PublishingPageInformation() {
SP.Publishing.PublishingPageInformation.initializeBase(this);
}
SP.Publishing.PublishingPageInformation.prototype = {
$B_1: null,
$0_1: null,
$E_1: null,
get_folder: function SP_Publishing_PublishingPageInformation$get_folder() {
return this.$B_1;
},
set_folder: function SP_Publishing_PublishingPageInformation$set_folder(value) {
this.$B_1 = value;
return value;
},
get_name: function SP_Publishing_PublishingPageInformation$get_name() {
return this.$0_1;
},
set_name: function SP_Publishing_PublishingPageInformation$set_name(value) {
this.$0_1 = value;
return value;
},
get_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$get_pageLayoutListItem() {
return this.$E_1;
},
set_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$set_pageLayoutListItem(value) {
this.$E_1 = value;
return value;
},
get_typeId: function SP_Publishing_PublishingPageInformation$get_typeId() {
return '{68f48886-1e99-4d5a-be5c-f0f0d53f371b}';
},
writeToXml: function SP_Publishing_PublishingPageInformation$writeToXml(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = [ 'Folder', 'Name', 'PageLayoutListItem' ];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function SP_Publishing_PublishingPageInformation$initPropertiesFromJson(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.Folder;
if (!SP.ScriptUtility.isUndefined($v_0)) {
delete parentNode.Folder;
}
$v_0 = parentNode.Name;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$0_1 = ($v_0);
delete parentNode.Name;
}
$v_0 = parentNode.PageLayoutListItem;
if (!SP.ScriptUtility.isUndefined($v_0)) {
delete parentNode.PageLayoutListItem;
}
}
}
SP.Publishing.PublishingSite = function SP_Publishing_PublishingSite(context, objectPath) {
SP.Publishing.PublishingSite.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.PublishingSite.createPageLayout = function SP_Publishing_PublishingSite$createPageLayout(context, parameters) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{8a896237-0d29-4a38-a399-c8fde4b09d80}', 'CreatePageLayout', [ parameters ]);
context.addQuery($v_0);
}
SP.Publishing.PublishingWeb = function SP_Publishing_PublishingWeb(context, objectPath) {
SP.Publishing.PublishingWeb.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.PublishingWeb.getPublishingWeb = function SP_Publishing_PublishingWeb$getPublishingWeb(context, web) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.PublishingWeb(context, new SP.ObjectPathStaticMethod(context, '{55927360-235b-4ace-9dcf-c574d6e517ea}', 'GetPublishingWeb', [ web ]));
return $v_0;
}
SP.Publishing.PublishingWeb.prototype = {
get_web: function SP_Publishing_PublishingWeb$get_web() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Web']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new SP.Web(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Web'));
this.get_objectData().get_clientObjectProperties()['Web'] = $v_0;
}
return $v_0;
},
initPropertiesFromJson: function SP_Publishing_PublishingWeb$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.Web;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('Web', this.get_web(), $v_0);
this.get_web().fromJson($v_0);
delete parentNode.Web;
}
},
addPublishingPage: function SP_Publishing_PublishingWeb$addPublishingPage(pageInformation) {
var $v_0 = this.get_context();
var $v_1;
$v_1 = new SP.Publishing.PublishingPage($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'AddPublishingPage', [ pageInformation ]));
$v_1.get_path().setPendingReplace();
var $v_2 = new SP.ObjectIdentityQuery($v_1.get_path());
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
$v_0.addQuery($v_2);
return $v_1;
}
}
SP.Publishing.PublishingWebObjectPropertyNames = function SP_Publishing_PublishingWebObjectPropertyNames() {
}
SP.Publishing.ScheduledItem = function SP_Publishing_ScheduledItem(context, objectPath) {
SP.Publishing.ScheduledItem.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.ScheduledItem.prototype = {
get_endDate: function SP_Publishing_ScheduledItem$get_endDate() {
this.checkUninitializedProperty('EndDate');
return ((this.get_objectData().get_properties()['EndDate']));
},
set_endDate: function SP_Publishing_ScheduledItem$set_endDate(value) {
this.get_objectData().get_properties()['EndDate'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EndDate', value));
}
return value;
},
get_listItem: function SP_Publishing_ScheduledItem$get_listItem() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['ListItem']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new SP.ListItem(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'ListItem'));
this.get_objectData().get_clientObjectProperties()['ListItem'] = $v_0;
}
return $v_0;
},
get_startDate: function SP_Publishing_ScheduledItem$get_startDate() {
this.checkUninitializedProperty('StartDate');
return ((this.get_objectData().get_properties()['StartDate']));
},
set_startDate: function SP_Publishing_ScheduledItem$set_startDate(value) {
this.get_objectData().get_properties()['StartDate'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'StartDate', value));
}
return value;
},
initPropertiesFromJson: function SP_Publishing_ScheduledItem$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.EndDate;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['EndDate'] = ($v_0);
delete parentNode.EndDate;
}
$v_0 = parentNode.ListItem;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('ListItem', this.get_listItem(), $v_0);
this.get_listItem().fromJson($v_0);
delete parentNode.ListItem;
}
$v_0 = parentNode.StartDate;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['StartDate'] = ($v_0);
delete parentNode.StartDate;
}
},
schedule: function SP_Publishing_ScheduledItem$schedule(approvalComment) {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'Schedule', [ approvalComment ]);
$v_0.addQuery($v_1);
}
}
SP.Publishing.ScheduledItemPropertyNames = function SP_Publishing_ScheduledItemPropertyNames() {
}
SP.Publishing.ScheduledItemObjectPropertyNames = function SP_Publishing_ScheduledItemObjectPropertyNames() {
}
SP.Publishing.SiteImageRenditions = function SP_Publishing_SiteImageRenditions() {
}
SP.Publishing.SiteImageRenditions.getRenditions = function SP_Publishing_SiteImageRenditions$getRenditions(context) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{324675a4-aa0d-47db-a937-c2e5dc53457e}', 'GetRenditions', null);
context.addQuery($v_1);
$v_0 = (([]));
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
return $v_0;
}
SP.Publishing.SiteImageRenditions.setRenditions = function SP_Publishing_SiteImageRenditions$setRenditions(context, renditions) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{324675a4-aa0d-47db-a937-c2e5dc53457e}', 'SetRenditions', [ renditions ]);
context.addQuery($v_0);
}
SP.Publishing.SiteServicesAddins = function SP_Publishing_SiteServicesAddins() {
}
SP.Publishing.SiteServicesAddins.getSettings = function SP_Publishing_SiteServicesAddins$getSettings(context, addinId) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.AddinSettings(context, new SP.ObjectPathStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'GetSettings', [ addinId ]));
return $v_0;
}
SP.Publishing.SiteServicesAddins.setSettings = function SP_Publishing_SiteServicesAddins$setSettings(context, addin) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'SetSettings', [ addin ]);
context.addQuery($v_0);
}
SP.Publishing.SiteServicesAddins.deleteSettings = function SP_Publishing_SiteServicesAddins$deleteSettings(context, addinId) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'DeleteSettings', [ addinId ]);
context.addQuery($v_0);
}
SP.Publishing.SiteServicesAddins.getPlugin = function SP_Publishing_SiteServicesAddins$getPlugin(context, pluginName) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.AddinPlugin(context, new SP.ObjectPathStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'GetPlugin', [ pluginName ]));
return $v_0;
}
SP.Publishing.SiteServicesAddins.setPlugin = function SP_Publishing_SiteServicesAddins$setPlugin(context, plugin) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'SetPlugin', [ plugin ]);
context.addQuery($v_0);
}
SP.Publishing.SiteServicesAddins.deletePlugin = function SP_Publishing_SiteServicesAddins$deletePlugin(context, pluginName) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'DeletePlugin', [ pluginName ]);
context.addQuery($v_0);
}
SP.Publishing.VariationLabel = function SP_Publishing_VariationLabel(context, objectPath) {
SP.Publishing.VariationLabel.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.VariationLabel.prototype = {
get_displayName: function SP_Publishing_VariationLabel$get_displayName() {
this.checkUninitializedProperty('DisplayName');
return ((this.get_objectData().get_properties()['DisplayName']));
},
get_isSource: function SP_Publishing_VariationLabel$get_isSource() {
this.checkUninitializedProperty('IsSource');
return ((this.get_objectData().get_properties()['IsSource']));
},
get_language: function SP_Publishing_VariationLabel$get_language() {
this.checkUninitializedProperty('Language');
return ((this.get_objectData().get_properties()['Language']));
},
get_locale: function SP_Publishing_VariationLabel$get_locale() {
this.checkUninitializedProperty('Locale');
return ((this.get_objectData().get_properties()['Locale']));
},
get_title: function SP_Publishing_VariationLabel$get_title() {
this.checkUninitializedProperty('Title');
return ((this.get_objectData().get_properties()['Title']));
},
get_topWebUrl: function SP_Publishing_VariationLabel$get_topWebUrl() {
this.checkUninitializedProperty('TopWebUrl');
return ((this.get_objectData().get_properties()['TopWebUrl']));
},
initPropertiesFromJson: function SP_Publishing_VariationLabel$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.DisplayName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['DisplayName'] = ($v_0);
delete parentNode.DisplayName;
}
$v_0 = parentNode.IsSource;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['IsSource'] = ($v_0);
delete parentNode.IsSource;
}
$v_0 = parentNode.Language;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Language'] = ($v_0);
delete parentNode.Language;
}
$v_0 = parentNode.Locale;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Locale'] = ($v_0);
delete parentNode.Locale;
}
$v_0 = parentNode.Title;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Title'] = ($v_0);
delete parentNode.Title;
}
$v_0 = parentNode.TopWebUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['TopWebUrl'] = ($v_0);
delete parentNode.TopWebUrl;
}
}
}
SP.Publishing.VariationLabelPropertyNames = function SP_Publishing_VariationLabelPropertyNames() {
}
SP.Publishing.Variations = function SP_Publishing_Variations(context, objectPath) {
SP.Publishing.Variations.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.Variations.getLabels = function SP_Publishing_Variations$getLabels(context) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.ClientObjectList(context, new SP.ObjectPathStaticMethod(context, '{1339cd8a-5dc8-4932-9bb3-32a5bc2c0d48}', 'GetLabels', null), SP.Publishing.VariationLabel);
return $v_0;
}
SP.Publishing.Variations.getPeerUrl = function SP_Publishing_Variations$getPeerUrl(context, currentUrl, labelTitle) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{1339cd8a-5dc8-4932-9bb3-32a5bc2c0d48}', 'GetPeerUrl', [ currentUrl, labelTitle ]);
context.addQuery($v_1);
$v_0 = new SP.StringResult();
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
return $v_0;
}
SP.Publishing.Variations.updateListItems = function SP_Publishing_Variations$updateListItems(context, listId, itemIds) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{1339cd8a-5dc8-4932-9bb3-32a5bc2c0d48}', 'UpdateListItems', [ listId, itemIds ]);
context.addQuery($v_0);
}
Type.registerNamespace('SP.Publishing.Navigation');
SP.Publishing.Navigation.NavigationLinkType = function() {}
SP.Publishing.Navigation.NavigationLinkType.prototype = {
root: 0,
friendlyUrl: 1,
simpleLink: 2
}
SP.Publishing.Navigation.NavigationLinkType.registerEnum('SP.Publishing.Navigation.NavigationLinkType', false);
SP.Publishing.Navigation.StandardNavigationSource = function() {}
SP.Publishing.Navigation.StandardNavigationSource.prototype = {
unknown: 0,
portalProvider: 1,
taxonomyProvider: 2,
inheritFromParentWeb: 3
}
SP.Publishing.Navigation.StandardNavigationSource.registerEnum('SP.Publishing.Navigation.StandardNavigationSource', false);
SP.Publishing.Navigation.NavigationTermProviderNameCollection = function SP_Publishing_Navigation_NavigationTermProviderNameCollection(context, objectPath) {
SP.Publishing.Navigation.NavigationTermProviderNameCollection.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.Navigation.NavigationTermProviderNameCollection.prototype = {
$H_2: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$$H_2($p0) {
Array.add(this.get_data(), $p0);
},
$I_2: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$$I_2() {
var $v_0 = this.get_data();
while ($v_0.length > 0) {
Array.removeAt($v_0, $v_0.length - 1);
}
},
$J_2: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$$J_2($p0) {
Array.remove(this.get_data(), $p0);
},
itemAt: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$itemAt(index) {
return this.getItemAtIndex(index);
},
get_item: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$get_item(index) {
return this.getItemAtIndex(index);
},
get_childItemType: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$get_childItemType() {
return String;
},
add: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$add(item) {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'Add', [ item ]);
$v_0.addQuery($v_1);
this.$H_2(item);
},
clear: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$clear() {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'Clear', null);
$v_0.addQuery($v_1);
this.$I_2();
},
remove: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$remove(item) {
var $v_0 = this.get_context();
var $v_1;
var $v_2 = new SP.ClientActionInvokeMethod(this, 'Remove', [ item ]);
$v_0.addQuery($v_2);
$v_1 = new SP.BooleanResult();
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
this.$J_2(item);
return $v_1;
}
}
SP.Publishing.Navigation.NavigationTerm = function SP_Publishing_Navigation_NavigationTerm(context, objectPath) {
SP.Publishing.Navigation.NavigationTerm.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.Navigation.NavigationTerm.getAsResolvedByWeb = function SP_Publishing_Navigation_NavigationTerm$getAsResolvedByWeb(context, term, web, siteMapProviderName) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.Navigation.NavigationTerm(context, new SP.ObjectPathStaticMethod(context, '{74b7367a-e303-43e8-891e-dac764c96e53}', 'GetAsResolvedByWeb', [ term, web, siteMapProviderName ]));
$v_0.get_path().setPendingReplace();
var $v_1 = new SP.ObjectIdentityQuery($v_0.get_path());
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
context.addQuery($v_1);
return $v_0;
}
SP.Publishing.Navigation.NavigationTerm.getAsResolvedByView = function SP_Publishing_Navigation_NavigationTerm$getAsResolvedByView(context, term, view) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.Navigation.NavigationTerm(context, new SP.ObjectPathStaticMethod(context, '{74b7367a-e303-43e8-891e-dac764c96e53}', 'GetAsResolvedByView', [ term, view ]));
$v_0.get_path().setPendingReplace();
var $v_1 = new SP.ObjectIdentityQuery($v_0.get_path());
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
context.addQuery($v_1);
return $v_0;
}
SP.Publishing.Navigation.NavigationTerm.prototype = {
get_associatedFolderUrl: function SP_Publishing_Navigation_NavigationTerm$get_associatedFolderUrl() {
this.checkUninitializedProperty('AssociatedFolderUrl');
return ((this.get_objectData().get_properties()['AssociatedFolderUrl']));
},
set_associatedFolderUrl: function SP_Publishing_Navigation_NavigationTerm$set_associatedFolderUrl(value) {
this.get_objectData().get_properties()['AssociatedFolderUrl'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'AssociatedFolderUrl', value));
}
return value;
},
get_catalogTargetUrl: function SP_Publishing_Navigation_NavigationTerm$get_catalogTargetUrl() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['CatalogTargetUrl']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new SP.Publishing.CustomizableString(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'CatalogTargetUrl'));
this.get_objectData().get_clientObjectProperties()['CatalogTargetUrl'] = $v_0;
}
return $v_0;
},
get_categoryImageUrl: function SP_Publishing_Navigation_NavigationTerm$get_categoryImageUrl() {
this.checkUninitializedProperty('CategoryImageUrl');
return ((this.get_objectData().get_properties()['CategoryImageUrl']));
},
set_categoryImageUrl: function SP_Publishing_Navigation_NavigationTerm$set_categoryImageUrl(value) {
this.get_objectData().get_properties()['CategoryImageUrl'] = value;
if ((this.get_context())) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CategoryImageUrl', value));
}