Page 1 of 1

Fetching Oxygen Author

Posted: Tue Jun 08, 2021 3:38 pm
by Srinarayan
Hi

We are using oxygen v20.1. We are doing some customizations for which we need to fetch username. We have seen in track changes that you use it in "author" attribute like

<?oxy_insert_start author="xid" timestamp="">

I need to know from where you are fetching this author value. Is it present in some environment variable?

Regards
Srinarayan

Re: Fetching Oxygen Author

Posted: Wed Jun 09, 2021 6:34 am
by Radu
Hi Srinarayan,

The name of the author is a global preference in the Oxygen Preferences->"Editor / Edit Modes / Author / Review" page.
If you want help accessing it please give us more information about your customization. Is it a plugin? Is it a framework configuration?

Regards,
Radu

Re: Fetching Oxygen Author

Posted: Wed Jun 09, 2021 8:04 am
by Srinarayan
Hi Radu,

It is a java project which is then deployed as jar in eclipse. Can you please help in accessing author name?

Regards
Srinarayan

Re: Fetching Oxygen Author

Posted: Wed Jun 09, 2021 8:29 am
by Radu
Hi,

You can try something like:

Code: Select all

ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().getUtilAccess().expandEditorVariables("${author.name}", null);
More editor variables which can be expanded:

https://www.oxygenxml.com/doc/versions/ ... ables.html

Regards,
Radu