|
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.DefaultSession
public class DefaultSession
Constructor Summary | |
---|---|
DefaultSession(AbstractAutomationClient client,
Connector connector,
LoginInfo login)
|
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. |
|
Connector |
getConnector()
|
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSession(AbstractAutomationClient client, Connector connector, LoginInfo login)
Method Detail |
---|
public AutomationClient getClient()
Session
getClient
in interface Session
public Connector getConnector()
public LoginInfo getLogin()
Session
getLogin
in interface Session
public <T> T getAdapter(java.lang.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 java.lang.Object execute(OperationRequest request) throws java.lang.Exception
execute
in interface Session
java.lang.Exception
public void execute(OperationRequest request, AsyncCallback<java.lang.Object> cb)
execute
in interface Session
public Blob getFile(java.lang.String path) throws java.lang.Exception
Session
getFile
in interface Session
path
- the file path
java.lang.Exception
public Blobs getFiles(java.lang.String path) throws java.lang.Exception
Session
getFiles
in interface Session
path
- the file path
java.lang.Exception
public void getFile(java.lang.String path, AsyncCallback<Blob> cb) throws java.lang.Exception
getFile
in interface Session
java.lang.Exception
public void getFiles(java.lang.String path, AsyncCallback<Blobs> cb) throws java.lang.Exception
getFiles
in interface Session
java.lang.Exception
public OperationRequest newRequest(java.lang.String id) throws java.lang.Exception
Session
newRequest
in interface Session
id
- the ID of the operation to be executed.
java.lang.Exception
public OperationRequest newRequest(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> ctx) throws java.lang.Exception
Session
newRequest
in interface Session
id
- the operation idctx
- the context map to be used when executing the operation on
the server.
java.lang.Exception
public OperationDocumentation getOperation(java.lang.String id)
getOperation
in interface Session
public java.util.Map<java.lang.String,OperationDocumentation> getOperations()
getOperations
in interface Session
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |