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

com.capitalone.dashboard.service.BuildCommonServiceImpl Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
package com.capitalone.dashboard.service;

import com.capitalone.dashboard.model.Build;
import com.capitalone.dashboard.repository.BuildRepository;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BuildCommonServiceImpl implements BuildCommonService {


    private final BuildRepository buildRepository;

    @Autowired
    public BuildCommonServiceImpl(BuildRepository buildRepository){
        this.buildRepository = buildRepository;
    }

    @Override
    public Build get(ObjectId id) {
        return buildRepository.findOne(id);
    }

    @Override
    public Build get(String buildUrl) {
        return buildRepository.findByBuildUrl(buildUrl);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy