Skip to content

Commit

Permalink
Rebuild after EZP-24065
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Mar 23, 2015
1 parent fd0f4aa commit e37bd22
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dist/CAPI-min.js

Large diffs are not rendered by default.

36 changes: 16 additions & 20 deletions dist/CAPI.js
Expand Up @@ -1805,36 +1805,32 @@ define('structures/ContentMetadataUpdateStruct',[],function () {


/**
* Returns a structure used to update a Content's metadata. See
* {{#crossLink "ContentService/updateContentMetadata"}}ContentService.updateContentMetadata{{/crossLink}}
* The Content Update structure that can be used with {{#crossLink
* "ContentService/updateContentMetadata"}}ContentService.updateContentMetadata{{/crossLink}}
*
* @class ContentMetadataUpdateStruct
* @constructor
* @param languageCode {String} The language code (eng-GB, fre-FR, ...)
*/
var ContentMetadataUpdateStruct = function (languageCode) {
var now = JSON.parse(JSON.stringify(new Date()));

this.body = {};
this.body.ContentUpdate = {};

this.body.ContentUpdate.MainLanguageCode = languageCode;
this.body.ContentUpdate.Section = null;
this.body.ContentUpdate.alwaysAvailable = "true";
this.body.ContentUpdate.remoteId = null;
this.body.ContentUpdate.modificationDate = now;
this.body.ContentUpdate.publishDate = null;
var ContentMetadataUpdateStruct = function () {
this.body = {'ContentUpdate': {}};

this.headers = {
"Accept": "application/vnd.ez.api.ContentInfo+json",
"Content-Type": "application/vnd.ez.api.ContentUpdate+json"
this.headers = {
"Accept": "application/vnd.ez.api.ContentInfo+json",
"Content-Type": "application/vnd.ez.api.ContentUpdate+json"
};
};

return this;
/**
* Sets the section id
*
* @method setSection
* @param {String} sectionId the Section REST id
*/
ContentMetadataUpdateStruct.prototype.setSection = function (sectionId) {
this.body.ContentUpdate.Section = {_href: sectionId};
};

return ContentMetadataUpdateStruct;

});

/* global define */
Expand Down

0 comments on commit e37bd22

Please sign in to comment.