Community articleUsing files CMIS APIs with Media Gallery
Added by IBM contributorIBM | Edited by IBM contributordeveloperWorks Lotus Team on June 27, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Provides details on how to use the Files CMIS APIs to retrieve and perform actions on Media Gallery content
The Media Gallery application of IBM® Connections Communities enables teams to share photos and videos using a shared community repository of files. The Media Gallery uses the Files CMIS API to add, read, and modify files in a community’s files repository. All files added to the Media Gallery are stored in the community’s files repository and are associated with a CMIS object type.

Related tasks

Retrieving Community Files Service Document
The first step you must perform if you plan to update resources made available through the Atom APIs is to retrieve the service document for the application.

Retrieving Community Files Root Feed
The second step you must perform if you plan to add resources is to retrieve the root feed..

Getting Photos and Videos Feed
Use the atom subscription API to retrieve resources stored in the Files repository that are associated with Media Gallery object types.

Retrieving a Photo or Video
Retrieve an Atom document representation of a photo or video.

Retrieving CMIS Object Type properties
Retrieve an Atom document representation of the CMIS object type which will be helpful when editing properties on a photo or video.

Retrieving nonce and user information
Retrieve the nonce and user information which will be helpful when creating, editing, or deleting photos or videos.

Adding a photo or video
Using the Atom Publishing Protocol, also known as AtomPub, you can add a photo or video to a community files repository.

Editing Photo or Video properties
Using the Atom Publishing Protocol, also known as AtomPub, you can modify properties associated with an existing photo or video in a community files repository.

Deleting or Moving to Trash a Photo or Video
Using the Atom Publishing Protocol, also known as AtomPub, you can move to trash or delete a photo or video to a community files repository based upon the community files setting for trash.

Creating a Video Thumbnail
Preview thumbnails are not generated for videos that are uploaded. Therefore, using the Atom Publishing Protocol, also known as AtomPub, you can associate a thumbnail preview image with a video.

Replacing a Photo or Video
Using the Atom Publishing Protocol, also known as AtomPub, you can replace an existing photo or video in a community files repository.

CMIS Logical Types Explanation for Media Gallery
Learn about CMIS logical type impact on Media Gallery object types.