Developing a Mozilla Firefox plug-in for Content Management Interoperability Services

Return to article

Listing 2. Example CMIS service document code
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<ns4:service xmlns:ns5="http://docs.oasis-open.org/ns/cmis/restatom/200908/" 
xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" 
xmlns:ns6="http://www.ibm.com/standards/ecm/p8/2008/cmis" 
xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200908/" 
xmlns:ns3="http://www.w3.org/2005/Atom" xmlns:ns4="http://www.w3.org/2007/app">
    <ns3:author>
        <ns3:name>System</ns3:name>
    </ns3:author>
    <ns4:workspace>
        <ns3:title type="text">FNSPStore</ns3:title>
        <ns4:collection 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/ContentFlat/">
            <ns3:title type="text">Main folder of the repository</ns3:title>
            <ns5:collectionType>root</ns5:collectionType>
        </ns4:collection>
        <ns4:collection 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/Unfiled/">
            <ns3:title type="text">Unfiled documents in the repository</ns3:title>
            <ns4:accept>application/atom+xml;type=entry</ns4:accept>
            <ns5:collectionType>unfiled</ns5:collectionType>
        </ns4:collection>
        <ns4:collection 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/Checkedout/">
            <ns3:title type="text">Checkedout documents in the repository</ns3:title>
            <ns4:accept>application/atom+xml;type=entry</ns4:accept>
            <ns5:collectionType>checkedout</ns5:collectionType>
        </ns4:collection>
        <ns4:collection 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/TypeFlat/">
            <ns3:title type="text">Types in the repository</ns3:title>
            <ns5:collectionType>types</ns5:collectionType>
        </ns4:collection>
        <ns4:collection 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/Query/">
            <ns3:title type="text">Submit queries</ns3:title>
            <ns4:accept>application/cmisquery+xml</ns4:accept>
            <ns5:collectionType>query</ns5:collectionType>
        </ns4:collection>
        <ns5:repositoryInfo>
            <repositoryId>FNSPStore</repositoryId>
            <repositoryName>FNSPStore</repositoryName>
            <repositoryDescription>FNSPStore</repositoryDescription>
            <vendorName>IBM</vendorName>
            <productName>IBM FileNet P8 Content Manager</productName>
            <productVersion>4.0.1</productVersion>
            <rootFolderId>idf_0F1E2D3C-4B5A-6978-8796-A5B4C3D2E1F0</
            rootFolderId>
            <capabilities>
                <capabilityACL>none</capabilityACL>
                <capabilityAllVersionsSearchable>true</
                capabilityAllVersionsSearchable>
                <capabilityChanges>none</capabilityChanges>
                <capabilityContentStreamUpdatability>pwconly</
                capabilityContentStreamUpdatability>
                <capabilityGetDescendants>true</capabilityGetDescendants>
                <capabilityGetFolderTree>true</capabilityGetFolderTree>
                <capabilityMultifiling>true</capabilityMultifiling>
                <capabilityPWCSearchable>true</capabilityPWCSearchable>
                <capabilityPWCUpdatable>true</capabilityPWCUpdatable>
                <capabilityQuery>bothcombined</capabilityQuery>
                <capabilityRenditions>none</capabilityRenditions>
                <capabilityUnfiling>true</capabilityUnfiling>
                <capabilityVersionSpecificFiling>false</
                capabilityVersionSpecificFiling>
                <capabilityJoin>innerandouter</capabilityJoin>
            </capabilities>
            <cmisVersionSupported>1.0</cmisVersionSupported>
            <ns6:DomainName>CEMPLinux</ns6:DomainName>
            <ns6:ObjectStoreID>FNSPStore</ns6:ObjectStoreID>
            <ns6:ObjectStoreName>FNSPStore</ns6:ObjectStoreName>
            <ns6:ObjectStoreDBType>DB2</ns6:ObjectStoreDBType>
        </ns5:repositoryInfo>
        <ns3:link title="Types Descendants feed" type="application/cmistree+xml" 
        rel="http://docs.oasis-open.org/ns/cmis/link/200908/typedescendants" 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/TypeTree/"/>
        <ns3:link title="Folder Descendants feed for root folder" 
        type="application/cmistree+xml" 
        rel="http://docs.oasis-open.org/ns/cmis/link/200908/rootdescendants" 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/ContentTree/"/>
        <ns3:link title="Folder Tree feed for root folder" type="application/cmistree+xml" 
        rel="http://docs.oasis-open.org/ns/cmis/link/200908/foldertree" 
        href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/
        ContentTree/?includeDocuments=false"/>
        <ns5:uritemplate>
            <ns5:template>http://cmis.example.com:8080/p8cmis/resources/FNSPStore/
            ContentFlat/{path}</ns5:template>
            <ns5:type>objectbypath</ns5:type>
            <ns5:mediatype>application/atom+xml;type=feed</ns5:mediatype>
        </ns5:uritemplate>
        <ns5:uritemplate>
            <ns5:template>http://cmis.example.com:8080/p8cmis/resources/FNSPStore/
            Content/{id}</ns5:template>
            <ns5:type>objectbyid</ns5:type>
            <ns5:mediatype>application/atom+xml;type=entry</ns5:mediatype>
        </ns5:uritemplate>
        <ns5:uritemplate>
            <ns5:template>http://cmis.example.com:8080/p8cmis/resources/
            FNSPStore/Query/?q={q}&maxItems={maxItems}&skipCount=
            {skipCount}&searchAllVersions={searchAllVersions}</ns5:template>
            <ns5:type>query</ns5:type>
            <ns5:mediatype>application/atom+xml;type=feed</ns5:mediatype>
        </ns5:uritemplate>
        <ns5:uritemplate>
            <ns5:template>http://cmis.example.com:8080/p8cmis/resources/
            FNSPStore/TypeTree/{id}</ns5:template>
            <ns5:type>typebyid</ns5:type>
            <ns5:mediatype>application/atom+xml;type=feed</ns5:mediatype>
        </ns5:uritemplate>
    </ns4:workspace>
</ns4:service>

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes" ?> 
<ns4:service xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200908/" 
xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" 
xmlns:ns4="http://www.w3.org/2007/app" xmlns:ns3="http://www.w3.org/2005/Atom" 
xmlns:ns5="http://docs.oasis-open.org/ns/cmis/restatom/200908/" 
xmlns:ns6="http://www.ibm.com/standards/ecm/p8/2008/cmis">
<ns3:author>
  <ns3:name>System</ns3:name> 
  </ns3:author>
<ns4:workspace>
  <ns3:title type="text">FNSPStore</ns3:title> 
<ns4:collection href="http://cmis.example.com:8080/p8cmis/resources/
FNSPStore/ContentFlat/" ns5:collectionType="root">
  <ns3:title type="text">Main folder of the repository</ns3:title> 
  </ns4:collection>
<ns4:collection href="http://cmis.example.com:8080/p8cmis/resources/
FNSPStore/Unfiled/" ns5:collectionType="unfiled">
  <ns3:title type="text">Unfiled documents in the repository</ns3:title> 
  <ns4:accept>application/atom+xml;type=entry</ns4:accept> 
  </ns4:collection>
<ns4:collection href="http://cmis.example.com:8080/p8cmis/resources/
FNSPStore/Checkedout/" ns5:collectionType="checkedout">
  <ns3:title type="text">Checkedout documents in the repository</ns3:title> 
  <ns4:accept>application/atom+xml;type=entry</ns4:accept> 
  </ns4:collection>
<ns4:collection href="http://cmis.example.com:8080/p8cmis/resources/
FNSPStore/TypeFlat/" ns5:collectionType="types">
  <ns3:title type="text">Types in the repository</ns3:title> 
  </ns4:collection>
<ns4:collection href="http://cmis.example.com:8080/p8cmis/resources/
FNSPStore/Query/" ns5:collectionType="query">
  <ns3:title type="text">Submit queries</ns3:title> 
  <ns4:accept>application/cmisquery+xml</ns4:accept> 
  </ns4:collection>
<ns5:repositoryInfo>
  <repositoryId>FNSPStore</repositoryId> 
  <repositoryName>FNSPStore</repositoryName> 
  <repositoryDescription>FNSPStore</repositoryDescription> 
  <vendorName>IBM</vendorName> 
  <productName>IBM FileNet P8 Content Manager</productName> 
  <productVersion>4.0.1</productVersion> 
  <rootFolderId>idf_0F1E2D3C-4B5A-6978-8796-A5B4C3D2E1F0</rootFolderId> 
<capabilities>
  <capabilityAllVersionsSearchable>true</capabilityAllVersionsSearchable> 
  <capabilityGetDescendants>true</capabilityGetDescendants> 
  <capabilityGetFolderTree>false</capabilityGetFolderTree> 
  <capabilityMultifiling>true</capabilityMultifiling> 
  <capabilityPWCSearchable>false</capabilityPWCSearchable> 
  <capabilityPWCUpdatable>true</capabilityPWCUpdatable> 
  <capabilityQuery>bothcombined</capabilityQuery> 
  <capabilityUnfiling>true</capabilityUnfiling> 
  <capabilityVersionSpecificFiling>false</capabilityVersionSpecificFiling> 
  <capabilityJoin>innerandouter</capabilityJoin> 
  </capabilities>
  <cmisVersionSupported>0.7</cmisVersionSupported> 
  <ns6:DomainName>FNSPDomain</ns6:DomainName> 
  <ns6:ObjectStoreID>FNSPStore</ns6:ObjectStoreID> 
  <ns6:ObjectStoreName>FNSPStore</ns6:ObjectStoreName> 
  <ns6:ObjectStoreDBType>MSSQL</ns6:ObjectStoreDBType> 
  </ns5:repositoryInfo>
  <ns3:link title="Types Descendants feed" type="application/cmistree+xml" 
rel="http://docs.oasis-open.org/ns/cmis/link/200908/typedescendants" 
href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/TypeTree/" /> 
  <ns3:link title="Folder Descendants feed for root folder" 
type="application/cmistree+xml" 
rel="http://docs.oasis-open.org/ns/cmis/link/200908/rootdescendants" 
href="http://cmis.example.com:8080/p8cmis/resources/FNSPStore/ContentTree/" /> 
  <ns3:link title="Folder Tree feed for root folder" type="application/cmistree+xml" 
rel="http://docs.oasis-open.org/ns/cmis/link/200908/foldertree" 
href="http://cmis.example.com:8080/p8cmis/resources/
FNSPStore/ContentTree/?includeDocuments=false" />

Return to article