Commit 13c1d8fd authored by Jeremy Destin's avatar Jeremy Destin Committed by Célia Michotey
Browse files

Fix: Rename methode getMcpdId.

parent e1cf32bc
......@@ -77,7 +77,7 @@ public class GermplasmController {
@GetMapping("/brapi/v1/germplasm/{germplasmDbId}/mcpd")
public BrapiResponse<GermplasmMcpdVO> getGermplasmMcpd(@PathVariable String germplasmDbId) {
LOGGER.debug("germplasmDbId = " + germplasmDbId);
GermplasmMcpdVO germplasm = germplasmService.getMcpdById(germplasmDbId);
GermplasmMcpdVO germplasm = germplasmService.getAsMcpdById(germplasmDbId);
if (germplasm == null) {
throw new NotFoundException("Germplasm not found for id '" + germplasmDbId + "'");
}
......
......@@ -59,7 +59,7 @@ public interface GermplasmRepository
/**
* Find germplasm mcpd by id.
*/
GermplasmMcpdVO getMcpdById(String germplasmDbId);
GermplasmMcpdVO getAsMcpdById(String germplasmDbId);
}
......@@ -141,7 +141,7 @@ public class GermplasmRepositoryImpl implements GermplasmRepository {
}
@Override
public GermplasmMcpdVO getMcpdById(String germplasmDbId) {
public GermplasmMcpdVO getAsMcpdById(String germplasmDbId) {
return getMcpdByIdRepository.getById(germplasmDbId);
}
......
......@@ -32,7 +32,7 @@ public interface GermplasmService {
ProgenyVO getProgeny(String germplasmDbId);
GermplasmMcpdVO getMcpdById(String germplasmDbId);
GermplasmMcpdVO getAsMcpdById(String germplasmDbId);
File exportGermplasmMcpd(FaidareGermplasmPOSTShearchCriteria criteria);
......
......@@ -59,8 +59,8 @@ public class GermplasmServiceImpl implements GermplasmService {
}
@Override
public GermplasmMcpdVO getMcpdById(String germplasmDbId) {
return germplasmRepository.getMcpdById(germplasmDbId);
public GermplasmMcpdVO getAsMcpdById(String germplasmDbId) {
return germplasmRepository.getAsMcpdById(germplasmDbId);
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment