Thursday, 11 February 2016

How to Set a Node property in JCR

How to Set a Node property in JCR

How to Add a Node property in JCR 
To set the property of a Node in JCR or AEM we can use the following code snippet in Java.
This uses the
javax.jcr.Node.setProperty(String propertyName, String propertyValue)
function to achive the desired task.

node.setProperty("propertyName","propertyValue");

Here's how to delete a Node property in JCR.