Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private List<NodeRef> getProcessableNodes() {
- List<NodeRef> nodeRefs = null;
- String query = "+PATH:\"/app:company_home/st:sites//*\""
- + " +TYPE:\"mispub:webContent\""
- + " +@mispub\\:toProcess:true";
- SearchParameters sp = new SearchParameters();
- StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
- sp.addStore(storeRef);
- sp.setLanguage(SearchService.LANGUAGE_LUCENE);
- sp.setQuery(query);
- ResultSet result = searchService.query(sp);
- try {
- if (result != null)
- nodeRefs = result.getNodeRefs();
- } finally {
- result.close();
- }
- return nodeRefs;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement