I'm using AEM 6.2 and trying to get the "damFolderPath" value from a Node's "jcr:content".
i tried these:
//resourcePath = "/content/projects/newyear-1"
Resource resource = resourceResolver.getResource(resourcePath);
Node tNode = resource.adaptTo(Node.class);
Property prop = tNode.getProperty("jcr:content/damFolderPath");
log.info("\n...Output 1:"+tNode.hasProperty("damFolderPath"));
log.info("\n...Output 2:"+prop.toString());
Output 1: false
Output 2: Property[PropertyDelegate{parent=/content/projects/newyear-1/kms/jcr:content: { jcr:primaryType = nt:unstructured, detailsHref = /projects/details.html, jcr:title = kms, active = true, cq:template = /apps/swa/projects/templates/default, damFolderPath = /content/dam/projects/newyear-1/kms, coverUrl = /content/dam/projects/newyear-1/kms/cover, sling:resourceType = cq/gui/components/projects/admin/card/projectcontent, links = { ... }, dashboard = { ... }}, property=damFolderPath = /content/dam/projects/newyear-1/kms}]
I can see it is there, but how do i get it from output2?