03-02-2007 03:19 PM
03-07-2007 10:25 AM
// we know for now that the general classifiable aspect only will be
// applied so we can retrive the categories property direclty
Collection<NodeRef> categories = (Collection<NodeRef>)this.nodeService.getProperty(
actionedUponNodeRef, ContentModel.PROP_CATEGORIES);
if (categories == null || categories.size() == 0)
{
writeLog("No Categories applied");
}
else
{
writeLog("Categories found! Size: " + categories.size() + "");
for (NodeRef ref : categories)
{
if (this.nodeService.exists(ref))
{
category = Repository.getNameForNode(this.nodeService, ref);
writeLog("category: " + category);
parentCategory = Repository.getNameForNode(this.nodeService, this.nodeService.getPrimaryParent(ref).getParentRef());
writeLog("parent: " + parentCategory);
}
}
}
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.