NotificationMessageFilter.java

/*
 * Copyright 2026 Global Crop Diversity Trust
 * Licensed under the Apache License, Version 2.0
 * See LICENSE file in project root folder or http://www.apache.org/licenses/LICENSE-2.0
 */

package org.gringlobal.service.filter;

import java.util.List;

import org.genesys.blocks.model.filters.VersionedModelFilter;

import org.gringlobal.model.notification.NotificationMessage;
import org.gringlobal.model.notification.QNotificationMessage;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import com.querydsl.core.types.Predicate;

@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
@Accessors(fluent = true)
public class NotificationMessageFilter extends VersionedModelFilter<NotificationMessageFilter, NotificationMessage, QNotificationMessage> {

	// TODO

	/**
	 * Builds the query.
	 *
	 * @return the predicate
	 */
	@Override
	public List<Predicate> collectPredicates() {
		return collectPredicates(QNotificationMessage.notificationMessage);
	}

	/**
	 * Builds the query.
	 *
	 * @param notificationMessage the notificationSchedule
	 * @return the predicate
	 */
	public List<Predicate> collectPredicates(QNotificationMessage notificationMessage) {
		final List<Predicate> predicates = super.collectSuperPredicates(notificationMessage, notificationMessage._super);

		return predicates;
	}
}