Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ejb.ws.session
Class WSRemotingSessionBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.ejb.ws.session.WSRemotingSessionBean
All Implemented Interfaces:
WSRemotingSessionManager, WSRemotingSessionManagerLocal

public class WSRemotingSessionBean
extends java.lang.Object
implements WSRemotingSessionManagerLocal

Web service remote session bean.

Author:
Julien Anguenot

Constructor Summary
WSRemotingSessionBean()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSRemotingSessionBean

public WSRemotingSessionBean()
Method Detail

addSession

public void addSession(java.lang.String sid,
                       WSRemotingSession session)
Description copied from interface: WSRemotingSessionManager
Adds a new session.

Specified by:
addSession in interface WSRemotingSessionManager
Parameters:
sid - the nuxeo core session id.
session - the web service remoting session.

createSession

public WSRemotingSession createSession(java.lang.String username,
                                       java.lang.String password,
                                       java.lang.String repository,
                                       UserManager um,
                                       CoreSession session)
Description copied from interface: WSRemotingSessionManager
Creates a new remoting session.

Specified by:
createSession in interface WSRemotingSessionManager
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.

delSession

public void delSession(java.lang.String sid)
                throws ClientException
Description copied from interface: WSRemotingSessionManager
Deletes a session if it exists.

Specified by:
delSession in interface WSRemotingSessionManager
Parameters:
sid - the Nuxeo Core session id.
Throws:
ClientException

getSession

public WSRemotingSession getSession(java.lang.String sid)
                             throws ClientException
Description copied from interface: WSRemotingSessionManager
Return a session given its Nuxeo Core session id if exists.

Specified by:
getSession in interface WSRemotingSessionManager
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.