« Previous | Next » 

Revision 627427ff

ID627427ff6e5dd9935aa8d7d81ba62712d4b6d851
Parent c0b6f3b8
Child e9af4a33

Added by Bastian Waidelich over 7 years ago

[BUGFIX] Test whether the current entity matches a privilege

This decouples the check, whether a query has to be modified by a
``EntityPrivilege`` SQL constraint from the generation of the actual
SQL query.
By this it is possible to skip not matching privileges before the SQL
is generated.

One use case for this is an ``EntityPrivilege`` with a fixed entity
type, where no matcher expression has to be evaluated to check the
target entity type.

Additionally this adds a ``FalseConditionGenerator`` to be able to add
a FALSE condition part in the SQL generation process.
Furthermore this renames the ``AnyEntityConditionGenerator`` to
``TrueConditionGenerator`` respectively for consistency reasons.

Change-Id: Iaa3ace9c862e39029a6b5c082783450821ebf45a
Releases: master, 3.0

  • added
  • modified
  • copied
  • renamed
  • deleted