org.nuxeo.ecm.platform.ws.session
Class WSRemotingSessionManagerImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final ComponentName NAME
WSRemotingSessionManagerImpl
public WSRemotingSessionManagerImpl()
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 passwordrepository
- the repository nameum
- the user managersession
- 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
Copyright © 2010 Nuxeo SAS. All Rights Reserved.