Page 1 of 1

Reference to AuthorAccess on application startup?

Posted: Mon Jun 15, 2009 10:43 pm
by dylan
Hi all,

I was hoping to get a reference to the authorAccess object when oXygen starts - we want to be able to register an AuthorListener immediately.

Any ideas?

Re: Reference to AuthorAccess on application startup?

Posted: Tue Jun 16, 2009 9:52 am
by Radu
Hi Dylan,

You should be able to do this using the Oxygen 10.3 API. Oxygen 10.3 will appear in a couple of weeks. I suspect you already have an Oxygen 10.2 beta.
I am not sure the beta you have contains the API, but here is goes:
How this should be done (if no API changes appear before the 10.3 release):
You should have a class in your jar extending ro.sync.ecss.extensions.api.ExtensionsBundle. The class should override the method

Code: Select all


public AuthorExtensionStateListener createAuthorExtensionStateListener() 
This listener receives activated/deactivated events whenever the Author page is activated for the document. The AuthorAccess is also received on both callbacks.

Regards,
Radu