All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.repository.ScopeRepository Maven / Gradle / Ivy

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