12-03-2014 01:25 AM
NodeRef rootNode = nodeService.getRootNode(getStoreRef());
NodeRef parentNode = documentSearchService.findNode(locationPath, rootNode);
Map<QName, Serializable> properties = new HashMap<>();
String documentName = newDocument.getName();
properties.put(Model.PROP_NAME, documentName);
return nodeService.createNode(parentNode, Model.ASSOC_CONTAINS, getQName(documentName), Model.TYPE_DOCUMENT, properties).getChildRef()
SearchParameters sp = new SearchParameters();
sp.addStore(getStoreRef());
sp.setLanguage(SearchService.LANGUAGE_LUCENE);
sp.setQuery(query);
ResultSet results = null;
try
{
results = searchService.query(sp);
if (results != null)
{
return results.getNodeRefs();
}
}
finally
{
if (logger.isDebugEnabled())
{
logger.debug("Executed query :" + query);
}
if (results != null)
{
results.close();
}
}
12-03-2014 01:33 AM
12-03-2014 01:52 AM
TYPE:"{http://www.nomagic.com/collaborator/model/1.0}View" AND @nm\:viewID:TREE_VIEW_ID0NodeView___18_0_2_8e10289_1415117719001_986707_4106 AND PATH:"/app:company_home/nm:Untitled1380984618752155//*"
12-03-2014 04:10 AM
12-05-2014 02:28 AM
12-05-2014 05:47 AM
12-05-2014 09:41 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.