|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.ecm.platform.ws.session.WSRemotingSessionManagerImpl
public class WSRemotingSessionManagerImpl
Web service Remoting session manager implemtation.
Field Summary | |
---|---|
static ComponentName |
NAME
|
Constructor Summary | |
---|---|
WSRemotingSessionManagerImpl()
|
Method Summary | ||
---|---|---|
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)
|
|
|
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)
|
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
activate, applicationStarted, deactivate, registerExtension, unregisterContribution, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ComponentName NAME
Constructor Detail |
---|
public WSRemotingSessionManagerImpl()
Method Detail |
---|
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 session
WSRemotingSession
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 up
null
if this object does not
have an adapter for the given class
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |