
com.capitalone.dashboard.repository.ScopeRepository 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.Scope;
import org.bson.types.ObjectId;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* Repository for {@link Scope}.
*/
public interface ScopeRepository extends QueryRepository {
List findTopByCollectorIdAndChangeDateGreaterThanOrderByChangeDateDesc(
ObjectId collectorId, String changeDate);
default List getScopeIdById(String pId) {
return findAll("pId eq " + quote(pId));
}
List findByOrderByProjectPathDesc();
default List getScopeById(String pId) {
return findAll("pId eq " + quote(pId));
}
List findByCollectorId(ObjectId collectorId);
Page findAllByCollectorIdAndNameContainingIgnoreCase(ObjectId collectorId, String name, Pageable pageable);
Scope findByCollectorIdAndPId(ObjectId collectorId, String pId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy