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.

0 votes

1 answers

2629 views

ANSWER

Not sure if this is what you're looking for: http://doc.nuxeo.com/display/NXDOC/Java+Automation+Client

As far as I know you can do all actions needed with the Session, as described in this page

02/23/2015



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

0 votes



You might find the info you need on this page: http://www.nuxeo.com/blog/ways-nuxeo-platform-coresession/

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/

02/24/2015