@Override
    public long count(String type) {
        if ((type != null) && (!type.isEmpty()) && (!UNDEFINED.equalsIgnoreCase(type))) {
            return dashboardRepository.countByTypeContainingIgnoreCase(type);
        } else {
            return dashboardRepository.count();
        }
    }
@ Override public long count ( String type ) { if ( ( type != null ) && ( ! type . isEmpty ( ) ) && ( ! UNDEFINED . equalsIgnoreCase ( type ) ) ) { return dashboardRepository . countByTypeContainingIgnoreCase ( type ) ; } else { return dashboardRepository . count ( ) ; } }
Get count of all dashboards, use dashboard type if supplied

@param
@return long