Fetching Oxygen Author

Oxygen general issues.
Srinarayan
Posts: 42
Joined: Tue Jun 08, 2021 3:27 pm

Fetching Oxygen Author

Post 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
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Fetching Oxygen Author

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Srinarayan
Posts: 42
Joined: Tue Jun 08, 2021 3:27 pm

Re: Fetching Oxygen Author

Post 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
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Fetching Oxygen Author

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply