org.nuxeo.ecm.core.client
Class NuxeoClient
java.lang.Object
org.nuxeo.ecm.core.client.NuxeoClient
public final class NuxeoClient
- extends Object
- Author:
- Bogdan Stefanescu
Constructor Summary |
NuxeoClient()
Constructs a new NuxeoClient. |
NuxeoClient
public NuxeoClient()
- Constructs a new NuxeoClient. NOTE: Using
getInstance()
instead
of this constructor is recommended.
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)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.