Before you begin
You must create the XML documents that define CMIS object types for custom photo or video files before importing them. See the topic Working with CMIS API object types
for information on creating custom object type definition documents. Also see Sample media gallery object types
for samples of photo and video object type definitions you can use as templates.
Users with media galleries must not switch from using an object type for photos, to then using it for videos.
In multi-node clustered environments, you must add the XML definition documents to the computer on which the IBM
® Connections Files application is installed, and then also import them on that computer.
Object types defined for media galleries must use the following name space:
To assign new logical types to a property, add the type as the value of the localName
element, and add http://www.ibm.com/xmlns/prod/sn/cmis/logicaltypes
as the value of the localNamespace
element. For example, the default photo object type looks like this:
Name objects in the localName element clearly so that community owners know what object types to pick when adding media gallery widgets to their communities.
Media galleries use the IBM
Connections Files service and the CMIS API to store, retrieve, and share photo and video files. Detailed documentation for the CMIS standard can be found at the Oasis CMIS web site
To use administrative commands, you must use the wsadmin client. See Starting the wsadmin client
To import new object types, perform the following steps.
- On the computer that the Files application is installed on, start the wsadmin client.
- Start the Files Jython script interpreter using the following command:
- Run the following command to import the object type definition document:
is the path and filename of the XML definition document.
- Restart the Files application.
- Run the following command to check that the new object type was imported. The command returns a list of all object types:
- If your definition adds new properties, add property labels and descriptions to the CMIS language property file. See Adding photo and video property labels and descriptions.
- Add custom fields to display the new properties. See Including custom fields with photos and videos.
Community owners can select the object type when they add media gallery widgets to their communities. See Adding a media gallery to your community
Parent topic: Configuring media galleries
Starting the wsadmin client
Adding a media gallery to your community
Working with CMIS API object types