Class AuditCustomColumnItemFilterProcessor
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.pure.mapping.ItemFilterProcessor<PropertyValueFilter<AuditEventRecordCustomColumnPropertyType>>
-
- com.evolveum.midpoint.repo.sql.pure.mapping.AuditCustomColumnItemFilterProcessor
-
- All Implemented Interfaces:
FilterProcessor<PropertyValueFilter<AuditEventRecordCustomColumnPropertyType>>
public class AuditCustomColumnItemFilterProcessor extends ItemFilterProcessor<PropertyValueFilter<AuditEventRecordCustomColumnPropertyType>>
Filter processor for a audit custom column attribute path (Prism item). While it is a single-path processor, it does NOT support ordering, because "what to order by" is part of the filter value ({linkAuditEventRecordItemType.getName()
}).Design note: While it is technically possible to change the primary item mapping function of
ItemSqlMapper
to be a function of both entity path and value, the value is simply not available in order specification anyway. So this is a limitation of current design of audit custom columns (not much of Query API). If custom column was a proper extension column with its own item Q-name, it would be possible with the same item filter processors used for non-extension columns (only the mapping registration would be dynamic, which is not a big deal).
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.repo.sql.pure.mapping.ItemFilterProcessor
context
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ItemSqlMapper
mapper()
Returns the mapper creating the string filter processor from context.com.querydsl.core.types.Predicate
process(PropertyValueFilter<AuditEventRecordCustomColumnPropertyType> filter)
-
Methods inherited from class com.evolveum.midpoint.repo.sql.pure.mapping.ItemFilterProcessor
createBinaryCondition, getSingleValue, isIgnoreCaseFilter, operation, singleValuePredicate
-
-
-
-
Method Detail
-
mapper
public static ItemSqlMapper mapper()
Returns the mapper creating the string filter processor from context.
-
process
public com.querydsl.core.types.Predicate process(PropertyValueFilter<AuditEventRecordCustomColumnPropertyType> filter) throws QueryException
- Throws:
QueryException
-
-