Search in sources :

Example 6 with EmailConfigurationBean

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;
}
Also used : ArrayList(java.util.ArrayList) EmailConfigurationBean(com.linkedin.thirdeye.datalayer.pojo.EmailConfigurationBean) EmailConfigurationDTO(com.linkedin.thirdeye.datalayer.dto.EmailConfigurationDTO)

Example 7 with EmailConfigurationBean

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;
}
Also used : ArrayList(java.util.ArrayList) EmailConfigurationBean(com.linkedin.thirdeye.datalayer.pojo.EmailConfigurationBean) EmailConfigurationDTO(com.linkedin.thirdeye.datalayer.dto.EmailConfigurationDTO) Predicate(com.linkedin.thirdeye.datalayer.util.Predicate)

Aggregations

EmailConfigurationBean (com.linkedin.thirdeye.datalayer.pojo.EmailConfigurationBean)7 ArrayList (java.util.ArrayList)5 EmailConfigurationDTO (com.linkedin.thirdeye.datalayer.dto.EmailConfigurationDTO)4 Predicate (com.linkedin.thirdeye.datalayer.util.Predicate)3 AnomalyFunctionDTO (com.linkedin.thirdeye.datalayer.dto.AnomalyFunctionDTO)1 MergedAnomalyResultBean (com.linkedin.thirdeye.datalayer.pojo.MergedAnomalyResultBean)1