Tuesday, April 30, 2013

How to get prefixed path from a node in alfresco



For a particular node, if you want to get its prefixed path, use the below code.

NodeRef : workspace://SpacesStore/762c952c-30aa-4141-88d5-d75b5dc0e05e

Its Prefixed path looks like : /app:company_home/st:sites/cm:mysite/cm:documentLibrary


Path primaryPath = nodeService.getPath(reportsFolder); 

String prefixedPath = ISO9075.decode(primaryPath.toPrefixString(namespaceService));

No comments:

Post a Comment