01-04-2013 03:51 AM
http://localhost:8080/share/page/site/feniceevo-srl/document-details?nodeRef=workspace://SpacesStore...
public String ricerca() throws RepositoryFault, RemoteException
{
String risultato="";
AuthenticationUtils.startSession(user, password);
try
{
// Referenza al nodo padre in cui inserire il documento
Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
String luceneQuery = "TYPE:\"fe:fattura\"";
Store spacesStore = new Store(Constants.WORKSPACE_STORE,"SpacesStore");
Query query = new Query(Constants.QUERY_LANG_LUCENE,luceneQuery);
QueryResult queryResult = repositoryService.query(spacesStore, query, false);
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] results = resultSet.getRows();
//your custom list
//List<CustomResultVO> customResultList = new ArrayList<CustomResultVO>();
//retrieve results from the resultSet
for (ResultSetRow resultRow: results)
{
ResultSetRowNode nodeResult = resultRow.getNode();
System.out.println(nodeResult.getId());
System.out.println(nodeResult.getType());
JOptionPane.showMessageDialog(null,nodeResult.getId(),"Link di collegamento",1);
}
}
catch(Throwable e)
{
System.out.println(e.getMessage());
}
finally
{
// Fine della sessione
AuthenticationUtils.endSession();
}
return risultato;
}
02-12-2013 03:42 AM
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.