Index: features/src/main/javascript/features/opensocial-reference/container.js
===================================================================
--- features/src/main/javascript/features/opensocial-reference/container.js (revision 782874)
+++ features/src/main/javascript/features/opensocial-reference/container.js (working copy)
@@ -310,8 +310,95 @@
opensocial.Container.prototype.newFetchActivitiesRequest = function(idSpec,
opt_params) {};
-opensocial.Container.prototype.newFetchMessageCollectionsRequest = function(idSpec, opt_params) {};
-opensocial.Container.prototype.newFetchMessagesRequest = function(idSpec, msgCollId, opt_params) {};
+
+/**
+ * Creats an item to request messages collections from the container.
+ *
+ * @param {opensocial.IdSpec} idSpec An IdSpec used to specify which people to
+ * fetch. See also IdSpec.
+ * @param opt_params Additional parameters to pass to the request
+ * @return {Object} A request object
+ */
+opensocial.Container.prototype.newFetchMessageCollectionsRequest = function(
+ idSpec, opt_params) {};
+
+
+/**
+ * Creats an item to request messages from the container.
+ *
+ * @param {opensocial.IdSpec} idSpec An IdSpec used to specify which people to
+ * fetch. See also IdSpec.
+ * @param opt_params Additional parameters to pass to the request
+ * @return {Object} A request object
+ */
+opensocial.Container.prototype.newFetchMessagesRequest = function(idSpec,
+ msgCollId, opt_params) {};
+
+
+/**
+ * Creates a new message collection on the container and returns the ID of the
+ * item created.
+ *
+ * @param {opensocial.IdSpec} idSpec An IdSpec used to specify which
+ * people/groups to create the message collection for. See also
+ * IdSpec.
+ * @param opt_params Additional parameters to pass to the request
+ * @return {Object} A request object
+ */
+opensocial.Container.prototype.newCreateMessageCollectionRequest = function(
+ idSpec, messageCollection) {};
+
+
+/**
+ * Updates the message collection. Only the fields TITLE and URLS can be
+ * updated.
+ *
+ * @param {opensocial.IdSpec} idSpec An IdSpec used to specify which
+ * people/groups own the message collection.
+ * @param {opensocial.MessageCollection} The updated message collection.
+ * @return {Object} A request object
+ */
+opensocial.Container.prototype.newUpdateMessageCollectionRequest = function(
+ idSpec, messageCollection) {};
+
+
+/**
+ * Deletes the message collection.
+ *
+ * @param {opensocial.IdSpec} idSpec An IdSpec used to specify which
+ * people/groups own the message collection.
+ * @param {string} The message collection to delete.
+ * @return {Object} A request object
+ */
+opensocial.Container.prototype.newDeleteMessageCollectionRequest = function(
+ idSpec, msgCollId) {};
+
+
+/**
+ * Updates the message. The fields: APP_URL, ID and SENDER_ID can't be
+ * updated. Container may define whether other fields can be updated or not.
+ *
+ * @param {opensocial.IdSpec} idSpec An IdSpec used to specify which
+ * people/groups own the message collection.
+ * @param {opensocial.Message} The updated message.
+ * @return {Object} A request object
+ */
+opensocial.Container.prototype.newUpdateMessageRequest = function(idSpec,
+ msgCollId, message) {};
+
+
+/**
+ * Deletes the message.
+ *
+ * @param {opensocial.IdSpec} idSpec An IdSpec used to specify which
+ * people/groups own the message collection.
+ * @param {string} The message collection to delete from.
+ * @param {string} The message to delete.
+ * @return {Object} A request object
+ */
+opensocial.Container.prototype.newDeleteMessageRequest = function(idSpec,
+ msgCollId, msgId) {};
+
/**
* Creates a new collection with caja support if enabled.
@@ -393,6 +480,23 @@
/**
+ * Creates a new message collection object. Used when creating the item on the
+ * server. The field TITLE must be specified.
+ *
+ * @param {Map.} opt_params Any other
+ * fields that should be set on the message collection object. All of the
+ * defined Fields are
+ * supported.
+ * @return {opensocial.MessageCollection} The new
+ * MessageCollection object.
+ * @member opensocial
+ */
+opensocial.Container.prototype.newMessageCollection = function(body, opt_params) {
+ return new opensocial.Message(body, opt_params);
+};
+
+
+/**
* Creates an IdSpec object.
*
* @param {Map.<opensocial.IdSpec.Field, Object>} parameters