Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ws
Class AbstractNuxeoWebService

java.lang.Object
  extended by org.nuxeo.ecm.platform.ws.AbstractNuxeoWebService
All Implemented Interfaces:
Serializable, BaseNuxeoWebService
Direct Known Subclasses:
NuxeoRemotingBean, WSAuditBean

public abstract class AbstractNuxeoWebService
extends Object
implements BaseNuxeoWebService

Abstract Nuxeo Web Service.

Extend this if you want to share the Web Service remoting sessions with the other Nuxeo platform web services.

Author:
Julien Anguenot
See Also:
Serialized Form

Constructor Summary
AbstractNuxeoWebService()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNuxeoWebService

public AbstractNuxeoWebService()
Method Detail

connectOnRepository

@PermitAll
public String connectOnRepository(String username,
                                            String password,
                                            String repositoryName)
                           throws ClientException
Throws:
ClientException

connect

@PermitAll
public String connect(String username,
                                String password)
               throws ClientException
Description copied from interface: BaseNuxeoWebService
Connects to the default nuxeo core repository.

Specified by:
connect in interface BaseNuxeoWebService
Parameters:
username - the user name
password - the user password
Returns:
a Nuxeo core session identifier.
Throws:
ClientException

disconnect

public void disconnect(String sid)
                throws ClientException
Description copied from interface: BaseNuxeoWebService
Disconnect the Nuxeo core given the session id.

Specified by:
disconnect in interface BaseNuxeoWebService
Parameters:
sid - the Nuxeo core session id.
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.