
com.capitalone.dashboard.repository.BaseCollectorRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hygieia-common Show documentation
Show all versions of hygieia-common Show documentation
Core package shared by API layer and Microservices
The newest version!
package com.capitalone.dashboard.repository;
import com.capitalone.dashboard.model.Collector;
import com.capitalone.dashboard.model.CollectorType;
import java.util.List;
/**
* Generic Collector repository that contains methods common to any model that extends from
* Collector.
*
* @param Class that extends {@link Collector}
*/
public interface BaseCollectorRepository extends QueryRepository {
/**
* Finds a {@link Collector} by its name.
*
* @param name name
* @return a {@link Collector}
*/
T findByName(String name);
/**
* Finds all {@link Collector}s of a given {@link CollectorType}.
*
* @param collectorType a {@link CollectorType}
* @return list of {@link Collector}s of a given {@link CollectorType}
*/
List findByCollectorType(CollectorType collectorType);
/**
* Finds all {@link Collector}s of a given {@link CollectorType}.
*
* @param collectorType a {@link CollectorType}
* @param name
* @return list of {@link Collector}s of a given {@link CollectorType}
*/
List findByCollectorTypeAndName(CollectorType collectorType, String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy