Class AuditCustomColumnItemFilterProcessor
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.filtering.item.ItemValueFilterProcessor<PropertyValueFilter<AuditEventRecordCustomColumnPropertyType>>
com.evolveum.midpoint.repo.sqale.audit.filtering.AuditCustomColumnItemFilterProcessor
- All Implemented Interfaces:
FilterProcessor<PropertyValueFilter<AuditEventRecordCustomColumnPropertyType>>
,RightHandProcessor
public class AuditCustomColumnItemFilterProcessor
extends ItemValueFilterProcessor<PropertyValueFilter<AuditEventRecordCustomColumnPropertyType>>
Filter processor for an 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 ({link
AuditEventRecordItemType.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.sqlbase.filtering.item.ItemValueFilterProcessor
context
-
Method Summary
Modifier and TypeMethodDescriptionstatic <Q extends FlexibleRelationalPathBase<R>,
R>
ItemSqlMapper<Q,R> mapper()
Returns the mapper creating the string filter processor from context.com.querydsl.core.types.Predicate
Methods inherited from class com.evolveum.midpoint.repo.sqlbase.filtering.item.ItemValueFilterProcessor
createBinaryCondition, fuzzyStringPredicate, getSingleValue, isIgnoreCaseFilter, operation, predicateWithNotTreated, rightHand, singleValuePredicate, singleValuePredicateWithNotTreated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.repo.sqlbase.filtering.FilterProcessor
process
-
Method Details
-
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
-