Configuring access rights by specialization
The Access Manager lets you configure access rights by document type only (map, topic, image, and resource). You can now configure access rights according to specializations (bookmap, concept, task, etc.).
While this feature gives you a lot of flexibility when assigning access rights, it also requires a more complex configuration, since you must account for all the specializations.
<condition>
<!-- Object on which action is taken -->
<current>
<type name="map">
<statuses>
<status>Authoring:draft</status>
</statuses>
</type>
</current>
<!-- Action user must be in this list -->
<users>
<roles>
<role name="Author"/>
</roles>
</users>
</condition>
<condition>
<!-- Object on which action is taken -->
<current>
<type name="topic">
<statuses>
<status>Authoring:draft</status>
</statuses>
</type>
</current>
<!-- Action user must be in this list -->
<users>
<roles>
<role name="Author"/>
</roles>
</users>
</condition>
When this feature is enabled, you need to repeat the conditions for
all the topic specializations (e.g., concept, task, reference, topic, glossentry)
and map specializations (e.g., map, bookmap, etc.). The <type name="topic">
no longer means all the different types of
topics; it now refers specifically to a <topic>
document, excluding <reference>
, <concept>
,
<task>
, etc. So before implementing this
feature, make sure that you have a good use case for this level of
granularity.
- Add the use-specialization attribute to the accessrights.dtd file.
- In the accessrights.xml
file, set the use-specialization
attribute to
true
for the appropriate <method> element. - Set up access right conditions.