I am not sure if you can change that name, I believe JCR node level API return unique id for the node it contains node name (policy) and id.
But if you want something like mapping between Policy node and Policy Title in JCR and title , you can run below query in QueryBuilder
property = jcr:title
property.operation = exists
It will give you JSON response like below
"jcr:path": "/conf/AEM63App/settings/wcm/policies/AEM63App/components/structure/page2/policy_15163091 75733",
"jcr:title": "Base Page Policy"
"jcr:path": "/conf/AEM63App/settings/wcm/policies/wcm/foundation/components/responsivegrid/policy_528 5465717875",
That is how it works -- (right now, policies of all editable templates are stored inside /conf/<project_name>/settings/wcm/policies folder)
They are simply JCR nodes under this location. WHy do you want to rewrite names?
Policies of editable templates are stored under /conf/<project_name>/settings/wcm/policies folder.
The only way to modify editable templates by using UI. I think you cannot rewrite the editable template policies.
I was wishing to rewrite their names so that I'll be able to make package of policies related to certain templates.
1 person found this helpful
You can do it though.
try to write an EventListener on /conf/<project_name>/settings/wcm/policies path as Node_ADDED
and get the title and create a new node as a copy of policy node as named as title and delete auto generated policy node.
You need to try and see if it works or not because you may need to change reference also inside template.