Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.api.ws.session
Interface WSRemotingSessionManager

All Known Implementing Classes:
WSRemotingSessionManagerImpl

public interface WSRemotingSessionManager

Web service remoting session manager.

Author:
Julien Anguenot

Method Summary
 void addSession(String sid, WSRemotingSession session)
          Adds a new session.
 WSRemotingSession createSession(String username, String password, String repository, UserManager um, CoreSession session)
          Creates a new remoting session.
 void delSession(String sid)
          Deletes a session if it exists.
 WSRemotingSession getSession(String sid)
          Return a session given its Nuxeo Core session id if exists.
 

Method Detail

createSession

WSRemotingSession createSession(String username,
                                String password,
                                String repository,
                                UserManager um,
                                CoreSession session)
Creates a new remoting session.

Parameters:
username - the user name.
password - the user password
repository - the repository name
um - the user manager
session - the Nuxeo Core session
Returns:
an intialized WSRemotingSession instance.

addSession

void addSession(String sid,
                WSRemotingSession session)
Adds a new session.

Parameters:
sid - the nuxeo core session id.
session - the web service remoting session.

delSession

void delSession(String sid)
                throws ClientException
Deletes a session if it exists.

Parameters:
sid - the Nuxeo Core session id.
Throws:
ClientException

getSession

WSRemotingSession getSession(String sid)
                             throws ClientException
Return a session given its Nuxeo Core session id if exists.

Parameters:
sid - the Nuxeo Core session id.
Returns:
a WSRemotingSession instance.
Throws:
ClientException - if the session does not exist anymore.

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.