|
You must import the default photo and video object types provided with IBM® Connections to enable media galleries in Connections deployments. This step is mandatory when Connections Files is installed.
|
You must import the default photo and video object types provided with IBM® Connections to enable media galleries in IBM Connections deployments. This step is mandatory when Connections Files is installed.
About this task
Object types are defined in XML according to the Content Management Interoperability Services (CMIS) standard. Detailed documentation for the CMIS standard can be found at the http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=cmis" target="external">Oasis CMIS web site  .
IBM Connections provides two default object type XML definition files: MediaPhoto.xml defines a photo type, and MediaVideo.xml defines a video type. In multi-node clustered environments, these files are installed on each node. You must import them on the computer that the Files application is installed on, and then restart Files. In stand alone environments import the files on the single server, and then restart Files.
Procedure
Perform the following steps to import the default object types.
- Start the wsadmin client by completing the following steps:
- On the system Files is installed on, open a command prompt, and then change to the following directory:
where <app_server_root> is the WebSphere Application Server installation directory and <files_profile_root> is the Files profile directory.
- Enter the following command to start the wsadmin client:
- AIX or Linux:
./wsadmin.sh -lang jython -user <admin_user_id> -password <admin_password> -port <SOAP_CONNECTOR_ADDRESS Port>
- Microsoft Windows:
wsadmin -lang jython -user <admin_user_id> -password <admin_password> -port <SOAP_CONNECTOR_ADDRESS Port>
where:
- <admin_user_id> is the user name of a person in the Administrator role on the IBM WebSphere® Application Server.
- <admin_password> is the password of the WebSphere Application Server administrator.
- <SOAP_CONNECTOR_ADDRESS Port> is the SOAP port for the WebSphere Application Server. The default value of the SOAP port is 8879. If you are using the default port value, you do not need to specify this parameter. If you are not using the default and you do not know the port number, you can look up its value in the WebSphere Application Server Integrated Solution Console. To look up the SOAP port number, perform the following steps:
- Open the WebSphere Application Server Integrated Solution Console for the deployment manager, and then select System Administration -> Deployment Manager.
- In the Additional properties section expand Ports, and then look for the SOAP_CONNECTOR_ADDRESS port entry to find the port number.
For example:
- AIX or Linux:
./wsadmin.sh -lang jython -username primaryAdmin -password p@assword -port 8879
- Microsoft Windows:
wsadmin -lang jython -username primaryAdmin -password p@assword -port 8879
- Start the Files Jython script interpreter using the following command:
execfile("filesAdmin.py")
- Run the following commands to import the default object type definitions:
FilesObjectTypeService.importType("config/bin_lc_admin/MediaPhoto.xml")
FilesObjectTypeService.importType("config/bin_lc_admin/MediaVideo.xml")
- Run the following command to check that the new object type was imported. The command returns a list of all object types:
FilesObjectTypeService.browseTypes()
- Restart the Files application.
Results
Community owners can select the object types when they add media gallery widgets to their communities. See Adding a media gallery to your community.
Parent topic: Configuring media galleries ic301
Related concepts
Configuring media galleries ic301
Related tasks
Starting the wsadmin client ic301
Adding a media gallery to your community ic301
|