11-01-2007 01:40 PM
11-01-2007 02:42 PM
Reference ref = new Reference(STORE, uuid, null);
QueryResult queryResult = WebServiceFactory.getRepositoryService().queryChildren(ref);
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows != null) {
for (int i=0; i<rows.length; i++) {
System.out.println((rows[i].getNode().getType());
System.out.println((rows[i].getNode().getId());
}
}
07-28-2008 08:36 AM
I getType method of a nodein this queryresult , where is the the real content ? ,
Reference ref = new Reference(STORE, uuid, null);
QueryResult queryResult = WebServiceFactory.getRepositoryService().queryChildren(ref);
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows != null) {
for (int i=0; i<rows.length; i++) {
System.out.println((rows[i].getNode().getType());
System.out.println((rows[i].getNode().getId());
}
}
rows.getNode()
returns just another node object , but where is the actual file, i uploaded to alfresco, is it in that object ? where do i have to go an other way to get that ? 07-30-2008 08:18 AM
I getType method of a nodein this queryresult , where is the the real content ? ,
Reference ref = new Reference(STORE, uuid, null);
QueryResult queryResult = WebServiceFactory.getRepositoryService().queryChildren(ref);
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
if (rows != null) {
for (int i=0; i<rows.length; i++) {
System.out.println((rows[i].getNode().getType());
System.out.println((rows[i].getNode().getId());
}
}
returns just another node object , but where is the actual file, i uploaded to alfresco, is it in that object ? where do i have to go an other way to get that ?rows.getNode()
And exists an normal API documentation for all the web service methods, like an Jdoc documentation ?
sry to blind to read found the doc at: http://wiki.alfresco.com/wiki/Alfresco_JavaDoc
07-31-2008 05:56 AM
You must use the Content Service and its "read" method. This method returns a set of Content type objects, each of them with a "url" property. Then you can access to this URL (by using a java.net.URL connection) and get the binary data.thx
NOTE: you MUST append "?ticket=your_session_ticket" to the URL. If you need a example, let me know.
07-31-2008 06:14 AM
You must use the Content Service and its "read" method. This method returns a set of Content type objects, each of them with a "url" property. Then you can access to this URL (by using a java.net.URL connection) and get the binary data.thx
NOTE: you MUST append "?ticket=your_session_ticket" to the URL. If you need a example, let me know.
i found another option
with the class ContentUtils, i can get the content "directly" via getContentas …
which one is better/more performant ?
yours via URL or mine with the ContentUtils ?
08-05-2008 08:21 AM
ContentUtils does exactly the same thing, so no way is more or less efficient.
08-06-2008 08:15 AM
ok i tested, get an File with ContentUtils but the streams i get from the method is empty !!!!
what could that be ?
08-12-2008 08:56 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.