Good evening!I currently have a little app that does a lucene search for a number of documents in an Alfresco repo and adds an aspect and it's respective properties, this works great!My problem is that I would like to add the new Taggable aspect via the webservice and it requires a NodeRef for the d:category type
<aspect name="cm:taggable">
<title>Taggable</title>
<parent>cm:classifiable</parent>
<properties>
<property name="cm:taggable">
<title>Tags</title>
<type>d:category</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
<index enabled="true">
<atomic>true</atomic>
<stored>true</stored>
<tokenised>false</tokenised>
</index>
</property>
</properties>
</aspect>
I've had a look at the source and I can't find any way that I can create a category like this then use it in the webservice….
NodeRef newRootCat = categoryService.createRootCategory(
spacesStore,
ContentModel.ASPECT_GEN_CLASSIFIABLE,
"newRootCat");
// To create a category
NodeRef newCategory = categoryService.createCategory(newRootCat, "newCategory");
To sum up, I'm looking for an approach to add several tags (I have a list of tags as List<String>) to a document via the Taggable aspect so it will appear in the tagged cloud Does anyone have any suggestions as to how I might do this?Thank youAlistair