Configuring a Different Authoring Experience Depending on User Role
When the XML editor is opened, a userRole
Loading Option is passed with the
following possible values:
OWNER
- For review tasks owners.REVIEWER
- For reviewers of a review task.AUTHOR
- For authors editing in the personal authoring workspace.
You can create multiple frameworks tuned for different user profiles and load them depending on the current user. You can share configurations between these frameworks by using the framework extension mechanism.
To configure a framework to be loaded for a particular user profile:
- Install this plugin: https://github.com/oxygenxml/web-author-user-role-plugin/. It will contribute some framework matching rules that takes the profile of the user into account.
- Configure each of the Association rules for your framework to use
the Java class that corresponds to the desired profile:
AuthorUserFrameworkMatcher
,ReviewerUserFrameworkMatcher
, orOwnerUserFrameworkMatcher
.