Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ws.session
Class WSRemotingSessionManagerImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.ws.session.WSRemotingSessionManagerImpl
All Implemented Interfaces:
WSRemotingSessionManager, Adaptable, Component, Extensible

public class WSRemotingSessionManagerImpl
extends DefaultComponent
implements WSRemotingSessionManager

Web service Remoting session manager implemtation.

Author:
Julien Anguenot

Field Summary
static ComponentName NAME
           
 
Constructor Summary
WSRemotingSessionManagerImpl()
           
 
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 org.nuxeo.runtime.model.DefaultComponent
activate, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final ComponentName NAME
Constructor Detail

WSRemotingSessionManagerImpl

public WSRemotingSessionManagerImpl()
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.

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.

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.