class FilterTagIdsService{ public function __construct( private readonly EntityDefinition
$tagDefinition,
private readonly Connection
$connection,
private readonly CriteriaQueryBuilder
$criteriaQueryBuilder ) { } public function filterIds(Request
$request, Criteria
$criteria, Context
$context): FilteredTagIdsStruct
{ $query =
$this->
getIdsQuery($criteria,
$context);
$duplicateFilter =
$request->
get('duplicateFilter', false
);
$emptyFilter =
$request->
get('emptyFilter', false
);
$assignmentFilter =
$request->
get('assignmentFilter', false
);
if ($emptyFilter) { $this->
addEmptyFilter($query);
} if ($duplicateFilter) { $this->
addDuplicateFilter($query);
}