05-13-2013 02:43 PM
stRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE,"SpacesStore");
SearchParameters searchParameters = new SearchParameters();
searchParameters.addStore(stRef);
searchParameters.setQuery("PATH:\"/cm:generalclassifiable" +
"/cm:" + ISO9075.encode("aaaa")+
"/member\""
);
searchParameters.setLanguage(SearchService.LANGUAGE_LUCENE);categories = new ArrayList<NodeRef>(1);
categories.add(categoryNodeRef);
getServiceRegistry().getNodeService().setProperty(nodeRefDoc, ContentModel.PROP_CATEGORIES, categories);05-14-2013 04:59 AM
05-15-2013 02:33 PM
05-15-2013 04:22 PM
//obtain the root category
Collection coll = getServiceRegistry().getCategoryService().getRootCategories(
new StoreRef(StoreRef.PROTOCOL_WORKSPACE,"SpacesStore"),
ContentModel.ASPECT_GEN_CLASSIFIABLE);
it = coll.iterator();
while(it.hasNext())
{
ChildAssociationRef temp=(ChildAssociationRef) it.next();
System.out.println(" QName="+temp.getQName());
System.out.println(" value=" + temp.getQName().getPrefixString()+"___");
System.out.println(" nodeRef=" + temp.getChildRef());
}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.