|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
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.JavaSession
public abstract class JavaSession
Abstract class for sessions running on real JVMs.
When your implementation is designed for running in environment that supports
limited Java API like GWT or portable devices you may need to directly implement
the Session
interface.
Constructor Summary | |
---|---|
JavaSession(JavaClient client,
LoginInfo login,
OperationRegistry registry)
|
Method Summary | ||
---|---|---|
void |
close()
Remove any resources held by this session. |
|
void |
execute(OperationRequest request,
AsyncCallback<Object> cb)
|
|
|
getAdapter(Class<T> type)
Get an adapter of the current session. |
|
AutomationClient |
getClient()
Get the client that created this session. |
|
void |
getFile(String path,
AsyncCallback<Blob> cb)
|
|
void |
getFiles(String path,
AsyncCallback<Blobs> cb)
|
|
LoginInfo |
getLogin()
Get the login used to authenticate against the server |
|
OperationDocumentation |
getOperation(String id)
|
|
Map<String,OperationDocumentation> |
getOperations()
|
|
OperationRequest |
newRequest(String id)
Create a new operation request given an operation ID. |
|
OperationRequest |
newRequest(String id,
Map<String,Object> ctx)
Create a new operation request given an operation ID and an operation context map. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nuxeo.ecm.automation.client.Session |
---|
execute, getFile, getFiles |
Constructor Detail |
---|
public JavaSession(JavaClient client, LoginInfo login, OperationRegistry registry)
Method Detail |
---|
public AutomationClient getClient()
Session
getClient
in interface Session
public LoginInfo getLogin()
Session
getLogin
in interface Session
public <T> T getAdapter(Class<T> type)
Session
Optional operation. Environments that cannot support this method (like
GWT) must throw UnsupportedOperationException
getAdapter
in interface Session
AutomationClient.getAdapter(Object, Class)
public void execute(OperationRequest request, AsyncCallback<Object> cb)
execute
in interface Session
public void getFile(String path, AsyncCallback<Blob> cb) throws Exception
getFile
in interface Session
Exception
public void getFiles(String path, AsyncCallback<Blobs> cb) throws Exception
getFiles
in interface Session
Exception
public OperationRequest newRequest(String id) throws Exception
Session
newRequest
in interface Session
id
- the ID of the operation to be executed.
Exception
public OperationRequest newRequest(String id, Map<String,Object> ctx) throws Exception
Session
newRequest
in interface Session
id
- the operation idctx
- the context map to be used when executing the operation on
the server.
Exception
public OperationDocumentation getOperation(String id)
getOperation
in interface Session
public Map<String,OperationDocumentation> getOperations()
getOperations
in interface Session
public void close()
Session
close
in interface Session
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |