public abstract class AbstractNuxeoWebService extends Object implements BaseNuxeoWebService
Extend this if you want to share the Web Service remoting sessions with the other Nuxeo platform web services.
Constructor and Description |
---|
AbstractNuxeoWebService() |
Modifier and Type | Method and Description |
---|---|
String |
connect(String username,
String password)
Connects to the default nuxeo core repository.
|
String |
connectOnRepository(String username,
String password,
String repositoryName) |
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 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.
|
public AbstractNuxeoWebService()
protected WSRemotingSessionManager getSessionsManager()
WSRemotiungSessionManager
service@PermitAll public String connectOnRepository(String username, String password, String repositoryName)
@PermitAll public String connect(String username, String password)
BaseNuxeoWebService
connect
in interface BaseNuxeoWebService
username
- the user namepassword
- the user passwordpublic void disconnect(String sid)
BaseNuxeoWebService
disconnect
in interface BaseNuxeoWebService
sid
- the Nuxeo core session id.protected void login(String username, String password)
protected WSRemotingSession initSession(String sid)
sid
- the session identifier.Copyright © 2018 Nuxeo. All rights reserved.