public virtual PaginatedContentResult ProcessQuery(string requestId) { ValidateRequest(requestId); _argDate = DateTime.MinValue; if (!TryGetParameterByIndex <DateTime>(_dataRequest, 0, ref _argDate)) { throw new ApplicationException("Invalid Change Date argument"); } string requestingUsername = _transactionManager.GetTransactionUsername(_dataRequest.TransactionId); ICollection <string> allFlowList = _flowManager.GetDataFlowNames(); ICollection <string> protectedFlowList = _flowManager.GetProtectedFlowNames(); ICollection <string> userProtectedFlowList = _flowManager.GetProtectedFlowNamesForUser(requestingUsername); HEREData data = new HEREData(ValidateDBProvider(DataSourceParameterType.SourceDatabaseDataSource.ToString())); HEREManifestService service = new HEREManifestService(data); PaginatedContentResult result = GetXmlPaginatedContentResult(service.Execute(allFlowList, protectedFlowList, userProtectedFlowList, _argDate, _serializationHelper, this), _dataRequest.RowIndex, _dataRequest.MaxRowCount, true); string xmlString = Encoding.UTF8.GetString(result.Content.Content); SaveStringAndAddToTransaction(xmlString, "Manifest.xml", _settingsProvider, _compressionHelper, _documentManager, _dataRequest.TransactionId); return(result); }
public override void ProcessSolicit(string requestId) { base.ProcessSolicit(requestId); HEREData data = new HEREData(ValidateDBProvider(DataSourceParameterType.SourceDatabaseDataSource.ToString())); HEREService service = new HEREService(data); string resultPath = service.Execute(_argDate, TargetXmlFilePath, _serializationHelper, _compressionHelper, this); if (!string.IsNullOrEmpty(resultPath)) { SaveResults(_numOfDays); _documentManager.AddDocument(_dataRequest.TransactionId, CommonTransactionStatusCode.Completed, null, resultPath); } }