org.nuxeo.ecm.core.client
Class NuxeoClient
java.lang.Object
org.nuxeo.ecm.core.client.NuxeoClient
public final class NuxeoClient
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static NuxeoClient getInstance()
setMultiThreadedLogin
public void setMultiThreadedLogin(boolean useMultiThreadedLogin)
getMultiThreadedLogin
public boolean getMultiThreadedLogin()
connect
public void connect(java.lang.String locator)
throws java.lang.Exception
- Throws:
java.lang.Exception
connect
public void connect(InvokerLocator locator)
throws java.lang.Exception
- Throws:
java.lang.Exception
connect
public void connect(java.lang.String host,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
forceConnect
public void forceConnect(InvokerLocator locator)
throws java.lang.Exception
- Throws:
java.lang.Exception
forceConnect
public void forceConnect(java.lang.String locator)
throws java.lang.Exception
- Throws:
java.lang.Exception
forceConnect
public void forceConnect(java.lang.String host,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
tryConnect
public void tryConnect(java.lang.String host,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
tryConnect
public void tryConnect(java.lang.String url)
throws java.lang.Exception
- Throws:
java.lang.Exception
tryConnect
public void tryConnect(InvokerLocator locator)
throws java.lang.Exception
- Throws:
java.lang.Exception
adaptClientSecurityDomain
public static void adaptClientSecurityDomain(SecurityDomain sd)
disconnect
public void disconnect()
throws java.lang.Exception
- Throws:
java.lang.Exception
tryDisconnect
public void tryDisconnect()
throws java.lang.Exception
- Throws:
java.lang.Exception
reconnect
public void reconnect()
throws java.lang.Exception
- Throws:
java.lang.Exception
getConfigurationService
public AutoConfigurationService getConfigurationService()
getServerName
public java.lang.String getServerName()
isConnected
public boolean isConnected()
getServerHost
public java.lang.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 javax.security.auth.login.LoginException
- Throws:
javax.security.auth.login.LoginException
logout
public void logout()
throws javax.security.auth.login.LoginException
- Throws:
javax.security.auth.login.LoginException
getRepositoryManager
public RepositoryManager getRepositoryManager()
throws java.lang.Exception
- Throws:
java.lang.Exception
getRepositories
public Repository[] getRepositories()
throws java.lang.Exception
- Gets the repositories available on the connected server.
- Returns:
- the repositories
- Throws:
java.lang.Exception
getDefaultRepository
public Repository getDefaultRepository()
throws java.lang.Exception
- Throws:
java.lang.Exception
getRepository
public Repository getRepository(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
openRepository
public RepositoryInstance openRepository()
throws java.lang.Exception
- Throws:
java.lang.Exception
openRepository
public RepositoryInstance openRepository(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
releaseRepository
public void releaseRepository(RepositoryInstance repo)
throws java.lang.Exception
- Throws:
java.lang.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 © 2010 Nuxeo SAS. All Rights Reserved.