Can we restrict edit permissions?

Post here questions and problems related to editing and publishing DITA content.
mitpatoliya
Posts: 14
Joined: Wed May 25, 2016 4:51 pm

Can we restrict edit permissions?

Post by mitpatoliya »

Hi I am using oxygen xml web author editor.
I have a requirement where I need to make file editable to few users and few other users should only able to add comments. Is it possible to manage this kind of permissions? How?

Thanks.
cristi_talau
Posts: 517
Joined: Thu Sep 04, 2014 4:22 pm

Re: Can we restrict edit permissions?

Post by cristi_talau »

Hello,

As part of the SDK we have some code that blocks all editing and allows only comments to be added. It is located in the com.oxygenxml.sdksamples.reviewer.EditModeAuthorDocumentFilter package of the oxygen-sample-applet module. It is implemented for the Applet distribution but works equally well for the Web Author.

So, you will have to:
- Implement an oXygen Web Author plugin [1], [2]
- Copy the class mentioned above in the plugin.
- Listen for the editor opened event using an ro.sync.exml.workspace.api.listeners.WSEditorChangeListener and register the filter.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... ugins.html
[2] https://www.oxygenxml.com/doc/versions/ ... ugins.html
Post Reply