If I want the path of a node, I do the following:
getNodeService().getPath(nodeRef)
It returns something like this:
/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/application/1.0}user_homes/{http://www.alfresco.org/model/content/1.0}AGP/{http://www.alfresco.org/model/content/1.0}AGP2/{http://www.alfresco.org/model/content/1.0}New_x0020_Documents/{http://www.alfresco.org/model/content/1.0}Test.pdf
But I want a path like:
/company_home/User Homes/AGP/AGP2/New Documents/Test.pdf
Without the qnames, types, and with the correct format without _x0020_ codes.Are there a method from the Alfresco API to get this type of path? Or I must decode it writing an own method in Java?Thanks!PD: I answer myself
)
getNodeService().getPath(nodeRef).toDisplayPath(getNodeService(), getPermissionService())