com.capitalone.dashboard.service.BuildCommonServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
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