public AcceptQualityControl ( IRepositoryFactory repositoryFactory, Barcode barcode ) : void | ||
repositoryFactory | IRepositoryFactory | |
barcode | Barcode | |
return | void |
/* 2013-01-17 by kjt: This method should "shortcut" the * need to perform validation on the barcode provided. * This in intended to be called for non-sequencing jobs, * so they can be downloaded immediately after moving into "raw" * directory. */ public void SkipValidationAndAllowForDownload(Barcode barcode) { IBarcodeService barcodeService = new BarcodeService(); //// This sets the barcode files' "Validated" bit so they won't //// show up as needing PhRed validation: //foreach (var bcf in barcode.BarcodeFiles) //{ // bcf.Validated = true; // _repositoryFactory.BarcodeFileRepository.EnsurePersistent(bcf); //} //// This sets DateTimeValidated because it's doubling as DateTimeCompleted //// on the downloads page at it would otherwise remain blank because //// validation is being bypassed for non-sequencing jobs: //barcode.DateTimeValidated = DateTime.Now; //_repositoryFactory.BarcodeRepository.EnsurePersistent(barcode); // This sets the remainder of the fields that allow downloading, // such as "Done", and "AllowDownload", etc, plus some basic // housekeeping and setting of fields for sub-objects: barcodeService.AcceptQualityControl(_repositoryFactory, barcode); }
/* 2013-01-17 by kjt: This method should "shortcut" the * need to perform validation on the barcode provided. * This in intended to be called for non-sequencing jobs, * so they can be downloaded immediately after moving into "raw" * directory. */ public void SkipValidationAndAllowForDownload(Barcode barcode) { IBarcodeService barcodeService = new BarcodeService(); //// This sets the barcode files' "Validated" bit so they won't //// show up as needing PhRed validation: //foreach (var bcf in barcode.BarcodeFiles) //{ // bcf.Validated = true; // _repositoryFactory.BarcodeFileRepository.EnsurePersistent(bcf); //} //// This sets DateTimeValidated because it's doubling as DateTimeCompleted //// on the downloads page at it would otherwise remain blank because //// validation is being bypassed for non-sequencing jobs: //barcode.DateTimeValidated = DateTime.Now; //_repositoryFactory.BarcodeRepository.EnsurePersistent(barcode); // This sets the remainder of the fields that allow downloading, // such as "Done", and "AllowDownload", etc, plus some basic // housekeeping and setting of fields for sub-objects: barcodeService.AcceptQualityControl(_repositoryFactory, barcode); }