Nuxeo Enterprise Platform 5.4

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

All Known Subinterfaces:
WSRemotingSessionManagerLocal
All Known Implementing Classes:
WSRemotingSessionBean, WSRemotingSessionManagerImpl

public interface WSRemotingSessionManager

Web service remoting session manager.

Author:
Julien Anguenot

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

Method Detail

createSession

WSRemotingSession createSession(java.lang.String username,
                                java.lang.String password,
                                java.lang.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(java.lang.String sid,
                WSRemotingSession session)
Adds a new session.

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

delSession

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

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

getSession

WSRemotingSession getSession(java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.