public class WSRemotingSessionManagerImpl extends DefaultComponent implements WSRemotingSessionManager, DocumentLoader
Modifier and Type | Field and Description |
---|---|
static ComponentName |
NAME |
Constructor and Description |
---|
WSRemotingSessionManagerImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
fillProperties(DocumentModel doc,
List<DocumentProperty> props,
WSRemotingSession rs) |
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class
associated with this object.
|
WSRemotingSession |
getSession(String sid)
Return a session given its Nuxeo Core session id if exists.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public static final ComponentName NAME
public void addSession(String sid, WSRemotingSession session)
WSRemotingSessionManager
addSession
in interface WSRemotingSessionManager
sid
- the nuxeo core session id.session
- the web service remoting session.public WSRemotingSession createSession(String username, String password, String repository, UserManager um, CoreSession session)
WSRemotingSessionManager
createSession
in interface WSRemotingSessionManager
username
- the user name.password
- the user passwordrepository
- the repository nameum
- the user managersession
- the Nuxeo Core sessionWSRemotingSession
instance.public WSRemotingSession getSession(String sid) throws ClientException
WSRemotingSessionManager
getSession
in interface WSRemotingSessionManager
sid
- the Nuxeo Core session id.WSRemotingSession
instance.ClientException
- if the session does not exist anymore.public void delSession(String sid) throws ClientException
WSRemotingSessionManager
delSession
in interface WSRemotingSessionManager
sid
- the Nuxeo Core session id.ClientException
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void fillProperties(DocumentModel doc, List<DocumentProperty> props, WSRemotingSession rs) throws ClientException
fillProperties
in interface DocumentLoader
ClientException
public <T> T getAdapter(Class<T> adapter)
Adaptable
null
if
no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look upnull
if this object does not
have an adapter for the given classCopyright © 2013 Nuxeo SA. All Rights Reserved.