|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.automation.client.jaxrs.spi.AbstractAutomationClient
public abstract class AbstractAutomationClient
Method Summary | ||
---|---|---|
void |
asyncExec(java.lang.Runnable runnable)
|
|
|
getAdapter(java.lang.Object objToAdapt,
java.lang.Class<T> adapterType)
Adapts the given object to the given type. |
|
java.lang.String |
getBaseUrl()
Gets the automation service URL. |
|
Session |
getSession(java.lang.String username,
java.lang.String password)
Creates a new session using the given login. |
|
void |
getSession(java.lang.String username,
java.lang.String password,
AsyncCallback<Session> cb)
Creates asynchronously a new session using the given login. |
|
Session |
login(java.lang.String username,
java.lang.String password)
|
|
void |
registerAdapter(AdapterFactory<?> factory)
Register an adapter for a given type. |
|
void |
shutdown()
Cleanup any resources held by this client. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getBaseUrl()
AutomationClient
getBaseUrl
in interface AutomationClient
public void registerAdapter(AdapterFactory<?> factory)
AutomationClient
registerAdapter
in interface AutomationClient
public <T> T getAdapter(java.lang.Object objToAdapt, java.lang.Class<T> adapterType)
AutomationClient
Optional operation. Framework that doesn't supports reflection like GWT
must throw UnsupportedOperationException
getAdapter
in interface AutomationClient
public void shutdown()
AutomationClient
shutdown
in interface AutomationClient
public Session getSession(java.lang.String username, java.lang.String password) throws java.lang.Exception
AutomationClient
getSession
in interface AutomationClient
java.lang.Exception
public void getSession(java.lang.String username, java.lang.String password, AsyncCallback<Session> cb)
AutomationClient
getSession
in interface AutomationClient
public Session login(java.lang.String username, java.lang.String password) throws java.lang.Exception
java.lang.Exception
public void asyncExec(java.lang.Runnable runnable)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |