Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.client
Class NuxeoClient

java.lang.Object
  extended by org.nuxeo.ecm.core.client.NuxeoClient

public final class NuxeoClient
extends Object

Author:
Bogdan Stefanescu

Constructor Summary
NuxeoClient()
          Constructs a new NuxeoClient.
 
Method Summary
static void adaptClientSecurityDomain(SecurityDomain sd)
           
 void addConnectionListener(ConnectionListener listener)
           
 void connect(InvokerLocator locator)
           
 void connect(String locator)
           
 void connect(String host, int port)
           
 void disconnect()
           
 void forceConnect(InvokerLocator locator)
           
 void forceConnect(String locator)
           
 void forceConnect(String host, int port)
           
 AutoConfigurationService getConfigurationService()
           
 Repository getDefaultRepository()
           
static NuxeoClient getInstance()
           
 InvokerLocator getLocator()
           
 LoginHandler getLoginHandler()
           
 boolean getMultiThreadedLogin()
           
 Repository[] getRepositories()
          Gets the repositories available on the connected server.
 Repository getRepository(String name)
           
 RepositoryInstance[] getRepositoryInstances()
           
 RepositoryManager getRepositoryManager()
           
 String getServerHost()
           
 String getServerName()
           
 int getServerPort()
           
 boolean isConnected()
           
 void login()
           
 void logout()
           
static RepositoryInstance newRepositoryInstance(Repository repository)
           
 RepositoryInstance openRepository()
           
 RepositoryInstance openRepository(String name)
           
 void reconnect()
           
 void releaseRepository(RepositoryInstance repo)
           
 void removeConnectionListener(ConnectionListener listener)
           
 void setLoginHandler(LoginHandler loginHandler)
           
 void setMultiThreadedLogin(boolean useMultiThreadedLogin)
           
 void tryConnect(InvokerLocator locator)
           
 void tryConnect(String url)
           
 void tryConnect(String host, int port)
           
 void tryDisconnect()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NuxeoClient

public NuxeoClient()
Constructs a new NuxeoClient. NOTE: Using getInstance() instead of this constructor is recommended.

Method Detail

getInstance

public static NuxeoClient getInstance()

setMultiThreadedLogin

public void setMultiThreadedLogin(boolean useMultiThreadedLogin)

getMultiThreadedLogin

public boolean getMultiThreadedLogin()

connect

public void connect(String locator)
             throws Exception
Throws:
Exception

connect

public void connect(InvokerLocator locator)
             throws Exception
Throws:
Exception

connect

public void connect(String host,
                    int port)
             throws Exception
Throws:
Exception

forceConnect

public void forceConnect(InvokerLocator locator)
                  throws Exception
Throws:
Exception

forceConnect

public void forceConnect(String locator)
                  throws Exception
Throws:
Exception

forceConnect

public void forceConnect(String host,
                         int port)
                  throws Exception
Throws:
Exception

tryConnect

public void tryConnect(String host,
                       int port)
                throws Exception
Throws:
Exception

tryConnect

public void tryConnect(String url)
                throws Exception
Throws:
Exception

tryConnect

public void tryConnect(InvokerLocator locator)
                throws Exception
Throws:
Exception

adaptClientSecurityDomain

public static void adaptClientSecurityDomain(SecurityDomain sd)

disconnect

public void disconnect()
                throws Exception
Throws:
Exception

tryDisconnect

public void tryDisconnect()
                   throws Exception
Throws:
Exception

reconnect

public void reconnect()
               throws Exception
Throws:
Exception

getConfigurationService

public AutoConfigurationService getConfigurationService()

getServerName

public String getServerName()

isConnected

public boolean isConnected()

getServerHost

public String getServerHost()

getServerPort

public int getServerPort()

getLocator

public InvokerLocator getLocator()

getLoginHandler

public LoginHandler getLoginHandler()

setLoginHandler

public void setLoginHandler(LoginHandler loginHandler)

login

public void login()
           throws LoginException
Throws:
LoginException

logout

public void logout()
            throws LoginException
Throws:
LoginException

getRepositoryManager

public RepositoryManager getRepositoryManager()
                                       throws Exception
Throws:
Exception

getRepositories

public Repository[] getRepositories()
                             throws Exception
Gets the repositories available on the connected server.

Returns:
the repositories
Throws:
Exception

getDefaultRepository

public Repository getDefaultRepository()
                                throws Exception
Throws:
Exception

getRepository

public Repository getRepository(String name)
                         throws Exception
Throws:
Exception

openRepository

public RepositoryInstance openRepository()
                                  throws Exception
Throws:
Exception

openRepository

public RepositoryInstance openRepository(String name)
                                  throws Exception
Throws:
Exception

releaseRepository

public void releaseRepository(RepositoryInstance repo)
                       throws Exception
Throws:
Exception

getRepositoryInstances

public RepositoryInstance[] getRepositoryInstances()

newRepositoryInstance

public static RepositoryInstance newRepositoryInstance(Repository repository)

addConnectionListener

public void addConnectionListener(ConnectionListener listener)

removeConnectionListener

public void removeConnectionListener(ConnectionListener listener)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.