Exemple #1
0
        public MaturityBasicReportData GetAssessmentInformation()
        {
            int assessmentId = Auth.AssessmentForUser();
            ReportsDataManager      reportsDataManager = new ReportsDataManager(assessmentId);
            MaturityBasicReportData data = new MaturityBasicReportData();

            data.information = reportsDataManager.GetInformation();
            return(data);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }
Exemple #6
0
        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);
        }
Exemple #7
0
        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);
        }
Exemple #8
0
        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);
        }
Exemple #9
0
        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);
        }
Exemple #10
0
        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);
        }
Exemple #11
0
 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());
     }
 }
Exemple #12
0
        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);
        }
Exemple #13
0
        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);
        }