|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
Method Summary | ||
---|---|---|
java.lang.Object |
execute(OperationRequest request)
|
|
void |
execute(OperationRequest request,
AsyncCallback<java.lang.Object> cb)
|
|
|
getAdapter(java.lang.Class<T> type)
Get an adapter of the current session. |
|
AutomationClient |
getClient()
Get the client that created this session. |
|
Blob |
getFile(java.lang.String path)
Get a file from the server given a path identifying the file. |
|
void |
getFile(java.lang.String path,
AsyncCallback<Blob> cb)
|
|
Blobs |
getFiles(java.lang.String path)
Get a collection of files from the server given the path identifying the collection. |
|
void |
getFiles(java.lang.String path,
AsyncCallback<Blobs> cb)
|
|
LoginInfo |
getLogin()
Get the login used to authenticate against the server |
|
OperationDocumentation |
getOperation(java.lang.String id)
|
|
java.util.Map<java.lang.String,OperationDocumentation> |
getOperations()
|
|
OperationRequest |
newRequest(java.lang.String id)
Create a new operation request given an operation ID. |
|
OperationRequest |
newRequest(java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> ctx)
Create a new operation request given an operation ID and an operation context map. |
Method Detail |
---|
AutomationClient getClient()
LoginInfo getLogin()
OperationRequest newRequest(java.lang.String id) throws java.lang.Exception
id
- the ID of the operation to be executed.
java.lang.Exception
OperationRequest newRequest(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> ctx) throws java.lang.Exception
id
- the operation idctx
- the context map to be used when executing the operation on
the server.
java.lang.Exception
java.lang.Object execute(OperationRequest request) throws java.lang.Exception
java.lang.Exception
void execute(OperationRequest request, AsyncCallback<java.lang.Object> cb)
Blob getFile(java.lang.String path) throws java.lang.Exception
path
- the file path
java.lang.Exception
Blobs getFiles(java.lang.String path) throws java.lang.Exception
path
- the file path
java.lang.Exception
void getFile(java.lang.String path, AsyncCallback<Blob> cb) throws java.lang.Exception
java.lang.Exception
void getFiles(java.lang.String path, AsyncCallback<Blobs> cb) throws java.lang.Exception
java.lang.Exception
OperationDocumentation getOperation(java.lang.String id)
java.util.Map<java.lang.String,OperationDocumentation> getOperations()
<T> T getAdapter(java.lang.Class<T> type)
Optional operation. Environments that cannot support this method (like
GWT) must throw UnsupportedOperationException
AutomationClient.getAdapter(Object, Class)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |