<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Web Service API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40744#M21789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ich bin gerade dabei, ein bisschen mit der Web Service API von Alfresco herum zu probieren. Zuerst habe ich das Standard Content Model um ein paar Attribute erweitert. Das klappt soweit auch ganz gut. Ich habe einen Java Client, der eine Suche im Repository ausführt, eben nach diesen Attributen. Z.B. so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query query1 = new Query(Constants.QUERY_LANG_LUCENE, "+@\\{http\\://&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0\\}MeinAttribut1:\%22Wert1\" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\\}MeinAttribut1:\'Wert1\&lt;/A&gt;&lt;SPAN&gt;" AND +@\\{http\\://&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0\\}MeinAttribut2:\%22Wert2\" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\\}MeinAttribut2:\'Wert2\&lt;/A&gt;&lt;SPAN&gt;" AND (TYPE:\"{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;&lt;SPAN&gt;")");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryResult queryResult = repositoryService.query(STORE, query1, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dann werte ich die ganze Sache so aus:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Content content= new Content();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Display the results&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ResultSet resultSet = queryResult.getResultSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ResultSetRow[] rows = resultSet.getRows();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (rows == null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("No query results found.");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("Results from query:");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outputResultSet(rows);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Get the id of the first result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String firstResultId = rows[0].getNode().getId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference reference = new Reference(STORE, firstResultId, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Get the parent(s) of the first result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryResult parentQueryResult = repositoryService.queryParents(reference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Get the parent of the first result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ResultSet parentResultSet = parentQueryResult.getResultSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ResultSetRow[] parentRows = parentResultSet.getRows();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (parentRows == null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("No query results found.");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.out.println("Results from parent query:");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outputResultSet(parentRows);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Return the first parent (we can use in other samples)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String firstParentId = parentRows[0].getNode().getId();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parentReference = new Reference(STORE, firstParentId, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Soweit alles nach dem Web Service API - Beispiel. Nun zu meiner Frage: Weiß jemand wie ich das gefundene Dokument aus dem Repository bekomme? Idealerweise als Java-File Objekt… Ist das möglich?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Geändert von GIS-olli (22.08.2007 um 12:10 Uhr).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 22:07:28 GMT</pubDate>
    <dc:creator>dmc</dc:creator>
    <dc:date>2008-03-27T22:07:28Z</dc:date>
    <item>
      <title>Web Service API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40744#M21789</link>
      <description>Ich bin gerade dabei, ein bisschen mit der Web Service API von Alfresco herum zu probieren. Zuerst habe ich das Standard Content Model um ein paar Attribute erweitert. Das klappt soweit auch ganz gut. Ich habe einen Java Client, der eine Suche im Repository ausführt, eben nach diesen Attributen. Z.B</description>
      <pubDate>Thu, 27 Mar 2008 22:07:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40744#M21789</guid>
      <dc:creator>dmc</dc:creator>
      <dc:date>2008-03-27T22:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40745#M21790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also mein Problem habe ich jetzt selbst gelöst. Falls es jemand braucht, einfach hier reinschreiben ich poste es dann mal…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 22:07:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40745#M21790</guid>
      <dc:creator>dmc</dc:creator>
      <dc:date>2008-03-27T22:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40746#M21791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hallo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ich sitze gerade vor dem gleichen Problem. Wäre schön, wenn du mir ein deine Lösung zeigen könntest.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 19:27:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40746#M21791</guid>
      <dc:creator>char</dc:creator>
      <dc:date>2008-04-29T19:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40747#M21792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Siehe ContentReadAndWrite aus dem SDK:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mit dem ContentService den Inhalt lesen. danach mit den ContentUtils den Content umwandeln&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 07:10:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/40747#M21792</guid>
      <dc:creator>morpheus</dc:creator>
      <dc:date>2008-08-22T07:10:11Z</dc:date>
    </item>
  </channel>
</rss>

