Additional UI Frameworks

Nuxeo Automation client

Updated: January 25, 2019 Page Information Edit on GitHub

In the Android Connector, the Automation Client is associated to a context that references required dependencies :

  • server configuration and credentials

  • network status information

  • Android Context (required for Filesystem and SQL Db access)

You can access this NuxeoContext by using:


  NuxeoContext.get(Context context)

context being the Android Application Context.

If you use the base class SimpleNuxeoApplication for your application, you can directly call getNuxeoContext() on the application.

The main advantages of using the SimpleNuxeoApplication base class is that :

  • access to NuxeoContext is simpler

  • the lifecycle of NuxeoContext will be bound to your application (instead of being a static singleton)

NB : you should use one method to access the NuxeoContext, but you should not mix them ...

Once you have the NuxeoContext you can directly access to the settings and the Automation Session :


  ctx.getServerConfig().setLogin("jdoe");
  ctx.getServerConfig().setPassword("secret");
  ctx.getServerConfig().setServerBaseUrl("http://10.0.2.2:8080/nuxeo/");

  if (ctx.getNetworkStatus().isNuxeoServerReachable()) {
    Document doc = (Document) ctx.getSession().newRequest("Document.Fetch").set("value", docRef).execute();
  }

Outside of this direct association between the Context and the Automation Client Session, the standard documentation for Nuxeo Automation Client does apply to the Automation Client embedded in Android Connector.

5 months ago Andrew Goodricke Updated for 10.10
8 years ago Solen Guitter 10
8 years ago Solen Guitter 11
8 years ago Thierry Delprat 9
8 years ago Thierry Delprat 8
8 years ago Thierry Delprat 5
8 years ago Thierry Delprat 6
8 years ago Thierry Delprat 7
8 years ago Thierry Delprat 2
8 years ago Thierry Delprat 3
8 years ago Thierry Delprat 4
8 years ago Thierry Delprat 1
History: Created by Thierry Delprat

We'd love to hear your thoughts!

All fields required