use of com.linkedin.thirdeye.datalayer.pojo.EmailConfigurationBean in project pinot by linkedin.
the class EmailConfigurationManagerImpl method findAll.
@Override
public List<EmailConfigurationDTO> findAll() {
List<EmailConfigurationDTO> beanList = super.findAll();
List<EmailConfigurationDTO> result = new ArrayList<>();
for (EmailConfigurationBean bean : beanList) {
EmailConfigurationDTO dto = convertEmailConfigurationBean2DTO(bean);
result.add(dto);
}
return result;
}
use of com.linkedin.thirdeye.datalayer.pojo.EmailConfigurationBean in project pinot by linkedin.
the class EmailConfigurationManagerImpl method findByCollection.
@Override
public List<EmailConfigurationDTO> findByCollection(String collection) {
Predicate predicate = Predicate.EQ("collection", collection);
List<EmailConfigurationBean> list = genericPojoDao.get(predicate, EmailConfigurationBean.class);
List<EmailConfigurationDTO> result = new ArrayList<>();
for (EmailConfigurationBean bean : list) {
EmailConfigurationDTO dto = convertEmailConfigurationBean2DTO(bean);
result.add(dto);
}
return result;
}
Aggregations