Search in sources :

Example 1 with IngraphDashboardConfigBean

use of com.linkedin.thirdeye.datalayer.pojo.IngraphDashboardConfigBean in project pinot by linkedin.

the class IngraphDashboardConfigManagerImpl method findByName.

@Override
public IngraphDashboardConfigDTO findByName(String name) {
    Predicate predicate = Predicate.EQ("name", name);
    List<IngraphDashboardConfigBean> list = genericPojoDao.get(predicate, IngraphDashboardConfigBean.class);
    IngraphDashboardConfigDTO result = null;
    if (CollectionUtils.isNotEmpty(list)) {
        result = MODEL_MAPPER.map(list.get(0), IngraphDashboardConfigDTO.class);
    }
    return result;
}
Also used : IngraphDashboardConfigDTO(com.linkedin.thirdeye.datalayer.dto.IngraphDashboardConfigDTO) IngraphDashboardConfigBean(com.linkedin.thirdeye.datalayer.pojo.IngraphDashboardConfigBean) Predicate(com.linkedin.thirdeye.datalayer.util.Predicate)

Aggregations

IngraphDashboardConfigDTO (com.linkedin.thirdeye.datalayer.dto.IngraphDashboardConfigDTO)1 IngraphDashboardConfigBean (com.linkedin.thirdeye.datalayer.pojo.IngraphDashboardConfigBean)1 Predicate (com.linkedin.thirdeye.datalayer.util.Predicate)1