public class WSRemotingSessionManagerImpl extends DefaultComponent implements WSRemotingSessionManager, DocumentLoader
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,DocumentLoader> |
loaders |
static ComponentName |
NAME |
lastModified
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) |
protected void |
registerLoader(DocumentLoaderDescriptor desc) |
activate, applicationStarted, deactivate, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
public static final ComponentName NAME
protected final HashMap<String,DocumentLoader> loaders
public WSRemotingSessionManagerImpl()
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)
WSRemotingSessionManager
getSession
in interface WSRemotingSessionManager
sid
- the Nuxeo Core session id.WSRemotingSession
instance.public void delSession(String sid)
WSRemotingSessionManager
delSession
in interface WSRemotingSessionManager
sid
- the Nuxeo Core session id.public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
protected void registerLoader(DocumentLoaderDescriptor desc)
public void fillProperties(DocumentModel doc, List<DocumentProperty> props, WSRemotingSession rs)
fillProperties
in interface DocumentLoader
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 © 2016 Nuxeo SA. All rights reserved.