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, unregisterExtensionpublic static final ComponentName NAME
public void addSession(String sid, WSRemotingSession session)
WSRemotingSessionManageraddSession in interface WSRemotingSessionManagersid - the nuxeo core session id.session - the web service remoting session.public WSRemotingSession createSession(String username, String password, String repository, UserManager um, CoreSession session)
WSRemotingSessionManagercreateSession in interface WSRemotingSessionManagerusername - 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
WSRemotingSessionManagergetSession in interface WSRemotingSessionManagersid - the Nuxeo Core session id.WSRemotingSession instance.ClientException - if the session does not exist anymore.public void delSession(String sid) throws ClientException
WSRemotingSessionManagerdelSession in interface WSRemotingSessionManagersid - the Nuxeo Core session id.ClientExceptionpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution in class DefaultComponentExceptionpublic void fillProperties(DocumentModel doc, List<DocumentProperty> props, WSRemotingSession rs) throws ClientException
fillProperties in interface DocumentLoaderClientExceptionpublic <T> T getAdapter(Class<T> adapter)
Adaptablenull if
no such object can be found.getAdapter in interface AdaptablegetAdapter in class DefaultComponentadapter - the adapter class to look upnull if this object does not
have an adapter for the given classCopyright © 2013 Nuxeo SA. All Rights Reserved.