|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.ws.AbstractNuxeoWebService
public abstract class AbstractNuxeoWebService
Abstract Nuxeo Web Service.
Extend this if you want to share the Web Service remoting sessions with the other Nuxeo platform web services.
| Constructor Summary | |
|---|---|
protected |
AbstractNuxeoWebService()
|
| Method Summary | |
|---|---|
String |
connect(String username,
String password)
Connects to the default nuxeo core repository. |
void |
disconnect(String sid)
Disconnect the Nuxeo core given the session id. |
protected WSRemotingSessionManager |
getSessionsManager()
Returns the platform service that deals with shared Web Service remote sessions. |
protected UserManager |
getUserManager()
Returns the user manager service. |
protected WSRemotingSession |
initSession(String sid)
Initializes a user session. |
protected void |
login(String username,
String password)
Initializes a new user session from the credentials bound the Web Service remote session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractNuxeoWebService()
| Method Detail |
|---|
protected WSRemotingSessionManager getSessionsManager()
throws ClientException
WSRemotingSessionManager service
ClientException
@PermitAll
public String connect(String username,
String password)
throws ClientException
BaseNuxeoWebService
connect in interface BaseNuxeoWebServiceusername - : the user namepassword - : the user password
ClientException
public void disconnect(String sid)
throws ClientException
BaseNuxeoWebService
disconnect in interface BaseNuxeoWebServicesid - : the Nuxeo core session id.
ClientException
protected void login(String username,
String password)
throws ClientException
rs - a Web Service remote instance.
ClientException
protected WSRemotingSession initSession(String sid)
throws ClientException
sid - the session identifier.
ClientException
protected UserManager getUserManager()
throws Exception
Exception
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||