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

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

package com.capitalone.dashboard.repository;

import com.capitalone.dashboard.model.GitHubRepo;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.Query;

import java.util.List;

public interface GitHubRepoRepository extends BaseCollectorItemRepository {

    @Query(value="{ 'collectorId' : ?0, enabled: true}")
    List findEnabledGitHubRepos(ObjectId collectorId);

    @Query(value="{ 'collectorId' : ?0, 'errors.errorCode' : '404'}")
    List findObsoleteGitHubRepos(ObjectId collectorId);

    @Query(value="{ 'collectorId' : ?0, options.url : ?1}")
    List findByCollectorIdAndUrl(ObjectId collectorId, String url);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy