Basically I am looking for the reverse of:
Node node = resource.adaptTo(Node.class)
How can this be done?
Solved! Go to Solution.
Hi,
You can do this by using the AdapterManager OSGi service and:
adapterManager.getAdapter(node, Resource.class);
Regards,
Justin
You can do -
String nodePath = resource.getPath();
Node node = session.getNode(nodePath);
Views
Replies
Total Likes
Hi,
You can do this by using the AdapterManager OSGi service and:
adapterManager.getAdapter(node, Resource.class);
Regards,
Justin
Views
Likes
Replies
Views
Likes
Replies