@ Override public Integer getAllDashboardsByTitleCount ( String title , String type ) { List < Dashboard > dashboards = null ; if ( ( type != null ) && ( ! type . isEmpty ( ) ) && ( ! UNDEFINED . equalsIgnoreCase ( type ) ) ) { dashboards = dashboardRepository . findAllByTypeContainingIgnoreCaseAndTitleContainingIgnoreCase ( type , title ) ; } else { dashboards = dashboardRepository . findAllByTitleContainingIgnoreCase ( title ) ; } return dashboards != null ? dashboards . size ( ) : 0 ; }
Get count of all dashboards filtered by title