05-04-2006 09:04 AM
05-05-2006 03:02 AM
05-08-2006 10:34 AM
public static NodeRef getNodeByUUID(ServiceRegistry serviceRegistry, StoreRef storeRef, String uuId) throws Exception{
SearchService searchService = serviceRegistry.getSearchService();
String searchString = "@sys\\:node-uuid:\"" + uuId + "\"";
ResultSet rs = searchService.query(storeRef,SearchService.LANGUAGE_LUCENE, searchString );
if (rs==null){
return(null);
}
int nbRecords = rs.length();
NodeRef nodeRef;
if (nbRecords < 1) {
nodeRef=null;
}
else nodeRef = rs.getNodeRef(0);
rs.close();
return(nodeRef);
}
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.