public MaturityBasicReportData GetAssessmentInformation() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.information = reportsDataManager.GetInformation(); return(data); }
public AggregationReportData GetCompareReport() { AggregationReportData response = new AggregationReportData(); response.SalList = new List <BasicReportData.OverallSALTable>(); response.DocumentLibraryTable = new List <DocumentLibraryTable>(); TokenManager tm = new TokenManager(); var aggregationID = tm.PayloadInt("aggreg"); if (aggregationID == null) { return(response); } var assessmentList = new BusinessLogic.AggregationManager() .GetAssessmentsForAggregation((int)aggregationID); response.AggregationName = assessmentList.Aggregation.AggregationName; foreach (var a in assessmentList.Assessments) { ReportsDataManager reportsDataManager = new ReportsDataManager(a.AssessmentId); // Incorporate SAL values into response var salTable = reportsDataManager.GetSals(); var entry = new BasicReportData.OverallSALTable(); response.SalList.Add(entry); entry.Alias = a.Alias; entry.OSV = salTable.OSV; entry.Q_CV = ""; entry.Q_IV = ""; entry.Q_AV = ""; entry.LastSalDeterminationType = salTable.LastSalDeterminationType; if (salTable.LastSalDeterminationType != "GENERAL") { entry.Q_CV = salTable.Q_CV; entry.Q_IV = salTable.Q_IV; entry.Q_AV = salTable.Q_AV; } // Document Library var documentLibraryTable = reportsDataManager.GetDocumentLibrary(); foreach (var docEntry in documentLibraryTable) { docEntry.Alias = a.Alias; response.DocumentLibraryTable.Add(docEntry); } } return(response); }
public MaturityBasicReportData GetDeficiencyList() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.DeficiencesList = reportsDataManager.getMaturityDeficiences("ACET"); data.information = reportsDataManager.GetInformation(); return(data); }
public MaturityBasicReportData GetCommentsMarked(string maturity) { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.Comments = reportsDataManager.getCommentsList(maturity); data.MarkedForReviewList = reportsDataManager.getMarkedForReviewList(maturity); data.information = reportsDataManager.GetInformation(); return(data); }
public BasicReportData GetDiscoveries() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); BasicReportData data = new BasicReportData(); data.information = reportsDataManager.GetInformation(); data.Individuals = reportsDataManager.GetFindingIndividuals(); return(data); }
public BasicReportData GetExecutive() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); BasicReportData data = new BasicReportData(); data.information = reportsDataManager.GetInformation(); data.top5Categories = reportsDataManager.GetTop5Categories(); data.top5Questions = reportsDataManager.GetTop5Questions(); return(data); }
public BasicReportData GetAltList() { int assessmentId = Auth.AssessmentForUser(); // var assessment = var reportsDataManager = new ReportsDataManager(assessmentId); var data = new BasicReportData(); data.QuestionsWithAltJust = reportsDataManager.GetQuestionsWithAlternateJustification(); data.MaturityQuestionsWithAlt = reportsDataManager.GetAlternatesList(); data.information = reportsDataManager.GetInformation(); return(data); }
public MaturityReportData GetSiteSummaryCMMCReport() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityReportData data = new MaturityReportData(); data.MaturityModels = reportsDataManager.GetMaturityModelData(); data.information = reportsDataManager.GetInformation(); //data.StatementsAndReferences = reportsDataManager.GetStatementsAndReferences(); data.AnalyzeMaturityData(); return(data); }
public MaturityReportData GetCMMCReport() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityReportData data = new MaturityReportData(); data.AnalyzeMaturityData(); data.MaturityModels = reportsDataManager.GetMaturityModelData(); data.information = reportsDataManager.GetInformation(); data.AnalyzeMaturityData(); return(data); }
public BasicReportData getSecurityPlan() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); BasicReportData data = new BasicReportData(); data.ControlList = reportsDataManager.GetControls(); data.genSalTable = reportsDataManager.GetGenSals(); data.information = reportsDataManager.GetInformation(); data.salTable = reportsDataManager.GetSals(); data.nistTypes = reportsDataManager.GetNistInfoTypes(); data.nistSalTable = reportsDataManager.GetNistSals(); return(data); }
public IHttpActionResult GetDeficiencyList([FromUri] string maturity) { try { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); MaturityBasicReportData data = new MaturityBasicReportData(); data.DeficiencesList = reportsDataManager.getMaturityDeficiences(maturity); data.information = reportsDataManager.GetInformation(); return(Ok(data)); } catch (Exception ex) { return(Ok()); } }
public BasicReportData getSiteSummary() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); BasicReportData data = new BasicReportData(); data.genSalTable = reportsDataManager.GetGenSals(); data.information = reportsDataManager.GetInformation(); data.salTable = reportsDataManager.GetSals(); data.nistTypes = reportsDataManager.GetNistInfoTypes(); data.nistSalTable = reportsDataManager.GetNistSals(); data.DocumentLibraryTable = reportsDataManager.GetDocumentLibrary(); data.RankedQuestionsTable = reportsDataManager.GetRankedQuestions(); data.QuestionsWithCommentsTable = reportsDataManager.getQuestionsWithCommentsOrMarkedForReview(); data.QuestionsWithAlternateJustifi = reportsDataManager.GetQuestionsWithAlternateJustification(); return(data); }
public BasicReportData GetDetail() { int assessmentId = Auth.AssessmentForUser(); ReportsDataManager reportsDataManager = new ReportsDataManager(assessmentId); BasicReportData data = new BasicReportData(); data.genSalTable = reportsDataManager.GetGenSals(); data.information = reportsDataManager.GetInformation(); data.salTable = reportsDataManager.GetSals(); data.nistTypes = reportsDataManager.GetNistInfoTypes(); data.nistSalTable = reportsDataManager.GetNistSals(); data.DocumentLibraryTable = reportsDataManager.GetDocumentLibrary(); data.RankedQuestionsTable = reportsDataManager.GetRankedQuestions(); data.QuestionsWithComments = reportsDataManager.GetQuestionsWithComments(); data.QuestionsMarkedForReview = reportsDataManager.GetQuestionsMarkedForReview(); data.QuestionsWithAlternateJustifi = reportsDataManager.GetQuestionsWithAlternateJustification(); data.StandardsQuestions = reportsDataManager.GetQuestionsForEachStandard(); data.ComponentQuestions = reportsDataManager.GetComponentQuestions(); return(data); }