Page 1 of 1

Can we restrict edit permissions?

Posted: Mon Jun 06, 2016 2:11 pm
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.

Re: Can we restrict edit permissions?

Posted: Mon Jun 06, 2016 4:32 pm
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