Thanks!
I used this code and worked fine:
public String buscaParent() {
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
try {
Store spacesStore = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
String luceneQuery = "PATH:\"/app:company_home\"";
Query query = new Query(Constants.QUERY_LANG_LUCENE, luceneQuery);
QueryResult queryResult = repositoryService.query(spacesStore, query, false);
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] results = resultSet.getRows();
for (ResultSetRow resultRow : results) {
ResultSetRowNode nodeResult = resultRow.getNode();
idCompanyHome = nodeResult.getId();
}
} catch (RemoteException e) {
adicionaTextoLog("Erro de busca: " + e.getMessage().toString());
}
return idCompanyHome;
}
I hope what help anyone in the future…