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

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

package com.capitalone.dashboard.repository;

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

import java.util.List;
import java.util.Set;


public interface ArtifactItemRepository extends BaseCollectorItemRepository{

    @Query(value="{ 'collectorId' : ?0 }")
    Set findByCollectorIdInSet(ObjectId collectorId);

    @Query(value="{ 'collectorId' : ?0, options.artifactName : ?1, options.repoName : ?2, options.path : ?3, options.instanceUrl : ?4}")
    List findArtifactItemByOptions(ObjectId collectorId, String artifactName, String repoName, String path, String instanceUrl);

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy