cancel
Showing results for 
Search instead for 
Did you mean: 

how to manage tags thru web services?

fluca1978
Champ in-the-making
Champ in-the-making
Hi all,
I'm trying to manage tags of content using web services, but I don't find any substitution for the Taggingservice. Anyone could please point me to the right way (if possible) of adding/removing and listing tags using only the web service client implementation?


Thanks,
Luca
4 REPLIES 4

fluca1978
Champ in-the-making
Champ in-the-making
I guess I should use CMLAddAspect to add the
{http://www.alfresco.org/model/content/1.0}taggable
aspect, but I don't know which named values to add to the node in order to make the tags associated to the node itself.
I've tried the following code:


String TAG_CONSTANT = {http://www.alfresco.org/model/content/1.0}taggable
NamedValue tagValues[] = new NamedValue[1];
tagValues[0] = Utils.createNamedValue(  "tag:tags", "tag-luca");
CMLAddAspect addAspectTags = new CMLAddAspect( TAG_CONSTANT, tagValues, null, "1");

but when I explore the created content in the web client I can see the taggable aspect in the aspects but no tags in the node itself.
Any suggestion?

Thanks,
Luca

jithusuji
Champ in-the-making
Champ in-the-making
Hi in your code
Utils.createNamedValue
can you explain what  Utils is please…

fluca1978
Champ in-the-making
Champ in-the-making
Hi in your code
Utils.createNamedValue
can you explain what  Utils is please…

Utils is a special class provided by the alfresco web services used to create paths and named velues.

antogrim2
Champ in-the-making
Champ in-the-making
I use same method, and I have same results: No tags for my uploaded files. Can you help me? Thanks
Antonello