cancel
Showing results for 
Search instead for 
Did you mean: 

createCategory(Parent, Name) using the WebService

vbayon
Champ in-the-making
Champ in-the-making
Hi all,
(my first post to this forum)

Is it possible to create a new category via the webservice client?

I think that I am looking for a method similar to this one:

http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/search/CategoryServic...


thanks a lot for your help


best regards

/Victor
4 REPLIES 4

doblek
Champ in-the-making
Champ in-the-making
Hi,

You may want to take a look to Classification Web Service. You can use it (see 'setCategories') to apply some categories to some nodes (identified by the predicate object)…

Is that what you're looking for? Hope it is…


Regards,
Enrique

vbayon
Champ in-the-making
Champ in-the-making
Hi Enrique,
thanks a lot for your quick answer!

I had a look at setCategories and for what I understand I need to have the category already existing in Alfresco so that I can obtain its path or UUID and then assign it to the content. What I need is to create a totally new category from the WebService.

I have followed this (very useful) example but also assumes that we have already the categories

http://forums.alfresco.com/viewtopic.php?t=6267

many thanks

best regards

/Victor

doblek
Champ in-the-making
Champ in-the-making
Oooopss…

It seems that that feature is scheduled for a future release… at least, according to the wiki… =/

I'm not an Alfresco developer, so I can't tell if it's already implemented in Alfresco 2.0 Smiley Sad (that page was updated for last time on November 2006…) Try to use the method described there… if repository doesn't recognize it… I assume that creating a category is not available yet =(

Maybe an Alfresco developer could tell you more… sorry.

Regards,
Enrique

nuga
Champ in-the-making
Champ in-the-making
http://forums.alfresco.com/viewtopic.php?t=5021&highlight=

i am able to do it using this code..
its a junit