|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AutomationClient
The connection to the automation service is done the first time you create a session. To create a session you need to pass the authentication information. If null is passed as the user name an anonymous session will be created. Note that anonymous sessions are not always accepted by a Nuxeo Server (it depends on the server configuration).
When you attempt to create a new session using the same authentication info as an already created session the session will be reused (TODO this is optional for implementors?)
Note for implementors: the implementation should provide a constructor that initialize the base URL
Method Summary | ||
---|---|---|
|
getAdapter(Object objToAdapt,
Class<T> adapterType)
Adapts the given object to the given type. |
|
String |
getBaseUrl()
Gets the automation service URL. |
|
RequestInterceptor |
getRequestInterceptor()
Gets access to this request interceptor |
|
Session |
getSession()
Creates a new session. |
|
void |
getSession(AsyncCallback<Session> cb)
Creates asynchronously a new session. |
|
Session |
getSession(String username,
String password)
Creates a new session using the given login. |
|
void |
getSession(String username,
String password,
AsyncCallback<Session> cb)
Creates asynchronously a new session using the given login. |
|
void |
registerAdapter(AdapterFactory<?> factory)
Register an adapter for a given type. |
|
void |
setRequestInterceptor(RequestInterceptor interceptor)
Can be used for intercepting requests before they are being sent to the server. |
|
void |
shutdown()
Cleanup any resources held by this client. |
Method Detail |
---|
String getBaseUrl()
void setRequestInterceptor(RequestInterceptor interceptor)
RequestInterceptor getRequestInterceptor()
Session getSession()
void getSession(AsyncCallback<Session> cb)
Session getSession(String username, String password)
void getSession(String username, String password, AsyncCallback<Session> cb)
<T> T getAdapter(Object objToAdapt, Class<T> adapterType)
Optional operation. Framework that doesn't supports reflection like GWT
must throw UnsupportedOperationException
void registerAdapter(AdapterFactory<?> factory)
typeToAdapt
- adapterType
- void shutdown()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |