private CodeQualityAuditResponse codeQualityDetailsForMissingStatus ( CollectorItem codeQualityCollectorItem ) { CodeQualityAuditResponse detailsMissing = new CodeQualityAuditResponse ( ) ; detailsMissing . addAuditStatus ( CodeQualityAuditStatus . CODE_QUALITY_DETAIL_MISSING ) ; detailsMissing . setLastUpdated ( codeQualityCollectorItem . getLastUpdated ( ) ) ; List < CodeQuality > codeQualities = codeQualityRepository . findByCollectorItemIdOrderByTimestampDesc ( codeQualityCollectorItem . getId ( ) ) ; for ( CodeQuality returnCodeQuality : codeQualities ) { detailsMissing . setUrl ( returnCodeQuality . getUrl ( ) ) ; detailsMissing . setName ( returnCodeQuality . getName ( ) ) ; detailsMissing . setLastExecutionTime ( returnCodeQuality . getTimestamp ( ) ) ; } return detailsMissing ; }
It will return response when codeQuality details not found in given date range .