Hi All,
We are upgrading from 5.4 to 6.1 .
To get JCR Session we used the below code
SlingRepository repo = sling.getService(SlingRepository.class);
Session session = repo.loginAdministrative(null);
Now while upgrading we want to use
loginService(String subServiceName, String workspace)
method of SlingRepository class as loginAdministrative method is deprecated .But we are not able to use it .
We are using this
Session session = repo.loginService(null,null);
We don't know what to send for subServiceName argument .
If anyone used this method please mention your code.
Thanks in advance