Platform Explorer / CMF 1.8

Extension point policies

Documentation

Extension point to register custom search policies or override existing policies.

Policies are applied checked in the order they are defined. They can add constraints to queries performed on the search service.

Example to define a custom policy :

    <policy
        class="org.nuxeo.ecm.core.search.security.AccessLevelSearchPolicy"
        name="access" order="10"/>

The class used has to implement the org.nuxeo.ecm.core.search.api.security.SearchPolicy interface.

It is later possible to override that definition in another contribution to that extension-point to disable or override a policy:

    <policy enabled="false" name="access"/>
    <policy
        class="org.nuxeo.ecm.core.search.security.AccessLevelSearchPolicy"
        name="access" order="20"/>

Contribution Descriptors

  • Class: org.nuxeo.ecm.core.search.api.internals.SearchPolicyDescriptor

Contributions

No known contributions.