Class DocxReport


  • @Service
    @PropertySource("classpath:properties/report.properties")
    public class DocxReport
    extends java.lang.Object
    docx 타입으로 리스트 파일 작성
    Version:
    1.0
    Author:
    Woo Young, Yeonhee Kim
    • Constructor Summary

      Constructors 
      Constructor Description
      DocxReport()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void downloadPrevRuleReport​(javax.servlet.http.HttpServletResponse response, java.lang.String path, java.lang.String time)
      룰 기록 조회에서 이전에 다운받았던 룰 보고서 파일을 다운 받음
      void resultRuleDocx​(javax.servlet.http.HttpServletResponse response, java.util.List<Rule> ruleList, java.lang.String path, java.lang.String name, java.lang.String time)
      rule을 워드로 다운받기 위한 메서드
      void writeDocxMetadata​(javax.servlet.http.HttpServletResponse response, java.lang.String path, java.util.List<Metadata> list, java.lang.String flag, java.lang.String title)
      docx 한국어 강의 목록 리스트 작성
      void writeDocxUtterance​(javax.servlet.http.HttpServletResponse response, java.lang.String path, java.util.List<Utterance> list, Metadata metadata, java.lang.String flag)
      docx utterance 리스트 작성
      • Methods inherited from class java.lang.Object

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

      • DocxReport

        public DocxReport()
    • Method Detail

      • writeDocxMetadata

        public void writeDocxMetadata​(javax.servlet.http.HttpServletResponse response,
                                      java.lang.String path,
                                      java.util.List<Metadata> list,
                                      java.lang.String flag,
                                      java.lang.String title)
                               throws java.lang.Exception
        docx 한국어 강의 목록 리스트 작성
        Parameters:
        response - 사용자에게 보내는 응답
        path - 파일 디렉토리
        list - 객체를 담을 리스트
        flag - 해당 요청이 download인지, mail인지, sms인지 결정해주는 변수
        title - 파일 내용의 제목
        Throws:
        java.lang.Exception - 예외처리
      • writeDocxUtterance

        public void writeDocxUtterance​(javax.servlet.http.HttpServletResponse response,
                                       java.lang.String path,
                                       java.util.List<Utterance> list,
                                       Metadata metadata,
                                       java.lang.String flag)
                                throws java.lang.Exception
        docx utterance 리스트 작성
        Parameters:
        response - 사용자에게 보내는 응답
        path - 파일 디렉토리
        list - 객체를 담을 리스트
        metadata - metadata 테이블 정보
        flag - 해당 요청이 download인지, mail인지, sms인지 결정해주는 변수
        Throws:
        java.lang.Exception - 예외처리
      • resultRuleDocx

        public void resultRuleDocx​(javax.servlet.http.HttpServletResponse response,
                                   java.util.List<Rule> ruleList,
                                   java.lang.String path,
                                   java.lang.String name,
                                   java.lang.String time)
        rule을 워드로 다운받기 위한 메서드
        Parameters:
        response - 파일 다운을 위한 응답
        ruleList - 워드로 다운받을 rule
        path - 파일을 다운받기 위해 임시 저장할 경로
        name - 작성자
        time - 작성일
      • downloadPrevRuleReport

        public void downloadPrevRuleReport​(javax.servlet.http.HttpServletResponse response,
                                           java.lang.String path,
                                           java.lang.String time)
        룰 기록 조회에서 이전에 다운받았던 룰 보고서 파일을 다운 받음
        Parameters:
        response - HttpServletResponse
        path - 이전 룰 보고서 파일이 있는 폴더
        time - 파일명(이전에 다운받은 시간)