As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
row.getColumns(y).getValue()
workspace://SpacesStore/9472c578-c478-11da-8be5-db2bb273e6f3
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[]
Repository.getNameForNode(nodeService,nodeRef)
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; }