use of com.linkedin.thirdeye.datalayer.pojo.AnomalyFunctionBean in project pinot by linkedin.
the class EmailConfigurationManagerImpl method convertEmailConfigurationBean2DTO.
private EmailConfigurationDTO convertEmailConfigurationBean2DTO(EmailConfigurationBean emailConfigurationBean) {
EmailConfigurationDTO emailConfigurationDTO = convertBean2DTO(emailConfigurationBean, EmailConfigurationDTO.class);
List<Long> functionIds = emailConfigurationBean.getFunctionIds();
if (functionIds != null && !functionIds.isEmpty()) {
List<AnomalyFunctionBean> list = genericPojoDao.get(functionIds, AnomalyFunctionBean.class);
List<AnomalyFunctionDTO> functions = new ArrayList<>();
for (AnomalyFunctionBean bean : list) {
AnomalyFunctionDTO dto = convertBean2DTO(bean, AnomalyFunctionDTO.class);
functions.add(dto);
}
emailConfigurationDTO.setFunctions(functions);
}
return emailConfigurationDTO;
}
Aggregations