java - Rename document in nuxeo -


i've document (folderish) in nuxeo want rename. documentmodel uid using api, , i'm trying chenge actual nuxeo name path changes (not renaming blob attachment name, whole folderish should change name)

i tried changing properties:

documentmodel cf = this.getcampaignfolder(); cf.setproperty("dublincore", "title", newshortname); 

this seems change title, leaves nuxeo name unchanged.

i tried changing path:

cf.setpathinfo(cf.getpathasstring().replaceall("/[^/]*$", "), newshortname); 

but when save says document doesn't exist.

can't find rename or move api either.

how rename stuff?

currently, workaround, deleting folder , recreating it.

what nuxeo version?

there are:

you like:

session.move(doc.getref(), null, newshortname); 

Comments