Getting CoreSession from Remote Session?
Hi ,currently i have get user session by below code in liferay
HttpAutomationClient client = new HttpAutomationClient(automationPath); // authentication with secret key client.setRequestInterceptor(new PortalSSOAuthInterceptor( ConstantUtils.NUXEO_PORTAL_AUTH_SECRET, user.getScreenName())); //Class org.nuxeo.ecm.automation.client.Session Session session = client.getSession();
Now i want nuxeo CoreSession from org.nuxeo.ecm.automation.client.Session. How can i get this ? Thanks in advance. Any small will be appreciated.
As far as I know you can do all actions needed with the Session, as described in this page
Thanks for your reply, actually i want core session for getting nuxeo task in liferay for each user. I got this by Workflow.GetTask automatio operation , which provide me the all task for particular user by name
If not you could try using a unrestrictedSessionRunner. An example can be found on: http://www.nuxeo.com/blog/monday-dev-heaven-pick-random-picture-background-login-page/