Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
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
View solution in original post
You can do -
String nodePath = resource.getPath();
Node node = session.getNode(nodePath);
Views
Likes
Replies