As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
How to get Repository node in java ?
What exactly do you mean with 'Repository node'?
Let's assume you mean the 'Company Home' node:
In the Maven Platform Jar archetype, there is an example where the 'Company Home' node is retrieved via the `nodeLocatorService` as follows:
nodeLocatorService.getNode("companyhome", null, null);
Have a look here:
https://github.com/Alfresco/alfresco-sdk/blob/master/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/DemoComponent.java#L79