11-25-2009 05:45 AM
<type name="hits:DownloadTeaser">
<title>DownloadTeaser</title>
<parent>hits:Content</parent>
<associations>
<child-association name="hits:DownloadTeaser:Headline">
<title>DownloadTeaser:Headline</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>hits:binaryLanguageContent</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</child-association>
</associations>
</type>
After creating the linked target content of type binaryLanguageContent I have linked it to the main document of type DownloadTeaser in the Web Client. By accessing the main document via CMIS I don't get any hint on how to retrieve the linked target document.<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:alf="http://www.alfresco.org">
<author><name>admin</name></author>
<content type="text/plain" src="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b...><id>urn:uuid:845410d9-03de-4595-a71d-86854ba09e0d</id>
<link rel="self" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b...>
<link rel="enclosure" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b..." type="text/plain"/>
<link rel="edit" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b...>
<link rel="edit-media" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b..." type="text/plain"/>
<link rel="http://docs.oasis-open.org/ns/cmis/link/200908/allowableactions" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b...>
<link rel="http://docs.oasis-open.org/ns/cmis/link/200908/relationships" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b...>
<link rel="up" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b..." type="application/atom+xml;type=feed"/>
<link rel="version-history" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/845410d9-03de-4595-a71d-86854b...>
<link rel="describedby" href="http://localhost:8080/alfresco/service/cmis/type/D:hits:binaryLanguageContent'/>
<link rel="service" href="http://localhost:8080/alfresco/service/cmis'/>
<published>2009-11-25T10:09:55.200+01:00</published>
<summary></summary>
<title>headline</title>
<updated>2009-11-25T10:27:02.492+01:00</updated>
<app:edited>2009-11-25T10:27:02.492+01:00</app:edited>
<alf:icon>http://localhost:8080/alfresco/images/filetypes/_default.gif</alf:icon>
<cmisra:object>
<cmis:properties>
<cmis:propertyId propertyDefinitionId="cmis:objectTypeId"><cmis:value>D:hits:binaryLanguageContent</cmis:value></cmis:propertyId>
<cmis:propertyString propertyDefinitionId="cmis:checkinComment"/>
<cmis:propertyDateTime propertyDefinitionId="cmis:lastModificationDate"><cmis:value>2009-11-25T10:27:02.492+01:00</cmis:value></cmis:propertyDateTime>
<cmis:propertyBoolean propertyDefinitionId="cmis:isImmutable"><cmis:value>false</cmis:value></cmis:propertyBoolean>
<cmis:propertyString propertyDefinitionId="cmis:versionSeriesCheckedOutBy"/>
<cmis:propertyString propertyDefinitionId="cmis:versionLabel"/>
<cmis:propertyBoolean propertyDefinitionId="cmis:isLatestVersion"><cmis:value>true</cmis:value></cmis:propertyBoolean>
<cmis:propertyString propertyDefinitionId="cmis:createdBy"><cmis:value>admin</cmis:value></cmis:propertyString>
<cmis:propertyString propertyDefinitionId="cmis:name"><cmis:value>headline</cmis:value></cmis:propertyString>
<cmis:propertyId propertyDefinitionId="cmis:baseTypeId"><cmis:value>cmis:document</cmis:value></cmis:propertyId>
<cmis:propertyString propertyDefinitionId="cmis:contentStreamFileName"><cmis:value>headline</cmis:value></cmis:propertyString>
<cmis:propertyId propertyDefinitionId="cmis:contentStreamId"><cmis:value>cm:content</cmis:value></cmis:propertyId>
<cmis:propertyString propertyDefinitionId="cmis:contentStreamMimeType"><cmis:value>text/plain</cmis:value></cmis:propertyString>
<cmis:propertyString propertyDefinitionId="cmis:changeToken"/>
<cmis:propertyInteger propertyDefinitionId="cmis:contentStreamLength"><cmis:value>0</cmis:value></cmis:propertyInteger>
<cmis:propertyId propertyDefinitionId="cmis:versionSeriesCheckedOutId"/>
<cmis:propertyId propertyDefinitionId="cmis:versionSeriesId"><cmis:value>workspace://SpacesStore/845410d9-03de-4595-a71d-86854ba09e0d</cmis:value></cmis:propertyId>
<cmis:propertyId propertyDefinitionId="cmis:objectId"><cmis:value>workspace://SpacesStore/845410d9-03de-4595-a71d-86854ba09e0d</cmis:value></cmis:propertyId>
<cmis:propertyDateTime propertyDefinitionId="cmis:creationDate"><cmis:value>2009-11-25T10:09:55.200+01:00</cmis:value></cmis:propertyDateTime>
<cmis:propertyBoolean propertyDefinitionId="cmis:isMajorVersion"><cmis:value>false</cmis:value></cmis:propertyBoolean>
<cmis:propertyString propertyDefinitionId="cmis:lastModifiedBy"><cmis:value>admin</cmis:value></cmis:propertyString>
<cmis:propertyBoolean propertyDefinitionId="cmis:isLatestMajorVersion"><cmis:value>false</cmis:value></cmis:propertyBoolean>
<cmis:propertyBoolean propertyDefinitionId="cmis:isVersionSeriesCheckedOut"><cmis:value>false</cmis:value></cmis:propertyBoolean>
</cmis:properties>
</cmisra:object>
<cmisra:pathSegment>headline</cmisra:pathSegment>
</entry>
Anyone out there who can answer this?11-25-2009 12:20 PM
11-26-2009 03:42 AM
<child-association name="hits:DownloadTeaser:Headline">
<title>Headline</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>hits:binaryLanguageContent</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</child-association>
For completeness, here's what is returned:<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:alf="http://www.alfresco.org" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
<author><name>admin</name></author>
<generator version="3.2.0 (r2 2440)">Alfresco (Community)</generator>
<icon>http://localhost:8080/alfresco/images/logo/AlfrescoLogo16.ico</icon>
<id>urn:uuid:c609a1bc-5b80-41fa-841f-43c7c0928dce-relationships</id>
<link rel="service" href="http://localhost:8080/alfresco/service/cmis'/>
<link rel="self" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/c609a1bc-5b80-41fa-841f-43c7c0...>
<link rel="via" href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/c609a1bc-5b80-41fa-841f-43c7c0...>
<title>DownloadTeaser Relationships</title>
<updated>2009-11-26T09:15:09.846+01:00</updated>
<opensearch:totalResults>0</opensearch:totalResults>
<opensearch:startIndex>0</opensearch:startIndex>
<opensearch:itemsPerPage>-1</opensearch:itemsPerPage>
<cmisra:numItems>0</cmisra:numItems>
</feed>
11-26-2009 03:54 AM
12-15-2009 05:30 AM
12-16-2009 07:38 AM
04-21-2011 06:03 AM
04-26-2011 09:53 AM
04-27-2011 04:42 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.