04-18-2006 08:07 AM
row.getColumns(y).getValue()
workspace://SpacesStore/9472c578-c478-11da-8be5-db2bb273e6f3
04-19-2006 05:13 AM
CategoriesResult[] categorias = null;
categorias = WebServiceFactory.getClassificationService().getCategories(predicate);
Reference reference = new Reference(STORE, row.getNode().getId(), null);
Predicate predicate = new Predicate(new Reference[]{reference}, null, null);
Type mismatch: cannot convert from CategoriesResult[] to CategoriesResult[]
04-19-2006 05:18 AM
Repository.getNameForNode(nodeService,nodeRef)
04-19-2006 05:42 AM
04-20-2006 12:22 PM
public static List<String> SearchCategoty (String[] lista)
throws ServiceException, RemoteException, RepositoryFault
{
/**
* A partir de un String[] con los ID de la categor?a, obtengo sus nombres a trav?s de una b?squeda
*/
StringBuilder idQuery = new StringBuilder(128);
List<String> Categorias = new ArrayList<String>(lista.length);
for (String c: lista){
c=c.trim();
if (idQuery.length() != 0){
idQuery.append("\" OR ID:\"");
}
idQuery.append©;
}
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
String pathQuery="ID:\"" + idQuery.toString() + "\"" ;
Query queryCategory = new Query(QueryLanguageEnum.lucene, pathQuery);
QueryResult queryResultCat = repositoryService.query(STORE, queryCategory, false);
ResultSet resultSetCat = queryResultCat.getResultSet();
ResultSetRow rowsCat[] = resultSetCat.getRows();
// Compruebo que no haya elementos repetidos y retorno una lista de Strings
if (rowsCat != null){
for (ResultSetRow row: rowsCat){
NamedValue columns[] = row.getColumns();
for (NamedValue col: columns){
if (col.getName().endsWith("name")){
col.getValue();
if (Categorias.contains(col.getValue())){
break;
}else{
Categorias.add(col.getValue());
}
}
}
}
}
return Categorias;
}
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.