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

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