chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giri Viswanadhuni <givis...@in.ibm.com>
Subject Issue using open CMIS: Need help to reach the <atom:id> value
Date Thu, 05 Apr 2012 05:30:35 GMT


Hello,

	I am using Open CMIS client to connect to FileNet system.
I was able to read all the properties & its values from the response, but I
alone need the <atom:id> value which is available in the response header.
Can you please help understand how can I get this value when I am trying to
use Open CMIS Client 0.6.0.

Below is the sample response of a folder which I get as response: (high
lighted the response which I am looking for.)

<atom:entry>
        - <cmisra:object>
          - <cmis:properties>
            - <cmis:propertyString queryName="cmis:name" displayName="Name"
            localName="Name" propertyDefinitionId="cmis:name">
                <cmis:value>Test123</cmis:value>
            </cmis:propertyString>
            - <cmis:propertyDateTime queryName="cmis:lastModificationDate"
            displayName="Date Last Modified" localName="DateLastModified"
            propertyDefinitionId="cmis:lastModificationDate">
                <cmis:value>2012-04-04T07:26:54.153-07:00</cmis:value>
            </cmis:propertyDateTime>
            - <cmis:propertyId queryName="cmis:objectId" displayName="ID"
            localName="Id" propertyDefinitionId="cmis:objectId">
                <cmis:value>idf_8CA4F740-F8D3-40E8-812E-93E1DB3B45B7</
              cmis:value>
            </cmis:propertyId>
            - <cmis:propertyString queryName="cmis:createdBy" displayName="
            Creator" localName="Creator" propertyDefinitionId="
            cmis:createdBy">
                <cmis:value>CEMPAdmin</cmis:value>
            </cmis:propertyString>
            - <cmis:propertyString queryName="cmis:lastModifiedBy"
            displayName="Last Modifier" localName="LastModifier"
            propertyDefinitionId="cmis:lastModifiedBy">
                <cmis:value>CEMPAdmin</cmis:value>
            </cmis:propertyString>
            - <cmis:propertyDateTime queryName="cmis:creationDate"
            displayName="Date Created" localName="DateCreated"
            propertyDefinitionId="cmis:creationDate">
                <cmis:value>2012-04-04T07:26:54.153-07:00</cmis:value>
            </cmis:propertyDateTime>
              <cmis:propertyId queryName="IndexationId" displayName="
            Indexation Id" localName="IndexationId" propertyDefinitionId="
            IndexationId" />
            - <cmis:propertyString queryName="cmis:changeToken" displayName
            ="cmis:changeToken" localName="" propertyDefinitionId="
            cmis:changeToken">
                <cmis:value>0</cmis:value>
            </cmis:propertyString>
            - <cmis:propertyString queryName="cmis:path" displayName="Path
            Name" localName="PathName" propertyDefinitionId="cmis:path">
                <cmis:value>/Test123</cmis:value>
            </cmis:propertyString>
            - <cmis:propertyId queryName="cmis:parentId" displayName="
            cmis:parentId" localName="" propertyDefinitionId="cmis:parentId
            ">
                <cmis:value>idf_0F1E2D3C-4B5A-6978-8796-A5B4C3D2E1F0</
              cmis:value>
            </cmis:propertyId>
            - <cmis:propertyId queryName="cmis:allowedChildObjectTypeIds"
            displayName="cmis:allowedChildObjectTypeIds" localName=""
            propertyDefinitionId="cmis:allowedChildObjectTypeIds">
                <cmis:value>cmis:document</cmis:value>
                <cmis:value>cmis:folder</cmis:value>
            </cmis:propertyId>
            - <cmis:propertyId queryName="cmis:baseTypeId" displayName="
            cmis:baseTypeId" localName="" propertyDefinitionId="
            cmis:baseTypeId">
                <cmis:value>cmis:folder</cmis:value>
            </cmis:propertyId>
            - <cmis:propertyId queryName="cmis:objectTypeId" displayName="
            cmis:objectTypeId" localName="" propertyDefinitionId="
            cmis:objectTypeId">
                <cmis:value>cmis:folder</cmis:value>
            </cmis:propertyId>
          </cmis:properties>
            <p8ext:ClassDisplayName>Folder</p8ext:ClassDisplayName>
        </cmisra:object>
          <atom:id>
        http://ibmcmis.dyndns.org:8080/p8cmis/resources/DaphneA/Content/idf_8CA4F740-F8D3-40E8-812E-93E1DB3B45B7
        </atom:id>
          <atom:updated>2012-04-04T07:26:54.153-07:00</atom:updated>
          <app:edited>2012-04-04T07:26:54.153-07:00</app:edited>
          <atom:published>2012-04-04T07:26:54.153-07:00</atom:published>
          <atom:title>Test123</atom:title>
          <atom:content>idf_8CA4F740-F8D3-40E8-812E-93E1DB3B45B7</
        atom:content>
          <atom:summary>Test123</atom:summary>
(See attached file: response.xml)

Thanks & Regards
-------------------------------------------------------------------------------

Giri Viswanadhuni
IBM India Pvt Ltd.,
4th Floor | Plot no.3 Fortius Block | EPIP Zone | White Field| Bangalore -
560066
Off: 080-22669858 Ext: 69858
Mob: +91-9740700599
Email: giviswan@in.ibm.com
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message