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;
}
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();
}
}
}
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.