Black-/Whitelisting

Version

6.0.0 or newer

Table of contents

Black-/Whitelisting is an extension to define the visibility of Entities for certain Rules.

Blacklisting

Blacklisting defines that the Entity is NOT visible/readable for a Consumer who matches the Criteria of the Blacklist Rule

Whitelisting

Whitlisting defines that the Entity is ONLY visible/readable for a Consumer who matches the Criteria of the Whitelist Rule

Add Black-/Whitelist Support for an Entity

To add Black-/Whitelist Support to an Entity you add the corresponding Fields to the EntityDefinition

/Core/Framework/DataAbstractionLayer/Field/BlacklistRuleField.php /Core/Framework/DataAbstractionLayer/Field/WhitelistRuleField.php

(new BlacklistRuleField()),
(new WhitelistRuleField()),

Read/Search with Black-/Whitelist Support

To Support the Black-/Whitelisting for Searches and Reads the Rules for the currently applied Black-/Whitelisting have to be in the Context (/Core/Framework/Context.php)