09-02-2009 04:32 AM
09-02-2009 04:53 AM
09-02-2009 04:58 AM
09-02-2009 05:16 AM
necesito recuperarlos desde la api del servicio webBueno, la filosofia es la misma. Deberas incluir en tu servicio web una funcion ta lque
public Reference[] getChilds(Reference reference) throws Exception {
org.alfresco.webservice.types.Reference theReference = newAlfrescoReference(reference);
QueryResult query = repositoryServiceQueryChildren(theReference);
ResultSetRow[] rows = query.getResultSet().getRows();
Reference[] references = new Reference[] {};
if (rows != null) {
references = new Reference[rows.length];
for (int i = 0; i < rows.length; i++) {
org.alfresco.webservice.types.Reference childReference = new org.alfresco.webservice.types.Reference(
spacesStore, rows[i].getNode().getId(), null);
references[i] = newReference(childReference);
}
}
return references;
}
09-02-2009 11:19 AM
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
String path = "/app:company_home/*[@cm:name=\"" + "Asociaciones" + "\"]/";
Reference reference = new Reference(STORE, null, path);
QueryResult query = repositoryService.queryChildren(reference);
ResultSetRow[] rows = query.getResultSet().getRows();
if (rows != null)
{
for(ResultSetRow row : rows)
{
………..
// Para ver las propiedades
for (NamedValue namedValue : row.getColumns())
{
if (namedValue.getName().endsWith(Constants.PROP_NAME) == true)
{
String name = namedValue.getValue();
}
}
}
}
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.