Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devel:documentation:architecture:dev:filters [2020/06/03 07:13]
tomiskar [Filters]
devel:documentation:architecture:dev:filters [2020/06/11 20:11] (current)
tomiskar [Filters]
Line 11: Line 11:
 When no filter implementation is found for given filter property, then ''FilterNotSupportedException'' will be thrown. Filter builders (predicates) and all added filter properties have to be registered (constructed). Check for filter property is properly implemented is evaluated two ways: When no filter implementation is found for given filter property, then ''FilterNotSupportedException'' will be thrown. Filter builders (predicates) and all added filter properties have to be registered (constructed). Check for filter property is properly implemented is evaluated two ways:
   * By registered filter builders - filter key is used.   * By registered filter builders - filter key is used.
-  * By filter definition (dto), if filter predicate is defined directly in service. Filter dto can define properties as fields or constants (see ''DataFilter'' generalization). **Make sure all properties are defined in filter dto if services predicate is used** - is requred for check filter is supported.+  * By filter definition (dto), if filter predicate is defined directly in service. Filter dto can define properties as fields or constants (see ''DataFilter'' generalization). **Make sure all properties are defined in filter dto if services predicate is used** - is required for check filter is supported
 + 
 +Check for filter property is properly implemented can be turned off by [[..:..:..application_configuration:dev:backend#entity_filters|configuration]] (e.g. before filter registration will be fixed).
 </note> </note>
 +
 +<note tip>All supported filters can be found in [[#filter_agenda|agenda]] (menu Setting-> Modules -> Filters).</note>
  
 Filter can be used by [[..:..:security:dev:authorization#base_authorization_evaluators|authoritazation policy evaluator]] for securing data access. Filter can be used by [[..:..:security:dev:authorization#base_authorization_evaluators|authoritazation policy evaluator]] for securing data access.
Line 36: Line 40:
   * ''BaseFilterBuilder'' - provides the base implementation for working with the configuration (see below)   * ''BaseFilterBuilder'' - provides the base implementation for working with the configuration (see below)
   * ''AbstractFilterBuilder'' - provides the base implementation of ''find'' method based on the repository handed in the constructor   * ''AbstractFilterBuilder'' - provides the base implementation of ''find'' method based on the repository handed in the constructor
- 
- 
-<note important>Expand the introduction</note> 
  
 ===== Example filter ===== ===== Example filter =====
  • by tomiskar