Additional UI Frameworks

Android Connector additional Services

Updated: July 31, 2019 Page Information Edit on GitHub

In addition of the Automation Client, Android Connector exposes several services :

Built in services

TransientStateManager

Manages local storage of locally modified Documents.

DeferredUpdateManager

Manages storage of updates operations until the network becomes available again.

ResponseCacheManager

Manage Storage of server responses.

FileDownloader

This service is also very tied to the caching system. It manages download in a ThreadPool and caches the result on the Filesystem.

FileUploader

This service works side by side with the DeferredUpdateManager.

For Document create/update operations, the Blobs are not directly sent inside the Create/Update request. Basically, the Blobs are uploaded via the FileUploader service and the Create/Update operation will contain a reference to the upload batch. In order for this to work correctly the DeferredUpdate will have a dependency on the required uploads.

NuxeoLayoutService

Accessing the services

Services are accessible via simple getters on the NuxeoContext and AndroidAutomationClient objects. You can also use the adapter system on the Session object to have direct access to all the services.


FileUploader uploader = getNuxeoSession().getAdapter(FileUploader.class);

FileDownloader downloader = getNuxeoSession().getAdapter(FileDownloader.class);

DeferredUpdateManager deferredUpdateManager = getNuxeoSession().getAdapter(DeferredUpdateManager.class);

TransientStateManager transientStateManager = getNuxeoSession().getAdapter(TransientStateManager.class);

ResponseCacheManager responseCacheManager = getNuxeoSession().getAdapter(ResponseCacheManager.class);

NuxeoLayoutService nuxeoLayoutService = getNuxeoSession().getAdapter(NuxeoLayoutService.class);

DocumentMessageService documentMessageService = getNuxeoSession().getAdapter(DocumentMessageService.class);

DocumentProvider documentProvider = getNuxeoSession().getAdapter(DocumentProvider.class);

2 months ago Andrew Goodricke Syntax error fixed
8 years ago Thierry Delprat 5
8 years ago Thierry Delprat 6
8 years ago Thierry Delprat 7 | igrated to Confluence 4.
8 years ago Thierry Delprat 4
8 years ago Thierry Delprat 3
8 years ago Thierry Delprat 2
8 years ago Thierry Delprat 1
History: Created by Thierry Delprat

We'd love to hear your thoughts!

All fields required