AnsweredAssumed Answered

Rename nodeRef

Question asked by streetturtle on Oct 26, 2015
I would like to rename a nodeRef under rm site, either folder (rma:recordFolder) or document (cm:content).

If I use
fileFolderService
:


try
{
    fileFolderService.rename(rmFolder, someName);
}
catch (FileNotFoundException ignored){}


Filename (cm:name property) changes correctly. But path stays the same.

For example I have document which was created with typo in name:
Letterr
.
Since it's a record in Node Browser it is displayed as
sys:Letterr (2015-1645811173852).pdf
. And has following path:
/cm:someFolder/sys:Letterr_x0020__x0028_2015-1645811173852_x0029_.pdf
.

After I call rename method everything stays the same except
cm:name
property, which becomes:
Letter (2015-1645811173852).pdf
.

My question is how to properly rename record? 

Outcomes