06-26-2009 06:33 AM
06-26-2009 06:53 AM
String xpath = "/app:company_home/*[@cm:name="folderX"]/*[@cm:name="folderY"]"
Or you can try to use Lucene Query but you must encode all the names of the spaces with ISO9075 class in this way:
String path = "/app:company_home/cm:"+ISO9075.encode("folderX")+"/cm:"+ISO9075.encode("folderY")";
Hope this helps.
06-26-2009 07:21 AM
06-29-2009 12:43 PM
06-30-2009 11:59 AM
08-06-2009 04:00 AM
09-07-2009 02:05 AM
09-07-2009 06:16 AM
protected ResultSet NodeSearch(String nodeName){
ResultSet result = null;
try{
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
//the following query search for a node of type folder. If you have another type, you mus change the query.
Query query = new Query(Constants.QUERY_LANG_LUCENE, "TYPE:\"cm:folder\" AND @cm\\:name:\""+normilizeNodeName(nodeName)+"\"");
QueryResult queryResult = repositoryService.query(STORE, query, false);
result = queryResult.getResultSet();
ResultSetRow[] rows = result.getRows();
rows[0].getColumns();
}
catch(Exception e){
System.out.println("O node with name '"+nodeName+"' dont exist.");
e.printStackTrace();
result = null;
}
return result;
}
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.