Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getPropertyValueOnNode(propName, nodePath) {
- session?.logout()
- session = repo.login(new SimpleCredentials(username, password.toCharArray()))
- def jcrContent = "${nodePath}/jcr:content"
- if (session.nodeExists(jcrContent)) {
- Node n = session.getNode(jcrContent)
- if (n.hasProperty(propName)) {
- return n.getProperty(propName).getString()
- }
- }
- return null
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement