cancel
Showing results for 
Search instead for 
Did you mean: 

Editing and moving a content

kirit
Champ on-the-rise
Champ on-the-rise
I have a following scenario.
In my WCM webproject, lets say i have a web-form called testweb which contains title, category, body etc. where category is A, B and C.
Now, at time of creating content i am giving title "content-1" and category "A". so according to my path pattern content will be created at location "Root/Test/A". I need to edit the content and need to change the category to "C". after approval i want the content to move to the location "Root/Test/C" from "Root/Test/A".

I have tried the serviceRegistry.getAVMService().rename() method but its giving me follwing exceptin
"{http://www.alfresco.org/model/wcmappmodel/1.0}forminstancedata"  aspect not found.

is there any api available which i can use for moving the content from A to C location? or may be to copy the content first and then delete it.

there is a getAVMService().copy() method but it copies whole directory. i am interested to play with single content only.
1 REPLY 1

janv
Employee
Employee
Please provide release/build version (eg. from startup log). If this is easily repeatable, then please raise a JIRA with exact environment, detailed steps and full stacktrace / server log.

Thanks,
Jan