Class ReportController


  • @Controller
    @PropertySource("classpath:properties/directory.properties")
    public class ReportController
    extends java.lang.Object
    리스트 형식 출력 컨트롤러
    Version:
    1.0
    Author:
    Wooyoung Lee, Yeonhee Kim
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void approval​(java.lang.String title)
      엑셀 다운 로그
      void downloadPrevRuleReport​(javax.servlet.http.HttpServletResponse response, java.lang.String time)
      룰 기록 조회에서 이전에 다운받았던 룰 보고서 파일을 다운 받음
      java.lang.String getTitleByDataType​(java.lang.String data)
      데이터 타입을 입력하면 데이터 타입에 맞는 문서 제목을 리턴함
      void resultRuleWord​(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletResponse response, int[] hiddenRule, java.lang.String time)
      룰 결과를 워드파일로 다운
      void sendMetadataMail​(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletResponse response, java.lang.String format, java.lang.String data)
      한국어 강의목록 파일 mail 전송
      void sendUtteranceMail​(javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      강의 문장 파일 mail 전송
      void writeMetadata​(javax.servlet.http.HttpServletResponse response, java.lang.String format, java.lang.String data)
      한국어 강의 목록 리스트 파일로 출력
      void writeUtteranceDocx​(javax.servlet.http.HttpServletResponse response, java.lang.Integer format)
      utterance 리스트 docx 파일로 출력
      void writeUtteranceXlsx​(javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, java.lang.Integer format)
      utterance 리스트 xlsx 파일로 출력
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReportController

        public ReportController()
    • Method Detail

      • writeMetadata

        @GetMapping("/metadata/{format}/{data}")
        public void writeMetadata​(javax.servlet.http.HttpServletResponse response,
                                  @PathVariable
                                  java.lang.String format,
                                  @PathVariable
                                  java.lang.String data)
                           throws java.lang.Exception
        한국어 강의 목록 리스트 파일로 출력
        Parameters:
        response - 사용자에게 보내는 응답
        format - 리스트 형식 값
        data - 데이터 타입(전체/한국어 강의/회의 음성/고객 응대/상담 음성)
        Throws:
        java.lang.Exception - 예외처리
      • writeUtteranceDocx

        @GetMapping("/utterance/docx/{format}")
        public void writeUtteranceDocx​(javax.servlet.http.HttpServletResponse response,
                                       @PathVariable
                                       java.lang.Integer format)
                                throws java.lang.Exception
        utterance 리스트 docx 파일로 출력
        Parameters:
        response - 사용자에게 보내는 응답
        format - utterance index 값
        Throws:
        java.lang.Exception - 예외처리
      • writeUtteranceXlsx

        @GetMapping("/utterance/xlsx/{format}")
        public void writeUtteranceXlsx​(javax.servlet.http.HttpServletResponse response,
                                       org.springframework.ui.Model model,
                                       @PathVariable
                                       java.lang.Integer format)
                                throws java.lang.Exception
        utterance 리스트 xlsx 파일로 출력
        Parameters:
        response - 사용자에게 보내는 응답
        model - 속성부여
        format - utterance index 값
        Throws:
        java.lang.Exception - 예외처리
      • sendMetadataMail

        @GetMapping("/metadataMail/{format}/{data}")
        public void sendMetadataMail​(javax.servlet.http.HttpSession session,
                                     javax.servlet.http.HttpServletResponse response,
                                     @PathVariable
                                     java.lang.String format,
                                     @PathVariable
                                     java.lang.String data)
                              throws java.lang.Exception
        한국어 강의목록 파일 mail 전송
        Parameters:
        session - 해당 유저의 세션
        response - 사용자에게 보내는 응답
        format - metadata index 값
        data - 데이터 타입(전체/한국어 강의/회의 음성/고객 응대/상담 음성)
        Throws:
        java.lang.Exception - 예외 처리
      • sendUtteranceMail

        @GetMapping("/utteranceMail")
        @ResponseBody
        public void sendUtteranceMail​(javax.servlet.http.HttpSession session,
                                      javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response)
                               throws java.lang.Exception
        강의 문장 파일 mail 전송
        Parameters:
        session - 해당 유저의 세션
        request - 사용자로부터 들어온 요청
        response - 사용자에게 보내는 응답
        Throws:
        java.lang.Exception - 예외처리
      • getTitleByDataType

        public java.lang.String getTitleByDataType​(java.lang.String data)
        데이터 타입을 입력하면 데이터 타입에 맞는 문서 제목을 리턴함
        Parameters:
        data - 데이터 타입(전체/한국어 강의/회의 음성/고객 응대/상담 음성)
        Returns:
        데이터 타입에 맞는 제목을 리턴함
      • downloadPrevRuleReport

        @GetMapping("/downloadPrevRuleReport")
        @ResponseBody
        public void downloadPrevRuleReport​(javax.servlet.http.HttpServletResponse response,
                                           java.lang.String time)
        룰 기록 조회에서 이전에 다운받았던 룰 보고서 파일을 다운 받음
        Parameters:
        response - HttpServletResponse
        time - 파일명(이전에 다운받은 시간)
      • resultRuleWord

        @GetMapping("/resultRuleDocx")
        @ResponseBody
        public void resultRuleWord​(javax.servlet.http.HttpSession session,
                                   javax.servlet.http.HttpServletResponse response,
                                   int[] hiddenRule,
                                   java.lang.String time)
        룰 결과를 워드파일로 다운
        Parameters:
        session - HttpSession 객체
        response - HttpServletResponse 객체
        hiddenRule - 룰 소분류 아이디를 담고 있는 배열
        time - 이전에 룰 보고서를 다운받았던 시간(서버 스토리지에 저장된 룰 보고서 파일명)
      • approval

        @ResponseBody
        @PostMapping("/downloadExcel")
        public void approval​(java.lang.String title)
        엑셀 다운 로그
        Parameters:
        title - 엑셀 다운로드한 제목