Fetching Oxygen Author

<oXygen/> general issues.
Srinarayan
Posts: 4
Joined: Tue Jun 08, 2021 3:27 pm

Fetching Oxygen Author

Post by Srinarayan » Tue Jun 08, 2021 3:38 pm

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: 7528
Joined: Fri Jul 09, 2004 5:18 pm

Re: Fetching Oxygen Author

Post by Radu » Wed Jun 09, 2021 6:34 am

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: 4
Joined: Tue Jun 08, 2021 3:27 pm

Re: Fetching Oxygen Author

Post by Srinarayan » Wed Jun 09, 2021 8:04 am

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: 7528
Joined: Fri Jul 09, 2004 5:18 pm

Re: Fetching Oxygen Author

Post by Radu » Wed Jun 09, 2021 8:29 am

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