protected boolean doValidationPass ( final ProcessorData processorData ) { // Validate the content specification before doing any rest calls if ( ! doFirstValidationPass ( processorData ) ) { return false ; } // Check if the app should be shutdown if ( isShuttingDown . get ( ) ) { shutdown . set ( true ) ; return false ; } // Validate the content specification bug links before doing the post validation as it is a costly operation if ( ! doBugLinkValidationPass ( processorData ) ) { log . error ( ProcessorConstants . ERROR_INVALID_CS_MSG ) ; return false ; } // Check if the app should be shutdown if ( isShuttingDown . get ( ) ) { shutdown . set ( true ) ; return false ; } // Validate the content specification now that we have most of the data from the REST API if ( ! doSecondValidationPass ( processorData ) ) { log . error ( ProcessorConstants . ERROR_INVALID_CS_MSG ) ; return false ; } // Log that the spec is valid log . info ( ProcessorConstants . INFO_VALID_CS_MSG ) ; return true ; }
Does a validation pass before processing any data .