|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
Method Summary | ||
---|---|---|
void |
close()
Remove any resources held by this session. |
|
Object |
execute(OperationRequest request)
|
|
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. |
|
Blob |
getFile(String path)
Get a file from the server given a path identifying the file. |
|
void |
getFile(String path,
AsyncCallback<Blob> cb)
|
|
Blobs |
getFiles(String path)
Get a collection of files from the server given the path identifying the collection. |
|
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. |
Method Detail |
---|
AutomationClient getClient()
LoginInfo getLogin()
OperationRequest newRequest(String id) throws Exception
id
- the ID of the operation to be executed.
Exception
OperationRequest newRequest(String id, Map<String,Object> ctx) throws Exception
id
- the operation idctx
- the context map to be used when executing the operation on
the server.
Exception
Object execute(OperationRequest request) throws Exception
Exception
void execute(OperationRequest request, AsyncCallback<Object> cb)
Blob getFile(String path) throws Exception
path
- the file path
Exception
Blobs getFiles(String path) throws Exception
path
- the file path
Exception
void getFile(String path, AsyncCallback<Blob> cb) throws Exception
Exception
void getFiles(String path, AsyncCallback<Blobs> cb) throws Exception
Exception
OperationDocumentation getOperation(String id)
Map<String,OperationDocumentation> getOperations()
<T> T getAdapter(Class<T> type)
Optional operation. Environments that cannot support this method (like
GWT) must throw UnsupportedOperationException
AutomationClient.getAdapter(Object, Class)
void close()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |