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;
}
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.