--- base/Documents/BaseForMySql_v1.0.erwin
+++ base/Documents/BaseForMySql_v1.0.erwin
| Binary file is not shown |
--- base/src/main/java/egovframework/com/cmm/ComDefaultVO.java
+++ base/src/main/java/egovframework/com/cmm/ComDefaultVO.java
... | ... | @@ -66,7 +66,8 @@ |
| 66 | 66 |
|
| 67 | 67 |
//관리자여부 |
| 68 | 68 |
private String adminAt = "N"; |
| 69 |
- |
|
| 69 |
+ private String mngrAt = "N"; |
|
| 70 |
+ |
|
| 70 | 71 |
//사이트 ID |
| 71 | 72 |
private String siteId; |
| 72 | 73 |
|
... | ... | @@ -90,10 +91,16 @@ |
| 90 | 91 |
|
| 91 | 92 |
//컬럼명으로 정렬 |
| 92 | 93 |
private String searchSortValue; |
| 93 |
- |
|
| 94 |
+ |
|
| 95 |
+ //사용자ID |
|
| 96 |
+ private String userId; |
|
| 97 |
+ |
|
| 98 |
+ //고유ID |
|
| 99 |
+ private String uniqId; |
|
| 100 |
+ |
|
| 94 | 101 |
//세션ID |
| 95 | 102 |
private String sessionId; |
| 96 |
- |
|
| 103 |
+ |
|
| 97 | 104 |
//사용여부 |
| 98 | 105 |
private String useAt; |
| 99 | 106 |
|
... | ... | @@ -529,4 +536,20 @@ |
| 529 | 536 |
public void setSysTyCode(String sysTyCode) {
|
| 530 | 537 |
this.sysTyCode = sysTyCode; |
| 531 | 538 |
} |
| 539 |
+ |
|
| 540 |
+ public String getUserId() {
|
|
| 541 |
+ return userId; |
|
| 542 |
+ } |
|
| 543 |
+ |
|
| 544 |
+ public void setUserId(String userId) {
|
|
| 545 |
+ this.userId = userId; |
|
| 546 |
+ } |
|
| 547 |
+ |
|
| 548 |
+ public String getUniqId() {
|
|
| 549 |
+ return uniqId; |
|
| 550 |
+ } |
|
| 551 |
+ |
|
| 552 |
+ public void setUniqId(String uniqId) {
|
|
| 553 |
+ this.uniqId = uniqId; |
|
| 554 |
+ } |
|
| 532 | 555 |
} |
--- base/src/main/java/egovframework/com/cmm/service/EgovFileMngService.java
... | ... | @@ -1,234 +0,0 @@ |
| 1 | -package egovframework.com.cmm.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.util.Map; | |
| 5 | - | |
| 6 | -import javax.servlet.http.HttpServletRequest; | |
| 7 | -import javax.servlet.http.HttpServletResponse; | |
| 8 | - | |
| 9 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 10 | -import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 11 | - | |
| 12 | -/** | |
| 13 | - * @Class Name : EgovFileMngService.java | |
| 14 | - * @Description : 파일정보의 관리를 위한 서비스 인터페이스 | |
| 15 | - * @Modification Information | |
| 16 | - * | |
| 17 | - * 수정일 수정자 수정내용 | |
| 18 | - * ------- ------- ------------------- | |
| 19 | - * 2009. 3. 25. 이삼섭 최초생성 | |
| 20 | - * | |
| 21 | - * @author 공통 서비스 개발팀 이삼섭 | |
| 22 | - * @since 2009. 3. 25. | |
| 23 | - * @version | |
| 24 | - * @see | |
| 25 | - * | |
| 26 | - */ | |
| 27 | -public interface EgovFileMngService {
| |
| 28 | - | |
| 29 | - /** | |
| 30 | - * 파일에 대한 목록을 조회한다. | |
| 31 | - * | |
| 32 | - * @param fvo | |
| 33 | - * @return | |
| 34 | - * @throws Exception | |
| 35 | - */ | |
| 36 | - public List<FileVO> selectFileInfs(FileVO fvo) throws Exception; | |
| 37 | - | |
| 38 | - /** | |
| 39 | - * 하나의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 40 | - * | |
| 41 | - * @param fvo | |
| 42 | - * @throws Exception | |
| 43 | - */ | |
| 44 | - public String insertFileInf(FileVO fvo) throws Exception; | |
| 45 | - | |
| 46 | - /** | |
| 47 | - * 여러 개의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 48 | - * | |
| 49 | - * @param fvoList | |
| 50 | - * @throws Exception | |
| 51 | - */ | |
| 52 | - public String insertFileInfs(List<FileVO> fvoList) throws Exception; | |
| 53 | - | |
| 54 | - /** | |
| 55 | - * 여러 개의 파일에 대한 정보(속성 및 상세)를 수정한다. | |
| 56 | - * | |
| 57 | - * @param fvoList | |
| 58 | - * @throws Exception | |
| 59 | - */ | |
| 60 | - public void updateFileInfs(List<FileVO> fvoList) throws Exception; | |
| 61 | - | |
| 62 | - /** | |
| 63 | - * 여러 개의 파일을 삭제한다. | |
| 64 | - * | |
| 65 | - * @param fvoList | |
| 66 | - * @throws Exception | |
| 67 | - */ | |
| 68 | - public int deleteFileInfs(List<FileVO> fvoList) throws Exception; | |
| 69 | - | |
| 70 | - /** | |
| 71 | - * 하나의 파일을 삭제한다. | |
| 72 | - * | |
| 73 | - * @param fvo | |
| 74 | - * @throws Exception | |
| 75 | - */ | |
| 76 | - public int deleteFileInf(FileVO fvo) throws Exception; | |
| 77 | - | |
| 78 | - /** | |
| 79 | - * 여러개의 파일을 삭제한다. | |
| 80 | - * | |
| 81 | - */ | |
| 82 | - public void deleteFileInfs(String atchFileId) throws Exception; | |
| 83 | - | |
| 84 | - /** | |
| 85 | - * 파일에 대한 상세정보를 조회한다. | |
| 86 | - * | |
| 87 | - * @param fvo | |
| 88 | - * @return | |
| 89 | - * @throws Exception | |
| 90 | - */ | |
| 91 | - public FileVO selectFileMaster(FileVO fvo) throws Exception; | |
| 92 | - | |
| 93 | - /** | |
| 94 | - * 파일에 대한 상세정보를 조회한다. | |
| 95 | - * | |
| 96 | - * @param fvo | |
| 97 | - * @return | |
| 98 | - * @throws Exception | |
| 99 | - */ | |
| 100 | - public FileVO selectFileInf(FileVO fvo) throws Exception; | |
| 101 | - | |
| 102 | - /** | |
| 103 | - * 파일 구분자에 대한 최대값을 구한다. | |
| 104 | - * | |
| 105 | - * @param fvo | |
| 106 | - * @return | |
| 107 | - * @throws Exception | |
| 108 | - */ | |
| 109 | - public int getMaxFileSN(FileVO fvo) throws Exception; | |
| 110 | - | |
| 111 | - /** | |
| 112 | - * 파일 갯수를 구한다. | |
| 113 | - * | |
| 114 | - * @param fvo | |
| 115 | - * @return | |
| 116 | - * @throws Exception | |
| 117 | - */ | |
| 118 | - public int getFileCount(FileVO fvo) throws Exception; | |
| 119 | - | |
| 120 | - /** | |
| 121 | - * 전체 파일을 삭제한다. | |
| 122 | - * | |
| 123 | - * @param fvo | |
| 124 | - * @throws Exception | |
| 125 | - */ | |
| 126 | - public void deleteAllFileInf(FileVO fvo) throws Exception; | |
| 127 | - | |
| 128 | - /** | |
| 129 | - * 파일명 검색에 대한 목록을 조회한다. | |
| 130 | - * | |
| 131 | - * @param fvo | |
| 132 | - * @return | |
| 133 | - * @throws Exception | |
| 134 | - */ | |
| 135 | - public Map<String, Object> selectFileListByFileNm(FileVO fvo) throws Exception; | |
| 136 | - | |
| 137 | - /** | |
| 138 | - * 이미지 파일에 대한 목록을 조회한다. | |
| 139 | - * | |
| 140 | - * @param vo | |
| 141 | - * @return | |
| 142 | - * @throws Exception | |
| 143 | - */ | |
| 144 | - public List<FileVO> selectImageFileList(FileVO vo) throws Exception; | |
| 145 | - | |
| 146 | - /** | |
| 147 | - * 임시 파일에 대한 상세정보를 조회한다. | |
| 148 | - * | |
| 149 | - * @param fvo | |
| 150 | - * @return | |
| 151 | - * @throws Exception | |
| 152 | - */ | |
| 153 | - public FileVO selectTempFileInf(FileVO fvo) throws Exception ; | |
| 154 | - | |
| 155 | - /** | |
| 156 | - * 임시 파일에 대한 상세정보를 조회한다. | |
| 157 | - * | |
| 158 | - * @param fvo | |
| 159 | - * @return | |
| 160 | - * @throws Exception | |
| 161 | - */ | |
| 162 | - public FileVO selectTempFileInfByAtchFileIdAndFileSn(FileVO fvo) throws Exception; | |
| 163 | - | |
| 164 | - /** | |
| 165 | - * 임시 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 166 | - * | |
| 167 | - * @param vo | |
| 168 | - * @throws Exception | |
| 169 | - */ | |
| 170 | - public FileVO insertTempFileInf(FileVO vo) throws Exception ; | |
| 171 | - | |
| 172 | - /** | |
| 173 | - * 하나의 임시 파일을 삭제한다. | |
| 174 | - * | |
| 175 | - * @param fvo | |
| 176 | - * @throws Exception | |
| 177 | - */ | |
| 178 | - public FileVO deleteTempFileInf(FileVO fvo) throws Exception ; | |
| 179 | - | |
| 180 | - /** | |
| 181 | - * 임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 182 | - * | |
| 183 | - * @param vo | |
| 184 | - * @throws Exception | |
| 185 | - */ | |
| 186 | - public FileVO insertFileInfsByTemp(FileVO vo) throws Exception ; | |
| 187 | - public FileVO insertFileInfsByTemp(FileVO vo, HttpServletRequest request, HttpServletResponse response) throws Exception ; | |
| 188 | - | |
| 189 | - /** | |
| 190 | - * 여러 개의 임시 파일을 삭제한다. | |
| 191 | - * | |
| 192 | - * @param fvo | |
| 193 | - * @throws Exception | |
| 194 | - */ | |
| 195 | - public int deleteFileDetailByTemp(FileVO fvo) throws Exception ; | |
| 196 | - | |
| 197 | - /** | |
| 198 | - * 첨부파일의 총용량과 갯수를 조회한다. | |
| 199 | - * | |
| 200 | - * @param fvo | |
| 201 | - * @return | |
| 202 | - * @throws Exception | |
| 203 | - */ | |
| 204 | - public FileVO selectFileDetailTotalInfo(FileVO fvo) throws Exception; | |
| 205 | - | |
| 206 | - /** | |
| 207 | - * 관리용 첨부파일을 복사한다. | |
| 208 | - * | |
| 209 | - * @param articleList | |
| 210 | - * @throws Exception | |
| 211 | - */ | |
| 212 | - public List<BoardVO> updateFileManageCopy(List<BoardVO> articleList) throws Exception; | |
| 213 | - | |
| 214 | - /** | |
| 215 | - * 학습자료 파일에 대한 상세정보를 조회한다. | |
| 216 | - * | |
| 217 | - * @param fvo | |
| 218 | - * @return | |
| 219 | - * @throws Exception | |
| 220 | - */ | |
| 221 | - public FileVO selectCtsFileInf(String lrnCntntsId) throws Exception; | |
| 222 | - | |
| 223 | - //수업 첨부파일 목록 | |
| 224 | - public List selectStudyFileList(FileVO vo) throws Exception; | |
| 225 | - | |
| 226 | - public int selectFileDownLogCnt(EgovMap fvo) throws Exception; | |
| 227 | - | |
| 228 | - public void updateFileDownLog(EgovMap fvo) throws Exception; | |
| 229 | - | |
| 230 | - public void insertFileDownLog(EgovMap vo) throws Exception; | |
| 231 | - | |
| 232 | - //첨부파일 공개여부 | |
| 233 | - public void updateFilePublic(FileVO vo) throws Exception; | |
| 234 | -} |
--- base/src/main/java/egovframework/com/cmm/service/EgovProperties.java
+++ base/src/main/java/egovframework/com/cmm/service/EgovProperties.java
... | ... | @@ -5,23 +5,7 @@ |
| 5 | 5 |
import egovframework.com.cmm.util.EgovBasicLogger; |
| 6 | 6 |
import egovframework.com.cmm.util.EgovWebUtil; |
| 7 | 7 |
|
| 8 |
-/** |
|
| 9 |
- * Class Name : EgovProperties.java |
|
| 10 |
- * Description : properties값들을 파일로부터 읽어와 Globals클래스의 정적변수로 로드시켜주는 클래스로 |
|
| 11 |
- * 문자열 정보 기준으로 사용할 전역변수를 시스템 재시작으로 반영할 수 있도록 한다. |
|
| 12 |
- * Modification Information |
|
| 13 |
- * |
|
| 14 |
- * 수정일 수정자 수정내용 |
|
| 15 |
- * ------- -------- --------------------------- |
|
| 16 |
- * 2009.01.19 박지욱 최초 생성 |
|
| 17 |
- * |
|
| 18 |
- * @author 공통 서비스 개발팀 박지욱 |
|
| 19 |
- * @since 2009. 01. 19 |
|
| 20 |
- * @version 1.0 |
|
| 21 |
- * @see |
|
| 22 |
- * |
|
| 23 |
- */ |
|
| 24 |
- |
|
| 8 |
+//문자열 정보 기준으로 사용할 전역변수를 시스템 재시작으로 반영할 수 있도록 한다. |
|
| 25 | 9 |
public class EgovProperties{
|
| 26 | 10 |
|
| 27 | 11 |
//프로퍼티값 로드시 에러발생하면 반환되는 에러문자열 |
+++ base/src/main/java/egovframework/com/cmm/service/FileMngService.java
... | ... | @@ -0,0 +1,83 @@ |
| 1 | +package egovframework.com.cmm.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | +import java.util.Map; | |
| 5 | + | |
| 6 | +import javax.servlet.http.HttpServletRequest; | |
| 7 | +import javax.servlet.http.HttpServletResponse; | |
| 8 | + | |
| 9 | +import egovframework.com.cop.bbs.service.BoardVO; | |
| 10 | +import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 11 | + | |
| 12 | +//파일정보의 관리를 위한 서비스 인터페이스 | |
| 13 | +public interface FileMngService { | |
| 14 | + | |
| 15 | + //파일에 대한 목록을 조회한다. | |
| 16 | + public List<FileVO> selectFileInfs(FileVO fvo) throws Exception; | |
| 17 | + | |
| 18 | + //하나의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 19 | + public String insertFileInf(FileVO fvo) throws Exception; | |
| 20 | + | |
| 21 | + //여러 개의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 22 | + public String insertFileInfs(List<FileVO> fvoList) throws Exception; | |
| 23 | + | |
| 24 | + //여러 개의 파일에 대한 정보(속성 및 상세)를 수정한다. | |
| 25 | + public void updateFileInfs(List<FileVO> fvoList) throws Exception; | |
| 26 | + | |
| 27 | + //여러 개의 파일을 삭제한다. | |
| 28 | + public int deleteFileInfs(List<FileVO> fvoList) throws Exception; | |
| 29 | + | |
| 30 | + //하나의 파일을 삭제한다. | |
| 31 | + public int deleteFileInf(FileVO fvo) throws Exception; | |
| 32 | + | |
| 33 | + //여러개의 파일을 삭제한다. | |
| 34 | + public void deleteFileInfs(String atchFileId) throws Exception; | |
| 35 | + | |
| 36 | + //파일에 대한 상세정보를 조회한다. | |
| 37 | + public FileVO selectFileMaster(FileVO fvo) throws Exception; | |
| 38 | + | |
| 39 | + //파일에 대한 상세정보를 조회한다. | |
| 40 | + public FileVO selectFileInf(FileVO fvo) throws Exception; | |
| 41 | + | |
| 42 | + //파일 구분자에 대한 최대값을 구한다. | |
| 43 | + public int getMaxFileSN(FileVO fvo) throws Exception; | |
| 44 | + | |
| 45 | + //파일 갯수를 구한다. | |
| 46 | + public int getFileCount(FileVO fvo) throws Exception; | |
| 47 | + | |
| 48 | + //전체 파일을 삭제한다. | |
| 49 | + public void deleteAllFileInf(FileVO fvo) throws Exception; | |
| 50 | + | |
| 51 | + //파일명 검색에 대한 목록을 조회한다. | |
| 52 | + public Map<String, Object> selectFileListByFileNm(FileVO fvo) throws Exception; | |
| 53 | + | |
| 54 | + //이미지 파일에 대한 목록을 조회한다. | |
| 55 | + public List<FileVO> selectImageFileList(FileVO vo) throws Exception; | |
| 56 | + | |
| 57 | + //임시 파일에 대한 상세정보를 조회한다. | |
| 58 | + public FileVO selectTempFileInf(FileVO fvo) throws Exception ; | |
| 59 | + | |
| 60 | + //임시 파일에 대한 상세정보를 조회한다. | |
| 61 | + public FileVO selectTempFileInfByAtchFileIdAndFileSn(FileVO fvo) throws Exception; | |
| 62 | + | |
| 63 | + //임시 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 64 | + public FileVO insertTempFileInf(FileVO vo) throws Exception ; | |
| 65 | + | |
| 66 | + //하나의 임시 파일을 삭제한다. | |
| 67 | + public FileVO deleteTempFileInf(FileVO fvo) throws Exception ; | |
| 68 | + | |
| 69 | + //임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 70 | + public FileVO insertFileInfsByTemp(FileVO vo) throws Exception ; | |
| 71 | + | |
| 72 | + public FileVO insertFileInfsByTemp(FileVO vo, HttpServletRequest request, HttpServletResponse response) throws Exception ; | |
| 73 | + | |
| 74 | + //여러 개의 임시 파일을 삭제한다. | |
| 75 | + public int deleteFileDetailByTemp(FileVO fvo) throws Exception ; | |
| 76 | + | |
| 77 | + //첨부파일의 총용량과 갯수를 조회한다. | |
| 78 | + public FileVO selectFileDetailTotalInfo(FileVO fvo) throws Exception; | |
| 79 | + | |
| 80 | + //관리용 첨부파일을 복사한다. | |
| 81 | + public List<BoardVO> updateFileManageCopy(List<BoardVO> articleList) throws Exception; | |
| 82 | + | |
| 83 | +} |
--- base/src/main/java/egovframework/com/cmm/service/EgovFileMngUtil.java
+++ base/src/main/java/egovframework/com/cmm/service/FileMngUtil.java
... | ... | @@ -1,948 +1,933 @@ |
| 1 |
-package egovframework.com.cmm.service; |
|
| 2 |
- |
|
| 3 |
-import java.awt.image.BufferedImage; |
|
| 4 |
-import java.io.File; |
|
| 5 |
-import java.io.FileNotFoundException; |
|
| 6 |
-import java.io.FileOutputStream; |
|
| 7 |
-import java.io.IOException; |
|
| 8 |
-import java.io.InputStream; |
|
| 9 |
-import java.io.OutputStream; |
|
| 10 |
-import java.math.BigDecimal; |
|
| 11 |
-import java.util.ArrayList; |
|
| 12 |
-import java.util.Iterator; |
|
| 13 |
-import java.util.List; |
|
| 14 |
-import java.util.Map; |
|
| 15 |
-import java.util.Map.Entry; |
|
| 16 |
- |
|
| 17 |
-import javax.annotation.Resource; |
|
| 18 |
-import javax.imageio.ImageIO; |
|
| 19 |
- |
|
| 20 |
-import org.apache.log4j.Logger; |
|
| 21 |
-import org.springframework.stereotype.Component; |
|
| 22 |
-import org.springframework.web.multipart.MultipartFile; |
|
| 23 |
- |
|
| 24 |
-import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; |
|
| 25 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 26 |
-import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 27 |
-import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 28 |
- |
|
| 29 |
-/** |
|
| 30 |
- * @Class Name : EgovFileMngUtil.java |
|
| 31 |
- * @Description : 메시지 처리 관련 유틸리티 |
|
| 32 |
- * @Modification Information |
|
| 33 |
- * |
|
| 34 |
- * 수정일 수정자 수정내용 |
|
| 35 |
- * ------- -------- --------------------------- |
|
| 36 |
- * 2009.02.13 이삼섭 최초 생성 |
|
| 37 |
- * |
|
| 38 |
- * @author 공통 서비스 개발팀 이삼섭 |
|
| 39 |
- * @since 2009. 02. 13 |
|
| 40 |
- * @version 1.0 |
|
| 41 |
- * @see |
|
| 42 |
- * |
|
| 43 |
- */ |
|
| 44 |
-@Component("EgovFileMngUtil")
|
|
| 45 |
-public class EgovFileMngUtil {
|
|
| 46 |
- |
|
| 47 |
- public static final int BUFF_SIZE = 4096; |
|
| 48 |
- |
|
| 49 |
- @Resource(name = "propertiesService") |
|
| 50 |
- protected EgovPropertyService propertyService; |
|
| 51 |
- |
|
| 52 |
- @Resource(name = "egovFileIdGnrService") |
|
| 53 |
- private EgovIdGnrService idgenService; |
|
| 54 |
- |
|
| 55 |
- Logger log = Logger.getLogger(this.getClass()); |
|
| 56 |
- |
|
| 57 |
- public static String[] denyFileExtentionList = new String[]{"sh", "exe", "jsp", "asp", "php", "js", "jar", "jspx"};
|
|
| 58 |
- public static String[] isImageList = new String[] {"jpg", "jpeg", "gif", "png", "bmp"};
|
|
| 59 |
- |
|
| 60 |
- /** |
|
| 61 |
- * 다이렉트 첨부파일에 대한 목록 정보를 취득한다. |
|
| 62 |
- * |
|
| 63 |
- * @param files |
|
| 64 |
- * @return |
|
| 65 |
- * @throws Exception |
|
| 66 |
- */ |
|
| 67 |
- public List<FileVO> directParseFileInf(Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String storePath, String appendPath) {
|
|
| 68 |
- int fileKey = fileKeyParam; |
|
| 69 |
- |
|
| 70 |
- String storePathString = ""; |
|
| 71 |
- String atchFileIdString = ""; |
|
| 72 |
- |
|
| 73 |
- if ("".equals(storePath) || storePath == null) {
|
|
| 74 |
- storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 75 |
- } else {
|
|
| 76 |
- storePathString = propertyService.getString(storePath); |
|
| 77 |
- } |
|
| 78 |
- |
|
| 79 |
- if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 80 |
- storePathString = storePathString + "/" + appendPath; |
|
| 81 |
- } |
|
| 82 |
- |
|
| 83 |
- File saveFolder = new File(storePathString); |
|
| 84 |
- |
|
| 85 |
- if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 86 |
- saveFolder.mkdirs(); |
|
| 87 |
- } |
|
| 88 |
- |
|
| 89 |
- List<FileVO> result = new ArrayList<FileVO>(); |
|
| 90 |
- |
|
| 91 |
- try {
|
|
| 92 |
- Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 93 |
- MultipartFile file; |
|
| 94 |
- String filePath = ""; |
|
| 95 |
- |
|
| 96 |
- FileVO fvo; |
|
| 97 |
- |
|
| 98 |
- boolean isDenyed; |
|
| 99 |
- while (itr.hasNext()) {
|
|
| 100 |
- Entry<String, MultipartFile> entry = itr.next(); |
|
| 101 |
- |
|
| 102 |
- file = entry.getValue(); |
|
| 103 |
- String orginFileName = file.getOriginalFilename(); |
|
| 104 |
- |
|
| 105 |
- //-------------------------------------- |
|
| 106 |
- // 원 파일명이 없는 경우 처리 |
|
| 107 |
- // (첨부가 되지 않은 input file type) |
|
| 108 |
- //-------------------------------------- |
|
| 109 |
- if ("".equals(orginFileName)) {
|
|
| 110 |
- continue; |
|
| 111 |
- } |
|
| 112 |
- ////------------------------------------ |
|
| 113 |
- |
|
| 114 |
- String newName = ""; |
|
| 115 |
- String fileExt = ""; |
|
| 116 |
- int index = orginFileName.lastIndexOf(".");
|
|
| 117 |
- if(index != -1) {
|
|
| 118 |
- fileExt = orginFileName.substring(index + 1); |
|
| 119 |
- newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey + "." + fileExt; |
|
| 120 |
- } else {
|
|
| 121 |
- newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 122 |
- } |
|
| 123 |
- |
|
| 124 |
- isDenyed = false; |
|
| 125 |
- for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 126 |
- if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 127 |
- isDenyed = true; |
|
| 128 |
- break; |
|
| 129 |
- } |
|
| 130 |
- } |
|
| 131 |
- if (isDenyed) {
|
|
| 132 |
- continue; |
|
| 133 |
- } |
|
| 134 |
- |
|
| 135 |
- long _size = file.getSize(); |
|
| 136 |
- |
|
| 137 |
- if (!"".equals(orginFileName)) {
|
|
| 138 |
- filePath = storePathString + "/" + newName; |
|
| 139 |
- file.transferTo(new File(filePath)); |
|
| 140 |
- } |
|
| 141 |
- |
|
| 142 |
- fvo = new FileVO(); |
|
| 143 |
- boolean isImage = false; |
|
| 144 |
- for(int i=0; i < isImageList.length; i++) {
|
|
| 145 |
- if(fileExt.toLowerCase().equals(isImageList[i])) {
|
|
| 146 |
- isImage = true; |
|
| 147 |
- break; |
|
| 148 |
- } |
|
| 149 |
- } |
|
| 150 |
- if(isImage) {
|
|
| 151 |
- BufferedImage image = ImageIO.read(file.getInputStream()); |
|
| 152 |
- int width = image.getWidth(); |
|
| 153 |
- int height = image.getHeight(); |
|
| 154 |
- fvo.setFileImgWidth(width); |
|
| 155 |
- fvo.setFileImgHeight(height); |
|
| 156 |
- } |
|
| 157 |
- |
|
| 158 |
- fvo.setFileExtsn(fileExt); |
|
| 159 |
- fvo.setFileStreCours(storePathString); |
|
| 160 |
- fvo.setFileMg(Long.toString(_size)); |
|
| 161 |
- fvo.setOrignlFileNm(orginFileName); |
|
| 162 |
- fvo.setStreFileNm(newName); |
|
| 163 |
- fvo.setAtchFileId(atchFileIdString); |
|
| 164 |
- fvo.setFileSn(String.valueOf(fileKey)); |
|
| 165 |
- fvo.setFormNm(entry.getKey()); |
|
| 166 |
- |
|
| 167 |
- //writeFile(file, newName, storePathString); |
|
| 168 |
- result.add(fvo); |
|
| 169 |
- |
|
| 170 |
- fileKey++; |
|
| 171 |
- } |
|
| 172 |
- } catch(IllegalStateException e) {
|
|
| 173 |
- log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 174 |
- } catch(IOException e) {
|
|
| 175 |
- log.debug("IOException: "+ e.getMessage());
|
|
| 176 |
- } catch(Exception e) {
|
|
| 177 |
- log.debug("Exception: "+ e.getMessage());
|
|
| 178 |
- } |
|
| 179 |
- |
|
| 180 |
- |
|
| 181 |
- return result; |
|
| 182 |
- } |
|
| 183 |
- |
|
| 184 |
- /** |
|
| 185 |
- * Not Separater |
|
| 186 |
- * @param files |
|
| 187 |
- * @param KeyStr |
|
| 188 |
- * @param fileKeyParam |
|
| 189 |
- * @param storePath |
|
| 190 |
- * @param appendPath |
|
| 191 |
- * @return |
|
| 192 |
- * @throws Exception |
|
| 193 |
- */ |
|
| 194 |
- public List<FileVO> directParseFileInfNoSeparator(Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String storePath, String appendPath) throws Exception {
|
|
| 195 |
- int fileKey = fileKeyParam; |
|
| 196 |
- |
|
| 197 |
- String storePathString = ""; |
|
| 198 |
- String atchFileIdString = ""; |
|
| 199 |
- |
|
| 200 |
- if ("".equals(storePath) || storePath == null) {
|
|
| 201 |
- storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 202 |
- } else {
|
|
| 203 |
- storePathString = propertyService.getString(storePath); |
|
| 204 |
- } |
|
| 205 |
- |
|
| 206 |
- if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 207 |
- storePathString = storePathString + appendPath; |
|
| 208 |
- } |
|
| 209 |
- |
|
| 210 |
- File saveFolder = new File(storePathString); |
|
| 211 |
- |
|
| 212 |
- if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 213 |
- saveFolder.mkdirs(); |
|
| 214 |
- } |
|
| 215 |
- |
|
| 216 |
- List<FileVO> result = new ArrayList<FileVO>(); |
|
| 217 |
- try {
|
|
| 218 |
- Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 219 |
- MultipartFile file; |
|
| 220 |
- String filePath = ""; |
|
| 221 |
- |
|
| 222 |
- FileVO fvo; |
|
| 223 |
- |
|
| 224 |
- boolean isDenyed; |
|
| 225 |
- while (itr.hasNext()) {
|
|
| 226 |
- Entry<String, MultipartFile> entry = itr.next(); |
|
| 227 |
- |
|
| 228 |
- file = entry.getValue(); |
|
| 229 |
- String orginFileName = file.getOriginalFilename(); |
|
| 230 |
- |
|
| 231 |
- //-------------------------------------- |
|
| 232 |
- // 원 파일명이 없는 경우 처리 |
|
| 233 |
- // (첨부가 되지 않은 input file type) |
|
| 234 |
- //-------------------------------------- |
|
| 235 |
- if ("".equals(orginFileName)) {
|
|
| 236 |
- continue; |
|
| 237 |
- } |
|
| 238 |
- ////------------------------------------ |
|
| 239 |
- |
|
| 240 |
- String newName = ""; |
|
| 241 |
- String fileExt = ""; |
|
| 242 |
- int index = orginFileName.lastIndexOf(".");
|
|
| 243 |
- if(index != -1) {
|
|
| 244 |
- fileExt = orginFileName.substring(index + 1); |
|
| 245 |
- newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey + "." + fileExt; |
|
| 246 |
- } else {
|
|
| 247 |
- newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 248 |
- } |
|
| 249 |
- |
|
| 250 |
- isDenyed = false; |
|
| 251 |
- for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 252 |
- if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 253 |
- isDenyed = true; |
|
| 254 |
- break; |
|
| 255 |
- } |
|
| 256 |
- } |
|
| 257 |
- if (isDenyed) {
|
|
| 258 |
- continue; |
|
| 259 |
- } |
|
| 260 |
- |
|
| 261 |
- long _size = file.getSize(); |
|
| 262 |
- |
|
| 263 |
- if (!"".equals(orginFileName)) {
|
|
| 264 |
- filePath = storePathString + "/" + newName; |
|
| 265 |
- file.transferTo(new File(filePath)); |
|
| 266 |
- } |
|
| 267 |
- fvo = new FileVO(); |
|
| 268 |
- fvo.setFileExtsn(fileExt); |
|
| 269 |
- fvo.setFileStreCours(storePathString); |
|
| 270 |
- fvo.setFileMg(Long.toString(_size)); |
|
| 271 |
- fvo.setOrignlFileNm(orginFileName); |
|
| 272 |
- fvo.setStreFileNm(newName); |
|
| 273 |
- fvo.setAtchFileId(atchFileIdString); |
|
| 274 |
- fvo.setFileSn(String.valueOf(fileKey)); |
|
| 275 |
- fvo.setFormNm(entry.getKey()); |
|
| 276 |
- |
|
| 277 |
- //writeFile(file, newName, storePathString); |
|
| 278 |
- result.add(fvo); |
|
| 279 |
- |
|
| 280 |
- fileKey++; |
|
| 281 |
- } |
|
| 282 |
- |
|
| 283 |
- } catch(IllegalStateException e) {
|
|
| 284 |
- log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 285 |
- } catch(IOException e) {
|
|
| 286 |
- log.debug("IOException: "+ e.getMessage());
|
|
| 287 |
- } catch(Exception e) {
|
|
| 288 |
- log.debug("Exception: "+ e.getMessage());
|
|
| 289 |
- } |
|
| 290 |
- |
|
| 291 |
- return result; |
|
| 292 |
- } |
|
| 293 |
- |
|
| 294 |
- /** |
|
| 295 |
- * 일반 게시판 첨부파일에 대한 목록 정보를 취득한다. |
|
| 296 |
- * |
|
| 297 |
- * @param files |
|
| 298 |
- * @return |
|
| 299 |
- * @throws Exception |
|
| 300 |
- */ |
|
| 301 |
- public List<FileVO> parseBoardFileInf(long maxFileSize, Map<String, MultipartFile> files, int fileKeyParam, String atchFileId, String aspCode, String bbsId, String la, String lo) throws Exception {
|
|
| 302 |
- |
|
| 303 |
- return parseFileInf(maxFileSize, files, "BBS_", fileKeyParam, atchFileId, "Board.fileStorePath", aspCode + "/" + bbsId, la, lo); |
|
| 304 |
- } |
|
| 305 |
- |
|
| 306 |
- /** |
|
| 307 |
- * 양식 첨부파일에 대한 목록 정보를 취득한다. |
|
| 308 |
- * |
|
| 309 |
- * @param files |
|
| 310 |
- * @return |
|
| 311 |
- * @throws Exception |
|
| 312 |
- */ |
|
| 313 |
- public List<FileVO> parseBaseFileInf(long maxFileSize, Map<String, MultipartFile> files, int fileKeyParam, String atchFileId, String aspCode, String la, String lo) throws Exception {
|
|
| 314 |
- |
|
| 315 |
- return parseFileInf(maxFileSize, files, "BASE_", fileKeyParam, atchFileId, "Base.fileStorePath", "", la, lo); |
|
| 316 |
- } |
|
| 317 |
- |
|
| 318 |
- /** |
|
| 319 |
- * 첨부파일에 대한 목록 정보를 취득한다. |
|
| 320 |
- * |
|
| 321 |
- * @param files |
|
| 322 |
- * @return |
|
| 323 |
- * @throws Exception |
|
| 324 |
- */ |
|
| 325 |
- public List<FileVO> parseFileInf(long maxFileSize, Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String atchFileId, String storePath, String appendPath, String la, String lo) throws Exception {
|
|
| 326 |
- int fileKey = fileKeyParam; |
|
| 327 |
- |
|
| 328 |
- String storePathString = ""; |
|
| 329 |
- String atchFileIdString = ""; |
|
| 330 |
- |
|
| 331 |
- if ("".equals(storePath) || storePath == null) {
|
|
| 332 |
- storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 333 |
- } else {
|
|
| 334 |
- storePathString = propertyService.getString(storePath); |
|
| 335 |
- } |
|
| 336 |
- |
|
| 337 |
- if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 338 |
- storePathString = storePathString + "/" + appendPath; |
|
| 339 |
- } |
|
| 340 |
- |
|
| 341 |
- if ("".equals(atchFileId) || atchFileId == null) {
|
|
| 342 |
- atchFileIdString = idgenService.getNextStringId(); |
|
| 343 |
- } else {
|
|
| 344 |
- atchFileIdString = atchFileId; |
|
| 345 |
- } |
|
| 346 |
- |
|
| 347 |
- File saveFolder = new File(storePathString); |
|
| 348 |
- |
|
| 349 |
- if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 350 |
- saveFolder.mkdirs(); |
|
| 351 |
- } |
|
| 352 |
- |
|
| 353 |
- List<FileVO> result = new ArrayList<FileVO>(); |
|
| 354 |
- |
|
| 355 |
- try {
|
|
| 356 |
- |
|
| 357 |
- Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 358 |
- MultipartFile file; |
|
| 359 |
- String filePath = ""; |
|
| 360 |
- |
|
| 361 |
- FileVO fvo; |
|
| 362 |
- |
|
| 363 |
- boolean isDenyed; |
|
| 364 |
- while (itr.hasNext()) {
|
|
| 365 |
- Entry<String, MultipartFile> entry = itr.next(); |
|
| 366 |
- |
|
| 367 |
- file = entry.getValue(); |
|
| 368 |
- String orginFileName = file.getOriginalFilename(); |
|
| 369 |
- |
|
| 370 |
- //-------------------------------------- |
|
| 371 |
- // 원 파일명이 없는 경우 처리 |
|
| 372 |
- // (첨부가 되지 않은 input file type) |
|
| 373 |
- //-------------------------------------- |
|
| 374 |
- if ("".equals(orginFileName)) {
|
|
| 375 |
- continue; |
|
| 376 |
- } |
|
| 377 |
- |
|
| 378 |
- ////------------------------------------ |
|
| 379 |
- |
|
| 380 |
- String fileExt = ""; |
|
| 381 |
- int index = orginFileName.lastIndexOf(".");
|
|
| 382 |
- if(index != -1) {
|
|
| 383 |
- fileExt = orginFileName.substring(index + 1); |
|
| 384 |
- } |
|
| 385 |
- |
|
| 386 |
- isDenyed = false; |
|
| 387 |
- for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 388 |
- if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 389 |
- isDenyed = true; |
|
| 390 |
- break; |
|
| 391 |
- } |
|
| 392 |
- } |
|
| 393 |
- if (isDenyed) {
|
|
| 394 |
- continue; |
|
| 395 |
- } |
|
| 396 |
- |
|
| 397 |
- String newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 398 |
- long _size = file.getSize(); |
|
| 399 |
- if(_size > maxFileSize) {
|
|
| 400 |
- continue; |
|
| 401 |
- } |
|
| 402 |
- |
|
| 403 |
- if (!"".equals(orginFileName)) {
|
|
| 404 |
- filePath = storePathString + "/" + newName; |
|
| 405 |
- file.transferTo(new File(filePath)); |
|
| 406 |
- } |
|
| 407 |
- |
|
| 408 |
- fvo = new FileVO(); |
|
| 409 |
- fvo.setFileExtsn(fileExt); |
|
| 410 |
- fvo.setFileStreCours(storePathString); |
|
| 411 |
- fvo.setFileMg(Long.toString(_size)); |
|
| 412 |
- fvo.setOrignlFileNm(orginFileName); |
|
| 413 |
- fvo.setStreFileNm(newName); |
|
| 414 |
- fvo.setAtchFileId(atchFileIdString); |
|
| 415 |
- fvo.setFileSn(String.valueOf(fileKey)); |
|
| 416 |
- fvo.setFormNm(entry.getKey()); |
|
| 417 |
- fvo.setLa(la); |
|
| 418 |
- fvo.setLo(lo); |
|
| 419 |
- |
|
| 420 |
- //writeFile(file, newName, storePathString); |
|
| 421 |
- result.add(fvo); |
|
| 422 |
- |
|
| 423 |
- fileKey++; |
|
| 424 |
- } |
|
| 425 |
- } catch(IllegalStateException e) {
|
|
| 426 |
- log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 427 |
- } catch(IOException e) {
|
|
| 428 |
- log.debug("IOException: "+ e.getMessage());
|
|
| 429 |
- } catch(Exception e) {
|
|
| 430 |
- log.debug("Exception: "+ e.getMessage());
|
|
| 431 |
- } |
|
| 432 |
- |
|
| 433 |
- return result; |
|
| 434 |
- } |
|
| 435 |
- |
|
| 436 |
- |
|
| 437 |
- |
|
| 438 |
- /** |
|
| 439 |
- * 첨부파일에 대한 목록 정보를 취득한다. |
|
| 440 |
- * |
|
| 441 |
- * @param files |
|
| 442 |
- * @return |
|
| 443 |
- * @throws Exception |
|
| 444 |
- */ |
|
| 445 |
- public List<FileVO> parseFileInfV1(long maxFileSize, Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String atchFileId, String storePath, String storeWebPath, String appendPath) throws Exception {
|
|
| 446 |
- int fileKey = fileKeyParam; |
|
| 447 |
- |
|
| 448 |
- String storePathString = ""; |
|
| 449 |
- String storeWebPathString = ""; |
|
| 450 |
- String atchFileIdString = ""; |
|
| 451 |
- |
|
| 452 |
- if ("".equals(storePath) || storePath == null) {
|
|
| 453 |
- storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 454 |
- storeWebPathString = propertyService.getString("Globals.fileStoreWebPath");
|
|
| 455 |
- } else {
|
|
| 456 |
- storePathString = propertyService.getString(storePath); |
|
| 457 |
- storeWebPathString = propertyService.getString(storeWebPath); |
|
| 458 |
- } |
|
| 459 |
- |
|
| 460 |
- if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 461 |
- storePathString = storePathString + "/" + appendPath; |
|
| 462 |
- storeWebPathString = storeWebPathString + "/" + appendPath; |
|
| 463 |
- } |
|
| 464 |
- |
|
| 465 |
- |
|
| 466 |
- if ("".equals(atchFileId) || atchFileId == null) {
|
|
| 467 |
- atchFileIdString = idgenService.getNextStringId(); |
|
| 468 |
- } else {
|
|
| 469 |
- atchFileIdString = atchFileId; |
|
| 470 |
- } |
|
| 471 |
- |
|
| 472 |
- File saveFolder = new File(storePathString); |
|
| 473 |
- |
|
| 474 |
- if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 475 |
- saveFolder.mkdirs(); |
|
| 476 |
- } |
|
| 477 |
- |
|
| 478 |
- List<FileVO> result = new ArrayList<FileVO>(); |
|
| 479 |
- |
|
| 480 |
- try {
|
|
| 481 |
- Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 482 |
- MultipartFile file; |
|
| 483 |
- String filePath = ""; |
|
| 484 |
- |
|
| 485 |
- FileVO fvo; |
|
| 486 |
- |
|
| 487 |
- boolean isDenyed; |
|
| 488 |
- while (itr.hasNext()) {
|
|
| 489 |
- Entry<String, MultipartFile> entry = itr.next(); |
|
| 490 |
- |
|
| 491 |
- file = entry.getValue(); |
|
| 492 |
- String orginFileName = file.getOriginalFilename(); |
|
| 493 |
- |
|
| 494 |
- //-------------------------------------- |
|
| 495 |
- // 원 파일명이 없는 경우 처리 |
|
| 496 |
- // (첨부가 되지 않은 input file type) |
|
| 497 |
- //-------------------------------------- |
|
| 498 |
- if ("".equals(orginFileName)) {
|
|
| 499 |
- continue; |
|
| 500 |
- } |
|
| 501 |
- |
|
| 502 |
- ////------------------------------------ |
|
| 503 |
- |
|
| 504 |
- String fileExt = ""; |
|
| 505 |
- int index = orginFileName.lastIndexOf(".");
|
|
| 506 |
- if(index != -1) {
|
|
| 507 |
- fileExt = orginFileName.substring(index + 1); |
|
| 508 |
- } |
|
| 509 |
- |
|
| 510 |
- isDenyed = false; |
|
| 511 |
- for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 512 |
- if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 513 |
- isDenyed = true; |
|
| 514 |
- break; |
|
| 515 |
- } |
|
| 516 |
- } |
|
| 517 |
- if (isDenyed) {
|
|
| 518 |
- continue; |
|
| 519 |
- } |
|
| 520 |
- |
|
| 521 |
- String newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 522 |
- long _size = file.getSize(); |
|
| 523 |
- if(_size > maxFileSize) {
|
|
| 524 |
- continue; |
|
| 525 |
- } |
|
| 526 |
- |
|
| 527 |
- if (!"".equals(orginFileName)) {
|
|
| 528 |
- filePath = storePathString + "/" + newName; |
|
| 529 |
- file.transferTo(new File(filePath)); |
|
| 530 |
- } |
|
| 531 |
- |
|
| 532 |
- fvo = new FileVO(); |
|
| 533 |
- fvo.setFileExtsn(fileExt); |
|
| 534 |
- fvo.setFileStreCours(storePathString); |
|
| 535 |
- fvo.setFileMg(Long.toString(_size)); |
|
| 536 |
- fvo.setOrignlFileNm(orginFileName); |
|
| 537 |
- fvo.setStreFileNm(newName); |
|
| 538 |
- fvo.setAtchFileId(atchFileIdString); |
|
| 539 |
- fvo.setFileSn(String.valueOf(fileKey)); |
|
| 540 |
- fvo.setFormNm(entry.getKey()); |
|
| 541 |
- fvo.setFileStreWebCours(storeWebPathString); |
|
| 542 |
- |
|
| 543 |
- //writeFile(file, newName, storePathString); |
|
| 544 |
- result.add(fvo); |
|
| 545 |
- |
|
| 546 |
- fileKey++; |
|
| 547 |
- } |
|
| 548 |
- } catch(IllegalStateException e) {
|
|
| 549 |
- log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 550 |
- } catch(IOException e) {
|
|
| 551 |
- log.debug("IOException: "+ e.getMessage());
|
|
| 552 |
- } catch(Exception e) {
|
|
| 553 |
- log.debug("Exception: "+ e.getMessage());
|
|
| 554 |
- } |
|
| 555 |
- |
|
| 556 |
- return result; |
|
| 557 |
- } |
|
| 558 |
- |
|
| 559 |
- |
|
| 560 |
- /** |
|
| 561 |
- * 첨부파일에 대한 목록 정보를 취득한다. |
|
| 562 |
- * |
|
| 563 |
- * @param files |
|
| 564 |
- * @return |
|
| 565 |
- * @throws Exception |
|
| 566 |
- */ |
|
| 567 |
- public List<FileVO> parseFileInfV2(long maxFileSize, Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String atchFileId, String storePath, String storeWebPath, String appendPath, long maxChunkSize, long fileFullLength, long chunkFrom, long chunkTo) throws Exception {
|
|
| 568 |
- int fileKey = fileKeyParam; |
|
| 569 |
- |
|
| 570 |
- String storePathString = ""; |
|
| 571 |
- String storeWebPathString = ""; |
|
| 572 |
- String atchFileIdString = ""; |
|
| 573 |
- |
|
| 574 |
- if ("".equals(storePath) || storePath == null) {
|
|
| 575 |
- storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 576 |
- storeWebPathString = propertyService.getString("Globals.fileStoreWebPath");
|
|
| 577 |
- } else {
|
|
| 578 |
- storePathString = propertyService.getString(storePath); |
|
| 579 |
- storeWebPathString = propertyService.getString(storeWebPath); |
|
| 580 |
- } |
|
| 581 |
- |
|
| 582 |
- if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 583 |
- storePathString = storePathString + "/" + appendPath; |
|
| 584 |
- storeWebPathString = storeWebPathString + "/" + appendPath; |
|
| 585 |
- } |
|
| 586 |
- |
|
| 587 |
- |
|
| 588 |
- if ("".equals(atchFileId) || atchFileId == null) {
|
|
| 589 |
- atchFileIdString = idgenService.getNextStringId(); |
|
| 590 |
- } else {
|
|
| 591 |
- atchFileIdString = atchFileId; |
|
| 592 |
- } |
|
| 593 |
- |
|
| 594 |
- File saveFolder = new File(storePathString); |
|
| 595 |
- |
|
| 596 |
- if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 597 |
- saveFolder.mkdirs(); |
|
| 598 |
- } |
|
| 599 |
- |
|
| 600 |
- List<FileVO> result = new ArrayList<FileVO>(); |
|
| 601 |
- |
|
| 602 |
- try {
|
|
| 603 |
- Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 604 |
- MultipartFile file; |
|
| 605 |
- |
|
| 606 |
- FileVO fvo; |
|
| 607 |
- |
|
| 608 |
- boolean isDenyed; |
|
| 609 |
- while (itr.hasNext()) {
|
|
| 610 |
- Entry<String, MultipartFile> entry = itr.next(); |
|
| 611 |
- |
|
| 612 |
- file = entry.getValue(); |
|
| 613 |
- String orginFileName = file.getOriginalFilename(); |
|
| 614 |
- |
|
| 615 |
- //-------------------------------------- |
|
| 616 |
- // 원 파일명이 없는 경우 처리 |
|
| 617 |
- // (첨부가 되지 않은 input file type) |
|
| 618 |
- //-------------------------------------- |
|
| 619 |
- if ("".equals(orginFileName)) {
|
|
| 620 |
- continue; |
|
| 621 |
- } |
|
| 622 |
- |
|
| 623 |
- ////------------------------------------ |
|
| 624 |
- |
|
| 625 |
- String fileExt = ""; |
|
| 626 |
- int index = orginFileName.lastIndexOf(".");
|
|
| 627 |
- if(index != -1) {
|
|
| 628 |
- fileExt = orginFileName.substring(index + 1); |
|
| 629 |
- } |
|
| 630 |
- |
|
| 631 |
- isDenyed = false; |
|
| 632 |
- for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 633 |
- if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 634 |
- isDenyed = true; |
|
| 635 |
- break; |
|
| 636 |
- } |
|
| 637 |
- } |
|
| 638 |
- if (isDenyed) {
|
|
| 639 |
- continue; |
|
| 640 |
- } |
|
| 641 |
- |
|
| 642 |
- String newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 643 |
- String filePath = storePathString + "/" + newName; |
|
| 644 |
- |
|
| 645 |
- String tmpFileName = atchFileId + "_" + String.valueOf(orginFileName.hashCode()); |
|
| 646 |
- long _size = 0; |
|
| 647 |
- |
|
| 648 |
- boolean isChunk = fileFullLength < 0 ? false : true; |
|
| 649 |
- boolean isLastChunk = chunkTo == fileFullLength-1; |
|
| 650 |
- |
|
| 651 |
- if(isChunk) {
|
|
| 652 |
- File saveFile = new File(storePathString + "/" + tmpFileName); |
|
| 653 |
- EgovFormBasedFileUtil.saveFile(file.getInputStream(), saveFile, true); |
|
| 654 |
- |
|
| 655 |
- if(isLastChunk) {
|
|
| 656 |
- _size = saveFile.length(); |
|
| 657 |
- EgovFormBasedFileUtil.renameFile(storePathString, tmpFileName, newName); |
|
| 658 |
- } else {
|
|
| 659 |
- continue; |
|
| 660 |
- } |
|
| 661 |
- } else {
|
|
| 662 |
- _size = file.getSize(); |
|
| 663 |
- file.transferTo(new File(filePath)); |
|
| 664 |
- } |
|
| 665 |
- |
|
| 666 |
- if(_size > maxFileSize) {
|
|
| 667 |
- File delFile = new File(filePath); |
|
| 668 |
- if(delFile.exists() && delFile.isFile()) {
|
|
| 669 |
- delFile.delete(); |
|
| 670 |
- } |
|
| 671 |
- continue; |
|
| 672 |
- } |
|
| 673 |
- |
|
| 674 |
- fvo = new FileVO(); |
|
| 675 |
- fvo.setFileExtsn(fileExt); |
|
| 676 |
- fvo.setFileStreCours(storePathString); |
|
| 677 |
- fvo.setFileMg(Long.toString(_size)); |
|
| 678 |
- fvo.setOrignlFileNm(orginFileName); |
|
| 679 |
- fvo.setStreFileNm(newName); |
|
| 680 |
- fvo.setAtchFileId(atchFileIdString); |
|
| 681 |
- fvo.setFileSn(String.valueOf(fileKey)); |
|
| 682 |
- fvo.setFormNm(entry.getKey()); |
|
| 683 |
- fvo.setFileStreWebCours(storeWebPathString); |
|
| 684 |
- |
|
| 685 |
- //writeFile(file, newName, storePathString); |
|
| 686 |
- result.add(fvo); |
|
| 687 |
- |
|
| 688 |
- fileKey++; |
|
| 689 |
- } |
|
| 690 |
- } catch(IllegalStateException e) {
|
|
| 691 |
- log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 692 |
- } catch(IOException e) {
|
|
| 693 |
- log.debug("IOException: "+ e.getMessage());
|
|
| 694 |
- } catch(Exception e) {
|
|
| 695 |
- log.debug("Exception: "+ e.getMessage());
|
|
| 696 |
- } |
|
| 697 |
- |
|
| 698 |
- return result; |
|
| 699 |
- } |
|
| 700 |
- |
|
| 701 |
- /** |
|
| 702 |
- * 첨부파일을 서버에 저장한다. |
|
| 703 |
- * |
|
| 704 |
- * @param file |
|
| 705 |
- * @param newName |
|
| 706 |
- * @param stordFilePath |
|
| 707 |
- * @throws Exception |
|
| 708 |
- */ |
|
| 709 |
- protected void writeUploadedFile(MultipartFile file, String newName, String stordFilePath) throws Exception {
|
|
| 710 |
- InputStream stream = null; |
|
| 711 |
- OutputStream bos = null; |
|
| 712 |
- |
|
| 713 |
- try {
|
|
| 714 |
- stream = file.getInputStream(); |
|
| 715 |
- File cFile = new File(stordFilePath); |
|
| 716 |
- |
|
| 717 |
- if (!cFile.isDirectory()) {
|
|
| 718 |
- boolean _flag = cFile.mkdir(); |
|
| 719 |
- if (!_flag) {
|
|
| 720 |
- throw new IOException("Directory creation Failed ");
|
|
| 721 |
- } |
|
| 722 |
- } |
|
| 723 |
- |
|
| 724 |
- bos = new FileOutputStream(stordFilePath + "/" + newName); |
|
| 725 |
- |
|
| 726 |
- int bytesRead = 0; |
|
| 727 |
- byte[] buffer = new byte[BUFF_SIZE]; |
|
| 728 |
- |
|
| 729 |
- while ((bytesRead = stream.read(buffer, 0, BUFF_SIZE)) != -1) {
|
|
| 730 |
- bos.write(buffer, 0, bytesRead); |
|
| 731 |
- } |
|
| 732 |
- } catch (FileNotFoundException fnfe) {
|
|
| 733 |
- log.error(fnfe); |
|
| 734 |
- } catch (IOException ioe) {
|
|
| 735 |
- log.error(ioe); |
|
| 736 |
- } catch (Exception e) {
|
|
| 737 |
- log.error(e); |
|
| 738 |
- } finally {
|
|
| 739 |
- if (bos != null) {
|
|
| 740 |
- try {
|
|
| 741 |
- bos.close(); |
|
| 742 |
- } catch (IOException ignore) {
|
|
| 743 |
- log.debug("IGNORED: " + ignore.getMessage());
|
|
| 744 |
- } |
|
| 745 |
- } |
|
| 746 |
- if (stream != null) {
|
|
| 747 |
- try {
|
|
| 748 |
- stream.close(); |
|
| 749 |
- } catch (IOException ignore) {
|
|
| 750 |
- log.debug("IGNORED: " + ignore.getMessage());
|
|
| 751 |
- } |
|
| 752 |
- } |
|
| 753 |
- } |
|
| 754 |
- } |
|
| 755 |
- |
|
| 756 |
- /** |
|
| 757 |
- * 대용량파일을 Upload 처리한다. |
|
| 758 |
- * |
|
| 759 |
- * @param request |
|
| 760 |
- * @param where |
|
| 761 |
- * @param maxFileSize |
|
| 762 |
- * @return |
|
| 763 |
- * @throws Exception |
|
| 764 |
- */ |
|
| 765 |
- public FileVO uploadStreamLongFiles(InputStream is, FileVO fileVO, boolean firstChunk, boolean lastChunk) throws Exception {
|
|
| 766 |
- |
|
| 767 |
- File file = new File(fileVO.getFileStreCours() + "/" + fileVO.getStreFileNm()); |
|
| 768 |
- |
|
| 769 |
- if(firstChunk) {
|
|
| 770 |
- String fileExt = ""; |
|
| 771 |
- int index = fileVO.getOrignlFileNm().lastIndexOf(".");
|
|
| 772 |
- if(index != -1) {
|
|
| 773 |
- fileExt = fileVO.getOrignlFileNm().substring(index + 1); |
|
| 774 |
- } |
|
| 775 |
- boolean isDenyed = false; |
|
| 776 |
- for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 777 |
- if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 778 |
- isDenyed = true; |
|
| 779 |
- break; |
|
| 780 |
- } |
|
| 781 |
- } |
|
| 782 |
- if (isDenyed) {
|
|
| 783 |
- //throw new IOException("등록할 수 없는 파일 종류입니다.");
|
|
| 784 |
- return null; |
|
| 785 |
- } |
|
| 786 |
- |
|
| 787 |
- if (! file.getParentFile().exists()) {
|
|
| 788 |
- file.getParentFile().mkdirs(); |
|
| 789 |
- } |
|
| 790 |
- } |
|
| 791 |
- |
|
| 792 |
- Exception proEx = null; |
|
| 793 |
- OutputStream os = null; |
|
| 794 |
- try {
|
|
| 795 |
- os = new FileOutputStream(file, true); |
|
| 796 |
- |
|
| 797 |
- int bytesRead = 0; |
|
| 798 |
- byte[] buffer = new byte[BUFF_SIZE]; |
|
| 799 |
- |
|
| 800 |
- while ((bytesRead = is.read(buffer, 0, BUFF_SIZE)) != -1) {
|
|
| 801 |
- os.write(buffer, 0, bytesRead); |
|
| 802 |
- } |
|
| 803 |
- } catch (FileNotFoundException ex) {
|
|
| 804 |
- proEx = ex; |
|
| 805 |
- } catch (IOException ex) {
|
|
| 806 |
- proEx = ex; |
|
| 807 |
- } catch(Exception ex) {
|
|
| 808 |
- proEx = ex; |
|
| 809 |
- } finally {
|
|
| 810 |
- if (os != null) {
|
|
| 811 |
- os.close(); |
|
| 812 |
- } |
|
| 813 |
- } |
|
| 814 |
- |
|
| 815 |
- if(proEx != null) {
|
|
| 816 |
- throw proEx; |
|
| 817 |
- } |
|
| 818 |
- |
|
| 819 |
- if(lastChunk) {
|
|
| 820 |
- |
|
| 821 |
- String fileExt = ""; |
|
| 822 |
- int index = fileVO.getOrignlFileNm().lastIndexOf(".");
|
|
| 823 |
- if(index != -1) {
|
|
| 824 |
- fileExt = fileVO.getOrignlFileNm().substring(index + 1); |
|
| 825 |
- } |
|
| 826 |
- |
|
| 827 |
- fileVO.setFileExtsn(fileExt); |
|
| 828 |
- fileVO.setFileMg(Long.toString(file.length())); |
|
| 829 |
- } |
|
| 830 |
- |
|
| 831 |
- return fileVO; |
|
| 832 |
- } |
|
| 833 |
- |
|
| 834 |
- public String selectFileBassCours() {
|
|
| 835 |
- java.util.Calendar cal = java.util.Calendar.getInstance(); |
|
| 836 |
- int iYear = cal.get(java.util.Calendar.YEAR); |
|
| 837 |
- int iMonth = cal.get(java.util.Calendar.MONTH); |
|
| 838 |
- int iDate = cal.get(java.util.Calendar.DATE); |
|
| 839 |
- String sYear = Integer.toString(iYear); |
|
| 840 |
- String sMonth = Integer.toString(iMonth+1).length() == 1 ? "0" + Integer.toString(iMonth+1) : Integer.toString(iMonth+1); |
|
| 841 |
- String sDay = Integer.toString(iDate).length() == 1 ? "0" + Integer.toString(iDate) : Integer.toString(iDate); |
|
| 842 |
- |
|
| 843 |
- return "/" + sYear + "/" + sMonth + "/" + sDay; |
|
| 844 |
- } |
|
| 845 |
- |
|
| 846 |
- /** |
|
| 847 |
- * 다이렉트 첨부파일에 대한 목록 정보를 취득한다. |
|
| 848 |
- * |
|
| 849 |
- * @param files |
|
| 850 |
- * @return |
|
| 851 |
- * @throws Exception |
|
| 852 |
- */ |
|
| 853 |
- public List<FileVO> directParseFileInf(Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String storePath, String storeWebPath, String appendPath) throws Exception {
|
|
| 854 |
- int fileKey = fileKeyParam; |
|
| 855 |
- |
|
| 856 |
- String storePathString = ""; |
|
| 857 |
- String storeWebPathString = ""; |
|
| 858 |
- String atchFileIdString = ""; |
|
| 859 |
- |
|
| 860 |
- if ("".equals(storePath) || storePath == null) {
|
|
| 861 |
- storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 862 |
- storeWebPathString = propertyService.getString("Globals.fileStoreWebPath");
|
|
| 863 |
- } else {
|
|
| 864 |
- storePathString = propertyService.getString(storePath); |
|
| 865 |
- storeWebPathString = propertyService.getString(storeWebPath); |
|
| 866 |
- } |
|
| 867 |
- |
|
| 868 |
- if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 869 |
- storePathString = storePathString + appendPath; |
|
| 870 |
- storeWebPathString = storeWebPathString + appendPath; |
|
| 871 |
- } |
|
| 872 |
- |
|
| 873 |
- File saveFolder = new File(storePathString); |
|
| 874 |
- |
|
| 875 |
- if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 876 |
- saveFolder.mkdirs(); |
|
| 877 |
- } |
|
| 878 |
- |
|
| 879 |
- Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 880 |
- MultipartFile file; |
|
| 881 |
- String filePath = ""; |
|
| 882 |
- List<FileVO> result = new ArrayList<FileVO>(); |
|
| 883 |
- FileVO fvo; |
|
| 884 |
- |
|
| 885 |
- boolean isDenyed; |
|
| 886 |
- while (itr.hasNext()) {
|
|
| 887 |
- Entry<String, MultipartFile> entry = itr.next(); |
|
| 888 |
- |
|
| 889 |
- file = entry.getValue(); |
|
| 890 |
- String orginFileName = file.getOriginalFilename(); |
|
| 891 |
- |
|
| 892 |
- //-------------------------------------- |
|
| 893 |
- // 원 파일명이 없는 경우 처리 |
|
| 894 |
- // (첨부가 되지 않은 input file type) |
|
| 895 |
- //-------------------------------------- |
|
| 896 |
- if ("".equals(orginFileName)) {
|
|
| 897 |
- continue; |
|
| 898 |
- } |
|
| 899 |
- ////------------------------------------ |
|
| 900 |
- |
|
| 901 |
- String newName = ""; |
|
| 902 |
- String fileExt = ""; |
|
| 903 |
- int index = orginFileName.lastIndexOf(".");
|
|
| 904 |
- if(index != -1) {
|
|
| 905 |
- fileExt = orginFileName.substring(index + 1); |
|
| 906 |
- newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey + "." + fileExt; |
|
| 907 |
- } else {
|
|
| 908 |
- newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 909 |
- } |
|
| 910 |
- |
|
| 911 |
- isDenyed = false; |
|
| 912 |
- for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 913 |
- if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 914 |
- isDenyed = true; |
|
| 915 |
- break; |
|
| 916 |
- } |
|
| 917 |
- } |
|
| 918 |
- if (isDenyed) {
|
|
| 919 |
- continue; |
|
| 920 |
- } |
|
| 921 |
- |
|
| 922 |
- long _size = file.getSize(); |
|
| 923 |
- |
|
| 924 |
- if (!"".equals(orginFileName)) {
|
|
| 925 |
- filePath = storePathString + "/" + newName; |
|
| 926 |
- file.transferTo(new File(filePath)); |
|
| 927 |
- } |
|
| 928 |
- fvo = new FileVO(); |
|
| 929 |
- fvo.setFileExtsn(fileExt); |
|
| 930 |
- fvo.setFileStreCours(storeWebPathString); |
|
| 931 |
- //fvo.setFileStreCours(storePathString); |
|
| 932 |
- //fvo.setFileStreWebCours(storeWebPathString); |
|
| 933 |
- fvo.setFileMg(Long.toString(_size)); |
|
| 934 |
- fvo.setOrignlFileNm(orginFileName); |
|
| 935 |
- fvo.setStreFileNm(newName); |
|
| 936 |
- fvo.setAtchFileId(atchFileIdString); |
|
| 937 |
- fvo.setFileSn(String.valueOf(fileKey)); |
|
| 938 |
- fvo.setFormNm(entry.getKey()); |
|
| 939 |
- |
|
| 940 |
- //writeFile(file, newName, storePathString); |
|
| 941 |
- result.add(fvo); |
|
| 942 |
- |
|
| 943 |
- fileKey++; |
|
| 944 |
- } |
|
| 945 |
- |
|
| 946 |
- return result; |
|
| 947 |
- } |
|
| 948 |
-} |
|
| 1 |
+package egovframework.com.cmm.service; |
|
| 2 |
+ |
|
| 3 |
+import java.awt.image.BufferedImage; |
|
| 4 |
+import java.io.File; |
|
| 5 |
+import java.io.FileNotFoundException; |
|
| 6 |
+import java.io.FileOutputStream; |
|
| 7 |
+import java.io.IOException; |
|
| 8 |
+import java.io.InputStream; |
|
| 9 |
+import java.io.OutputStream; |
|
| 10 |
+import java.util.ArrayList; |
|
| 11 |
+import java.util.Iterator; |
|
| 12 |
+import java.util.List; |
|
| 13 |
+import java.util.Map; |
|
| 14 |
+import java.util.Map.Entry; |
|
| 15 |
+ |
|
| 16 |
+import javax.annotation.Resource; |
|
| 17 |
+import javax.imageio.ImageIO; |
|
| 18 |
+ |
|
| 19 |
+import org.apache.log4j.Logger; |
|
| 20 |
+import org.springframework.stereotype.Component; |
|
| 21 |
+import org.springframework.web.multipart.MultipartFile; |
|
| 22 |
+ |
|
| 23 |
+import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; |
|
| 24 |
+import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 25 |
+import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
|
| 26 |
+import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 27 |
+ |
|
| 28 |
+//파일 관련 유틸리티 |
|
| 29 |
+@Component("fileMngUtil")
|
|
| 30 |
+public class FileMngUtil {
|
|
| 31 |
+ |
|
| 32 |
+ public static final int BUFF_SIZE = 4096; |
|
| 33 |
+ |
|
| 34 |
+ @Resource(name = "propertiesService") |
|
| 35 |
+ protected EgovPropertyService propertyService; |
|
| 36 |
+ |
|
| 37 |
+ @Resource(name = "egovFileIdGnrService") |
|
| 38 |
+ private EgovIdGnrService idgenService; |
|
| 39 |
+ |
|
| 40 |
+ Logger log = Logger.getLogger(this.getClass()); |
|
| 41 |
+ |
|
| 42 |
+ public static String[] denyFileExtentionList = new String[]{"sh", "exe", "jsp", "asp", "php", "js", "jar", "jspx"};
|
|
| 43 |
+ public static String[] isImageList = new String[] {"jpg", "jpeg", "gif", "png", "bmp"};
|
|
| 44 |
+ |
|
| 45 |
+ /** |
|
| 46 |
+ * 다이렉트 첨부파일에 대한 목록 정보를 취득한다. |
|
| 47 |
+ * |
|
| 48 |
+ * @param files |
|
| 49 |
+ * @return |
|
| 50 |
+ * @throws Exception |
|
| 51 |
+ */ |
|
| 52 |
+ public List<FileVO> directParseFileInf(Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String storePath, String appendPath) {
|
|
| 53 |
+ int fileKey = fileKeyParam; |
|
| 54 |
+ |
|
| 55 |
+ String storePathString = ""; |
|
| 56 |
+ String atchFileIdString = ""; |
|
| 57 |
+ |
|
| 58 |
+ if ("".equals(storePath) || storePath == null) {
|
|
| 59 |
+ storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 60 |
+ } else {
|
|
| 61 |
+ storePathString = propertyService.getString(storePath); |
|
| 62 |
+ } |
|
| 63 |
+ |
|
| 64 |
+ if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 65 |
+ storePathString = storePathString + "/" + appendPath; |
|
| 66 |
+ } |
|
| 67 |
+ |
|
| 68 |
+ File saveFolder = new File(storePathString); |
|
| 69 |
+ |
|
| 70 |
+ if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 71 |
+ saveFolder.mkdirs(); |
|
| 72 |
+ } |
|
| 73 |
+ |
|
| 74 |
+ List<FileVO> result = new ArrayList<FileVO>(); |
|
| 75 |
+ |
|
| 76 |
+ try {
|
|
| 77 |
+ Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 78 |
+ MultipartFile file; |
|
| 79 |
+ String filePath = ""; |
|
| 80 |
+ |
|
| 81 |
+ FileVO fvo; |
|
| 82 |
+ |
|
| 83 |
+ boolean isDenyed; |
|
| 84 |
+ while (itr.hasNext()) {
|
|
| 85 |
+ Entry<String, MultipartFile> entry = itr.next(); |
|
| 86 |
+ |
|
| 87 |
+ file = entry.getValue(); |
|
| 88 |
+ String orginFileName = file.getOriginalFilename(); |
|
| 89 |
+ |
|
| 90 |
+ //-------------------------------------- |
|
| 91 |
+ // 원 파일명이 없는 경우 처리 |
|
| 92 |
+ // (첨부가 되지 않은 input file type) |
|
| 93 |
+ //-------------------------------------- |
|
| 94 |
+ if ("".equals(orginFileName)) {
|
|
| 95 |
+ continue; |
|
| 96 |
+ } |
|
| 97 |
+ ////------------------------------------ |
|
| 98 |
+ |
|
| 99 |
+ String newName = ""; |
|
| 100 |
+ String fileExt = ""; |
|
| 101 |
+ int index = orginFileName.lastIndexOf(".");
|
|
| 102 |
+ if(index != -1) {
|
|
| 103 |
+ fileExt = orginFileName.substring(index + 1); |
|
| 104 |
+ newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey + "." + fileExt; |
|
| 105 |
+ } else {
|
|
| 106 |
+ newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 107 |
+ } |
|
| 108 |
+ |
|
| 109 |
+ isDenyed = false; |
|
| 110 |
+ for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 111 |
+ if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 112 |
+ isDenyed = true; |
|
| 113 |
+ break; |
|
| 114 |
+ } |
|
| 115 |
+ } |
|
| 116 |
+ if (isDenyed) {
|
|
| 117 |
+ continue; |
|
| 118 |
+ } |
|
| 119 |
+ |
|
| 120 |
+ long _size = file.getSize(); |
|
| 121 |
+ |
|
| 122 |
+ if (!"".equals(orginFileName)) {
|
|
| 123 |
+ filePath = storePathString + "/" + newName; |
|
| 124 |
+ file.transferTo(new File(filePath)); |
|
| 125 |
+ } |
|
| 126 |
+ |
|
| 127 |
+ fvo = new FileVO(); |
|
| 128 |
+ boolean isImage = false; |
|
| 129 |
+ for(int i=0; i < isImageList.length; i++) {
|
|
| 130 |
+ if(fileExt.toLowerCase().equals(isImageList[i])) {
|
|
| 131 |
+ isImage = true; |
|
| 132 |
+ break; |
|
| 133 |
+ } |
|
| 134 |
+ } |
|
| 135 |
+ if(isImage) {
|
|
| 136 |
+ BufferedImage image = ImageIO.read(file.getInputStream()); |
|
| 137 |
+ int width = image.getWidth(); |
|
| 138 |
+ int height = image.getHeight(); |
|
| 139 |
+ fvo.setFileImgWidth(width); |
|
| 140 |
+ fvo.setFileImgHeight(height); |
|
| 141 |
+ } |
|
| 142 |
+ |
|
| 143 |
+ fvo.setFileExtsn(fileExt); |
|
| 144 |
+ fvo.setFileStreCours(storePathString); |
|
| 145 |
+ fvo.setFileMg(Long.toString(_size)); |
|
| 146 |
+ fvo.setOrignlFileNm(orginFileName); |
|
| 147 |
+ fvo.setStreFileNm(newName); |
|
| 148 |
+ fvo.setAtchFileId(atchFileIdString); |
|
| 149 |
+ fvo.setFileSn(String.valueOf(fileKey)); |
|
| 150 |
+ fvo.setFormNm(entry.getKey()); |
|
| 151 |
+ |
|
| 152 |
+ //writeFile(file, newName, storePathString); |
|
| 153 |
+ result.add(fvo); |
|
| 154 |
+ |
|
| 155 |
+ fileKey++; |
|
| 156 |
+ } |
|
| 157 |
+ } catch(IllegalStateException e) {
|
|
| 158 |
+ log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 159 |
+ } catch(IOException e) {
|
|
| 160 |
+ log.debug("IOException: "+ e.getMessage());
|
|
| 161 |
+ } catch(Exception e) {
|
|
| 162 |
+ log.debug("Exception: "+ e.getMessage());
|
|
| 163 |
+ } |
|
| 164 |
+ |
|
| 165 |
+ |
|
| 166 |
+ return result; |
|
| 167 |
+ } |
|
| 168 |
+ |
|
| 169 |
+ /** |
|
| 170 |
+ * Not Separater |
|
| 171 |
+ * @param files |
|
| 172 |
+ * @param KeyStr |
|
| 173 |
+ * @param fileKeyParam |
|
| 174 |
+ * @param storePath |
|
| 175 |
+ * @param appendPath |
|
| 176 |
+ * @return |
|
| 177 |
+ * @throws Exception |
|
| 178 |
+ */ |
|
| 179 |
+ public List<FileVO> directParseFileInfNoSeparator(Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String storePath, String appendPath) throws Exception {
|
|
| 180 |
+ int fileKey = fileKeyParam; |
|
| 181 |
+ |
|
| 182 |
+ String storePathString = ""; |
|
| 183 |
+ String atchFileIdString = ""; |
|
| 184 |
+ |
|
| 185 |
+ if ("".equals(storePath) || storePath == null) {
|
|
| 186 |
+ storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 187 |
+ } else {
|
|
| 188 |
+ storePathString = propertyService.getString(storePath); |
|
| 189 |
+ } |
|
| 190 |
+ |
|
| 191 |
+ if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 192 |
+ storePathString = storePathString + appendPath; |
|
| 193 |
+ } |
|
| 194 |
+ |
|
| 195 |
+ File saveFolder = new File(storePathString); |
|
| 196 |
+ |
|
| 197 |
+ if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 198 |
+ saveFolder.mkdirs(); |
|
| 199 |
+ } |
|
| 200 |
+ |
|
| 201 |
+ List<FileVO> result = new ArrayList<FileVO>(); |
|
| 202 |
+ try {
|
|
| 203 |
+ Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 204 |
+ MultipartFile file; |
|
| 205 |
+ String filePath = ""; |
|
| 206 |
+ |
|
| 207 |
+ FileVO fvo; |
|
| 208 |
+ |
|
| 209 |
+ boolean isDenyed; |
|
| 210 |
+ while (itr.hasNext()) {
|
|
| 211 |
+ Entry<String, MultipartFile> entry = itr.next(); |
|
| 212 |
+ |
|
| 213 |
+ file = entry.getValue(); |
|
| 214 |
+ String orginFileName = file.getOriginalFilename(); |
|
| 215 |
+ |
|
| 216 |
+ //-------------------------------------- |
|
| 217 |
+ // 원 파일명이 없는 경우 처리 |
|
| 218 |
+ // (첨부가 되지 않은 input file type) |
|
| 219 |
+ //-------------------------------------- |
|
| 220 |
+ if ("".equals(orginFileName)) {
|
|
| 221 |
+ continue; |
|
| 222 |
+ } |
|
| 223 |
+ ////------------------------------------ |
|
| 224 |
+ |
|
| 225 |
+ String newName = ""; |
|
| 226 |
+ String fileExt = ""; |
|
| 227 |
+ int index = orginFileName.lastIndexOf(".");
|
|
| 228 |
+ if(index != -1) {
|
|
| 229 |
+ fileExt = orginFileName.substring(index + 1); |
|
| 230 |
+ newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey + "." + fileExt; |
|
| 231 |
+ } else {
|
|
| 232 |
+ newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 233 |
+ } |
|
| 234 |
+ |
|
| 235 |
+ isDenyed = false; |
|
| 236 |
+ for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 237 |
+ if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 238 |
+ isDenyed = true; |
|
| 239 |
+ break; |
|
| 240 |
+ } |
|
| 241 |
+ } |
|
| 242 |
+ if (isDenyed) {
|
|
| 243 |
+ continue; |
|
| 244 |
+ } |
|
| 245 |
+ |
|
| 246 |
+ long _size = file.getSize(); |
|
| 247 |
+ |
|
| 248 |
+ if (!"".equals(orginFileName)) {
|
|
| 249 |
+ filePath = storePathString + "/" + newName; |
|
| 250 |
+ file.transferTo(new File(filePath)); |
|
| 251 |
+ } |
|
| 252 |
+ fvo = new FileVO(); |
|
| 253 |
+ fvo.setFileExtsn(fileExt); |
|
| 254 |
+ fvo.setFileStreCours(storePathString); |
|
| 255 |
+ fvo.setFileMg(Long.toString(_size)); |
|
| 256 |
+ fvo.setOrignlFileNm(orginFileName); |
|
| 257 |
+ fvo.setStreFileNm(newName); |
|
| 258 |
+ fvo.setAtchFileId(atchFileIdString); |
|
| 259 |
+ fvo.setFileSn(String.valueOf(fileKey)); |
|
| 260 |
+ fvo.setFormNm(entry.getKey()); |
|
| 261 |
+ |
|
| 262 |
+ //writeFile(file, newName, storePathString); |
|
| 263 |
+ result.add(fvo); |
|
| 264 |
+ |
|
| 265 |
+ fileKey++; |
|
| 266 |
+ } |
|
| 267 |
+ |
|
| 268 |
+ } catch(IllegalStateException e) {
|
|
| 269 |
+ log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 270 |
+ } catch(IOException e) {
|
|
| 271 |
+ log.debug("IOException: "+ e.getMessage());
|
|
| 272 |
+ } catch(Exception e) {
|
|
| 273 |
+ log.debug("Exception: "+ e.getMessage());
|
|
| 274 |
+ } |
|
| 275 |
+ |
|
| 276 |
+ return result; |
|
| 277 |
+ } |
|
| 278 |
+ |
|
| 279 |
+ /** |
|
| 280 |
+ * 일반 게시판 첨부파일에 대한 목록 정보를 취득한다. |
|
| 281 |
+ * |
|
| 282 |
+ * @param files |
|
| 283 |
+ * @return |
|
| 284 |
+ * @throws Exception |
|
| 285 |
+ */ |
|
| 286 |
+ public List<FileVO> parseBoardFileInf(long maxFileSize, Map<String, MultipartFile> files, int fileKeyParam, String atchFileId, String aspCode, String bbsId, String la, String lo) throws Exception {
|
|
| 287 |
+ |
|
| 288 |
+ return parseFileInf(maxFileSize, files, "BBS_", fileKeyParam, atchFileId, "Board.fileStorePath", aspCode + "/" + bbsId, la, lo); |
|
| 289 |
+ } |
|
| 290 |
+ |
|
| 291 |
+ /** |
|
| 292 |
+ * 양식 첨부파일에 대한 목록 정보를 취득한다. |
|
| 293 |
+ * |
|
| 294 |
+ * @param files |
|
| 295 |
+ * @return |
|
| 296 |
+ * @throws Exception |
|
| 297 |
+ */ |
|
| 298 |
+ public List<FileVO> parseBaseFileInf(long maxFileSize, Map<String, MultipartFile> files, int fileKeyParam, String atchFileId, String aspCode, String la, String lo) throws Exception {
|
|
| 299 |
+ |
|
| 300 |
+ return parseFileInf(maxFileSize, files, "BASE_", fileKeyParam, atchFileId, "Base.fileStorePath", "", la, lo); |
|
| 301 |
+ } |
|
| 302 |
+ |
|
| 303 |
+ /** |
|
| 304 |
+ * 첨부파일에 대한 목록 정보를 취득한다. |
|
| 305 |
+ * |
|
| 306 |
+ * @param files |
|
| 307 |
+ * @return |
|
| 308 |
+ * @throws Exception |
|
| 309 |
+ */ |
|
| 310 |
+ public List<FileVO> parseFileInf(long maxFileSize, Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String atchFileId, String storePath, String appendPath, String la, String lo) throws Exception {
|
|
| 311 |
+ int fileKey = fileKeyParam; |
|
| 312 |
+ |
|
| 313 |
+ String storePathString = ""; |
|
| 314 |
+ String atchFileIdString = ""; |
|
| 315 |
+ |
|
| 316 |
+ if ("".equals(storePath) || storePath == null) {
|
|
| 317 |
+ storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 318 |
+ } else {
|
|
| 319 |
+ storePathString = propertyService.getString(storePath); |
|
| 320 |
+ } |
|
| 321 |
+ |
|
| 322 |
+ if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 323 |
+ storePathString = storePathString + "/" + appendPath; |
|
| 324 |
+ } |
|
| 325 |
+ |
|
| 326 |
+ if ("".equals(atchFileId) || atchFileId == null) {
|
|
| 327 |
+ atchFileIdString = idgenService.getNextStringId(); |
|
| 328 |
+ } else {
|
|
| 329 |
+ atchFileIdString = atchFileId; |
|
| 330 |
+ } |
|
| 331 |
+ |
|
| 332 |
+ File saveFolder = new File(storePathString); |
|
| 333 |
+ |
|
| 334 |
+ if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 335 |
+ saveFolder.mkdirs(); |
|
| 336 |
+ } |
|
| 337 |
+ |
|
| 338 |
+ List<FileVO> result = new ArrayList<FileVO>(); |
|
| 339 |
+ |
|
| 340 |
+ try {
|
|
| 341 |
+ |
|
| 342 |
+ Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 343 |
+ MultipartFile file; |
|
| 344 |
+ String filePath = ""; |
|
| 345 |
+ |
|
| 346 |
+ FileVO fvo; |
|
| 347 |
+ |
|
| 348 |
+ boolean isDenyed; |
|
| 349 |
+ while (itr.hasNext()) {
|
|
| 350 |
+ Entry<String, MultipartFile> entry = itr.next(); |
|
| 351 |
+ |
|
| 352 |
+ file = entry.getValue(); |
|
| 353 |
+ String orginFileName = file.getOriginalFilename(); |
|
| 354 |
+ |
|
| 355 |
+ //-------------------------------------- |
|
| 356 |
+ // 원 파일명이 없는 경우 처리 |
|
| 357 |
+ // (첨부가 되지 않은 input file type) |
|
| 358 |
+ //-------------------------------------- |
|
| 359 |
+ if ("".equals(orginFileName)) {
|
|
| 360 |
+ continue; |
|
| 361 |
+ } |
|
| 362 |
+ |
|
| 363 |
+ ////------------------------------------ |
|
| 364 |
+ |
|
| 365 |
+ String fileExt = ""; |
|
| 366 |
+ int index = orginFileName.lastIndexOf(".");
|
|
| 367 |
+ if(index != -1) {
|
|
| 368 |
+ fileExt = orginFileName.substring(index + 1); |
|
| 369 |
+ } |
|
| 370 |
+ |
|
| 371 |
+ isDenyed = false; |
|
| 372 |
+ for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 373 |
+ if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 374 |
+ isDenyed = true; |
|
| 375 |
+ break; |
|
| 376 |
+ } |
|
| 377 |
+ } |
|
| 378 |
+ if (isDenyed) {
|
|
| 379 |
+ continue; |
|
| 380 |
+ } |
|
| 381 |
+ |
|
| 382 |
+ String newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 383 |
+ long _size = file.getSize(); |
|
| 384 |
+ if(_size > maxFileSize) {
|
|
| 385 |
+ continue; |
|
| 386 |
+ } |
|
| 387 |
+ |
|
| 388 |
+ if (!"".equals(orginFileName)) {
|
|
| 389 |
+ filePath = storePathString + "/" + newName; |
|
| 390 |
+ file.transferTo(new File(filePath)); |
|
| 391 |
+ } |
|
| 392 |
+ |
|
| 393 |
+ fvo = new FileVO(); |
|
| 394 |
+ fvo.setFileExtsn(fileExt); |
|
| 395 |
+ fvo.setFileStreCours(storePathString); |
|
| 396 |
+ fvo.setFileMg(Long.toString(_size)); |
|
| 397 |
+ fvo.setOrignlFileNm(orginFileName); |
|
| 398 |
+ fvo.setStreFileNm(newName); |
|
| 399 |
+ fvo.setAtchFileId(atchFileIdString); |
|
| 400 |
+ fvo.setFileSn(String.valueOf(fileKey)); |
|
| 401 |
+ fvo.setFormNm(entry.getKey()); |
|
| 402 |
+ fvo.setLa(la); |
|
| 403 |
+ fvo.setLo(lo); |
|
| 404 |
+ |
|
| 405 |
+ //writeFile(file, newName, storePathString); |
|
| 406 |
+ result.add(fvo); |
|
| 407 |
+ |
|
| 408 |
+ fileKey++; |
|
| 409 |
+ } |
|
| 410 |
+ } catch(IllegalStateException e) {
|
|
| 411 |
+ log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 412 |
+ } catch(IOException e) {
|
|
| 413 |
+ log.debug("IOException: "+ e.getMessage());
|
|
| 414 |
+ } catch(Exception e) {
|
|
| 415 |
+ log.debug("Exception: "+ e.getMessage());
|
|
| 416 |
+ } |
|
| 417 |
+ |
|
| 418 |
+ return result; |
|
| 419 |
+ } |
|
| 420 |
+ |
|
| 421 |
+ |
|
| 422 |
+ |
|
| 423 |
+ /** |
|
| 424 |
+ * 첨부파일에 대한 목록 정보를 취득한다. |
|
| 425 |
+ * |
|
| 426 |
+ * @param files |
|
| 427 |
+ * @return |
|
| 428 |
+ * @throws Exception |
|
| 429 |
+ */ |
|
| 430 |
+ public List<FileVO> parseFileInfV1(long maxFileSize, Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String atchFileId, String storePath, String storeWebPath, String appendPath) throws Exception {
|
|
| 431 |
+ int fileKey = fileKeyParam; |
|
| 432 |
+ |
|
| 433 |
+ String storePathString = ""; |
|
| 434 |
+ String storeWebPathString = ""; |
|
| 435 |
+ String atchFileIdString = ""; |
|
| 436 |
+ |
|
| 437 |
+ if ("".equals(storePath) || storePath == null) {
|
|
| 438 |
+ storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 439 |
+ storeWebPathString = propertyService.getString("Globals.fileStoreWebPath");
|
|
| 440 |
+ } else {
|
|
| 441 |
+ storePathString = propertyService.getString(storePath); |
|
| 442 |
+ storeWebPathString = propertyService.getString(storeWebPath); |
|
| 443 |
+ } |
|
| 444 |
+ |
|
| 445 |
+ if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 446 |
+ storePathString = storePathString + "/" + appendPath; |
|
| 447 |
+ storeWebPathString = storeWebPathString + "/" + appendPath; |
|
| 448 |
+ } |
|
| 449 |
+ |
|
| 450 |
+ |
|
| 451 |
+ if ("".equals(atchFileId) || atchFileId == null) {
|
|
| 452 |
+ atchFileIdString = idgenService.getNextStringId(); |
|
| 453 |
+ } else {
|
|
| 454 |
+ atchFileIdString = atchFileId; |
|
| 455 |
+ } |
|
| 456 |
+ |
|
| 457 |
+ File saveFolder = new File(storePathString); |
|
| 458 |
+ |
|
| 459 |
+ if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 460 |
+ saveFolder.mkdirs(); |
|
| 461 |
+ } |
|
| 462 |
+ |
|
| 463 |
+ List<FileVO> result = new ArrayList<FileVO>(); |
|
| 464 |
+ |
|
| 465 |
+ try {
|
|
| 466 |
+ Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 467 |
+ MultipartFile file; |
|
| 468 |
+ String filePath = ""; |
|
| 469 |
+ |
|
| 470 |
+ FileVO fvo; |
|
| 471 |
+ |
|
| 472 |
+ boolean isDenyed; |
|
| 473 |
+ while (itr.hasNext()) {
|
|
| 474 |
+ Entry<String, MultipartFile> entry = itr.next(); |
|
| 475 |
+ |
|
| 476 |
+ file = entry.getValue(); |
|
| 477 |
+ String orginFileName = file.getOriginalFilename(); |
|
| 478 |
+ |
|
| 479 |
+ //-------------------------------------- |
|
| 480 |
+ // 원 파일명이 없는 경우 처리 |
|
| 481 |
+ // (첨부가 되지 않은 input file type) |
|
| 482 |
+ //-------------------------------------- |
|
| 483 |
+ if ("".equals(orginFileName)) {
|
|
| 484 |
+ continue; |
|
| 485 |
+ } |
|
| 486 |
+ |
|
| 487 |
+ ////------------------------------------ |
|
| 488 |
+ |
|
| 489 |
+ String fileExt = ""; |
|
| 490 |
+ int index = orginFileName.lastIndexOf(".");
|
|
| 491 |
+ if(index != -1) {
|
|
| 492 |
+ fileExt = orginFileName.substring(index + 1); |
|
| 493 |
+ } |
|
| 494 |
+ |
|
| 495 |
+ isDenyed = false; |
|
| 496 |
+ for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 497 |
+ if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 498 |
+ isDenyed = true; |
|
| 499 |
+ break; |
|
| 500 |
+ } |
|
| 501 |
+ } |
|
| 502 |
+ if (isDenyed) {
|
|
| 503 |
+ continue; |
|
| 504 |
+ } |
|
| 505 |
+ |
|
| 506 |
+ String newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 507 |
+ long _size = file.getSize(); |
|
| 508 |
+ if(_size > maxFileSize) {
|
|
| 509 |
+ continue; |
|
| 510 |
+ } |
|
| 511 |
+ |
|
| 512 |
+ if (!"".equals(orginFileName)) {
|
|
| 513 |
+ filePath = storePathString + "/" + newName; |
|
| 514 |
+ file.transferTo(new File(filePath)); |
|
| 515 |
+ } |
|
| 516 |
+ |
|
| 517 |
+ fvo = new FileVO(); |
|
| 518 |
+ fvo.setFileExtsn(fileExt); |
|
| 519 |
+ fvo.setFileStreCours(storePathString); |
|
| 520 |
+ fvo.setFileMg(Long.toString(_size)); |
|
| 521 |
+ fvo.setOrignlFileNm(orginFileName); |
|
| 522 |
+ fvo.setStreFileNm(newName); |
|
| 523 |
+ fvo.setAtchFileId(atchFileIdString); |
|
| 524 |
+ fvo.setFileSn(String.valueOf(fileKey)); |
|
| 525 |
+ fvo.setFormNm(entry.getKey()); |
|
| 526 |
+ fvo.setFileStreWebCours(storeWebPathString); |
|
| 527 |
+ |
|
| 528 |
+ //writeFile(file, newName, storePathString); |
|
| 529 |
+ result.add(fvo); |
|
| 530 |
+ |
|
| 531 |
+ fileKey++; |
|
| 532 |
+ } |
|
| 533 |
+ } catch(IllegalStateException e) {
|
|
| 534 |
+ log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 535 |
+ } catch(IOException e) {
|
|
| 536 |
+ log.debug("IOException: "+ e.getMessage());
|
|
| 537 |
+ } catch(Exception e) {
|
|
| 538 |
+ log.debug("Exception: "+ e.getMessage());
|
|
| 539 |
+ } |
|
| 540 |
+ |
|
| 541 |
+ return result; |
|
| 542 |
+ } |
|
| 543 |
+ |
|
| 544 |
+ |
|
| 545 |
+ /** |
|
| 546 |
+ * 첨부파일에 대한 목록 정보를 취득한다. |
|
| 547 |
+ * |
|
| 548 |
+ * @param files |
|
| 549 |
+ * @return |
|
| 550 |
+ * @throws Exception |
|
| 551 |
+ */ |
|
| 552 |
+ public List<FileVO> parseFileInfV2(long maxFileSize, Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String atchFileId, String storePath, String storeWebPath, String appendPath, long maxChunkSize, long fileFullLength, long chunkFrom, long chunkTo) throws Exception {
|
|
| 553 |
+ int fileKey = fileKeyParam; |
|
| 554 |
+ |
|
| 555 |
+ String storePathString = ""; |
|
| 556 |
+ String storeWebPathString = ""; |
|
| 557 |
+ String atchFileIdString = ""; |
|
| 558 |
+ |
|
| 559 |
+ if ("".equals(storePath) || storePath == null) {
|
|
| 560 |
+ storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 561 |
+ storeWebPathString = propertyService.getString("Globals.fileStoreWebPath");
|
|
| 562 |
+ } else {
|
|
| 563 |
+ storePathString = propertyService.getString(storePath); |
|
| 564 |
+ storeWebPathString = propertyService.getString(storeWebPath); |
|
| 565 |
+ } |
|
| 566 |
+ |
|
| 567 |
+ if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 568 |
+ storePathString = storePathString + "/" + appendPath; |
|
| 569 |
+ storeWebPathString = storeWebPathString + "/" + appendPath; |
|
| 570 |
+ } |
|
| 571 |
+ |
|
| 572 |
+ |
|
| 573 |
+ if ("".equals(atchFileId) || atchFileId == null) {
|
|
| 574 |
+ atchFileIdString = idgenService.getNextStringId(); |
|
| 575 |
+ } else {
|
|
| 576 |
+ atchFileIdString = atchFileId; |
|
| 577 |
+ } |
|
| 578 |
+ |
|
| 579 |
+ File saveFolder = new File(storePathString); |
|
| 580 |
+ |
|
| 581 |
+ if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 582 |
+ saveFolder.mkdirs(); |
|
| 583 |
+ } |
|
| 584 |
+ |
|
| 585 |
+ List<FileVO> result = new ArrayList<FileVO>(); |
|
| 586 |
+ |
|
| 587 |
+ try {
|
|
| 588 |
+ Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 589 |
+ MultipartFile file; |
|
| 590 |
+ |
|
| 591 |
+ FileVO fvo; |
|
| 592 |
+ |
|
| 593 |
+ boolean isDenyed; |
|
| 594 |
+ while (itr.hasNext()) {
|
|
| 595 |
+ Entry<String, MultipartFile> entry = itr.next(); |
|
| 596 |
+ |
|
| 597 |
+ file = entry.getValue(); |
|
| 598 |
+ String orginFileName = file.getOriginalFilename(); |
|
| 599 |
+ |
|
| 600 |
+ //-------------------------------------- |
|
| 601 |
+ // 원 파일명이 없는 경우 처리 |
|
| 602 |
+ // (첨부가 되지 않은 input file type) |
|
| 603 |
+ //-------------------------------------- |
|
| 604 |
+ if ("".equals(orginFileName)) {
|
|
| 605 |
+ continue; |
|
| 606 |
+ } |
|
| 607 |
+ |
|
| 608 |
+ ////------------------------------------ |
|
| 609 |
+ |
|
| 610 |
+ String fileExt = ""; |
|
| 611 |
+ int index = orginFileName.lastIndexOf(".");
|
|
| 612 |
+ if(index != -1) {
|
|
| 613 |
+ fileExt = orginFileName.substring(index + 1); |
|
| 614 |
+ } |
|
| 615 |
+ |
|
| 616 |
+ isDenyed = false; |
|
| 617 |
+ for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 618 |
+ if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 619 |
+ isDenyed = true; |
|
| 620 |
+ break; |
|
| 621 |
+ } |
|
| 622 |
+ } |
|
| 623 |
+ if (isDenyed) {
|
|
| 624 |
+ continue; |
|
| 625 |
+ } |
|
| 626 |
+ |
|
| 627 |
+ String newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 628 |
+ String filePath = storePathString + "/" + newName; |
|
| 629 |
+ |
|
| 630 |
+ String tmpFileName = atchFileId + "_" + String.valueOf(orginFileName.hashCode()); |
|
| 631 |
+ long _size = 0; |
|
| 632 |
+ |
|
| 633 |
+ boolean isChunk = fileFullLength < 0 ? false : true; |
|
| 634 |
+ boolean isLastChunk = chunkTo == fileFullLength-1; |
|
| 635 |
+ |
|
| 636 |
+ if(isChunk) {
|
|
| 637 |
+ File saveFile = new File(storePathString + "/" + tmpFileName); |
|
| 638 |
+ EgovFormBasedFileUtil.saveFile(file.getInputStream(), saveFile, true); |
|
| 639 |
+ |
|
| 640 |
+ if(isLastChunk) {
|
|
| 641 |
+ _size = saveFile.length(); |
|
| 642 |
+ EgovFormBasedFileUtil.renameFile(storePathString, tmpFileName, newName); |
|
| 643 |
+ } else {
|
|
| 644 |
+ continue; |
|
| 645 |
+ } |
|
| 646 |
+ } else {
|
|
| 647 |
+ _size = file.getSize(); |
|
| 648 |
+ file.transferTo(new File(filePath)); |
|
| 649 |
+ } |
|
| 650 |
+ |
|
| 651 |
+ if(_size > maxFileSize) {
|
|
| 652 |
+ File delFile = new File(filePath); |
|
| 653 |
+ if(delFile.exists() && delFile.isFile()) {
|
|
| 654 |
+ delFile.delete(); |
|
| 655 |
+ } |
|
| 656 |
+ continue; |
|
| 657 |
+ } |
|
| 658 |
+ |
|
| 659 |
+ fvo = new FileVO(); |
|
| 660 |
+ fvo.setFileExtsn(fileExt); |
|
| 661 |
+ fvo.setFileStreCours(storePathString); |
|
| 662 |
+ fvo.setFileMg(Long.toString(_size)); |
|
| 663 |
+ fvo.setOrignlFileNm(orginFileName); |
|
| 664 |
+ fvo.setStreFileNm(newName); |
|
| 665 |
+ fvo.setAtchFileId(atchFileIdString); |
|
| 666 |
+ fvo.setFileSn(String.valueOf(fileKey)); |
|
| 667 |
+ fvo.setFormNm(entry.getKey()); |
|
| 668 |
+ fvo.setFileStreWebCours(storeWebPathString); |
|
| 669 |
+ |
|
| 670 |
+ //writeFile(file, newName, storePathString); |
|
| 671 |
+ result.add(fvo); |
|
| 672 |
+ |
|
| 673 |
+ fileKey++; |
|
| 674 |
+ } |
|
| 675 |
+ } catch(IllegalStateException e) {
|
|
| 676 |
+ log.debug("IllegalStateException: "+ e.getMessage());
|
|
| 677 |
+ } catch(IOException e) {
|
|
| 678 |
+ log.debug("IOException: "+ e.getMessage());
|
|
| 679 |
+ } catch(Exception e) {
|
|
| 680 |
+ log.debug("Exception: "+ e.getMessage());
|
|
| 681 |
+ } |
|
| 682 |
+ |
|
| 683 |
+ return result; |
|
| 684 |
+ } |
|
| 685 |
+ |
|
| 686 |
+ /** |
|
| 687 |
+ * 첨부파일을 서버에 저장한다. |
|
| 688 |
+ * |
|
| 689 |
+ * @param file |
|
| 690 |
+ * @param newName |
|
| 691 |
+ * @param stordFilePath |
|
| 692 |
+ * @throws Exception |
|
| 693 |
+ */ |
|
| 694 |
+ protected void writeUploadedFile(MultipartFile file, String newName, String stordFilePath) throws Exception {
|
|
| 695 |
+ InputStream stream = null; |
|
| 696 |
+ OutputStream bos = null; |
|
| 697 |
+ |
|
| 698 |
+ try {
|
|
| 699 |
+ stream = file.getInputStream(); |
|
| 700 |
+ File cFile = new File(stordFilePath); |
|
| 701 |
+ |
|
| 702 |
+ if (!cFile.isDirectory()) {
|
|
| 703 |
+ boolean _flag = cFile.mkdir(); |
|
| 704 |
+ if (!_flag) {
|
|
| 705 |
+ throw new IOException("Directory creation Failed ");
|
|
| 706 |
+ } |
|
| 707 |
+ } |
|
| 708 |
+ |
|
| 709 |
+ bos = new FileOutputStream(stordFilePath + "/" + newName); |
|
| 710 |
+ |
|
| 711 |
+ int bytesRead = 0; |
|
| 712 |
+ byte[] buffer = new byte[BUFF_SIZE]; |
|
| 713 |
+ |
|
| 714 |
+ while ((bytesRead = stream.read(buffer, 0, BUFF_SIZE)) != -1) {
|
|
| 715 |
+ bos.write(buffer, 0, bytesRead); |
|
| 716 |
+ } |
|
| 717 |
+ } catch (FileNotFoundException fnfe) {
|
|
| 718 |
+ log.error(fnfe); |
|
| 719 |
+ } catch (IOException ioe) {
|
|
| 720 |
+ log.error(ioe); |
|
| 721 |
+ } catch (Exception e) {
|
|
| 722 |
+ log.error(e); |
|
| 723 |
+ } finally {
|
|
| 724 |
+ if (bos != null) {
|
|
| 725 |
+ try {
|
|
| 726 |
+ bos.close(); |
|
| 727 |
+ } catch (IOException ignore) {
|
|
| 728 |
+ log.debug("IGNORED: " + ignore.getMessage());
|
|
| 729 |
+ } |
|
| 730 |
+ } |
|
| 731 |
+ if (stream != null) {
|
|
| 732 |
+ try {
|
|
| 733 |
+ stream.close(); |
|
| 734 |
+ } catch (IOException ignore) {
|
|
| 735 |
+ log.debug("IGNORED: " + ignore.getMessage());
|
|
| 736 |
+ } |
|
| 737 |
+ } |
|
| 738 |
+ } |
|
| 739 |
+ } |
|
| 740 |
+ |
|
| 741 |
+ /** |
|
| 742 |
+ * 대용량파일을 Upload 처리한다. |
|
| 743 |
+ * |
|
| 744 |
+ * @param request |
|
| 745 |
+ * @param where |
|
| 746 |
+ * @param maxFileSize |
|
| 747 |
+ * @return |
|
| 748 |
+ * @throws Exception |
|
| 749 |
+ */ |
|
| 750 |
+ public FileVO uploadStreamLongFiles(InputStream is, FileVO fileVO, boolean firstChunk, boolean lastChunk) throws Exception {
|
|
| 751 |
+ |
|
| 752 |
+ File file = new File(fileVO.getFileStreCours() + "/" + fileVO.getStreFileNm()); |
|
| 753 |
+ |
|
| 754 |
+ if(firstChunk) {
|
|
| 755 |
+ String fileExt = ""; |
|
| 756 |
+ int index = fileVO.getOrignlFileNm().lastIndexOf(".");
|
|
| 757 |
+ if(index != -1) {
|
|
| 758 |
+ fileExt = fileVO.getOrignlFileNm().substring(index + 1); |
|
| 759 |
+ } |
|
| 760 |
+ boolean isDenyed = false; |
|
| 761 |
+ for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 762 |
+ if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 763 |
+ isDenyed = true; |
|
| 764 |
+ break; |
|
| 765 |
+ } |
|
| 766 |
+ } |
|
| 767 |
+ if (isDenyed) {
|
|
| 768 |
+ //throw new IOException("등록할 수 없는 파일 종류입니다.");
|
|
| 769 |
+ return null; |
|
| 770 |
+ } |
|
| 771 |
+ |
|
| 772 |
+ if (! file.getParentFile().exists()) {
|
|
| 773 |
+ file.getParentFile().mkdirs(); |
|
| 774 |
+ } |
|
| 775 |
+ } |
|
| 776 |
+ |
|
| 777 |
+ Exception proEx = null; |
|
| 778 |
+ OutputStream os = null; |
|
| 779 |
+ try {
|
|
| 780 |
+ os = new FileOutputStream(file, true); |
|
| 781 |
+ |
|
| 782 |
+ int bytesRead = 0; |
|
| 783 |
+ byte[] buffer = new byte[BUFF_SIZE]; |
|
| 784 |
+ |
|
| 785 |
+ while ((bytesRead = is.read(buffer, 0, BUFF_SIZE)) != -1) {
|
|
| 786 |
+ os.write(buffer, 0, bytesRead); |
|
| 787 |
+ } |
|
| 788 |
+ } catch (FileNotFoundException ex) {
|
|
| 789 |
+ proEx = ex; |
|
| 790 |
+ } catch (IOException ex) {
|
|
| 791 |
+ proEx = ex; |
|
| 792 |
+ } catch(Exception ex) {
|
|
| 793 |
+ proEx = ex; |
|
| 794 |
+ } finally {
|
|
| 795 |
+ if (os != null) {
|
|
| 796 |
+ os.close(); |
|
| 797 |
+ } |
|
| 798 |
+ } |
|
| 799 |
+ |
|
| 800 |
+ if(proEx != null) {
|
|
| 801 |
+ throw proEx; |
|
| 802 |
+ } |
|
| 803 |
+ |
|
| 804 |
+ if(lastChunk) {
|
|
| 805 |
+ |
|
| 806 |
+ String fileExt = ""; |
|
| 807 |
+ int index = fileVO.getOrignlFileNm().lastIndexOf(".");
|
|
| 808 |
+ if(index != -1) {
|
|
| 809 |
+ fileExt = fileVO.getOrignlFileNm().substring(index + 1); |
|
| 810 |
+ } |
|
| 811 |
+ |
|
| 812 |
+ fileVO.setFileExtsn(fileExt); |
|
| 813 |
+ fileVO.setFileMg(Long.toString(file.length())); |
|
| 814 |
+ } |
|
| 815 |
+ |
|
| 816 |
+ return fileVO; |
|
| 817 |
+ } |
|
| 818 |
+ |
|
| 819 |
+ public String selectFileBassCours() {
|
|
| 820 |
+ java.util.Calendar cal = java.util.Calendar.getInstance(); |
|
| 821 |
+ int iYear = cal.get(java.util.Calendar.YEAR); |
|
| 822 |
+ int iMonth = cal.get(java.util.Calendar.MONTH); |
|
| 823 |
+ int iDate = cal.get(java.util.Calendar.DATE); |
|
| 824 |
+ String sYear = Integer.toString(iYear); |
|
| 825 |
+ String sMonth = Integer.toString(iMonth+1).length() == 1 ? "0" + Integer.toString(iMonth+1) : Integer.toString(iMonth+1); |
|
| 826 |
+ String sDay = Integer.toString(iDate).length() == 1 ? "0" + Integer.toString(iDate) : Integer.toString(iDate); |
|
| 827 |
+ |
|
| 828 |
+ return "/" + sYear + "/" + sMonth + "/" + sDay; |
|
| 829 |
+ } |
|
| 830 |
+ |
|
| 831 |
+ /** |
|
| 832 |
+ * 다이렉트 첨부파일에 대한 목록 정보를 취득한다. |
|
| 833 |
+ * |
|
| 834 |
+ * @param files |
|
| 835 |
+ * @return |
|
| 836 |
+ * @throws Exception |
|
| 837 |
+ */ |
|
| 838 |
+ public List<FileVO> directParseFileInf(Map<String, MultipartFile> files, String KeyStr, int fileKeyParam, String storePath, String storeWebPath, String appendPath) throws Exception {
|
|
| 839 |
+ int fileKey = fileKeyParam; |
|
| 840 |
+ |
|
| 841 |
+ String storePathString = ""; |
|
| 842 |
+ String storeWebPathString = ""; |
|
| 843 |
+ String atchFileIdString = ""; |
|
| 844 |
+ |
|
| 845 |
+ if ("".equals(storePath) || storePath == null) {
|
|
| 846 |
+ storePathString = propertyService.getString("Globals.fileStorePath");
|
|
| 847 |
+ storeWebPathString = propertyService.getString("Globals.fileStoreWebPath");
|
|
| 848 |
+ } else {
|
|
| 849 |
+ storePathString = propertyService.getString(storePath); |
|
| 850 |
+ storeWebPathString = propertyService.getString(storeWebPath); |
|
| 851 |
+ } |
|
| 852 |
+ |
|
| 853 |
+ if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 854 |
+ storePathString = storePathString + appendPath; |
|
| 855 |
+ storeWebPathString = storeWebPathString + appendPath; |
|
| 856 |
+ } |
|
| 857 |
+ |
|
| 858 |
+ File saveFolder = new File(storePathString); |
|
| 859 |
+ |
|
| 860 |
+ if (!saveFolder.exists() || saveFolder.isFile()) {
|
|
| 861 |
+ saveFolder.mkdirs(); |
|
| 862 |
+ } |
|
| 863 |
+ |
|
| 864 |
+ Iterator<Entry<String, MultipartFile>> itr = files.entrySet().iterator(); |
|
| 865 |
+ MultipartFile file; |
|
| 866 |
+ String filePath = ""; |
|
| 867 |
+ List<FileVO> result = new ArrayList<FileVO>(); |
|
| 868 |
+ FileVO fvo; |
|
| 869 |
+ |
|
| 870 |
+ boolean isDenyed; |
|
| 871 |
+ while (itr.hasNext()) {
|
|
| 872 |
+ Entry<String, MultipartFile> entry = itr.next(); |
|
| 873 |
+ |
|
| 874 |
+ file = entry.getValue(); |
|
| 875 |
+ String orginFileName = file.getOriginalFilename(); |
|
| 876 |
+ |
|
| 877 |
+ //-------------------------------------- |
|
| 878 |
+ // 원 파일명이 없는 경우 처리 |
|
| 879 |
+ // (첨부가 되지 않은 input file type) |
|
| 880 |
+ //-------------------------------------- |
|
| 881 |
+ if ("".equals(orginFileName)) {
|
|
| 882 |
+ continue; |
|
| 883 |
+ } |
|
| 884 |
+ ////------------------------------------ |
|
| 885 |
+ |
|
| 886 |
+ String newName = ""; |
|
| 887 |
+ String fileExt = ""; |
|
| 888 |
+ int index = orginFileName.lastIndexOf(".");
|
|
| 889 |
+ if(index != -1) {
|
|
| 890 |
+ fileExt = orginFileName.substring(index + 1); |
|
| 891 |
+ newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey + "." + fileExt; |
|
| 892 |
+ } else {
|
|
| 893 |
+ newName = KeyStr + EgovStringUtil.getTimeStamp() + fileKey; |
|
| 894 |
+ } |
|
| 895 |
+ |
|
| 896 |
+ isDenyed = false; |
|
| 897 |
+ for(int i=0; i < denyFileExtentionList.length; i++) {
|
|
| 898 |
+ if(fileExt.toLowerCase().equals(denyFileExtentionList[i])) {
|
|
| 899 |
+ isDenyed = true; |
|
| 900 |
+ break; |
|
| 901 |
+ } |
|
| 902 |
+ } |
|
| 903 |
+ if (isDenyed) {
|
|
| 904 |
+ continue; |
|
| 905 |
+ } |
|
| 906 |
+ |
|
| 907 |
+ long _size = file.getSize(); |
|
| 908 |
+ |
|
| 909 |
+ if (!"".equals(orginFileName)) {
|
|
| 910 |
+ filePath = storePathString + "/" + newName; |
|
| 911 |
+ file.transferTo(new File(filePath)); |
|
| 912 |
+ } |
|
| 913 |
+ fvo = new FileVO(); |
|
| 914 |
+ fvo.setFileExtsn(fileExt); |
|
| 915 |
+ fvo.setFileStreCours(storeWebPathString); |
|
| 916 |
+ //fvo.setFileStreCours(storePathString); |
|
| 917 |
+ //fvo.setFileStreWebCours(storeWebPathString); |
|
| 918 |
+ fvo.setFileMg(Long.toString(_size)); |
|
| 919 |
+ fvo.setOrignlFileNm(orginFileName); |
|
| 920 |
+ fvo.setStreFileNm(newName); |
|
| 921 |
+ fvo.setAtchFileId(atchFileIdString); |
|
| 922 |
+ fvo.setFileSn(String.valueOf(fileKey)); |
|
| 923 |
+ fvo.setFormNm(entry.getKey()); |
|
| 924 |
+ |
|
| 925 |
+ //writeFile(file, newName, storePathString); |
|
| 926 |
+ result.add(fvo); |
|
| 927 |
+ |
|
| 928 |
+ fileKey++; |
|
| 929 |
+ } |
|
| 930 |
+ |
|
| 931 |
+ return result; |
|
| 932 |
+ } |
|
| 933 |
+} |
--- base/src/main/java/egovframework/com/cmm/service/FileVO.java
+++ base/src/main/java/egovframework/com/cmm/service/FileVO.java
... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 |
|
| 3 | 3 |
import java.io.Serializable; |
| 4 | 4 |
import java.math.BigDecimal; |
| 5 |
+import java.util.Date; |
|
| 5 | 6 |
import java.util.List; |
| 6 | 7 |
|
| 7 | 8 |
import org.apache.commons.lang.builder.ToStringBuilder; |
... | ... | @@ -9,127 +10,71 @@ |
| 9 | 10 |
import egovframework.com.cmm.ComDefaultVO; |
| 10 | 11 |
import egovframework.com.utl.fcc.service.EgovStringUtil; |
| 11 | 12 |
|
| 12 |
-/** |
|
| 13 |
- * @Class Name : FileVO.java |
|
| 14 |
- * @Description : 파일정보 처리를 위한 VO 클래스 |
|
| 15 |
- * @Modification Information |
|
| 16 |
- * |
|
| 17 |
- * 수정일 수정자 수정내용 |
|
| 18 |
- * ------- ------- ------------------- |
|
| 19 |
- * 2009. 3. 25. 이삼섭 |
|
| 20 |
- * |
|
| 21 |
- * @author 공통 서비스 개발팀 이삼섭 |
|
| 22 |
- * @since 2009. 3. 25. |
|
| 23 |
- * @version |
|
| 24 |
- * @see |
|
| 25 |
- * |
|
| 26 |
- */ |
|
| 27 |
-@SuppressWarnings("serial")
|
|
| 13 |
+//파일정보 처리를 위한 VO 클래스 |
|
| 28 | 14 |
public class FileVO extends ComDefaultVO {
|
| 29 | 15 |
|
| 30 |
- /** |
|
| 31 |
- * 첨부파일 아이디 |
|
| 32 |
- */ |
|
| 33 |
- public String atchFileId = ""; |
|
| 34 |
- /** |
|
| 35 |
- * 생성일자 |
|
| 36 |
- */ |
|
| 16 |
+ //생성일자 |
|
| 37 | 17 |
public java.util.Date creatDt; |
| 38 |
- /** |
|
| 39 |
- * 파일내용 |
|
| 40 |
- */ |
|
| 18 |
+ |
|
| 19 |
+ //파일내용 |
|
| 41 | 20 |
public String fileCn = ""; |
| 42 |
- /** |
|
| 43 |
- * 파일확장자 |
|
| 44 |
- */ |
|
| 21 |
+ |
|
| 22 |
+ //파일확장자 |
|
| 45 | 23 |
public String fileExtsn = ""; |
| 46 |
- /** |
|
| 47 |
- * 파일크기 |
|
| 48 |
- */ |
|
| 24 |
+ |
|
| 25 |
+ //파일크기 |
|
| 49 | 26 |
public String fileMg = ""; |
| 50 |
- /** |
|
| 51 |
- * 파일연번 |
|
| 52 |
- */ |
|
| 27 |
+ |
|
| 28 |
+ //파일연번 |
|
| 53 | 29 |
public String fileSn = ""; |
| 54 |
- /** |
|
| 55 |
- * 파일저장경로 |
|
| 56 |
- */ |
|
| 30 |
+ |
|
| 31 |
+ //파일저장경로 |
|
| 57 | 32 |
public String fileStreCours = ""; |
| 58 |
- /** |
|
| 59 |
- * 원파일명 |
|
| 60 |
- */ |
|
| 33 |
+ |
|
| 34 |
+ //원파일명 |
|
| 61 | 35 |
public String orignlFileNm = ""; |
| 62 |
- /** |
|
| 63 |
- * 저장파일명 |
|
| 64 |
- */ |
|
| 36 |
+ |
|
| 37 |
+ //저장파일명 |
|
| 65 | 38 |
public String streFileNm = ""; |
| 66 | 39 |
|
| 67 |
- /** |
|
| 68 |
- * 폼명 |
|
| 69 |
- */ |
|
| 40 |
+ //폼명 |
|
| 70 | 41 |
public String formNm = ""; |
| 71 | 42 |
|
| 72 |
- /** |
|
| 73 |
- * 임시파일그룹ID |
|
| 74 |
- */ |
|
| 43 |
+ //임시파일그룹ID |
|
| 75 | 44 |
public String fileGroupId = ""; |
| 76 | 45 |
|
| 77 |
- /** |
|
| 78 |
- * 임시파일ID |
|
| 79 |
- */ |
|
| 46 |
+ //임시파일ID |
|
| 80 | 47 |
public String tmprFileId = ""; |
| 81 | 48 |
|
| 82 |
- /** |
|
| 83 |
- * 파일갯수 |
|
| 84 |
- */ |
|
| 49 |
+ //파일갯수 |
|
| 85 | 50 |
public int fileSnCount = 0; |
| 86 | 51 |
|
| 87 |
- /** |
|
| 88 |
- * 프로그램ID |
|
| 89 |
- */ |
|
| 52 |
+ //프로그램ID |
|
| 90 | 53 |
public String progrmId = ""; |
| 91 | 54 |
|
| 92 |
- /** |
|
| 93 |
- * 사용여부 |
|
| 94 |
- */ |
|
| 95 |
- public String useAt = "Y"; |
|
| 96 |
- |
|
| 97 |
- /** |
|
| 98 |
- * 확장파일여부 |
|
| 99 |
- */ |
|
| 55 |
+ //확장파일여부 |
|
| 100 | 56 |
public String estnAt = ""; |
| 101 | 57 |
|
| 102 |
- /** |
|
| 103 |
- * 총파일크기 |
|
| 104 |
- */ |
|
| 58 |
+ //총파일크기 |
|
| 105 | 59 |
public String totalFileMg = "0"; |
| 106 | 60 |
|
| 107 |
- /** |
|
| 108 |
- * 총파일갯수 |
|
| 109 |
- */ |
|
| 61 |
+ //총파일갯수 |
|
| 110 | 62 |
public String totalFileCount = "0"; |
| 111 | 63 |
|
| 112 |
- /** |
|
| 113 |
- * 첨부파일아이디리스트 |
|
| 114 |
- */ |
|
| 64 |
+ //첨부파일아이디리스트 |
|
| 115 | 65 |
private List<String> atchFileIdArr; |
| 116 | 66 |
|
| 117 |
- /** 이전 첨부파일아이디 */ |
|
| 67 |
+ //이전 첨부파일아이디 |
|
| 118 | 68 |
private String oldAtchFileId; |
| 119 | 69 |
|
| 120 |
- /** 위도 */ |
|
| 70 |
+ //위도 |
|
| 121 | 71 |
private String la; |
| 122 | 72 |
|
| 123 |
- /** 경도 */ |
|
| 73 |
+ //경도 |
|
| 124 | 74 |
private String lo; |
| 125 | 75 |
|
| 126 |
- /** 이미지 orientation */ |
|
| 76 |
+ //이미지 orientation |
|
| 127 | 77 |
private Integer orientation; |
| 128 |
- |
|
| 129 |
- |
|
| 130 |
- private String sysTyCode; |
|
| 131 |
- |
|
| 132 |
- private String siteId; |
|
| 133 | 78 |
|
| 134 | 79 |
private String pathKey; |
| 135 | 80 |
|
... | ... | @@ -139,37 +84,22 @@ |
| 139 | 84 |
|
| 140 | 85 |
private String editorId; |
| 141 | 86 |
|
| 142 |
- /** |
|
| 143 |
- * 다운로드건수 |
|
| 144 |
- */ |
|
| 87 |
+ //다운로드건수 |
|
| 145 | 88 |
private BigDecimal downCnt; |
| 146 | 89 |
|
| 147 | 90 |
private String mltmdClCode; |
| 148 | 91 |
|
| 149 |
- /** |
|
| 150 |
- * 파일저장웹경로 |
|
| 151 |
- */ |
|
| 92 |
+ //파일저장웹경로 |
|
| 152 | 93 |
public String fileStreWebCours = ""; |
| 153 | 94 |
|
| 154 | 95 |
private String isNoTempFile = "N"; |
| 155 | 96 |
|
| 156 | 97 |
private long maxChunkSize; |
| 157 | 98 |
|
| 158 |
- //과정코드ID |
|
| 159 |
- private String crclId; |
|
| 160 |
- |
|
| 161 | 99 |
//공개여부 |
| 162 | 100 |
private String publicAt; |
| 163 | 101 |
|
| 164 |
- //등록자ID |
|
| 165 |
- private String frstRegisterId; |
|
| 166 |
- |
|
| 167 |
- //등록시점 |
|
| 168 |
- private java.util.Date frstRegisterPnttm; |
|
| 169 |
- |
|
| 170 | 102 |
private String searchCtgryId; |
| 171 |
- |
|
| 172 |
- private String searchCrclId; |
|
| 173 | 103 |
|
| 174 | 104 |
private String searchFileNm; |
| 175 | 105 |
|
... | ... | @@ -181,8 +111,6 @@ |
| 181 | 111 |
|
| 182 | 112 |
private String searchScope; |
| 183 | 113 |
|
| 184 |
- private String searchCrclNm; |
|
| 185 |
- |
|
| 186 | 114 |
private String searchPublicAt; |
| 187 | 115 |
|
| 188 | 116 |
private String fileExtNm; |
... | ... | @@ -190,8 +118,6 @@ |
| 190 | 118 |
private String hostCode; |
| 191 | 119 |
|
| 192 | 120 |
private String searchFrstRegisterId; |
| 193 |
- |
|
| 194 |
- private String plId; |
|
| 195 | 121 |
|
| 196 | 122 |
//이미지 확장자 |
| 197 | 123 |
private String fileExtImg; |
... | ... | @@ -202,7 +128,6 @@ |
| 202 | 128 |
//동영상 확장자 |
| 203 | 129 |
private String fileExtMov; |
| 204 | 130 |
|
| 205 |
- |
|
| 206 | 131 |
//다운로드 타입(arr:파일아이디 여러개, 나머지는 한개) |
| 207 | 132 |
private String downLoadType; |
| 208 | 133 |
|
... | ... | @@ -210,188 +135,86 @@ |
| 210 | 135 |
|
| 211 | 136 |
private String dateType; |
| 212 | 137 |
|
| 213 |
- private String searchCrclLang; |
|
| 214 |
- |
|
| 215 |
- private String searchPlTitle; |
|
| 216 |
- |
|
| 217 |
- private String searchTeacher; |
|
| 218 |
- |
|
| 219 |
- //학생여부 |
|
| 220 |
- private String studentAt; |
|
| 221 |
- |
|
| 222 |
- //회원ID |
|
| 223 |
- private String userId; |
|
| 224 |
- |
|
| 225 |
- //콘텐츠 사용여부(나의 교육과정) |
|
| 226 |
- private String addAt; |
|
| 227 |
- |
|
| 228 | 138 |
//파일 가로 크기 |
| 229 | 139 |
private int fileImgWidth; |
| 230 | 140 |
|
| 231 | 141 |
//파일 세로 크기 |
| 232 | 142 |
private int fileImgHeight; |
| 233 |
- |
|
| 234 |
- /** |
|
| 235 |
- * atchFileId attribute를 리턴한다. |
|
| 236 |
- * @return the atchFileId |
|
| 237 |
- */ |
|
| 238 |
- public String getAtchFileId() {
|
|
| 239 |
- return atchFileId; |
|
| 240 |
- } |
|
| 241 | 143 |
|
| 242 |
- /** |
|
| 243 |
- * atchFileId attribute 값을 설정한다. |
|
| 244 |
- * @param atchFileId the atchFileId to set |
|
| 245 |
- */ |
|
| 246 |
- public void setAtchFileId(String atchFileId) {
|
|
| 247 |
- this.atchFileId = atchFileId; |
|
| 248 |
- } |
|
| 249 | 144 |
|
| 250 |
- /** |
|
| 251 |
- * creatDt attribute를 리턴한다. |
|
| 252 |
- * @return the creatDt |
|
| 253 |
- */ |
|
| 254 |
- public java.util.Date getCreatDt() {
|
|
| 255 |
- return creatDt; |
|
| 256 |
- } |
|
| 145 |
+ public Date getCreatDt() {
|
|
| 146 |
+ return creatDt; |
|
| 147 |
+ } |
|
| 257 | 148 |
|
| 258 |
- /** |
|
| 259 |
- * creatDt attribute 값을 설정한다. |
|
| 260 |
- * @param creatDt the creatDt to set |
|
| 261 |
- */ |
|
| 262 |
- public void setCreatDt(java.util.Date creatDt) {
|
|
| 263 |
- this.creatDt = creatDt; |
|
| 264 |
- } |
|
| 149 |
+ public void setCreatDt(Date creatDt) {
|
|
| 150 |
+ this.creatDt = creatDt; |
|
| 151 |
+ } |
|
| 265 | 152 |
|
| 266 |
- /** |
|
| 267 |
- * fileCn attribute를 리턴한다. |
|
| 268 |
- * @return the fileCn |
|
| 269 |
- */ |
|
| 270 |
- public String getFileCn() {
|
|
| 271 |
- return fileCn; |
|
| 272 |
- } |
|
| 153 |
+ public String getFileCn() {
|
|
| 154 |
+ return fileCn; |
|
| 155 |
+ } |
|
| 273 | 156 |
|
| 274 |
- /** |
|
| 275 |
- * fileCn attribute 값을 설정한다. |
|
| 276 |
- * @param fileCn the fileCn to set |
|
| 277 |
- */ |
|
| 278 |
- public void setFileCn(String fileCn) {
|
|
| 279 |
- this.fileCn = fileCn; |
|
| 280 |
- } |
|
| 157 |
+ public void setFileCn(String fileCn) {
|
|
| 158 |
+ this.fileCn = fileCn; |
|
| 159 |
+ } |
|
| 281 | 160 |
|
| 282 |
- /** |
|
| 283 |
- * fileExtsn attribute를 리턴한다. |
|
| 284 |
- * @return the fileExtsn |
|
| 285 |
- */ |
|
| 286 |
- public String getFileExtsn() {
|
|
| 287 |
- return fileExtsn; |
|
| 288 |
- } |
|
| 161 |
+ public String getFileExtsn() {
|
|
| 162 |
+ return fileExtsn; |
|
| 163 |
+ } |
|
| 289 | 164 |
|
| 290 |
- /** |
|
| 291 |
- * fileExtsn attribute 값을 설정한다. |
|
| 292 |
- * @param fileExtsn the fileExtsn to set |
|
| 293 |
- */ |
|
| 294 |
- public void setFileExtsn(String fileExtsn) {
|
|
| 295 |
- this.fileExtsn = fileExtsn; |
|
| 296 |
- } |
|
| 165 |
+ public void setFileExtsn(String fileExtsn) {
|
|
| 166 |
+ this.fileExtsn = fileExtsn; |
|
| 167 |
+ } |
|
| 297 | 168 |
|
| 298 |
- /** |
|
| 299 |
- * fileMg attribute를 리턴한다. |
|
| 300 |
- * @return the fileMg |
|
| 301 |
- */ |
|
| 302 |
- public String getFileMg() {
|
|
| 303 |
- return fileMg; |
|
| 304 |
- } |
|
| 169 |
+ public String getFileMg() {
|
|
| 170 |
+ return fileMg; |
|
| 171 |
+ } |
|
| 305 | 172 |
|
| 306 |
- /** |
|
| 307 |
- * fileMg attribute 값을 설정한다. |
|
| 308 |
- * @param fileMg the fileMg to set |
|
| 309 |
- */ |
|
| 310 |
- public void setFileMg(String fileMg) {
|
|
| 311 |
- this.fileMg = fileMg; |
|
| 312 |
- } |
|
| 173 |
+ public void setFileMg(String fileMg) {
|
|
| 174 |
+ this.fileMg = fileMg; |
|
| 175 |
+ } |
|
| 313 | 176 |
|
| 314 |
- /** |
|
| 315 |
- * fileSn attribute를 리턴한다. |
|
| 316 |
- * @return the fileSn |
|
| 317 |
- */ |
|
| 318 |
- public String getFileSn() {
|
|
| 319 |
- return fileSn; |
|
| 320 |
- } |
|
| 177 |
+ public String getFileSn() {
|
|
| 178 |
+ return fileSn; |
|
| 179 |
+ } |
|
| 321 | 180 |
|
| 322 |
- /** |
|
| 323 |
- * fileSn attribute 값을 설정한다. |
|
| 324 |
- * @param fileSn the fileSn to set |
|
| 325 |
- */ |
|
| 326 |
- public void setFileSn(String fileSn) {
|
|
| 327 |
- this.fileSn = fileSn; |
|
| 328 |
- } |
|
| 181 |
+ public void setFileSn(String fileSn) {
|
|
| 182 |
+ this.fileSn = fileSn; |
|
| 183 |
+ } |
|
| 329 | 184 |
|
| 330 |
- /** |
|
| 331 |
- * fileStreCours attribute를 리턴한다. |
|
| 332 |
- * @return the fileStreCours |
|
| 333 |
- */ |
|
| 334 |
- public String getFileStreCours() {
|
|
| 335 |
- return fileStreCours; |
|
| 336 |
- } |
|
| 185 |
+ public String getFileStreCours() {
|
|
| 186 |
+ return fileStreCours; |
|
| 187 |
+ } |
|
| 337 | 188 |
|
| 338 |
- /** |
|
| 339 |
- * fileStreCours attribute 값을 설정한다. |
|
| 340 |
- * @param fileStreCours the fileStreCours to set |
|
| 341 |
- */ |
|
| 342 |
- public void setFileStreCours(String fileStreCours) {
|
|
| 343 |
- this.fileStreCours = fileStreCours; |
|
| 344 |
- } |
|
| 189 |
+ public void setFileStreCours(String fileStreCours) {
|
|
| 190 |
+ this.fileStreCours = fileStreCours; |
|
| 191 |
+ } |
|
| 345 | 192 |
|
| 346 |
- /** |
|
| 347 |
- * orignlFileNm attribute를 리턴한다. |
|
| 348 |
- * @return the orignlFileNm |
|
| 349 |
- */ |
|
| 350 |
- public String getOrignlFileNm() {
|
|
| 351 |
- return orignlFileNm; |
|
| 352 |
- } |
|
| 193 |
+ public String getOrignlFileNm() {
|
|
| 194 |
+ return orignlFileNm; |
|
| 195 |
+ } |
|
| 353 | 196 |
|
| 354 |
- /** |
|
| 355 |
- * orignlFileNm attribute 값을 설정한다. |
|
| 356 |
- * @param orignlFileNm the orignlFileNm to set |
|
| 357 |
- */ |
|
| 358 |
- public void setOrignlFileNm(String orignlFileNm) {
|
|
| 359 |
- this.orignlFileNm = orignlFileNm; |
|
| 360 |
- } |
|
| 197 |
+ public void setOrignlFileNm(String orignlFileNm) {
|
|
| 198 |
+ this.orignlFileNm = orignlFileNm; |
|
| 199 |
+ } |
|
| 361 | 200 |
|
| 362 |
- /** |
|
| 363 |
- * streFileNm attribute를 리턴한다. |
|
| 364 |
- * @return the streFileNm |
|
| 365 |
- */ |
|
| 366 |
- public String getStreFileNm() {
|
|
| 367 |
- return streFileNm; |
|
| 368 |
- } |
|
| 201 |
+ public String getStreFileNm() {
|
|
| 202 |
+ return streFileNm; |
|
| 203 |
+ } |
|
| 369 | 204 |
|
| 370 |
- /** |
|
| 371 |
- * streFileNm attribute 값을 설정한다. |
|
| 372 |
- * @param streFileNm the streFileNm to set |
|
| 373 |
- */ |
|
| 374 |
- public void setStreFileNm(String streFileNm) {
|
|
| 375 |
- this.streFileNm = streFileNm; |
|
| 376 |
- } |
|
| 205 |
+ public void setStreFileNm(String streFileNm) {
|
|
| 206 |
+ this.streFileNm = streFileNm; |
|
| 207 |
+ } |
|
| 377 | 208 |
|
| 378 |
- /** |
|
| 379 |
- * formNm attribute를 리턴한다. |
|
| 380 |
- * @return the formNm |
|
| 381 |
- */ |
|
| 382 |
- public String getFormNm() {
|
|
| 383 |
- return formNm; |
|
| 384 |
- } |
|
| 209 |
+ public String getFormNm() {
|
|
| 210 |
+ return formNm; |
|
| 211 |
+ } |
|
| 385 | 212 |
|
| 386 |
- /** |
|
| 387 |
- * formNm attribute 값을 설정한다. |
|
| 388 |
- * @param formNm the formNm to set |
|
| 389 |
- */ |
|
| 390 |
- public void setFormNm(String formNm) {
|
|
| 391 |
- this.formNm = formNm; |
|
| 392 |
- } |
|
| 213 |
+ public void setFormNm(String formNm) {
|
|
| 214 |
+ this.formNm = formNm; |
|
| 215 |
+ } |
|
| 393 | 216 |
|
| 394 |
- public String getFileGroupId() {
|
|
| 217 |
+ public String getFileGroupId() {
|
|
| 395 | 218 |
return fileGroupId; |
| 396 | 219 |
} |
| 397 | 220 |
|
... | ... | @@ -423,14 +246,6 @@ |
| 423 | 246 |
this.progrmId = progrmId; |
| 424 | 247 |
} |
| 425 | 248 |
|
| 426 |
- public String getUseAt() {
|
|
| 427 |
- return useAt; |
|
| 428 |
- } |
|
| 429 |
- |
|
| 430 |
- public void setUseAt(String useAt) {
|
|
| 431 |
- this.useAt = useAt; |
|
| 432 |
- } |
|
| 433 |
- |
|
| 434 | 249 |
public String getEstnAt() {
|
| 435 | 250 |
return estnAt; |
| 436 | 251 |
} |
... | ... | @@ -454,11 +269,6 @@ |
| 454 | 269 |
public void setTotalFileCount(String totalFileCount) {
|
| 455 | 270 |
this.totalFileCount = totalFileCount; |
| 456 | 271 |
} |
| 457 |
- |
|
| 458 |
- public String getFileMgByByteConvert() {
|
|
| 459 |
- return EgovStringUtil.byteConverter(fileMg); |
|
| 460 |
- } |
|
| 461 |
- |
|
| 462 | 272 |
|
| 463 | 273 |
public List<String> getAtchFileIdArr() {
|
| 464 | 274 |
return atchFileIdArr; |
... | ... | @@ -492,59 +302,12 @@ |
| 492 | 302 |
this.lo = lo; |
| 493 | 303 |
} |
| 494 | 304 |
|
| 495 |
- /** |
|
| 496 |
- * toString 메소드를 대치한다. |
|
| 497 |
- */ |
|
| 498 |
- public String toString() {
|
|
| 499 |
- return ToStringBuilder.reflectionToString(this); |
|
| 500 |
- } |
|
| 501 |
- |
|
| 502 |
- public String getSysTyCode() {
|
|
| 503 |
- return sysTyCode; |
|
| 305 |
+ public Integer getOrientation() {
|
|
| 306 |
+ return orientation; |
|
| 504 | 307 |
} |
| 505 | 308 |
|
| 506 |
- public void setSysTyCode(String sysTyCode) {
|
|
| 507 |
- this.sysTyCode = sysTyCode; |
|
| 508 |
- } |
|
| 509 |
- |
|
| 510 |
- public String getFileStreWebCours() {
|
|
| 511 |
- return fileStreWebCours; |
|
| 512 |
- } |
|
| 513 |
- |
|
| 514 |
- public void setFileStreWebCours(String fileStreWebCours) {
|
|
| 515 |
- this.fileStreWebCours = fileStreWebCours; |
|
| 516 |
- } |
|
| 517 |
- |
|
| 518 |
- public BigDecimal getDownCnt() {
|
|
| 519 |
- return downCnt; |
|
| 520 |
- } |
|
| 521 |
- |
|
| 522 |
- public void setDownCnt(BigDecimal downCnt) {
|
|
| 523 |
- this.downCnt = downCnt; |
|
| 524 |
- } |
|
| 525 |
- |
|
| 526 |
- public String getMltmdClCode() {
|
|
| 527 |
- return mltmdClCode; |
|
| 528 |
- } |
|
| 529 |
- |
|
| 530 |
- public void setMltmdClCode(String mltmdClCode) {
|
|
| 531 |
- this.mltmdClCode = mltmdClCode; |
|
| 532 |
- } |
|
| 533 |
- |
|
| 534 |
- public String getSiteId() {
|
|
| 535 |
- return siteId; |
|
| 536 |
- } |
|
| 537 |
- |
|
| 538 |
- public void setSiteId(String siteId) {
|
|
| 539 |
- this.siteId = siteId; |
|
| 540 |
- } |
|
| 541 |
- |
|
| 542 |
- public long getMaxMegaFileSize() {
|
|
| 543 |
- return maxMegaFileSize; |
|
| 544 |
- } |
|
| 545 |
- |
|
| 546 |
- public void setMaxMegaFileSize(long maxMegaFileSize) {
|
|
| 547 |
- this.maxMegaFileSize = maxMegaFileSize; |
|
| 309 |
+ public void setOrientation(Integer orientation) {
|
|
| 310 |
+ this.orientation = orientation; |
|
| 548 | 311 |
} |
| 549 | 312 |
|
| 550 | 313 |
public String getPathKey() {
|
... | ... | @@ -563,12 +326,44 @@ |
| 563 | 326 |
this.appendPath = appendPath; |
| 564 | 327 |
} |
| 565 | 328 |
|
| 329 |
+ public long getMaxMegaFileSize() {
|
|
| 330 |
+ return maxMegaFileSize; |
|
| 331 |
+ } |
|
| 332 |
+ |
|
| 333 |
+ public void setMaxMegaFileSize(long maxMegaFileSize) {
|
|
| 334 |
+ this.maxMegaFileSize = maxMegaFileSize; |
|
| 335 |
+ } |
|
| 336 |
+ |
|
| 566 | 337 |
public String getEditorId() {
|
| 567 | 338 |
return editorId; |
| 568 | 339 |
} |
| 569 | 340 |
|
| 570 | 341 |
public void setEditorId(String editorId) {
|
| 571 | 342 |
this.editorId = editorId; |
| 343 |
+ } |
|
| 344 |
+ |
|
| 345 |
+ public BigDecimal getDownCnt() {
|
|
| 346 |
+ return downCnt; |
|
| 347 |
+ } |
|
| 348 |
+ |
|
| 349 |
+ public void setDownCnt(BigDecimal downCnt) {
|
|
| 350 |
+ this.downCnt = downCnt; |
|
| 351 |
+ } |
|
| 352 |
+ |
|
| 353 |
+ public String getMltmdClCode() {
|
|
| 354 |
+ return mltmdClCode; |
|
| 355 |
+ } |
|
| 356 |
+ |
|
| 357 |
+ public void setMltmdClCode(String mltmdClCode) {
|
|
| 358 |
+ this.mltmdClCode = mltmdClCode; |
|
| 359 |
+ } |
|
| 360 |
+ |
|
| 361 |
+ public String getFileStreWebCours() {
|
|
| 362 |
+ return fileStreWebCours; |
|
| 363 |
+ } |
|
| 364 |
+ |
|
| 365 |
+ public void setFileStreWebCours(String fileStreWebCours) {
|
|
| 366 |
+ this.fileStreWebCours = fileStreWebCours; |
|
| 572 | 367 |
} |
| 573 | 368 |
|
| 574 | 369 |
public String getIsNoTempFile() {
|
... | ... | @@ -587,22 +382,6 @@ |
| 587 | 382 |
this.maxChunkSize = maxChunkSize; |
| 588 | 383 |
} |
| 589 | 384 |
|
| 590 |
- public Integer getOrientation() {
|
|
| 591 |
- return orientation; |
|
| 592 |
- } |
|
| 593 |
- |
|
| 594 |
- public void setOrientation(Integer orientation) {
|
|
| 595 |
- this.orientation = orientation; |
|
| 596 |
- } |
|
| 597 |
- |
|
| 598 |
- public String getCrclId() {
|
|
| 599 |
- return crclId; |
|
| 600 |
- } |
|
| 601 |
- |
|
| 602 |
- public void setCrclId(String crclId) {
|
|
| 603 |
- this.crclId = crclId; |
|
| 604 |
- } |
|
| 605 |
- |
|
| 606 | 385 |
public String getPublicAt() {
|
| 607 | 386 |
return publicAt; |
| 608 | 387 |
} |
... | ... | @@ -611,20 +390,12 @@ |
| 611 | 390 |
this.publicAt = publicAt; |
| 612 | 391 |
} |
| 613 | 392 |
|
| 614 |
- public String getFrstRegisterId() {
|
|
| 615 |
- return frstRegisterId; |
|
| 393 |
+ public String getSearchCtgryId() {
|
|
| 394 |
+ return searchCtgryId; |
|
| 616 | 395 |
} |
| 617 | 396 |
|
| 618 |
- public void setFrstRegisterId(String frstRegisterId) {
|
|
| 619 |
- this.frstRegisterId = frstRegisterId; |
|
| 620 |
- } |
|
| 621 |
- |
|
| 622 |
- public java.util.Date getFrstRegisterPnttm() {
|
|
| 623 |
- return frstRegisterPnttm; |
|
| 624 |
- } |
|
| 625 |
- |
|
| 626 |
- public void setFrstRegisterPnttm(java.util.Date frstRegisterPnttm) {
|
|
| 627 |
- this.frstRegisterPnttm = frstRegisterPnttm; |
|
| 397 |
+ public void setSearchCtgryId(String searchCtgryId) {
|
|
| 398 |
+ this.searchCtgryId = searchCtgryId; |
|
| 628 | 399 |
} |
| 629 | 400 |
|
| 630 | 401 |
public String getSearchFileNm() {
|
... | ... | @@ -635,6 +406,13 @@ |
| 635 | 406 |
this.searchFileNm = searchFileNm; |
| 636 | 407 |
} |
| 637 | 408 |
|
| 409 |
+ public String getSearchRegisterNm() {
|
|
| 410 |
+ return searchRegisterNm; |
|
| 411 |
+ } |
|
| 412 |
+ |
|
| 413 |
+ public void setSearchRegisterNm(String searchRegisterNm) {
|
|
| 414 |
+ this.searchRegisterNm = searchRegisterNm; |
|
| 415 |
+ } |
|
| 638 | 416 |
|
| 639 | 417 |
public List<String> getSearchFileExtsn() {
|
| 640 | 418 |
return searchFileExtsn; |
... | ... | @@ -652,22 +430,6 @@ |
| 652 | 430 |
this.searchUseCnt = searchUseCnt; |
| 653 | 431 |
} |
| 654 | 432 |
|
| 655 |
- public String getSearchCtgryId() {
|
|
| 656 |
- return searchCtgryId; |
|
| 657 |
- } |
|
| 658 |
- |
|
| 659 |
- public void setSearchCtgryId(String searchCtgryId) {
|
|
| 660 |
- this.searchCtgryId = searchCtgryId; |
|
| 661 |
- } |
|
| 662 |
- |
|
| 663 |
- public String getSearchCrclId() {
|
|
| 664 |
- return searchCrclId; |
|
| 665 |
- } |
|
| 666 |
- |
|
| 667 |
- public void setSearchCrclId(String searchCrclId) {
|
|
| 668 |
- this.searchCrclId = searchCrclId; |
|
| 669 |
- } |
|
| 670 |
- |
|
| 671 | 433 |
public String getSearchScope() {
|
| 672 | 434 |
return searchScope; |
| 673 | 435 |
} |
... | ... | @@ -676,20 +438,12 @@ |
| 676 | 438 |
this.searchScope = searchScope; |
| 677 | 439 |
} |
| 678 | 440 |
|
| 679 |
- public String getSearchCrclNm() {
|
|
| 680 |
- return searchCrclNm; |
|
| 441 |
+ public String getSearchPublicAt() {
|
|
| 442 |
+ return searchPublicAt; |
|
| 681 | 443 |
} |
| 682 | 444 |
|
| 683 |
- public void setSearchCrclNm(String searchCrclNm) {
|
|
| 684 |
- this.searchCrclNm = searchCrclNm; |
|
| 685 |
- } |
|
| 686 |
- |
|
| 687 |
- public String getSearchRegisterNm() {
|
|
| 688 |
- return searchRegisterNm; |
|
| 689 |
- } |
|
| 690 |
- |
|
| 691 |
- public void setSearchRegisterNm(String searchRegisterNm) {
|
|
| 692 |
- this.searchRegisterNm = searchRegisterNm; |
|
| 445 |
+ public void setSearchPublicAt(String searchPublicAt) {
|
|
| 446 |
+ this.searchPublicAt = searchPublicAt; |
|
| 693 | 447 |
} |
| 694 | 448 |
|
| 695 | 449 |
public String getFileExtNm() {
|
... | ... | @@ -706,22 +460,6 @@ |
| 706 | 460 |
|
| 707 | 461 |
public void setHostCode(String hostCode) {
|
| 708 | 462 |
this.hostCode = hostCode; |
| 709 |
- } |
|
| 710 |
- |
|
| 711 |
- public String getDownLoadType() {
|
|
| 712 |
- return downLoadType; |
|
| 713 |
- } |
|
| 714 |
- |
|
| 715 |
- public void setDownLoadType(String downLoadType) {
|
|
| 716 |
- this.downLoadType = downLoadType; |
|
| 717 |
- } |
|
| 718 |
- |
|
| 719 |
- public String getSearchPublicAt() {
|
|
| 720 |
- return searchPublicAt; |
|
| 721 |
- } |
|
| 722 |
- |
|
| 723 |
- public void setSearchPublicAt(String searchPublicAt) {
|
|
| 724 |
- this.searchPublicAt = searchPublicAt; |
|
| 725 | 463 |
} |
| 726 | 464 |
|
| 727 | 465 |
public String getSearchFrstRegisterId() {
|
... | ... | @@ -756,12 +494,12 @@ |
| 756 | 494 |
this.fileExtMov = fileExtMov; |
| 757 | 495 |
} |
| 758 | 496 |
|
| 759 |
- public String getPlId() {
|
|
| 760 |
- return plId; |
|
| 497 |
+ public String getDownLoadType() {
|
|
| 498 |
+ return downLoadType; |
|
| 761 | 499 |
} |
| 762 | 500 |
|
| 763 |
- public void setPlId(String plId) {
|
|
| 764 |
- this.plId = plId; |
|
| 501 |
+ public void setDownLoadType(String downLoadType) {
|
|
| 502 |
+ this.downLoadType = downLoadType; |
|
| 765 | 503 |
} |
| 766 | 504 |
|
| 767 | 505 |
public String getViewType() {
|
... | ... | @@ -780,54 +518,6 @@ |
| 780 | 518 |
this.dateType = dateType; |
| 781 | 519 |
} |
| 782 | 520 |
|
| 783 |
- public String getSearchCrclLang() {
|
|
| 784 |
- return searchCrclLang; |
|
| 785 |
- } |
|
| 786 |
- |
|
| 787 |
- public void setSearchCrclLang(String searchCrclLang) {
|
|
| 788 |
- this.searchCrclLang = searchCrclLang; |
|
| 789 |
- } |
|
| 790 |
- |
|
| 791 |
- public String getSearchPlTitle() {
|
|
| 792 |
- return searchPlTitle; |
|
| 793 |
- } |
|
| 794 |
- |
|
| 795 |
- public void setSearchPlTitle(String searchPlTitle) {
|
|
| 796 |
- this.searchPlTitle = searchPlTitle; |
|
| 797 |
- } |
|
| 798 |
- |
|
| 799 |
- public String getSearchTeacher() {
|
|
| 800 |
- return searchTeacher; |
|
| 801 |
- } |
|
| 802 |
- |
|
| 803 |
- public void setSearchTeacher(String searchTeacher) {
|
|
| 804 |
- this.searchTeacher = searchTeacher; |
|
| 805 |
- } |
|
| 806 |
- |
|
| 807 |
- public String getStudentAt() {
|
|
| 808 |
- return studentAt; |
|
| 809 |
- } |
|
| 810 |
- |
|
| 811 |
- public void setStudentAt(String studentAt) {
|
|
| 812 |
- this.studentAt = studentAt; |
|
| 813 |
- } |
|
| 814 |
- |
|
| 815 |
- public String getUserId() {
|
|
| 816 |
- return userId; |
|
| 817 |
- } |
|
| 818 |
- |
|
| 819 |
- public void setUserId(String userId) {
|
|
| 820 |
- this.userId = userId; |
|
| 821 |
- } |
|
| 822 |
- |
|
| 823 |
- public String getAddAt() {
|
|
| 824 |
- return addAt; |
|
| 825 |
- } |
|
| 826 |
- |
|
| 827 |
- public void setAddAt(String addAt) {
|
|
| 828 |
- this.addAt = addAt; |
|
| 829 |
- } |
|
| 830 |
- |
|
| 831 | 521 |
public int getFileImgWidth() {
|
| 832 | 522 |
return fileImgWidth; |
| 833 | 523 |
} |
... | ... | @@ -843,5 +533,4 @@ |
| 843 | 533 |
public void setFileImgHeight(int fileImgHeight) {
|
| 844 | 534 |
this.fileImgHeight = fileImgHeight; |
| 845 | 535 |
} |
| 846 |
- |
|
| 847 | 536 |
} |
--- base/src/main/java/egovframework/com/cmm/service/impl/EgovFileMngServiceImpl.java
... | ... | @@ -1,509 +0,0 @@ |
| 1 | -package egovframework.com.cmm.service.impl; | |
| 2 | - | |
| 3 | -import java.io.File; | |
| 4 | -import java.util.ArrayList; | |
| 5 | -import java.util.HashMap; | |
| 6 | -import java.util.List; | |
| 7 | -import java.util.Map; | |
| 8 | - | |
| 9 | -import javax.annotation.Resource; | |
| 10 | -import javax.servlet.http.HttpServletRequest; | |
| 11 | -import javax.servlet.http.HttpServletResponse; | |
| 12 | - | |
| 13 | -import org.apache.log4j.Logger; | |
| 14 | -import org.springframework.stereotype.Service; | |
| 15 | -import org.springframework.util.FileCopyUtils; | |
| 16 | -import org.springframework.web.context.request.RequestContextHolder; | |
| 17 | -import org.springframework.web.context.request.ServletWebRequest; | |
| 18 | - | |
| 19 | -import egovframework.com.cmm.service.EgovFileMngService; | |
| 20 | -import egovframework.com.cmm.service.FileVO; | |
| 21 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 22 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 23 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 24 | -import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; | |
| 25 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 26 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 27 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 28 | -import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 29 | - | |
| 30 | -/** | |
| 31 | - * @Class Name : EgovFileMngServiceImpl.java | |
| 32 | - * @Description : 파일정보의 관리를 위한 구현 클래스 | |
| 33 | - * @Modification Information | |
| 34 | - * | |
| 35 | - * 수정일 수정자 수정내용 | |
| 36 | - * ------- ------- ------------------- | |
| 37 | - * 2009. 3. 25. 이삼섭 최초생성 | |
| 38 | - * | |
| 39 | - * @author 공통 서비스 개발팀 이삼섭 | |
| 40 | - * @since 2009. 3. 25. | |
| 41 | - * @version | |
| 42 | - * @see | |
| 43 | - * | |
| 44 | - */ | |
| 45 | -@Service("EgovFileMngService")
| |
| 46 | -public class EgovFileMngServiceImpl extends EgovAbstractServiceImpl implements EgovFileMngService {
| |
| 47 | - | |
| 48 | - @Resource(name = "FileManageDAO") | |
| 49 | - private FileManageDAO fileMngDAO; | |
| 50 | - | |
| 51 | - @Resource(name = "egovFileIdGnrService") | |
| 52 | - private EgovIdGnrService fileIdgenService; | |
| 53 | - | |
| 54 | - @Resource(name = "egovTmpFileIdGnrService") | |
| 55 | - private EgovIdGnrService tmpFileIdgenService; | |
| 56 | - | |
| 57 | - Logger log = Logger.getLogger(this.getClass()); | |
| 58 | - | |
| 59 | - /** | |
| 60 | - * 여러 개의 파일을 삭제한다. | |
| 61 | - * | |
| 62 | - * @see egovframework.com.cmm.service.EgovFileMngService#deleteFileInfs(java.util.List) | |
| 63 | - */ | |
| 64 | - public int deleteFileInfs(List<FileVO> fvoList) throws Exception {
| |
| 65 | - return fileMngDAO.deleteFileInfs(fvoList); | |
| 66 | - } | |
| 67 | - | |
| 68 | - /** | |
| 69 | - * 하나의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 70 | - * | |
| 71 | - * @see egovframework.com.cmm.service.EgovFileMngService#insertFileInf(egovframework.com.cmm.service.FileVO) | |
| 72 | - */ | |
| 73 | - public String insertFileInf(FileVO fvo) throws Exception {
| |
| 74 | - String atchFileId = fvo.getAtchFileId(); | |
| 75 | - fvo.setOrignlFileNm(fvo.getOrignlFileNm().replaceAll(",", ""));
| |
| 76 | - fileMngDAO.insertFileInf(fvo); | |
| 77 | - | |
| 78 | - return atchFileId; | |
| 79 | - } | |
| 80 | - | |
| 81 | - /** | |
| 82 | - * 여러 개의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 83 | - * | |
| 84 | - * @see egovframework.com.cmm.service.EgovFileMngService#insertFileInfs(java.util.List) | |
| 85 | - */ | |
| 86 | - public String insertFileInfs(List<FileVO> fvoList) throws Exception {
| |
| 87 | - String atchFileId = ""; | |
| 88 | - if (fvoList.size() != 0) {
| |
| 89 | - atchFileId = fileMngDAO.insertFileInfs(fvoList); | |
| 90 | - } | |
| 91 | - | |
| 92 | - return atchFileId; | |
| 93 | - } | |
| 94 | - | |
| 95 | - /** | |
| 96 | - * 파일에 대한 목록을 조회한다. | |
| 97 | - * | |
| 98 | - * @see egovframework.com.cmm.service.EgovFileMngService#selectFileInfs(egovframework.com.cmm.service.FileVO) | |
| 99 | - */ | |
| 100 | - public List<FileVO> selectFileInfs(FileVO fvo) throws Exception {
| |
| 101 | - return fileMngDAO.selectFileInfs(fvo); | |
| 102 | - } | |
| 103 | - | |
| 104 | - /** | |
| 105 | - * 여러 개의 파일에 대한 정보(속성 및 상세)를 수정한다. | |
| 106 | - * | |
| 107 | - * @see egovframework.com.cmm.service.EgovFileMngService#updateFileInfs(java.util.List) | |
| 108 | - */ | |
| 109 | - public void updateFileInfs(List<FileVO> fvoList) throws Exception {
| |
| 110 | - //Delete & Insert | |
| 111 | - fileMngDAO.updateFileInfs(fvoList); | |
| 112 | - } | |
| 113 | - | |
| 114 | - /** | |
| 115 | - * 하나의 파일을 삭제한다. | |
| 116 | - * | |
| 117 | - * @see egovframework.com.cmm.service.EgovFileMngService#deleteFileInf(egovframework.com.cmm.service.FileVO) | |
| 118 | - */ | |
| 119 | - public int deleteFileInf(FileVO fvo) throws Exception {
| |
| 120 | - | |
| 121 | - FileVO vo = selectFileInf(fvo); | |
| 122 | - if(vo != null) {
| |
| 123 | - EgovFormBasedFileUtil.deleteFile(vo.fileStreCours + File.separator + vo.streFileNm); | |
| 124 | - } | |
| 125 | - | |
| 126 | - int iResult = fileMngDAO.deleteFileInf(fvo); | |
| 127 | - | |
| 128 | - //프로그램모듈의 첨부파일아이디 업데이트 | |
| 129 | - if(!EgovStringUtil.isEmpty(fvo.getProgrmId())) {
| |
| 130 | - int iCount = fileMngDAO.getFileCount(fvo); | |
| 131 | - if(iCount == 0) {
| |
| 132 | - fileMngDAO.deleteProgrmFileId(fvo); | |
| 133 | - } | |
| 134 | - } | |
| 135 | - return iResult; | |
| 136 | - } | |
| 137 | - | |
| 138 | - /** | |
| 139 | - * 여러개의 파일을 삭제한다. | |
| 140 | - * | |
| 141 | - * @see egovframework.com.cmm.service.EgovFileMngService#deleteFileInf(egovframework.com.cmm.service.FileVO) | |
| 142 | - */ | |
| 143 | - public void deleteFileInfs(String atchFileId) throws Exception {
| |
| 144 | - | |
| 145 | - FileVO fvo = new FileVO(); | |
| 146 | - fvo.setAtchFileId(atchFileId); | |
| 147 | - | |
| 148 | - FileVO dbVO = null; | |
| 149 | - List<FileVO> fileList = selectFileInfs(fvo); | |
| 150 | - if(fileList != null && fileList.size() > 0) {
| |
| 151 | - for(int i = 0; i < fileList.size(); i++) {
| |
| 152 | - dbVO = fileList.get(i); | |
| 153 | - EgovFormBasedFileUtil.deleteFile(dbVO.fileStreCours + File.separator + dbVO.streFileNm); | |
| 154 | - } | |
| 155 | - } | |
| 156 | - | |
| 157 | - deleteAllFileInf(fvo); | |
| 158 | - } | |
| 159 | - | |
| 160 | - /** | |
| 161 | - * 파일에 대한 상세정보를 조회한다. | |
| 162 | - * | |
| 163 | - * @param fvo | |
| 164 | - * @return | |
| 165 | - * @throws Exception | |
| 166 | - */ | |
| 167 | - public FileVO selectFileMaster(FileVO fvo) throws Exception {
| |
| 168 | - return fileMngDAO.selectFileMaster(fvo); | |
| 169 | - } | |
| 170 | - | |
| 171 | - /** | |
| 172 | - * 파일에 대한 상세정보를 조회한다. | |
| 173 | - * | |
| 174 | - * @see egovframework.com.cmm.service.EgovFileMngService#selectFileInf(egovframework.com.cmm.service.FileVO) | |
| 175 | - */ | |
| 176 | - public FileVO selectFileInf(FileVO fvo) throws Exception {
| |
| 177 | - return fileMngDAO.selectFileInf(fvo); | |
| 178 | - } | |
| 179 | - | |
| 180 | - /** | |
| 181 | - * 파일 구분자에 대한 최대값을 구한다. | |
| 182 | - * | |
| 183 | - * @see egovframework.com.cmm.service.EgovFileMngService#getMaxFileSN(egovframework.com.cmm.service.FileVO) | |
| 184 | - */ | |
| 185 | - public int getMaxFileSN(FileVO fvo) throws Exception {
| |
| 186 | - return fileMngDAO.getMaxFileSN(fvo); | |
| 187 | - } | |
| 188 | - | |
| 189 | - /** | |
| 190 | - * 파일 갯수를 구한다. | |
| 191 | - * | |
| 192 | - * @param fvo | |
| 193 | - * @return | |
| 194 | - * @throws Exception | |
| 195 | - */ | |
| 196 | - public int getFileCount(FileVO fvo) throws Exception {
| |
| 197 | - return fileMngDAO.getFileCount(fvo); | |
| 198 | - } | |
| 199 | - | |
| 200 | - /** | |
| 201 | - * 전체 파일을 삭제한다. | |
| 202 | - * | |
| 203 | - * @see egovframework.com.cmm.service.EgovFileMngService#deleteAllFileInf(egovframework.com.cmm.service.FileVO) | |
| 204 | - */ | |
| 205 | - public void deleteAllFileInf(FileVO fvo) throws Exception {
| |
| 206 | - fileMngDAO.deleteAllFileInf(fvo); | |
| 207 | - } | |
| 208 | - | |
| 209 | - /** | |
| 210 | - * 파일명 검색에 대한 목록을 조회한다. | |
| 211 | - * | |
| 212 | - * @see egovframework.com.cmm.service.EgovFileMngService#selectFileListByFileNm(egovframework.com.cmm.service.FileVO) | |
| 213 | - */ | |
| 214 | - public Map<String, Object> selectFileListByFileNm(FileVO fvo) throws Exception {
| |
| 215 | - List<FileVO> result = fileMngDAO.selectFileListByFileNm(fvo); | |
| 216 | - int cnt = fileMngDAO.selectFileListCntByFileNm(fvo); | |
| 217 | - | |
| 218 | - Map<String, Object> map = new HashMap<String, Object>(); | |
| 219 | - | |
| 220 | - map.put("resultList", result);
| |
| 221 | - map.put("resultCnt", Integer.toString(cnt));
| |
| 222 | - | |
| 223 | - return map; | |
| 224 | - } | |
| 225 | - | |
| 226 | - /** | |
| 227 | - * 이미지 파일에 대한 목록을 조회한다. | |
| 228 | - * | |
| 229 | - * @see egovframework.com.cmm.service.EgovFileMngService#selectImageFileList(egovframework.com.cmm.service.FileVO) | |
| 230 | - */ | |
| 231 | - public List<FileVO> selectImageFileList(FileVO vo) throws Exception {
| |
| 232 | - return fileMngDAO.selectImageFileList(vo); | |
| 233 | - } | |
| 234 | - | |
| 235 | - /** | |
| 236 | - * 임시 파일에 대한 상세정보를 조회한다. | |
| 237 | - * | |
| 238 | - * @param fvo | |
| 239 | - * @return | |
| 240 | - * @throws Exception | |
| 241 | - */ | |
| 242 | - public FileVO selectTempFileInf(FileVO fvo) throws Exception {
| |
| 243 | - return fileMngDAO.selectTempFileInf(fvo); | |
| 244 | - } | |
| 245 | - | |
| 246 | - /** | |
| 247 | - * 임시 파일에 대한 상세정보를 조회한다. | |
| 248 | - * | |
| 249 | - * @param fvo | |
| 250 | - * @return | |
| 251 | - * @throws Exception | |
| 252 | - */ | |
| 253 | - public FileVO selectTempFileInfByAtchFileIdAndFileSn(FileVO fvo) throws Exception {
| |
| 254 | - return fileMngDAO.selectTempFileInfByAtchFileIdAndFileSn(fvo); | |
| 255 | - } | |
| 256 | - | |
| 257 | - /** | |
| 258 | - * 임시 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 259 | - * | |
| 260 | - * @param vo | |
| 261 | - * @throws Exception | |
| 262 | - */ | |
| 263 | - public FileVO insertTempFileInf(FileVO vo) throws Exception {
| |
| 264 | - vo.setTmprFileId(tmpFileIdgenService.getNextStringId()); | |
| 265 | - vo.setOrignlFileNm(vo.getOrignlFileNm().replaceAll(",", ""));
| |
| 266 | - | |
| 267 | - fileMngDAO.insertTempFileInf(vo); | |
| 268 | - | |
| 269 | - FileVO dbVO = selectTempFileInf(vo); | |
| 270 | - EgovFormBasedFileUtil.renameFile(dbVO.fileStreCours, vo.streFileNm, dbVO.getStreFileNm()); | |
| 271 | - dbVO.setFileStreWebCours(vo.getFileStreWebCours()); | |
| 272 | - | |
| 273 | - return dbVO; | |
| 274 | - } | |
| 275 | - | |
| 276 | - /** | |
| 277 | - * 하나의 임시 파일을 삭제한다. | |
| 278 | - * | |
| 279 | - * @param fvo | |
| 280 | - * @throws Exception | |
| 281 | - */ | |
| 282 | - public FileVO deleteTempFileInf(FileVO fvo) throws Exception {
| |
| 283 | - | |
| 284 | - FileVO vo = selectTempFileInf(fvo); | |
| 285 | - if(vo != null) {
| |
| 286 | - EgovFormBasedFileUtil.deleteFile(vo.fileStreCours + File.separator + vo.streFileNm); | |
| 287 | - } | |
| 288 | - fileMngDAO.deleteTempFileInf(fvo); | |
| 289 | - return vo; | |
| 290 | - } | |
| 291 | - | |
| 292 | - /** | |
| 293 | - * 임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 294 | - * | |
| 295 | - * @param vo | |
| 296 | - * @throws Exception | |
| 297 | - */ | |
| 298 | - public FileVO insertFileInfsByTemp(FileVO vo) throws Exception {
| |
| 299 | - if(!EgovStringUtil.isEmpty(vo.getFileGroupId())) {
| |
| 300 | - if(EgovStringUtil.isEmpty(vo.getAtchFileId())) {
| |
| 301 | - vo.setAtchFileId(vo.getFileGroupId()); | |
| 302 | - fileMngDAO.insertFileInfsByTempMaster(vo); | |
| 303 | - } | |
| 304 | - | |
| 305 | - fileMngDAO.insertFileInfsByTempDetail(vo); | |
| 306 | - | |
| 307 | - fileMngDAO.deleteFileDetailByTemp(vo); | |
| 308 | - } | |
| 309 | - | |
| 310 | - int iCount = fileMngDAO.getFileCount(vo); | |
| 311 | - if(iCount == 0) {
| |
| 312 | - vo.setAtchFileId("");
| |
| 313 | - vo.setFileGroupId("");
| |
| 314 | - } | |
| 315 | - | |
| 316 | - return vo; | |
| 317 | - } | |
| 318 | - | |
| 319 | - public FileVO insertFileInfsByTemp(FileVO vo, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 320 | - | |
| 321 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 322 | - if(user != null){
| |
| 323 | - vo.setFrstRegisterId(user.getId()); | |
| 324 | - | |
| 325 | - String crclId = request.getParameter("crclId");
| |
| 326 | - if(!EgovStringUtil.isEmpty(crclId)){
| |
| 327 | - vo.setCrclId(crclId); | |
| 328 | - } | |
| 329 | - } | |
| 330 | - | |
| 331 | - if(!EgovStringUtil.isEmpty(vo.getFileGroupId())) {
| |
| 332 | - if(EgovStringUtil.isEmpty(vo.getAtchFileId())) {
| |
| 333 | - vo.setAtchFileId(vo.getFileGroupId()); | |
| 334 | - fileMngDAO.insertFileInfsByTempMaster(vo); | |
| 335 | - } | |
| 336 | - | |
| 337 | - fileMngDAO.insertFileInfsByTempDetail(vo); | |
| 338 | - | |
| 339 | - fileMngDAO.deleteFileDetailByTemp(vo); | |
| 340 | - } | |
| 341 | - | |
| 342 | - int iCount = fileMngDAO.getFileCount(vo); | |
| 343 | - if(iCount == 0) {
| |
| 344 | - vo.setAtchFileId("");
| |
| 345 | - vo.setFileGroupId("");
| |
| 346 | - } | |
| 347 | - | |
| 348 | - return vo; | |
| 349 | - } | |
| 350 | - | |
| 351 | - /** | |
| 352 | - * 여러 개의 임시 파일을 삭제한다. | |
| 353 | - * | |
| 354 | - * @param fvo | |
| 355 | - * @throws Exception | |
| 356 | - */ | |
| 357 | - public int deleteFileDetailByTemp(FileVO fvo) throws Exception {
| |
| 358 | - return fileMngDAO.deleteFileDetailByTemp(fvo); | |
| 359 | - } | |
| 360 | - | |
| 361 | - /** | |
| 362 | - * 첨부파일의 총용량과 갯수를 조회한다. | |
| 363 | - * | |
| 364 | - * @param fvo | |
| 365 | - * @return | |
| 366 | - * @throws Exception | |
| 367 | - */ | |
| 368 | - public FileVO selectFileDetailTotalInfo(FileVO fvo) throws Exception {
| |
| 369 | - return fileMngDAO.selectFileDetailTotalInfo(fvo); | |
| 370 | - } | |
| 371 | - | |
| 372 | - /** | |
| 373 | - * 관리용 첨부파일을 복사한다. | |
| 374 | - * | |
| 375 | - * @param articleList | |
| 376 | - * @throws Exception | |
| 377 | - */ | |
| 378 | - public List<BoardVO> updateFileManageCopy(List<BoardVO> articleList) throws Exception {
| |
| 379 | - | |
| 380 | - BoardVO board = null; | |
| 381 | - FileVO fileVO = null; | |
| 382 | - List<String> atchFileIdArr = new ArrayList<String>(); | |
| 383 | - List<FileVO> masterList = new ArrayList<FileVO>(); | |
| 384 | - for(int i = 0; i < articleList.size(); i++) {
| |
| 385 | - board = articleList.get(i); | |
| 386 | - if(!EgovStringUtil.isEmpty(board.getAtchFileId())) {
| |
| 387 | - atchFileIdArr.add(board.getAtchFileId()); | |
| 388 | - fileVO = new FileVO(); | |
| 389 | - fileVO.setAtchFileId(board.getAtchFileId()); | |
| 390 | - masterList.add(fileVO); | |
| 391 | - } | |
| 392 | - } | |
| 393 | - | |
| 394 | - if(atchFileIdArr.size() > 0) {
| |
| 395 | - fileVO = new FileVO(); | |
| 396 | - fileVO.setAtchFileIdArr(atchFileIdArr); | |
| 397 | - | |
| 398 | - List<FileVO> fileList = fileMngDAO.selectFileManageCopyList(fileVO); | |
| 399 | - if(fileList != null && fileList.size() > 0) {
| |
| 400 | - updateNewFileIdGen(masterList, fileList); | |
| 401 | - copyFiles(fileList); | |
| 402 | - | |
| 403 | - for(int i = 0; i < articleList.size(); i++) {
| |
| 404 | - board = articleList.get(i); | |
| 405 | - if(!EgovStringUtil.isEmpty(board.getAtchFileId())) {
| |
| 406 | - for(int m = 0; m < masterList.size(); m++) {
| |
| 407 | - fileVO = fileList.get(m); | |
| 408 | - if(board.getAtchFileId().equals(fileVO.getOldAtchFileId())) {
| |
| 409 | - board.setAtchFileId(fileVO.getAtchFileId()); | |
| 410 | - break; | |
| 411 | - } | |
| 412 | - } | |
| 413 | - } | |
| 414 | - } | |
| 415 | - | |
| 416 | - fileMngDAO.insertFileBatch(masterList, fileList); | |
| 417 | - } | |
| 418 | - } | |
| 419 | - | |
| 420 | - return articleList; | |
| 421 | - } | |
| 422 | - | |
| 423 | - /** | |
| 424 | - * 첨부파일을 물리적으로 복사한다. | |
| 425 | - * | |
| 426 | - * @param fileList | |
| 427 | - */ | |
| 428 | - public List<FileVO> copyFiles(List<FileVO> fileList) throws Exception {
| |
| 429 | - FileVO file = null; | |
| 430 | - String newStreFileNm = null; | |
| 431 | - for(int i = 0; i < fileList.size(); i++) {
| |
| 432 | - file = fileList.get(i); | |
| 433 | - newStreFileNm = file.getAtchFileId() + "_" + file.getFileSn(); | |
| 434 | - FileCopyUtils.copy(new File(file.getFileStreCours(), file.getStreFileNm()), new File(file.getFileStreCours(), newStreFileNm)); | |
| 435 | - file.setStreFileNm(newStreFileNm); | |
| 436 | - } | |
| 437 | - | |
| 438 | - return fileList; | |
| 439 | - } | |
| 440 | - /** | |
| 441 | - * 첨부파일아이디를 재배치한다. | |
| 442 | - * | |
| 443 | - * @param fileList | |
| 444 | - */ | |
| 445 | - public void updateNewFileIdGen(List<FileVO> masterList, List<FileVO> fileList) throws Exception {
| |
| 446 | - String newAtchFileId = null; | |
| 447 | - FileVO masterVO = null; | |
| 448 | - for(int i = 0; i < masterList.size(); i++) {
| |
| 449 | - | |
| 450 | - newAtchFileId = fileIdgenService.getNextStringId(); | |
| 451 | - | |
| 452 | - masterVO = masterList.get(i); | |
| 453 | - masterVO.setOldAtchFileId(masterVO.getAtchFileId()); | |
| 454 | - masterVO.setAtchFileId(newAtchFileId); | |
| 455 | - | |
| 456 | - updateNewFileIdGen(fileList, masterVO.getOldAtchFileId(), newAtchFileId); | |
| 457 | - | |
| 458 | - } | |
| 459 | - | |
| 460 | - } | |
| 461 | - | |
| 462 | - /** | |
| 463 | - * 첨부파일아이디를 재배치한다. | |
| 464 | - * | |
| 465 | - * @param fileList | |
| 466 | - * @param oldAtchFileId | |
| 467 | - * @param newAtchFileId | |
| 468 | - */ | |
| 469 | - public void updateNewFileIdGen(List<FileVO> fileList, String oldAtchFileId, String newAtchFileId) throws Exception {
| |
| 470 | - | |
| 471 | - FileVO file = null; | |
| 472 | - for(int i = 0; i < fileList.size(); i++) {
| |
| 473 | - file = fileList.get(i); | |
| 474 | - if(oldAtchFileId.equals(file.getAtchFileId())) {
| |
| 475 | - file.setAtchFileId(newAtchFileId); | |
| 476 | - file.setOldAtchFileId(oldAtchFileId); | |
| 477 | - } | |
| 478 | - } | |
| 479 | - } | |
| 480 | - | |
| 481 | - /** | |
| 482 | - * 학습자료 첨부파일 정보를 조회한다. | |
| 483 | - */ | |
| 484 | - public FileVO selectCtsFileInf(String lrnCntntsId) throws Exception {
| |
| 485 | - return fileMngDAO.selectCtsFileInf(lrnCntntsId); | |
| 486 | - } | |
| 487 | - | |
| 488 | - //수업 첨부파일 목록 | |
| 489 | - public List selectStudyFileList(FileVO vo) throws Exception {
| |
| 490 | - return fileMngDAO.selectStudyFileList(vo); | |
| 491 | - } | |
| 492 | - | |
| 493 | - public int selectFileDownLogCnt(EgovMap fvo) throws Exception {
| |
| 494 | - return fileMngDAO.selectFileDownLogCnt(fvo); | |
| 495 | - } | |
| 496 | - | |
| 497 | - public void updateFileDownLog(EgovMap fvo) throws Exception {
| |
| 498 | - fileMngDAO.updateFileDownLog(fvo); | |
| 499 | - } | |
| 500 | - | |
| 501 | - public void insertFileDownLog(EgovMap vo) throws Exception {
| |
| 502 | - fileMngDAO.insertFileDownLog(vo); | |
| 503 | - } | |
| 504 | - | |
| 505 | - //첨부파일 공개여부 | |
| 506 | - public void updateFilePublic(FileVO vo) throws Exception{
| |
| 507 | - fileMngDAO.updateFilePublic(vo); | |
| 508 | - } | |
| 509 | -} |
--- base/src/main/java/egovframework/com/cmm/service/impl/FileManageDAO.java
... | ... | @@ -1,401 +0,0 @@ |
| 1 | -package egovframework.com.cmm.service.impl; | |
| 2 | - | |
| 3 | -import java.sql.SQLException; | |
| 4 | -import java.util.Iterator; | |
| 5 | -import java.util.List; | |
| 6 | - | |
| 7 | -import org.apache.log4j.Logger; | |
| 8 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 9 | -import org.springframework.stereotype.Repository; | |
| 10 | - | |
| 11 | -import com.ibatis.sqlmap.client.SqlMapClient; | |
| 12 | - | |
| 13 | -import egovframework.com.cmm.service.FileVO; | |
| 14 | -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; | |
| 15 | -import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 16 | - | |
| 17 | -/** | |
| 18 | - * @Class Name : EgovFileMngDAO.java | |
| 19 | - * @Description : 파일정보 관리를 위한 데이터 처리 클래스 | |
| 20 | - * @Modification Information | |
| 21 | - * | |
| 22 | - * 수정일 수정자 수정내용 | |
| 23 | - * ------- ------- ------------------- | |
| 24 | - * 2009. 3. 25. 이삼섭 최초생성 | |
| 25 | - * | |
| 26 | - * @author 공통 서비스 개발팀 이삼섭 | |
| 27 | - * @since 2009. 3. 25. | |
| 28 | - * @version | |
| 29 | - * @see | |
| 30 | - * | |
| 31 | - */ | |
| 32 | -@Repository("FileManageDAO")
| |
| 33 | -public class FileManageDAO extends EgovAbstractDAO {
| |
| 34 | - | |
| 35 | - Logger log = Logger.getLogger(this.getClass()); | |
| 36 | - | |
| 37 | - @Autowired | |
| 38 | - SqlMapClient sqlMapClient; | |
| 39 | - | |
| 40 | - /** | |
| 41 | - * 여러 개의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 42 | - * | |
| 43 | - * @param fileList | |
| 44 | - * @return | |
| 45 | - * @throws Exception | |
| 46 | - */ | |
| 47 | - public String insertFileInfs(List<FileVO> fileList) throws Exception {
| |
| 48 | - FileVO vo = fileList.get(0); | |
| 49 | - String atchFileId = vo.getAtchFileId(); | |
| 50 | - | |
| 51 | - insert("FileManageDAO.insertFileMaster", vo);
| |
| 52 | - | |
| 53 | - Iterator<FileVO> iter = fileList.iterator(); | |
| 54 | - while (iter.hasNext()) {
| |
| 55 | - vo = iter.next(); | |
| 56 | - vo.setOrignlFileNm(vo.getOrignlFileNm().replaceAll(",", ""));
| |
| 57 | - | |
| 58 | - insert("FileManageDAO.insertFileDetail", vo);
| |
| 59 | - } | |
| 60 | - | |
| 61 | - return atchFileId; | |
| 62 | - } | |
| 63 | - | |
| 64 | - /** | |
| 65 | - * 하나의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 66 | - * | |
| 67 | - * @param vo | |
| 68 | - * @throws Exception | |
| 69 | - */ | |
| 70 | - public void insertFileInf(FileVO vo) throws Exception {
| |
| 71 | - insert("FileManageDAO.insertFileMaster", vo);
| |
| 72 | - insert("FileManageDAO.insertFileDetail", vo);
| |
| 73 | - } | |
| 74 | - | |
| 75 | - /** | |
| 76 | - * 여러 개의 파일에 대한 정보(속성 및 상세)를 수정한다. | |
| 77 | - * | |
| 78 | - * @param fileList | |
| 79 | - * @throws Exception | |
| 80 | - */ | |
| 81 | - public void updateFileInfs(List<FileVO> fileList) throws Exception {
| |
| 82 | - FileVO vo; | |
| 83 | - Iterator<FileVO> iter = fileList.iterator(); | |
| 84 | - while (iter.hasNext()) {
| |
| 85 | - vo = iter.next(); | |
| 86 | - | |
| 87 | - insert("FileManageDAO.insertFileDetail", vo);
| |
| 88 | - } | |
| 89 | - } | |
| 90 | - | |
| 91 | - /** | |
| 92 | - * 여러 개의 파일을 삭제한다. | |
| 93 | - * | |
| 94 | - * @param fileList | |
| 95 | - * @throws Exception | |
| 96 | - */ | |
| 97 | - public int deleteFileInfs(List<FileVO> fileList) throws Exception {
| |
| 98 | - | |
| 99 | - int cnt = 0; | |
| 100 | - Iterator<FileVO> iter = fileList.iterator(); | |
| 101 | - FileVO vo; | |
| 102 | - while (iter.hasNext()) {
| |
| 103 | - vo = iter.next(); | |
| 104 | - | |
| 105 | - delete("FileManageDAO.deleteFileDetail", vo);
| |
| 106 | - | |
| 107 | - cnt++; | |
| 108 | - } | |
| 109 | - | |
| 110 | - return cnt; | |
| 111 | - } | |
| 112 | - | |
| 113 | - /** | |
| 114 | - * 하나의 파일을 삭제한다. | |
| 115 | - * | |
| 116 | - * @param fvo | |
| 117 | - * @throws Exception | |
| 118 | - */ | |
| 119 | - public int deleteFileInf(FileVO fvo) throws Exception {
| |
| 120 | - return delete("FileManageDAO.deleteFileDetail", fvo);
| |
| 121 | - } | |
| 122 | - | |
| 123 | - /** | |
| 124 | - * 파일에 대한 목록을 조회한다. | |
| 125 | - * | |
| 126 | - * @param vo | |
| 127 | - * @return | |
| 128 | - * @throws Exception | |
| 129 | - */ | |
| 130 | - @SuppressWarnings("unchecked")
| |
| 131 | - public List<FileVO> selectFileInfs(FileVO vo) throws Exception {
| |
| 132 | - return (List<FileVO>)list("FileManageDAO.selectFileList", vo);
| |
| 133 | - } | |
| 134 | - | |
| 135 | - /** | |
| 136 | - * 파일 구분자에 대한 최대값을 구한다. | |
| 137 | - * | |
| 138 | - * @param fvo | |
| 139 | - * @return | |
| 140 | - * @throws Exception | |
| 141 | - */ | |
| 142 | - public int getMaxFileSN(FileVO fvo) throws Exception {
| |
| 143 | - return (Integer)select("FileManageDAO.getMaxFileSN", fvo);
| |
| 144 | - } | |
| 145 | - | |
| 146 | - /** | |
| 147 | - * 파일 갯수를 구한다. | |
| 148 | - * | |
| 149 | - * @param fvo | |
| 150 | - * @return | |
| 151 | - * @throws Exception | |
| 152 | - */ | |
| 153 | - public int getFileCount(FileVO fvo) throws Exception {
| |
| 154 | - return (Integer)select("FileManageDAO.getFileCount", fvo);
| |
| 155 | - } | |
| 156 | - | |
| 157 | - | |
| 158 | - /** | |
| 159 | - * 파일에 대한 상세정보를 조회한다. | |
| 160 | - * | |
| 161 | - * @param fvo | |
| 162 | - * @return | |
| 163 | - * @throws Exception | |
| 164 | - */ | |
| 165 | - public FileVO selectFileMaster(FileVO fvo) throws Exception {
| |
| 166 | - return (FileVO)select("FileManageDAO.selectFileMaster", fvo);
| |
| 167 | - } | |
| 168 | - | |
| 169 | - /** | |
| 170 | - * 파일에 대한 상세정보를 조회한다. | |
| 171 | - * | |
| 172 | - * @param fvo | |
| 173 | - * @return | |
| 174 | - * @throws Exception | |
| 175 | - */ | |
| 176 | - public FileVO selectFileInf(FileVO fvo) throws Exception {
| |
| 177 | - return (FileVO)select("FileManageDAO.selectFileInf", fvo);
| |
| 178 | - } | |
| 179 | - | |
| 180 | - /** | |
| 181 | - * 전체 파일을 삭제한다. | |
| 182 | - * | |
| 183 | - * @param fvo | |
| 184 | - * @throws Exception | |
| 185 | - */ | |
| 186 | - public void deleteAllFileInf(FileVO fvo) throws Exception {
| |
| 187 | - delete("FileManageDAO.deleteAllFileDetail", fvo);
| |
| 188 | - delete("FileManageDAO.deleteFileInf", fvo);
| |
| 189 | - } | |
| 190 | - | |
| 191 | - /** | |
| 192 | - * 파일명 검색에 대한 목록을 조회한다. | |
| 193 | - * | |
| 194 | - * @param vo | |
| 195 | - * @return | |
| 196 | - * @throws Exception | |
| 197 | - */ | |
| 198 | - @SuppressWarnings("unchecked")
| |
| 199 | - public List<FileVO> selectFileListByFileNm(FileVO fvo) throws Exception {
| |
| 200 | - return (List<FileVO>)list("FileManageDAO.selectFileListByFileNm", fvo);
| |
| 201 | - } | |
| 202 | - | |
| 203 | - /** | |
| 204 | - * 파일명 검색에 대한 목록 전체 건수를 조회한다. | |
| 205 | - * | |
| 206 | - * @param fvo | |
| 207 | - * @return | |
| 208 | - * @throws Exception | |
| 209 | - */ | |
| 210 | - public int selectFileListCntByFileNm(FileVO fvo) throws Exception {
| |
| 211 | - return (Integer)select("FileManageDAO.selectFileListCntByFileNm", fvo);
| |
| 212 | - } | |
| 213 | - | |
| 214 | - /** | |
| 215 | - * 이미지 파일에 대한 목록을 조회한다. | |
| 216 | - * | |
| 217 | - * @param vo | |
| 218 | - * @return | |
| 219 | - * @throws Exception | |
| 220 | - */ | |
| 221 | - @SuppressWarnings("unchecked")
| |
| 222 | - public List<FileVO> selectImageFileList(FileVO vo) throws Exception {
| |
| 223 | - return (List<FileVO>)list("FileManageDAO.selectImageFileList", vo);
| |
| 224 | - } | |
| 225 | - | |
| 226 | - /** | |
| 227 | - * 임시 파일에 대한 상세정보를 조회한다. | |
| 228 | - * | |
| 229 | - * @param fvo | |
| 230 | - * @return | |
| 231 | - * @throws Exception | |
| 232 | - */ | |
| 233 | - public FileVO selectTempFileInf(FileVO fvo) throws Exception {
| |
| 234 | - return (FileVO)select("FileManageDAO.selectTempFileInf", fvo);
| |
| 235 | - } | |
| 236 | - | |
| 237 | - /** | |
| 238 | - * 임시 파일에 대한 상세정보를 조회한다. | |
| 239 | - * | |
| 240 | - * @param fvo | |
| 241 | - * @return | |
| 242 | - * @throws Exception | |
| 243 | - */ | |
| 244 | - public FileVO selectTempFileInfByAtchFileIdAndFileSn(FileVO fvo) throws Exception {
| |
| 245 | - return (FileVO)select("FileManageDAO.selectTempFileInfByAtchFileIdAndFileSn", fvo);
| |
| 246 | - } | |
| 247 | - | |
| 248 | - /** | |
| 249 | - * 임시 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 250 | - * | |
| 251 | - * @param vo | |
| 252 | - * @throws Exception | |
| 253 | - */ | |
| 254 | - public void insertTempFileInf(FileVO vo) throws Exception {
| |
| 255 | - insert("FileManageDAO.insertTempFileDetail", vo);
| |
| 256 | - } | |
| 257 | - | |
| 258 | - /** | |
| 259 | - * 하나의 임시 파일을 삭제한다. | |
| 260 | - * | |
| 261 | - * @param fvo | |
| 262 | - * @throws Exception | |
| 263 | - */ | |
| 264 | - public int deleteTempFileInf(FileVO fvo) throws Exception {
| |
| 265 | - return delete("FileManageDAO.deleteTempFileDetail", fvo);
| |
| 266 | - } | |
| 267 | - | |
| 268 | - /** | |
| 269 | - * 임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 270 | - * | |
| 271 | - * @param vo | |
| 272 | - * @throws Exception | |
| 273 | - */ | |
| 274 | - public void insertFileInfsByTempMaster(FileVO vo) throws Exception {
| |
| 275 | - insert("FileManageDAO.insertFileMaster", vo);
| |
| 276 | - } | |
| 277 | - | |
| 278 | - /** | |
| 279 | - * 임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 280 | - * | |
| 281 | - * @param vo | |
| 282 | - * @throws Exception | |
| 283 | - */ | |
| 284 | - public void insertFileInfsByTempDetail(FileVO vo) throws Exception {
| |
| 285 | - insert("FileManageDAO.insertFileDetailByTemp", vo);
| |
| 286 | - } | |
| 287 | - | |
| 288 | - /** | |
| 289 | - * 여러 개의 임시 파일을 삭제한다. | |
| 290 | - * | |
| 291 | - * @param fvo | |
| 292 | - * @throws Exception | |
| 293 | - */ | |
| 294 | - public int deleteFileDetailByTemp(FileVO fvo) throws Exception {
| |
| 295 | - return delete("FileManageDAO.deleteFileDetailByTemp", fvo);
| |
| 296 | - } | |
| 297 | - | |
| 298 | - /** | |
| 299 | - * 프로그램 첨부파일 ID 를 삭제한다. | |
| 300 | - * | |
| 301 | - * @param fvo | |
| 302 | - * @throws Exception | |
| 303 | - */ | |
| 304 | - public void deleteProgrmFileId(FileVO fvo) throws Exception {
| |
| 305 | - delete("FileManageDAO.deleteProgrmFileId", fvo);
| |
| 306 | - } | |
| 307 | - | |
| 308 | - /** | |
| 309 | - * 첨부파일의 총용량과 갯수를 조회한다. | |
| 310 | - * | |
| 311 | - * @param fvo | |
| 312 | - * @return | |
| 313 | - * @throws Exception | |
| 314 | - */ | |
| 315 | - public FileVO selectFileDetailTotalInfo(FileVO fvo) throws Exception {
| |
| 316 | - return (FileVO)select("FileManageDAO.selectFileDetailTotalInfo", fvo);
| |
| 317 | - } | |
| 318 | - | |
| 319 | - /** | |
| 320 | - * 관리용 첨부파일 이동을 위한 모든정보를 조회 한다. | |
| 321 | - * | |
| 322 | - * @param vo | |
| 323 | - * @return | |
| 324 | - * @throws Exception | |
| 325 | - */ | |
| 326 | - @SuppressWarnings("unchecked")
| |
| 327 | - public List<FileVO> selectFileManageCopyList(FileVO vo) throws Exception {
| |
| 328 | - return (List<FileVO>)list("FileManageDAO.selectFileManageCopyList", vo);
| |
| 329 | - } | |
| 330 | - | |
| 331 | - /** | |
| 332 | - * 관리용 첨부파일을 일괄등록한다. | |
| 333 | - * | |
| 334 | - * @param commentList | |
| 335 | - * @return | |
| 336 | - * @throws Exception | |
| 337 | - */ | |
| 338 | - public void insertFileBatch(final List<FileVO> masterList, final List<FileVO> fileList) throws Exception {
| |
| 339 | - | |
| 340 | - Exception error = null; | |
| 341 | - | |
| 342 | - if(fileList != null && fileList.size() > 0) {
| |
| 343 | - try {
| |
| 344 | - sqlMapClient.startTransaction(); | |
| 345 | - sqlMapClient.startBatch(); | |
| 346 | - | |
| 347 | - for(int i = 0; i < masterList.size(); i++) {
| |
| 348 | - insert("FileManageDAO.insertFileMaster", masterList.get(i));
| |
| 349 | - } | |
| 350 | - | |
| 351 | - for(int i = 0; i < fileList.size(); i++) {
| |
| 352 | - insert("FileManageDAO.insertFileDetail", fileList.get(i));
| |
| 353 | - } | |
| 354 | - } | |
| 355 | - catch (SQLException e){
| |
| 356 | - error = e; | |
| 357 | - } | |
| 358 | - catch (Exception e){
| |
| 359 | - error = e; | |
| 360 | - } | |
| 361 | - finally{
| |
| 362 | - sqlMapClient.endTransaction(); | |
| 363 | - } | |
| 364 | - | |
| 365 | - if (error != null){
| |
| 366 | - throw error; | |
| 367 | - } | |
| 368 | - } | |
| 369 | - } | |
| 370 | - | |
| 371 | - /** | |
| 372 | - * 파일에 대한 상세정보를 조회한다. | |
| 373 | - * @throws Exception | |
| 374 | - */ | |
| 375 | - public FileVO selectCtsFileInf(String lrnCntntsId) throws Exception {
| |
| 376 | - return (FileVO)select("FileManageDAO.selectCtsFileInf", lrnCntntsId);
| |
| 377 | - } | |
| 378 | - | |
| 379 | - //수업 첨부파일 목록 | |
| 380 | - public List selectStudyFileList(FileVO vo) throws Exception {
| |
| 381 | - return list("FileManageDAO.selectStudyFileList", vo);
| |
| 382 | - } | |
| 383 | - | |
| 384 | - public int selectFileDownLogCnt(EgovMap vo) throws Exception {
| |
| 385 | - return (Integer)select("FileManageDAO.selectFileDownLogCnt", vo);
| |
| 386 | - } | |
| 387 | - | |
| 388 | - public void updateFileDownLog(EgovMap vo) throws Exception {
| |
| 389 | - insert("FileManageDAO.updateFileDownLog", vo);
| |
| 390 | - } | |
| 391 | - | |
| 392 | - public void insertFileDownLog(EgovMap vo) throws Exception {
| |
| 393 | - insert("FileManageDAO.insertFileDownLog", vo);
| |
| 394 | - } | |
| 395 | - | |
| 396 | - public void updateFilePublic(FileVO vo) throws Exception {
| |
| 397 | - insert("FileManageDAO.updateFilePublic", vo);
| |
| 398 | - } | |
| 399 | - | |
| 400 | - | |
| 401 | -} |
+++ base/src/main/java/egovframework/com/cmm/service/impl/FileManageMapper.java
... | ... | @@ -0,0 +1,85 @@ |
| 1 | +package egovframework.com.cmm.service.impl; | |
| 2 | + | |
| 3 | +import egovframework.com.cmm.service.FileVO; | |
| 4 | +import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 5 | +import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 6 | + | |
| 7 | +import java.sql.SQLException; | |
| 8 | +import java.util.Iterator; | |
| 9 | +import java.util.List; | |
| 10 | + | |
| 11 | +//파일정보 관리를 위한 데이터 처리 클래스 | |
| 12 | +@Mapper("fileManageMapper") | |
| 13 | +public interface FileManageMapper { | |
| 14 | + | |
| 15 | + //파일에 대한 정보(속성)를 등록한다. | |
| 16 | + public void insertFileMaster(FileVO vo) throws Exception; | |
| 17 | + | |
| 18 | + //파일에 대한 정보(상세)를 등록한다. | |
| 19 | + public void insertFileDetail(FileVO vo) throws Exception; | |
| 20 | + | |
| 21 | + //하나의 파일을 삭제한다. | |
| 22 | + public int deleteFileDetail(FileVO fvo) throws Exception; | |
| 23 | + | |
| 24 | + //파일에 대한 목록을 조회한다. | |
| 25 | + public List<FileVO> selectFileList(FileVO vo) throws Exception; | |
| 26 | + | |
| 27 | + //파일 구분자에 대한 최대값을 구한다. | |
| 28 | + public int getMaxFileSN(FileVO fvo) throws Exception; | |
| 29 | + | |
| 30 | + //파일 갯수를 구한다. | |
| 31 | + public int getFileCount(FileVO fvo) throws Exception; | |
| 32 | + | |
| 33 | + //파일에 대한 상세정보를 조회한다. | |
| 34 | + public FileVO selectFileMaster(FileVO fvo) throws Exception; | |
| 35 | + | |
| 36 | + //파일에 대한 상세정보를 조회한다. | |
| 37 | + public FileVO selectFileInf(FileVO fvo) throws Exception; | |
| 38 | + | |
| 39 | + //전체 파일을 삭제한다. | |
| 40 | + public void deleteFileInf(FileVO fvo) throws Exception; | |
| 41 | + | |
| 42 | + //전체 파일을 삭제한다. | |
| 43 | + public void deleteAllFileDetail(FileVO fvo) throws Exception; | |
| 44 | + | |
| 45 | + //파일명 검색에 대한 목록을 조회한다. | |
| 46 | + public List<FileVO> selectFileListByFileNm(FileVO fvo) throws Exception; | |
| 47 | + | |
| 48 | + //파일명 검색에 대한 목록 전체 건수를 조회한다. | |
| 49 | + public int selectFileListCntByFileNm(FileVO fvo) throws Exception; | |
| 50 | + | |
| 51 | + //이미지 파일에 대한 목록을 조회한다. | |
| 52 | + public List<FileVO> selectImageFileList(FileVO vo) throws Exception; | |
| 53 | + | |
| 54 | + //임시 파일에 대한 상세정보를 조회한다. | |
| 55 | + public FileVO selectTempFileInf(FileVO fvo) throws Exception; | |
| 56 | + | |
| 57 | + //임시 파일에 대한 상세정보를 조회한다. | |
| 58 | + public FileVO selectTempFileInfByAtchFileIdAndFileSn(FileVO fvo) throws Exception; | |
| 59 | + | |
| 60 | + //임시 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 61 | + public void insertTempFileDetail(FileVO vo) throws Exception; | |
| 62 | + | |
| 63 | + //하나의 임시 파일을 삭제한다. | |
| 64 | + public int deleteTempFileDetail(FileVO fvo) throws Exception; | |
| 65 | + | |
| 66 | + //임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 67 | + public void insertFileInfsByTempMaster(FileVO vo) throws Exception; | |
| 68 | + | |
| 69 | + //임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 70 | + public void insertFileDetailByTemp(FileVO vo) throws Exception; | |
| 71 | + | |
| 72 | + //여러 개의 임시 파일을 삭제한다. | |
| 73 | + public int deleteFileDetailByTemp(FileVO fvo) throws Exception; | |
| 74 | + | |
| 75 | + //프로그램 첨부파일 ID 를 삭제한다. | |
| 76 | + public void deleteProgrmFileId(FileVO fvo) throws Exception; | |
| 77 | + | |
| 78 | + //첨부파일의 총용량과 갯수를 조회한다. | |
| 79 | + public FileVO selectFileDetailTotalInfo(FileVO fvo) throws Exception; | |
| 80 | + | |
| 81 | + //관리용 첨부파일 이동을 위한 모든정보를 조회 한다. | |
| 82 | + public List<FileVO> selectFileManageCopyList(FileVO vo) throws Exception; | |
| 83 | + | |
| 84 | + | |
| 85 | +} |
+++ base/src/main/java/egovframework/com/cmm/service/impl/FileMngServiceImpl.java
... | ... | @@ -0,0 +1,374 @@ |
| 1 | +package egovframework.com.cmm.service.impl; | |
| 2 | + | |
| 3 | +import java.io.File; | |
| 4 | +import java.util.*; | |
| 5 | + | |
| 6 | +import javax.annotation.Resource; | |
| 7 | +import javax.servlet.http.HttpServletRequest; | |
| 8 | +import javax.servlet.http.HttpServletResponse; | |
| 9 | + | |
| 10 | +import org.apache.log4j.Logger; | |
| 11 | +import org.springframework.stereotype.Service; | |
| 12 | +import org.springframework.util.FileCopyUtils; | |
| 13 | + | |
| 14 | +import egovframework.com.cmm.service.FileMngService; | |
| 15 | +import egovframework.com.cmm.service.FileVO; | |
| 16 | +import egovframework.com.cop.bbs.service.BoardVO; | |
| 17 | +import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 18 | +import egovframework.com.uat.uia.service.LoginVO; | |
| 19 | +import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; | |
| 20 | +import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 21 | +import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 22 | +import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 23 | +import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 24 | + | |
| 25 | +//파일정보의 관리를 위한 구현 클래스 | |
| 26 | +@Service("fileMngService") | |
| 27 | +public class FileMngServiceImpl extends EgovAbstractServiceImpl implements FileMngService { | |
| 28 | + | |
| 29 | + @Resource(name = "fileManageMapper") | |
| 30 | + private FileManageMapper fileManageMapper; | |
| 31 | + | |
| 32 | + @Resource(name = "egovFileIdGnrService") | |
| 33 | + private EgovIdGnrService fileIdgenService; | |
| 34 | + | |
| 35 | + @Resource(name = "egovTmpFileIdGnrService") | |
| 36 | + private EgovIdGnrService tmpFileIdgenService; | |
| 37 | + | |
| 38 | + Logger log = Logger.getLogger(this.getClass()); | |
| 39 | + | |
| 40 | + //여러 개의 파일을 삭제한다. | |
| 41 | + public int deleteFileInfs(List<FileVO> fvoList) throws Exception { | |
| 42 | + int cnt = 0; | |
| 43 | + Iterator<FileVO> iter = fvoList.iterator(); | |
| 44 | + FileVO vo; | |
| 45 | + while (iter.hasNext()) { | |
| 46 | + vo = iter.next(); | |
| 47 | + | |
| 48 | + fileManageMapper.deleteFileDetail(vo); | |
| 49 | + | |
| 50 | + cnt++; | |
| 51 | + } | |
| 52 | + | |
| 53 | + return cnt; | |
| 54 | + } | |
| 55 | + | |
| 56 | + //하나의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 57 | + public String insertFileInf(FileVO fvo) throws Exception { | |
| 58 | + String atchFileId = fvo.getAtchFileId(); | |
| 59 | + fvo.setOrignlFileNm(fvo.getOrignlFileNm().replaceAll(",", "")); | |
| 60 | + fileManageMapper.insertFileMaster(fvo); | |
| 61 | + fileManageMapper.insertFileDetail(fvo); | |
| 62 | + | |
| 63 | + return atchFileId; | |
| 64 | + } | |
| 65 | + | |
| 66 | + //여러 개의 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 67 | + public String insertFileInfs(List<FileVO> fvoList) throws Exception { | |
| 68 | + String atchFileId = ""; | |
| 69 | + if (fvoList.size() != 0) { | |
| 70 | + FileVO vo = fvoList.get(0); | |
| 71 | + atchFileId = vo.getAtchFileId(); | |
| 72 | + fileManageMapper.insertFileMaster(vo); | |
| 73 | + | |
| 74 | + Iterator<FileVO> iter = fvoList.iterator(); | |
| 75 | + while (iter.hasNext()) { | |
| 76 | + vo = iter.next(); | |
| 77 | + vo.setOrignlFileNm(vo.getOrignlFileNm().replaceAll(",", "")); | |
| 78 | + fileManageMapper.insertFileDetail(vo); | |
| 79 | + } | |
| 80 | + } | |
| 81 | + | |
| 82 | + return atchFileId; | |
| 83 | + } | |
| 84 | + | |
| 85 | + //파일에 대한 목록을 조회한다. | |
| 86 | + public List<FileVO> selectFileInfs(FileVO fvo) throws Exception { | |
| 87 | + return fileManageMapper.selectFileList(fvo); | |
| 88 | + } | |
| 89 | + | |
| 90 | + //여러 개의 파일에 대한 정보(속성 및 상세)를 수정한다. | |
| 91 | + public void updateFileInfs(List<FileVO> fvoList) throws Exception { | |
| 92 | + FileVO vo; | |
| 93 | + Iterator<FileVO> iter = fvoList.iterator(); | |
| 94 | + while (iter.hasNext()) { | |
| 95 | + vo = iter.next(); | |
| 96 | + fileManageMapper.insertFileDetail(vo); | |
| 97 | + } | |
| 98 | + } | |
| 99 | + | |
| 100 | + //하나의 파일을 삭제한다. | |
| 101 | + public int deleteFileInf(FileVO fvo) throws Exception { | |
| 102 | + | |
| 103 | + FileVO vo = selectFileInf(fvo); | |
| 104 | + if(vo != null) { | |
| 105 | + EgovFormBasedFileUtil.deleteFile(vo.fileStreCours + File.separator + vo.streFileNm); | |
| 106 | + } | |
| 107 | + | |
| 108 | + int iResult = fileManageMapper.deleteFileDetail(fvo); | |
| 109 | + | |
| 110 | + //프로그램모듈의 첨부파일아이디 업데이트 | |
| 111 | + if(!EgovStringUtil.isEmpty(fvo.getProgrmId())) { | |
| 112 | + int iCount = fileManageMapper.getFileCount(fvo); | |
| 113 | + if(iCount == 0) { | |
| 114 | + fileManageMapper.deleteProgrmFileId(fvo); | |
| 115 | + } | |
| 116 | + } | |
| 117 | + return iResult; | |
| 118 | + } | |
| 119 | + | |
| 120 | + //여러개의 파일을 삭제한다. | |
| 121 | + public void deleteFileInfs(String atchFileId) throws Exception { | |
| 122 | + | |
| 123 | + FileVO fvo = new FileVO(); | |
| 124 | + fvo.setAtchFileId(atchFileId); | |
| 125 | + | |
| 126 | + FileVO dbVO = null; | |
| 127 | + List<FileVO> fileList = selectFileInfs(fvo); | |
| 128 | + if(fileList != null && fileList.size() > 0) { | |
| 129 | + for(int i = 0; i < fileList.size(); i++) { | |
| 130 | + dbVO = fileList.get(i); | |
| 131 | + EgovFormBasedFileUtil.deleteFile(dbVO.fileStreCours + File.separator + dbVO.streFileNm); | |
| 132 | + } | |
| 133 | + } | |
| 134 | + | |
| 135 | + deleteAllFileInf(fvo); | |
| 136 | + } | |
| 137 | + | |
| 138 | + //파일에 대한 상세정보를 조회한다. | |
| 139 | + public FileVO selectFileMaster(FileVO fvo) throws Exception { | |
| 140 | + return fileManageMapper.selectFileMaster(fvo); | |
| 141 | + } | |
| 142 | + | |
| 143 | + //파일에 대한 상세정보를 조회한다. | |
| 144 | + public FileVO selectFileInf(FileVO fvo) throws Exception { | |
| 145 | + return fileManageMapper.selectFileInf(fvo); | |
| 146 | + } | |
| 147 | + | |
| 148 | + //파일 구분자에 대한 최대값을 구한다. | |
| 149 | + public int getMaxFileSN(FileVO fvo) throws Exception { | |
| 150 | + return fileManageMapper.getMaxFileSN(fvo); | |
| 151 | + } | |
| 152 | + | |
| 153 | + //파일 갯수를 구한다. | |
| 154 | + public int getFileCount(FileVO fvo) throws Exception { | |
| 155 | + return fileManageMapper.getFileCount(fvo); | |
| 156 | + } | |
| 157 | + | |
| 158 | + //전체 파일을 삭제한다. | |
| 159 | + public void deleteAllFileInf(FileVO fvo) throws Exception { | |
| 160 | + fileManageMapper.deleteAllFileDetail(fvo); | |
| 161 | + fileManageMapper.deleteFileInf(fvo); | |
| 162 | + } | |
| 163 | + | |
| 164 | + //파일명 검색에 대한 목록을 조회한다. | |
| 165 | + public Map<String, Object> selectFileListByFileNm(FileVO fvo) throws Exception { | |
| 166 | + List<FileVO> result = fileManageMapper.selectFileListByFileNm(fvo); | |
| 167 | + int cnt = fileManageMapper.selectFileListCntByFileNm(fvo); | |
| 168 | + | |
| 169 | + Map<String, Object> map = new HashMap<String, Object>(); | |
| 170 | + | |
| 171 | + map.put("resultList", result); | |
| 172 | + map.put("resultCnt", Integer.toString(cnt)); | |
| 173 | + | |
| 174 | + return map; | |
| 175 | + } | |
| 176 | + | |
| 177 | + //이미지 파일에 대한 목록을 조회한다. | |
| 178 | + public List<FileVO> selectImageFileList(FileVO vo) throws Exception { | |
| 179 | + return fileManageMapper.selectImageFileList(vo); | |
| 180 | + } | |
| 181 | + | |
| 182 | + //임시 파일에 대한 상세정보를 조회한다. | |
| 183 | + public FileVO selectTempFileInf(FileVO fvo) throws Exception { | |
| 184 | + return fileManageMapper.selectTempFileInf(fvo); | |
| 185 | + } | |
| 186 | + | |
| 187 | + //임시 파일에 대한 상세정보를 조회한다. | |
| 188 | + public FileVO selectTempFileInfByAtchFileIdAndFileSn(FileVO fvo) throws Exception { | |
| 189 | + return fileManageMapper.selectTempFileInfByAtchFileIdAndFileSn(fvo); | |
| 190 | + } | |
| 191 | + | |
| 192 | + //임시 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 193 | + public FileVO insertTempFileInf(FileVO vo) throws Exception { | |
| 194 | + vo.setTmprFileId(tmpFileIdgenService.getNextStringId()); | |
| 195 | + vo.setOrignlFileNm(vo.getOrignlFileNm().replaceAll(",", "")); | |
| 196 | + | |
| 197 | + fileManageMapper.insertTempFileDetail(vo); | |
| 198 | + | |
| 199 | + FileVO dbVO = selectTempFileInf(vo); | |
| 200 | + EgovFormBasedFileUtil.renameFile(dbVO.fileStreCours, vo.streFileNm, dbVO.getStreFileNm()); | |
| 201 | + dbVO.setFileStreWebCours(vo.getFileStreWebCours()); | |
| 202 | + | |
| 203 | + return dbVO; | |
| 204 | + } | |
| 205 | + | |
| 206 | + //하나의 임시 파일을 삭제한다. | |
| 207 | + public FileVO deleteTempFileInf(FileVO fvo) throws Exception { | |
| 208 | + | |
| 209 | + FileVO vo = selectTempFileInf(fvo); | |
| 210 | + if(vo != null) { | |
| 211 | + EgovFormBasedFileUtil.deleteFile(vo.fileStreCours + File.separator + vo.streFileNm); | |
| 212 | + } | |
| 213 | + fileManageMapper.deleteTempFileDetail(fvo); | |
| 214 | + return vo; | |
| 215 | + } | |
| 216 | + | |
| 217 | + //임시 파일로 부터 파일에 대한 정보(속성 및 상세)를 등록한다. | |
| 218 | + public FileVO insertFileInfsByTemp(FileVO vo) throws Exception { | |
| 219 | + if(!EgovStringUtil.isEmpty(vo.getFileGroupId())) { | |
| 220 | + if(EgovStringUtil.isEmpty(vo.getAtchFileId())) { | |
| 221 | + vo.setAtchFileId(vo.getFileGroupId()); | |
| 222 | + fileManageMapper.insertFileInfsByTempMaster(vo); | |
| 223 | + } | |
| 224 | + | |
| 225 | + fileManageMapper.insertFileDetailByTemp(vo); | |
| 226 | + | |
| 227 | + fileManageMapper.deleteFileDetailByTemp(vo); | |
| 228 | + } | |
| 229 | + | |
| 230 | + int iCount = fileManageMapper.getFileCount(vo); | |
| 231 | + if(iCount == 0) { | |
| 232 | + vo.setAtchFileId(""); | |
| 233 | + vo.setFileGroupId(""); | |
| 234 | + } | |
| 235 | + | |
| 236 | + return vo; | |
| 237 | + } | |
| 238 | + | |
| 239 | + public FileVO insertFileInfsByTemp(FileVO vo, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 240 | + | |
| 241 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 242 | + if(user != null){ | |
| 243 | + vo.setFrstRegisterId(user.getId()); | |
| 244 | + } | |
| 245 | + | |
| 246 | + if(!EgovStringUtil.isEmpty(vo.getFileGroupId())) { | |
| 247 | + if(EgovStringUtil.isEmpty(vo.getAtchFileId())) { | |
| 248 | + vo.setAtchFileId(vo.getFileGroupId()); | |
| 249 | + fileManageMapper.insertFileInfsByTempMaster(vo); | |
| 250 | + } | |
| 251 | + | |
| 252 | + fileManageMapper.insertFileDetailByTemp(vo); | |
| 253 | + | |
| 254 | + fileManageMapper.deleteFileDetailByTemp(vo); | |
| 255 | + } | |
| 256 | + | |
| 257 | + int iCount = fileManageMapper.getFileCount(vo); | |
| 258 | + if(iCount == 0) { | |
| 259 | + vo.setAtchFileId(""); | |
| 260 | + vo.setFileGroupId(""); | |
| 261 | + } | |
| 262 | + | |
| 263 | + return vo; | |
| 264 | + } | |
| 265 | + | |
| 266 | + //여러 개의 임시 파일을 삭제한다. | |
| 267 | + public int deleteFileDetailByTemp(FileVO fvo) throws Exception { | |
| 268 | + return fileManageMapper.deleteFileDetailByTemp(fvo); | |
| 269 | + } | |
| 270 | + | |
| 271 | + //첨부파일의 총용량과 갯수를 조회한다. | |
| 272 | + public FileVO selectFileDetailTotalInfo(FileVO fvo) throws Exception { | |
| 273 | + return fileManageMapper.selectFileDetailTotalInfo(fvo); | |
| 274 | + } | |
| 275 | + | |
| 276 | + //관리용 첨부파일을 복사한다. | |
| 277 | + public List<BoardVO> updateFileManageCopy(List<BoardVO> articleList) throws Exception { | |
| 278 | + | |
| 279 | + BoardVO board = null; | |
| 280 | + FileVO fileVO = null; | |
| 281 | + List<String> atchFileIdArr = new ArrayList<String>(); | |
| 282 | + List<FileVO> masterList = new ArrayList<FileVO>(); | |
| 283 | + for(int i = 0; i < articleList.size(); i++) { | |
| 284 | + board = articleList.get(i); | |
| 285 | + if(!EgovStringUtil.isEmpty(board.getAtchFileId())) { | |
| 286 | + atchFileIdArr.add(board.getAtchFileId()); | |
| 287 | + fileVO = new FileVO(); | |
| 288 | + fileVO.setAtchFileId(board.getAtchFileId()); | |
| 289 | + masterList.add(fileVO); | |
| 290 | + } | |
| 291 | + } | |
| 292 | + | |
| 293 | + if(atchFileIdArr.size() > 0) { | |
| 294 | + fileVO = new FileVO(); | |
| 295 | + fileVO.setAtchFileIdArr(atchFileIdArr); | |
| 296 | + | |
| 297 | + List<FileVO> fileList = fileManageMapper.selectFileManageCopyList(fileVO); | |
| 298 | + if(fileList != null && fileList.size() > 0) { | |
| 299 | + updateNewFileIdGen(masterList, fileList); | |
| 300 | + copyFiles(fileList); | |
| 301 | + | |
| 302 | + for(int i = 0; i < articleList.size(); i++) { | |
| 303 | + board = articleList.get(i); | |
| 304 | + if(!EgovStringUtil.isEmpty(board.getAtchFileId())) { | |
| 305 | + for(int m = 0; m < masterList.size(); m++) { | |
| 306 | + fileVO = fileList.get(m); | |
| 307 | + if(board.getAtchFileId().equals(fileVO.getOldAtchFileId())) { | |
| 308 | + board.setAtchFileId(fileVO.getAtchFileId()); | |
| 309 | + break; | |
| 310 | + } | |
| 311 | + } | |
| 312 | + } | |
| 313 | + } | |
| 314 | + | |
| 315 | + if(fileList != null && fileList.size() > 0) { | |
| 316 | + for(int i = 0; i < masterList.size(); i++) { | |
| 317 | + fileManageMapper.insertFileMaster(masterList.get(i)); | |
| 318 | + } | |
| 319 | + | |
| 320 | + for(int i = 0; i < fileList.size(); i++) { | |
| 321 | + fileManageMapper.insertFileDetail(fileList.get(i)); | |
| 322 | + } | |
| 323 | + } | |
| 324 | + } | |
| 325 | + } | |
| 326 | + | |
| 327 | + return articleList; | |
| 328 | + } | |
| 329 | + | |
| 330 | + //첨부파일을 물리적으로 복사한다. | |
| 331 | + public List<FileVO> copyFiles(List<FileVO> fileList) throws Exception { | |
| 332 | + FileVO file = null; | |
| 333 | + String newStreFileNm = null; | |
| 334 | + for(int i = 0; i < fileList.size(); i++) { | |
| 335 | + file = fileList.get(i); | |
| 336 | + newStreFileNm = file.getAtchFileId() + "_" + file.getFileSn(); | |
| 337 | + FileCopyUtils.copy(new File(file.getFileStreCours(), file.getStreFileNm()), new File(file.getFileStreCours(), newStreFileNm)); | |
| 338 | + file.setStreFileNm(newStreFileNm); | |
| 339 | + } | |
| 340 | + | |
| 341 | + return fileList; | |
| 342 | + } | |
| 343 | + //첨부파일아이디를 재배치한다. | |
| 344 | + public void updateNewFileIdGen(List<FileVO> masterList, List<FileVO> fileList) throws Exception { | |
| 345 | + String newAtchFileId = null; | |
| 346 | + FileVO masterVO = null; | |
| 347 | + for(int i = 0; i < masterList.size(); i++) { | |
| 348 | + | |
| 349 | + newAtchFileId = fileIdgenService.getNextStringId(); | |
| 350 | + | |
| 351 | + masterVO = masterList.get(i); | |
| 352 | + masterVO.setOldAtchFileId(masterVO.getAtchFileId()); | |
| 353 | + masterVO.setAtchFileId(newAtchFileId); | |
| 354 | + | |
| 355 | + updateNewFileIdGen(fileList, masterVO.getOldAtchFileId(), newAtchFileId); | |
| 356 | + | |
| 357 | + } | |
| 358 | + | |
| 359 | + } | |
| 360 | + | |
| 361 | + //첨부파일아이디를 재배치한다. | |
| 362 | + public void updateNewFileIdGen(List<FileVO> fileList, String oldAtchFileId, String newAtchFileId) throws Exception { | |
| 363 | + | |
| 364 | + FileVO file = null; | |
| 365 | + for(int i = 0; i < fileList.size(); i++) { | |
| 366 | + file = fileList.get(i); | |
| 367 | + if(oldAtchFileId.equals(file.getAtchFileId())) { | |
| 368 | + file.setAtchFileId(newAtchFileId); | |
| 369 | + file.setOldAtchFileId(oldAtchFileId); | |
| 370 | + } | |
| 371 | + } | |
| 372 | + } | |
| 373 | + | |
| 374 | +} |
--- base/src/main/java/egovframework/com/cmm/web/EgovFileDownloadController.java
... | ... | @@ -1,964 +0,0 @@ |
| 1 | -package egovframework.com.cmm.web; | |
| 2 | - | |
| 3 | -import java.io.BufferedInputStream; | |
| 4 | -import java.io.BufferedOutputStream; | |
| 5 | -import java.io.File; | |
| 6 | -import java.io.FileInputStream; | |
| 7 | -import java.io.FileNotFoundException; | |
| 8 | -import java.io.FileOutputStream; | |
| 9 | -import java.io.IOException; | |
| 10 | -import java.io.PrintWriter; | |
| 11 | -import java.net.URLEncoder; | |
| 12 | -import java.text.SimpleDateFormat; | |
| 13 | -import java.util.ArrayList; | |
| 14 | -import java.util.Date; | |
| 15 | -import java.util.HashMap; | |
| 16 | -import java.util.List; | |
| 17 | -import java.util.Map; | |
| 18 | -import java.util.zip.ZipEntry; | |
| 19 | -import java.util.zip.ZipOutputStream; | |
| 20 | - | |
| 21 | -import javax.annotation.Resource; | |
| 22 | -import javax.servlet.ServletOutputStream; | |
| 23 | -import javax.servlet.http.HttpServletRequest; | |
| 24 | -import javax.servlet.http.HttpServletResponse; | |
| 25 | - | |
| 26 | -import org.apache.log4j.Logger; | |
| 27 | -import org.springframework.stereotype.Controller; | |
| 28 | -import org.springframework.util.FileCopyUtils; | |
| 29 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 30 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 31 | -import org.springframework.web.bind.annotation.RequestParam; | |
| 32 | - | |
| 33 | -import egovframework.com.cmm.service.EgovFileMngService; | |
| 34 | -import egovframework.com.cmm.service.FileVO; | |
| 35 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 36 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 37 | -import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 38 | - | |
| 39 | - | |
| 40 | -/** | |
| 41 | - * 파일 다운로드를 위한 컨트롤러 클래스 | |
| 42 | - * @author 공통서비스개발팀 이삼섭 | |
| 43 | - * @since 2009.06.01 | |
| 44 | - * @version 1.0 | |
| 45 | - * @see | |
| 46 | - * | |
| 47 | - * <pre> | |
| 48 | - * << 개정이력(Modification Information) >> | |
| 49 | - * | |
| 50 | - * 수정일 수정자 수정내용 | |
| 51 | - * ------- -------- --------------------------- | |
| 52 | - * 2009.3.25 이삼섭 최초 생성 | |
| 53 | - * | |
| 54 | - * Copyright (C) 2009 by MOPAS All right reserved. | |
| 55 | - * </pre> | |
| 56 | - */ | |
| 57 | -@Controller | |
| 58 | -public class EgovFileDownloadController { | |
| 59 | - @Resource(name = "propertiesService") | |
| 60 | - protected EgovPropertyService propertyService; | |
| 61 | - | |
| 62 | - @Resource(name = "siteManageService") | |
| 63 | - SiteManageService siteManageService; | |
| 64 | - | |
| 65 | - @Resource(name = "EgovFileMngService") | |
| 66 | - private EgovFileMngService fileService; | |
| 67 | - | |
| 68 | - @Resource(name = "propertiesService") | |
| 69 | - protected EgovPropertyService propertiesService; | |
| 70 | - | |
| 71 | - Logger log = Logger.getLogger(this.getClass()); | |
| 72 | - | |
| 73 | - /** | |
| 74 | - * 브라우저 구분 얻기. | |
| 75 | - * | |
| 76 | - * @param request | |
| 77 | - * @return | |
| 78 | - */ | |
| 79 | - private String getBrowser(HttpServletRequest request) { | |
| 80 | - String header = request.getHeader("User-Agent"); | |
| 81 | - if (header.indexOf("MSIE") > -1) { | |
| 82 | - return "MSIE"; | |
| 83 | - } else if (header.indexOf("Trident") > -1) { // IE11 문자열 깨짐 방지 | |
| 84 | - return "Trident"; | |
| 85 | - } else if (header.indexOf("Chrome") > -1) { | |
| 86 | - return "Chrome"; | |
| 87 | - } else if (header.indexOf("Opera") > -1) { | |
| 88 | - return "Opera"; | |
| 89 | - } | |
| 90 | - return "Firefox"; | |
| 91 | - } | |
| 92 | - | |
| 93 | - /** | |
| 94 | - * Disposition 지정하기. | |
| 95 | - * | |
| 96 | - * @param filename | |
| 97 | - * @param request | |
| 98 | - * @param response | |
| 99 | - * @throws Exception | |
| 100 | - */ | |
| 101 | - private void setDisposition(String filename, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 102 | - String browser = getBrowser(request); | |
| 103 | - | |
| 104 | - String dispositionPrefix = "attachment; filename="; | |
| 105 | - String encodedFilename = null; | |
| 106 | - | |
| 107 | - if (browser.equals("MSIE")) { | |
| 108 | - encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 109 | - } else if (browser.equals("Trident")) { | |
| 110 | - encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 111 | - } else if (browser.equals("Firefox")) { | |
| 112 | - encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 113 | - } else if (browser.equals("Opera")) { | |
| 114 | - encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 115 | - } else if (browser.equals("Chrome")) { | |
| 116 | - StringBuffer sb = new StringBuffer(); | |
| 117 | - for (int i = 0; i < filename.length(); i++) { | |
| 118 | - char c = filename.charAt(i); | |
| 119 | - if (c > '~') { | |
| 120 | - sb.append(URLEncoder.encode("" + c, "UTF-8")); | |
| 121 | - } else { | |
| 122 | - sb.append(c); | |
| 123 | - } | |
| 124 | - } | |
| 125 | - encodedFilename = sb.toString(); | |
| 126 | - } else { | |
| 127 | - //throw new RuntimeException("Not supported browser"); | |
| 128 | - throw new IOException("Not supported browser"); | |
| 129 | - } | |
| 130 | - | |
| 131 | - response.setHeader("Content-Disposition", dispositionPrefix + encodedFilename); | |
| 132 | - | |
| 133 | - if ("Opera".equals(browser)){ | |
| 134 | - response.setContentType("application/octet-stream;charset=UTF-8"); | |
| 135 | - } | |
| 136 | - } | |
| 137 | - | |
| 138 | - private void setDisposition(String filename, HttpServletRequest request, HttpServletResponse response, String disposition) throws Exception { | |
| 139 | - String browser = getBrowser(request); | |
| 140 | - | |
| 141 | - String dispositionPrefix = disposition + "; filename="; | |
| 142 | - String encodedFilename = null; | |
| 143 | - | |
| 144 | - if (browser.equals("MSIE")) { | |
| 145 | - encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 146 | - } else if (browser.equals("Trident")) { | |
| 147 | - encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 148 | - } else if (browser.equals("Firefox")) { | |
| 149 | - encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 150 | - } else if (browser.equals("Opera")) { | |
| 151 | - encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 152 | - } else if (browser.equals("Chrome")) { | |
| 153 | - StringBuffer sb = new StringBuffer(); | |
| 154 | - for (int i = 0; i < filename.length(); i++) { | |
| 155 | - char c = filename.charAt(i); | |
| 156 | - if (c > '~') { | |
| 157 | - sb.append(URLEncoder.encode("" + c, "UTF-8")); | |
| 158 | - } else { | |
| 159 | - sb.append(c); | |
| 160 | - } | |
| 161 | - } | |
| 162 | - encodedFilename = sb.toString(); | |
| 163 | - } else { | |
| 164 | - //throw new RuntimeException("Not supported browser"); | |
| 165 | - throw new IOException("Not supported browser"); | |
| 166 | - } | |
| 167 | - | |
| 168 | - response.setHeader("Content-Disposition", dispositionPrefix + encodedFilename); | |
| 169 | - | |
| 170 | - if ("Opera".equals(browser)){ | |
| 171 | - response.setContentType("application/octet-stream;charset=UTF-8"); | |
| 172 | - } | |
| 173 | - } | |
| 174 | - | |
| 175 | - | |
| 176 | - /** | |
| 177 | - * 첨부파일로 등록된 파일에 대하여 다운로드를 제공한다. | |
| 178 | - * | |
| 179 | - * @param commandMap | |
| 180 | - * @param response | |
| 181 | - * @throws Exception | |
| 182 | - */ | |
| 183 | - @RequestMapping(value = "/cmm/fms/FileDown.do") | |
| 184 | - public void cvplFileDownload(@RequestParam Map commandMap, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 185 | - | |
| 186 | - String atchFileId = (String)commandMap.get("atchFileId"); | |
| 187 | - String fileSn = (String)commandMap.get("fileSn"); | |
| 188 | - String plId = commandMap.get("plId") != null ? (String)commandMap.get("plId") : ""; | |
| 189 | - String userId = commandMap.get("userId") != null ? (String)commandMap.get("userId") : ""; | |
| 190 | - String streFileNm = commandMap.get("streFileNm") != null ? (String)commandMap.get("streFileNm") : ""; | |
| 191 | - | |
| 192 | - String strReturnMsg = ""; | |
| 193 | - Boolean isAuthenticated = true;//EgovUserDetailsHelper.isAuthenticated(); | |
| 194 | - | |
| 195 | - | |
| 196 | - //BigDecimal mlgScore = BigDecimal.ZERO; | |
| 197 | - //String nttId = (String)commandMap.get("nttId"); | |
| 198 | - //String bbsId = (String)commandMap.get("bbsId"); | |
| 199 | - | |
| 200 | - if (isAuthenticated) { | |
| 201 | - | |
| 202 | - FileVO fileVO = new FileVO(); | |
| 203 | - fileVO.setAtchFileId(atchFileId); | |
| 204 | - fileVO.setFileSn(fileSn); | |
| 205 | - FileVO fvo = null; | |
| 206 | - fvo = fileService.selectFileInf(fileVO); | |
| 207 | - | |
| 208 | - File uFile = new File(fvo.getFileStreCours(), fvo.getStreFileNm()); | |
| 209 | - int fSize = (int)uFile.length(); | |
| 210 | - | |
| 211 | - if (fSize > 0) { | |
| 212 | - | |
| 213 | - if(!"".equals(plId)){ | |
| 214 | - EgovMap vo = new EgovMap(); | |
| 215 | - vo.put("plId", plId); | |
| 216 | - vo.put("streFileNm", streFileNm); | |
| 217 | - vo.put("userId", userId); | |
| 218 | - | |
| 219 | - if(fileService.selectFileDownLogCnt(vo) > 0){ | |
| 220 | - fileService.updateFileDownLog(vo); | |
| 221 | - }else{ | |
| 222 | - fileService.insertFileDownLog(vo); | |
| 223 | - } | |
| 224 | - } | |
| 225 | - | |
| 226 | - String mimetype = getMime(fvo.getFileExtsn());//"application/x-msdownload"; | |
| 227 | - | |
| 228 | - //20110210 faq참조하여 알아서 주석처리.. | |
| 229 | - response.setContentType(mimetype); | |
| 230 | - setDisposition(fvo.getOrignlFileNm(), request, response); | |
| 231 | - BufferedInputStream in = null; | |
| 232 | - BufferedOutputStream out = null; | |
| 233 | - | |
| 234 | - try { | |
| 235 | - in = new BufferedInputStream(new FileInputStream(uFile)); | |
| 236 | - out = new BufferedOutputStream(response.getOutputStream()); | |
| 237 | - | |
| 238 | - FileCopyUtils.copy(in, out); | |
| 239 | - out.flush(); | |
| 240 | - }catch(FileNotFoundException e){ | |
| 241 | - log.debug("FileNotFoundException: "+ e.getMessage() ); | |
| 242 | - }catch(IOException e){ | |
| 243 | - log.debug("IOException: "+ e.getMessage() ); | |
| 244 | - }catch (Exception e) { | |
| 245 | - log.debug("Exception: "+ e.getMessage() ); | |
| 246 | - } finally { | |
| 247 | - if (in != null) { | |
| 248 | - try { | |
| 249 | - in.close(); | |
| 250 | - } catch (IOException e) { | |
| 251 | - log.debug("IGNORED: "+ e.getMessage() ); | |
| 252 | - } | |
| 253 | - } | |
| 254 | - if (out != null) { | |
| 255 | - try { | |
| 256 | - out.close(); | |
| 257 | - } catch (IOException e) { | |
| 258 | - log.debug("IGNORED: "+ e.getMessage() ); | |
| 259 | - } | |
| 260 | - } | |
| 261 | - } | |
| 262 | - | |
| 263 | - } else { | |
| 264 | - response.setContentType("text/html;charset=UTF-8"); | |
| 265 | - | |
| 266 | - PrintWriter printwriter = response.getWriter(); | |
| 267 | - printwriter.println("<html>"); | |
| 268 | - printwriter.println("<script type=\"text/javascript\">alert('파일을 찾을수 없습니다.');window.close();</script>"); | |
| 269 | - printwriter.println("<br><br><br><h2>Could not get file name:<br>" + fvo.getOrignlFileNm() + "</h2>"); | |
| 270 | - printwriter.println("<br><br><br>"); | |
| 271 | - printwriter.println("</html>"); | |
| 272 | - printwriter.flush(); | |
| 273 | - printwriter.close(); | |
| 274 | - } | |
| 275 | - } else { | |
| 276 | - response.setContentType("text/html;charset=UTF-8"); | |
| 277 | - | |
| 278 | - PrintWriter printwriter = response.getWriter(); | |
| 279 | - printwriter.println("<html>"); | |
| 280 | - printwriter.println("<script type=\"text/javascript\">alert('" + strReturnMsg + "');window.close();</script>"); | |
| 281 | - printwriter.println("<br><br><br><h2>" + strReturnMsg + "</h2>"); | |
| 282 | - printwriter.println("<br><br><br>"); | |
| 283 | - printwriter.println("</html>"); | |
| 284 | - printwriter.flush(); | |
| 285 | - printwriter.close(); | |
| 286 | - } | |
| 287 | - } | |
| 288 | - | |
| 289 | - /** | |
| 290 | - * 절대경로 파일 다운로드를 제공한다. | |
| 291 | - * | |
| 292 | - * @param commandMap | |
| 293 | - * @param response | |
| 294 | - * @throws Exception | |
| 295 | - */ | |
| 296 | - @RequestMapping(value = "/cmm/fms/absolutePathFileDown.do") | |
| 297 | - public void absolutePathFileDown(@RequestParam Map commandMap, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 298 | - String filePath = propertyService.getString((String)commandMap.get("filePath")) + File.separator; | |
| 299 | - String fileNm = (String)commandMap.get("fileNm"); | |
| 300 | - String oriFileNm = (String)commandMap.get("oriFileNm"); | |
| 301 | - | |
| 302 | - //파일 확장자 추출 | |
| 303 | - int pos = fileNm.lastIndexOf( "." ); | |
| 304 | - String ext = fileNm.substring( pos + 1 ); | |
| 305 | - | |
| 306 | - String strReturnMsg = ""; | |
| 307 | - Boolean isAuthenticated = true;//EgovUserDetailsHelper.isAuthenticated(); | |
| 308 | - | |
| 309 | - if (isAuthenticated) { | |
| 310 | - File uFile = new File(filePath, fileNm); | |
| 311 | - int fSize = (int)uFile.length(); | |
| 312 | - | |
| 313 | - if (fSize > 0) { | |
| 314 | - String mimetype = getMime(ext);//"application/x-msdownload"; | |
| 315 | - | |
| 316 | - //20110210 faq참조하여 알아서 주석처리.. | |
| 317 | - response.setContentType(mimetype); | |
| 318 | - setDisposition(oriFileNm, request, response); | |
| 319 | - BufferedInputStream in = null; | |
| 320 | - BufferedOutputStream out = null; | |
| 321 | - | |
| 322 | - try { | |
| 323 | - in = new BufferedInputStream(new FileInputStream(uFile)); | |
| 324 | - out = new BufferedOutputStream(response.getOutputStream()); | |
| 325 | - | |
| 326 | - FileCopyUtils.copy(in, out); | |
| 327 | - out.flush(); | |
| 328 | - }catch(FileNotFoundException e){ | |
| 329 | - log.debug("FileNotFoundException: "+ e.getMessage() ); | |
| 330 | - }catch(IOException e){ | |
| 331 | - log.debug("IOException: "+ e.getMessage() ); | |
| 332 | - }catch (Exception e) { | |
| 333 | - log.debug("Exception: "+ e.getMessage() ); | |
| 334 | - } finally { | |
| 335 | - if (in != null) { | |
| 336 | - try { | |
| 337 | - in.close(); | |
| 338 | - } catch (IOException e) { | |
| 339 | - log.debug("IGNORED: "+ e.getMessage() ); | |
| 340 | - } | |
| 341 | - } | |
| 342 | - if (out != null) { | |
| 343 | - try { | |
| 344 | - out.close(); | |
| 345 | - } catch (IOException e) { | |
| 346 | - log.debug("IGNORED: "+ e.getMessage() ); | |
| 347 | - } | |
| 348 | - } | |
| 349 | - } | |
| 350 | - | |
| 351 | - } else { | |
| 352 | - response.setContentType("text/html;charset=UTF-8"); | |
| 353 | - | |
| 354 | - PrintWriter printwriter = response.getWriter(); | |
| 355 | - printwriter.println("<html>"); | |
| 356 | - printwriter.println("<script type=\"text/javascript\">alert('파일을 찾을수 없습니다.');window.close();</script>"); | |
| 357 | - printwriter.println("<br><br><br><h2>Could not get file name:<br>" + oriFileNm + "</h2>"); | |
| 358 | - printwriter.println("<br><br><br>"); | |
| 359 | - printwriter.println("</html>"); | |
| 360 | - printwriter.flush(); | |
| 361 | - printwriter.close(); | |
| 362 | - } | |
| 363 | - } else { | |
| 364 | - response.setContentType("text/html;charset=UTF-8"); | |
| 365 | - | |
| 366 | - PrintWriter printwriter = response.getWriter(); | |
| 367 | - printwriter.println("<html>"); | |
| 368 | - printwriter.println("<script type=\"text/javascript\">alert('" + strReturnMsg + "');window.close();</script>"); | |
| 369 | - printwriter.println("<br><br><br><h2>" + strReturnMsg + "</h2>"); | |
| 370 | - printwriter.println("<br><br><br>"); | |
| 371 | - printwriter.println("</html>"); | |
| 372 | - printwriter.flush(); | |
| 373 | - printwriter.close(); | |
| 374 | - } | |
| 375 | - } | |
| 376 | - | |
| 377 | - /** | |
| 378 | - * 첨부파일 압축 다운로드 | |
| 379 | - * | |
| 380 | - * @param commandMap | |
| 381 | - * @param response | |
| 382 | - * @throws Exception | |
| 383 | - */ | |
| 384 | - @RequestMapping(value = "/cmm/fms/paperFileDownLoadZip.do") | |
| 385 | - public void cvplFileDownload1Zip(@ModelAttribute("searchVO") FileVO fileVO, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 386 | - List<HashMap<String, String>> sourceFiles = new ArrayList<HashMap<String, String>>(); | |
| 387 | - Date from = new Date(); | |
| 388 | - SimpleDateFormat date = new SimpleDateFormat("yyyyMMddHHmmss"); | |
| 389 | - String dateToString = date.format(from); | |
| 390 | - String downloadFileName = "hufs_" + dateToString; | |
| 391 | - String tempDirectoryPath = propertiesService.getString("Globals.fileStorePath") + "/zip/"; | |
| 392 | - String zipFile = tempDirectoryPath + downloadFileName; | |
| 393 | - | |
| 394 | - //디렉토리가 없으면 생성 | |
| 395 | - File tempDirectory = new File(tempDirectoryPath); | |
| 396 | - | |
| 397 | - if (!tempDirectory.exists()) { | |
| 398 | - tempDirectory.mkdir(); | |
| 399 | - } | |
| 400 | - | |
| 401 | - //다운로드 타입(arr:파일아이디 여러개, 나머지는 한개) | |
| 402 | - if("arr".equals(fileVO.getDownLoadType())) { | |
| 403 | - for(int i=0;i<fileVO.getAtchFileIdArr().size();i++) { | |
| 404 | - if(fileVO.getAtchFileIdArr().get(i) != null && !"".equals(fileVO.getAtchFileIdArr().get(i))) { | |
| 405 | - fileVO.setAtchFileId(fileVO.getAtchFileIdArr().get(i)); | |
| 406 | - | |
| 407 | - List<FileVO> fvo = fileService.selectFileInfs(fileVO); | |
| 408 | - | |
| 409 | - for(int e=0;e<fvo.size();e++) { | |
| 410 | - HashMap<String, String> fileName = new HashMap<String, String>(); | |
| 411 | - | |
| 412 | - fileName.put("orignlDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getOrignlFileNm()); | |
| 413 | - fileName.put("streDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getStreFileNm()); | |
| 414 | - | |
| 415 | - sourceFiles.add(fileName); | |
| 416 | - } | |
| 417 | - } | |
| 418 | - } | |
| 419 | - } else { | |
| 420 | - if(fileVO.getAtchFileId() != null && !"".equals(fileVO.getAtchFileId())) { | |
| 421 | - List<FileVO> fvo = fileService.selectFileInfs(fileVO); | |
| 422 | - | |
| 423 | - for(int e=0;e<fvo.size();e++) { | |
| 424 | - HashMap<String, String> fileName = new HashMap<String, String>(); | |
| 425 | - | |
| 426 | - fileName.put("orignlDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getOrignlFileNm()); | |
| 427 | - fileName.put("streDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getStreFileNm()); | |
| 428 | - | |
| 429 | - sourceFiles.add(fileName); | |
| 430 | - } | |
| 431 | - } | |
| 432 | - } | |
| 433 | - | |
| 434 | - try{ | |
| 435 | - // ZipOutputStream을 FileOutputStream 으로 감쌈 | |
| 436 | - FileOutputStream fout = new FileOutputStream(zipFile); | |
| 437 | - ZipOutputStream zout = new ZipOutputStream(fout); | |
| 438 | - | |
| 439 | - for(int i=0; i < sourceFiles.size(); i++){ | |
| 440 | - | |
| 441 | - // 본래 파일명 유지, 경로제외 파일압축을 위해 new File로 | |
| 442 | - ZipEntry zipEntry = new ZipEntry(new File(sourceFiles.get(i).get("orignlDocNm")).getName()); | |
| 443 | - zout.putNextEntry(zipEntry); | |
| 444 | - | |
| 445 | - FileInputStream fin = new FileInputStream(sourceFiles.get(i).get("streDocNm")); | |
| 446 | - byte[] buffer = new byte[1024]; | |
| 447 | - int length; | |
| 448 | - | |
| 449 | - // input file을 1024바이트로 읽음, zip stream에 읽은 바이트를 씀 | |
| 450 | - while((length = fin.read(buffer)) > 0){ | |
| 451 | - zout.write(buffer, 0, length); | |
| 452 | - } | |
| 453 | - | |
| 454 | - zout.closeEntry(); | |
| 455 | - fin.close(); | |
| 456 | - } | |
| 457 | - | |
| 458 | - zout.close(); | |
| 459 | - | |
| 460 | - response.setContentType("application/zip"); | |
| 461 | - response.addHeader("Content-Disposition", "attachment; filename=" + downloadFileName + ".zip"); | |
| 462 | - | |
| 463 | - FileInputStream fis=new FileInputStream(zipFile); | |
| 464 | - BufferedInputStream bis=new BufferedInputStream(fis); | |
| 465 | - ServletOutputStream so=response.getOutputStream(); | |
| 466 | - BufferedOutputStream bos=new BufferedOutputStream(so); | |
| 467 | - | |
| 468 | - byte[] data=new byte[2048]; | |
| 469 | - int input=0; | |
| 470 | - | |
| 471 | - while((input=bis.read(data))!=-1){ | |
| 472 | - bos.write(data,0,input); | |
| 473 | - bos.flush(); | |
| 474 | - } | |
| 475 | - | |
| 476 | - if(bos!=null) bos.close(); | |
| 477 | - if(bis!=null) bis.close(); | |
| 478 | - if(so!=null) so.close(); | |
| 479 | - if(fis!=null) fis.close(); | |
| 480 | - | |
| 481 | - // 다운로드 후 파일 삭제 | |
| 482 | - File file = new File(zipFile); | |
| 483 | - if(file.exists()){ | |
| 484 | - file.delete(); | |
| 485 | - } | |
| 486 | - } catch(Exception ex){ | |
| 487 | - response.setContentType("text/html;charset=UTF-8"); | |
| 488 | - | |
| 489 | - PrintWriter printwriter = response.getWriter(); | |
| 490 | - printwriter.println("<html>"); | |
| 491 | - printwriter.println("<script type=\"text/javascript\">alert('파일을 찾을수 없습니다.');</script>"); | |
| 492 | - printwriter.println("</html>"); | |
| 493 | - printwriter.flush(); | |
| 494 | - printwriter.close(); | |
| 495 | - } | |
| 496 | - } | |
| 497 | - | |
| 498 | - public String getMime(String args) | |
| 499 | - { | |
| 500 | - String sRtn = "application/octet-stream"; | |
| 501 | - String lower = args.toLowerCase(); | |
| 502 | - if("3dm".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 503 | - else if("3dmf".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 504 | - else if("a".equals(lower)){sRtn="application/octet-stream";} | |
| 505 | - else if("aab".equals(lower)){sRtn="application/x-authorware-bin";} | |
| 506 | - else if("aam".equals(lower)){sRtn="application/x-authorware-map";} | |
| 507 | - else if("aas".equals(lower)){sRtn="application/x-authorware-seg";} | |
| 508 | - else if("abc".equals(lower)){sRtn="text/vnd.abc";} | |
| 509 | - else if("acgi".equals(lower)){sRtn="text/html";} | |
| 510 | - else if("afl".equals(lower)){sRtn="video/animaflex";} | |
| 511 | - else if("ai".equals(lower)){sRtn="application/postscript";} | |
| 512 | - else if("aif".equals(lower)){sRtn="audio/aiff";} | |
| 513 | - else if("aifc".equals(lower)){sRtn="audio/aiff";} | |
| 514 | - else if("aiff".equals(lower)){sRtn="audio/x-aiff";} | |
| 515 | - else if("aim".equals(lower)){sRtn="application/x-aim";} | |
| 516 | - else if("aip".equals(lower)){sRtn="text/x-audiosoft-intra";} | |
| 517 | - else if("ani".equals(lower)){sRtn="application/x-navi-animation";} | |
| 518 | - else if("aos".equals(lower)){sRtn="application/x-nokia-9000-communicator-add-on-software";} | |
| 519 | - else if("aps".equals(lower)){sRtn="application/mime";} | |
| 520 | - else if("arc".equals(lower)){sRtn="application/octet-stream";} | |
| 521 | - else if("arj".equals(lower)){sRtn="application/arj";} | |
| 522 | - else if("art".equals(lower)){sRtn="image/x-jg";} | |
| 523 | - else if("asf".equals(lower)){sRtn="video/x-ms-asf";} | |
| 524 | - else if("asm".equals(lower)){sRtn="text/x-asm";} | |
| 525 | - else if("asp".equals(lower)){sRtn="text/asp";} | |
| 526 | - else if("asx".equals(lower)){sRtn="video/x-ms-asf";} | |
| 527 | - else if("au".equals(lower)){sRtn="audio/x-au";} | |
| 528 | - else if("avi".equals(lower)){sRtn="video/x-msvideo";} | |
| 529 | - else if("avs".equals(lower)){sRtn="video/avs-video";} | |
| 530 | - else if("bcpio".equals(lower)){sRtn="application/x-bcpio";} | |
| 531 | - else if("bin".equals(lower)){sRtn="application/octet-stream";} | |
| 532 | - else if("bm".equals(lower)){sRtn="image/bmp";} | |
| 533 | - else if("bmp".equals(lower)){sRtn="image/bmp";} | |
| 534 | - else if("boo".equals(lower)){sRtn="application/book";} | |
| 535 | - else if("book".equals(lower)){sRtn="application/book";} | |
| 536 | - else if("boz".equals(lower)){sRtn="application/x-bzip2";} | |
| 537 | - else if("bsh".equals(lower)){sRtn="application/x-bsh";} | |
| 538 | - else if("bz".equals(lower)){sRtn="application/x-bzip";} | |
| 539 | - else if("bz2".equals(lower)){sRtn="application/x-bzip2";} | |
| 540 | - else if("c".equals(lower)){sRtn="text/plain";} | |
| 541 | - else if("c++".equals(lower)){sRtn="text/plain";} | |
| 542 | - else if("cat".equals(lower)){sRtn="application/vnd.ms-pki.seccat";} | |
| 543 | - else if("cc".equals(lower)){sRtn="text/plain";} | |
| 544 | - else if("cc".equals(lower)){sRtn="text/x-c";} | |
| 545 | - else if("ccad".equals(lower)){sRtn="application/clariscad";} | |
| 546 | - else if("cco".equals(lower)){sRtn="application/x-cocoa";} | |
| 547 | - else if("cdf".equals(lower)){sRtn="application/cdf";} | |
| 548 | - else if("cer".equals(lower)){sRtn="application/pkix-cert";} | |
| 549 | - else if("cha".equals(lower)){sRtn="application/x-chat";} | |
| 550 | - else if("chat".equals(lower)){sRtn="application/x-chat";} | |
| 551 | - else if("com".equals(lower)){sRtn="text/plain";} | |
| 552 | - else if("conf".equals(lower)){sRtn="text/plain";} | |
| 553 | - else if("cpio".equals(lower)){sRtn="application/x-cpio";} | |
| 554 | - else if("cpp".equals(lower)){sRtn="text/x-c";} | |
| 555 | - else if("cpt".equals(lower)){sRtn="application/mac-compactpro";} | |
| 556 | - else if("crl".equals(lower)){sRtn="application/pkcs-crl";} | |
| 557 | - else if("crt".equals(lower)){sRtn="application/pkix-cert";} | |
| 558 | - else if("csh".equals(lower)){sRtn="application/x-csh";} | |
| 559 | - else if("css".equals(lower)){sRtn="text/css";} | |
| 560 | - else if("cxx".equals(lower)){sRtn="text/plain";} | |
| 561 | - else if("dcr".equals(lower)){sRtn="application/x-director";} | |
| 562 | - else if("deepv".equals(lower)){sRtn="application/x-deepv";} | |
| 563 | - else if("def".equals(lower)){sRtn="text/plain";} | |
| 564 | - else if("dif".equals(lower)){sRtn="video/x-dv";} | |
| 565 | - else if("dir".equals(lower)){sRtn="application/x-director";} | |
| 566 | - else if("dl".equals(lower)){sRtn="video/dl";} | |
| 567 | - else if("doc".equals(lower)){sRtn="application/msword";} | |
| 568 | - else if("docx".equals(lower)){sRtn="application/msword";} | |
| 569 | - else if("dot".equals(lower)){sRtn="application/msword";} | |
| 570 | - else if("dp".equals(lower)){sRtn="application/commonground";} | |
| 571 | - else if("drw".equals(lower)){sRtn="application/drafting";} | |
| 572 | - else if("dump".equals(lower)){sRtn="application/octet-stream";} | |
| 573 | - else if("dv".equals(lower)){sRtn="video/x-dv";} | |
| 574 | - else if("dvi".equals(lower)){sRtn="application/x-dvi";} | |
| 575 | - else if("dwf".equals(lower)){sRtn="model/vnd.dwf";} | |
| 576 | - else if("dwg".equals(lower)){sRtn="image/vnd.dwg";} | |
| 577 | - else if("dwg".equals(lower)){sRtn="image/x-dwg";} | |
| 578 | - else if("dxf".equals(lower)){sRtn="application/dxf";} | |
| 579 | - else if("el".equals(lower)){sRtn="text/x-script.elisp";} | |
| 580 | - else if("elc".equals(lower)){sRtn="application/x-elc";} | |
| 581 | - else if("env".equals(lower)){sRtn="application/x-envoy";} | |
| 582 | - else if("eps".equals(lower)){sRtn="application/postscript";} | |
| 583 | - else if("es".equals(lower)){sRtn="application/x-esrehber";} | |
| 584 | - else if("etx".equals(lower)){sRtn="text/x-setext";} | |
| 585 | - else if("evy".equals(lower)){sRtn="application/envoy";} | |
| 586 | - else if("exe".equals(lower)){sRtn="application/octet-stream";} | |
| 587 | - else if("f".equals(lower)){sRtn="text/plain";} | |
| 588 | - else if("f77".equals(lower)){sRtn="text/x-fortran";} | |
| 589 | - else if("f90".equals(lower)){sRtn="text/plain";} | |
| 590 | - else if("f90".equals(lower)){sRtn="text/x-fortran";} | |
| 591 | - else if("fdf".equals(lower)){sRtn="application/vnd.fdf";} | |
| 592 | - else if("fif".equals(lower)){sRtn="application/fractals";} | |
| 593 | - else if("fif".equals(lower)){sRtn="image/fif";} | |
| 594 | - else if("fli".equals(lower)){sRtn="video/fli";} | |
| 595 | - else if("flo".equals(lower)){sRtn="image/florian";} | |
| 596 | - else if("flx".equals(lower)){sRtn="text/vnd.fmi.flexstor";} | |
| 597 | - else if("fmf".equals(lower)){sRtn="video/x-atomic3d-feature";} | |
| 598 | - else if("for".equals(lower)){sRtn="text/plain";} | |
| 599 | - else if("fpx".equals(lower)){sRtn="image/vnd.fpx";} | |
| 600 | - else if("frl".equals(lower)){sRtn="application/freeloader";} | |
| 601 | - else if("funk".equals(lower)){sRtn="audio/make";} | |
| 602 | - else if("g".equals(lower)){sRtn="text/plain";} | |
| 603 | - else if("g3".equals(lower)){sRtn="image/g3fax";} | |
| 604 | - else if("gif".equals(lower)){sRtn="image/gif";} | |
| 605 | - else if("gl".equals(lower)){sRtn="video/gl";} | |
| 606 | - else if("gsd".equals(lower)){sRtn="audio/x-gsm";} | |
| 607 | - else if("gsm".equals(lower)){sRtn="audio/x-gsm";} | |
| 608 | - else if("gsp".equals(lower)){sRtn="application/x-gsp";} | |
| 609 | - else if("gss".equals(lower)){sRtn="application/x-gss";} | |
| 610 | - else if("gtar".equals(lower)){sRtn="application/x-gtar";} | |
| 611 | - else if("gz".equals(lower)){sRtn="application/x-compressed";} | |
| 612 | - else if("gzip".equals(lower)){sRtn="application/x-gzip";} | |
| 613 | - else if("h".equals(lower)){sRtn="text/plain";} | |
| 614 | - else if("hdf".equals(lower)){sRtn="application/x-hdf";} | |
| 615 | - else if("help".equals(lower)){sRtn="application/x-helpfile";} | |
| 616 | - else if("hgl".equals(lower)){sRtn="application/vnd.hp-hpgl";} | |
| 617 | - else if("hh".equals(lower)){sRtn="text/plain";} | |
| 618 | - else if("hlb".equals(lower)){sRtn="text/x-script";} | |
| 619 | - else if("hlp".equals(lower)){sRtn="application/hlp";} | |
| 620 | - else if("hpg".equals(lower)){sRtn="application/vnd.hp-hpgl";} | |
| 621 | - else if("hpgl".equals(lower)){sRtn="application/vnd.hp-hpgl";} | |
| 622 | - else if("hqx".equals(lower)){sRtn="application/binhex";} | |
| 623 | - else if("hta".equals(lower)){sRtn="application/hta";} | |
| 624 | - else if("htc".equals(lower)){sRtn="text/x-component";} | |
| 625 | - else if("htm".equals(lower)){sRtn="text/html";} | |
| 626 | - else if("html".equals(lower)){sRtn="text/html";} | |
| 627 | - else if("htmls".equals(lower)){sRtn="text/html";} | |
| 628 | - else if("htt".equals(lower)){sRtn="text/webviewhtml";} | |
| 629 | - else if("htx".equals(lower)){sRtn="text/html";} | |
| 630 | - else if("hwp".equals(lower)){sRtn="application/haansofthwp";} | |
| 631 | - else if("ice".equals(lower)){sRtn="x-conference/x-cooltalk";} | |
| 632 | - else if("ico".equals(lower)){sRtn="image/x-icon";} | |
| 633 | - else if("idc".equals(lower)){sRtn="text/plain";} | |
| 634 | - else if("ief".equals(lower)){sRtn="image/ief";} | |
| 635 | - else if("iefs".equals(lower)){sRtn="image/ief";} | |
| 636 | - else if("iges".equals(lower)){sRtn="application/iges";} | |
| 637 | - else if("iges".equals(lower)){sRtn="model/iges";} | |
| 638 | - else if("igs".equals(lower)){sRtn="application/iges";} | |
| 639 | - else if("ima".equals(lower)){sRtn="application/x-ima";} | |
| 640 | - else if("imap".equals(lower)){sRtn="application/x-httpd-imap";} | |
| 641 | - else if("inf".equals(lower)){sRtn="application/inf";} | |
| 642 | - else if("ip".equals(lower)){sRtn="application/x-ip2";} | |
| 643 | - else if("isu".equals(lower)){sRtn="video/x-isvideo";} | |
| 644 | - else if("it".equals(lower)){sRtn="audio/it";} | |
| 645 | - else if("iv".equals(lower)){sRtn="application/x-inventor";} | |
| 646 | - else if("ivr".equals(lower)){sRtn="i-world/i-vrml";} | |
| 647 | - else if("ivy".equals(lower)){sRtn="application/x-livescreen";} | |
| 648 | - else if("jam".equals(lower)){sRtn="audio/x-jam";} | |
| 649 | - else if("jav".equals(lower)){sRtn="text/plain";} | |
| 650 | - else if("java".equals(lower)){sRtn="text/plain";} | |
| 651 | - else if("jcm".equals(lower)){sRtn="application/x-java-commerce";} | |
| 652 | - else if("jfif".equals(lower)){sRtn="image/jpeg";} | |
| 653 | - else if("jfif-tbnl".equals(lower)){sRtn="image/jpeg";} | |
| 654 | - else if("jpe".equals(lower)){sRtn="image/jpeg";} | |
| 655 | - else if("jpeg".equals(lower)){sRtn="image/jpeg";} | |
| 656 | - else if("jpg".equals(lower)){sRtn="image/jpeg";} | |
| 657 | - else if("jps".equals(lower)){sRtn="image/x-jps";} | |
| 658 | - else if("js".equals(lower)){sRtn="application/x-javascript";} | |
| 659 | - else if("jut".equals(lower)){sRtn="image/jutvision";} | |
| 660 | - else if("kar".equals(lower)){sRtn="audio/midi";} | |
| 661 | - else if("ksh".equals(lower)){sRtn="application/x-ksh";} | |
| 662 | - else if("ksh".equals(lower)){sRtn="text/x-script.ksh";} | |
| 663 | - else if("la".equals(lower)){sRtn="audio/nspaudio";} | |
| 664 | - else if("la".equals(lower)){sRtn="audio/x-nspaudio";} | |
| 665 | - else if("lam".equals(lower)){sRtn="audio/x-liveaudio";} | |
| 666 | - else if("latex".equals(lower)){sRtn="application/x-latex";} | |
| 667 | - else if("lha".equals(lower)){sRtn="application/lha";} | |
| 668 | - else if("lhx".equals(lower)){sRtn="application/octet-stream";} | |
| 669 | - else if("list".equals(lower)){sRtn="text/plain";} | |
| 670 | - else if("lma".equals(lower)){sRtn="audio/nspaudio";} | |
| 671 | - else if("lma".equals(lower)){sRtn="audio/x-nspaudio";} | |
| 672 | - else if("log".equals(lower)){sRtn="text/plain";} | |
| 673 | - else if("lsp".equals(lower)){sRtn="application/x-lisp";} | |
| 674 | - else if("lsp".equals(lower)){sRtn="text/x-script.lisp";} | |
| 675 | - else if("lst".equals(lower)){sRtn="text/plain";} | |
| 676 | - else if("lsx".equals(lower)){sRtn="text/x-la-asf";} | |
| 677 | - else if("ltx".equals(lower)){sRtn="application/x-latex";} | |
| 678 | - else if("lzh".equals(lower)){sRtn="application/octet-stream";} | |
| 679 | - else if("m".equals(lower)){sRtn="text/plain";} | |
| 680 | - else if("m".equals(lower)){sRtn="text/x-m";} | |
| 681 | - else if("m1v".equals(lower)){sRtn="video/mpeg";} | |
| 682 | - else if("m2a".equals(lower)){sRtn="audio/mpeg";} | |
| 683 | - else if("m2v".equals(lower)){sRtn="video/mpeg";} | |
| 684 | - else if("m3u".equals(lower)){sRtn="audio/x-mpequrl";} | |
| 685 | - else if("man".equals(lower)){sRtn="application/x-troff-man";} | |
| 686 | - else if("map".equals(lower)){sRtn="application/x-navimap";} | |
| 687 | - else if("mar".equals(lower)){sRtn="text/plain";} | |
| 688 | - else if("mbd".equals(lower)){sRtn="application/mbedlet";} | |
| 689 | - else if("mc$".equals(lower)){sRtn="application/x-magic-cap-package-1.0";} | |
| 690 | - else if("mcd".equals(lower)){sRtn="application/mcad";} | |
| 691 | - else if("mcf".equals(lower)){sRtn="image/vasa";} | |
| 692 | - else if("mcp".equals(lower)){sRtn="application/netmc";} | |
| 693 | - else if("me".equals(lower)){sRtn="application/x-troff-me";} | |
| 694 | - else if("mht".equals(lower)){sRtn="message/rfc822";} | |
| 695 | - else if("mhtml".equals(lower)){sRtn="message/rfc822";} | |
| 696 | - else if("mid".equals(lower)){sRtn="application/x-midi";} | |
| 697 | - else if("midi".equals(lower)){sRtn="application/x-midi";} | |
| 698 | - else if("mif".equals(lower)){sRtn="application/x-frame";} | |
| 699 | - else if("mime".equals(lower)){sRtn="message/rfc822";} | |
| 700 | - else if("mjf".equals(lower)){sRtn="audio/x-vnd.audioexplosion.mjuicemediafile";} | |
| 701 | - else if("mjpg".equals(lower)){sRtn="video/x-motion-jpeg";} | |
| 702 | - else if("mm".equals(lower)){sRtn="application/base64";} | |
| 703 | - else if("mme".equals(lower)){sRtn="application/base64";} | |
| 704 | - else if("mod".equals(lower)){sRtn="audio/mod";} | |
| 705 | - else if("moov".equals(lower)){sRtn="video/quicktime";} | |
| 706 | - else if("mov".equals(lower)){sRtn="video/quicktime";} | |
| 707 | - else if("movie".equals(lower)){sRtn="video/x-sgi-movie";} | |
| 708 | - else if("mp2".equals(lower)){sRtn="audio/mpeg";} | |
| 709 | - else if("mp3".equals(lower)){sRtn="audio/mpeg3";} | |
| 710 | - else if("mpa".equals(lower)){sRtn="audio/mpeg";} | |
| 711 | - else if("mpc".equals(lower)){sRtn="application/x-project";} | |
| 712 | - else if("mpe".equals(lower)){sRtn="video/mpeg";} | |
| 713 | - else if("mpeg".equals(lower)){sRtn="video/mpeg";} | |
| 714 | - else if("mpg".equals(lower)){sRtn="audio/mpeg";} | |
| 715 | - else if("mpga".equals(lower)){sRtn="audio/mpeg";} | |
| 716 | - else if("mpp".equals(lower)){sRtn="application/vnd.ms-project";} | |
| 717 | - else if("mpt".equals(lower)){sRtn="application/x-project";} | |
| 718 | - else if("mpv".equals(lower)){sRtn="application/x-project";} | |
| 719 | - else if("mpx".equals(lower)){sRtn="application/x-project";} | |
| 720 | - else if("mrc".equals(lower)){sRtn="application/marc";} | |
| 721 | - else if("ms".equals(lower)){sRtn="application/x-troff-ms";} | |
| 722 | - else if("mv".equals(lower)){sRtn="video/x-sgi-movie";} | |
| 723 | - else if("my".equals(lower)){sRtn="audio/make";} | |
| 724 | - else if("mzz".equals(lower)){sRtn="application/x-vnd.audioexplosion.mzz";} | |
| 725 | - else if("nap".equals(lower)){sRtn="image/naplps";} | |
| 726 | - else if("naplps".equals(lower)){sRtn="image/naplps";} | |
| 727 | - else if("nc".equals(lower)){sRtn="application/x-netcdf";} | |
| 728 | - else if("ncm".equals(lower)){sRtn="application/vnd.nokia.configuration-message";} | |
| 729 | - else if("nif".equals(lower)){sRtn="image/x-niff";} | |
| 730 | - else if("niff".equals(lower)){sRtn="image/x-niff";} | |
| 731 | - else if("nix".equals(lower)){sRtn="application/x-mix-transfer";} | |
| 732 | - else if("nsc".equals(lower)){sRtn="application/x-conference";} | |
| 733 | - else if("nvd".equals(lower)){sRtn="application/x-navidoc";} | |
| 734 | - else if("o".equals(lower)){sRtn="application/octet-stream";} | |
| 735 | - else if("oda".equals(lower)){sRtn="application/oda";} | |
| 736 | - else if("omc".equals(lower)){sRtn="application/x-omc";} | |
| 737 | - else if("omcd".equals(lower)){sRtn="application/x-omcdatamaker";} | |
| 738 | - else if("omcr".equals(lower)){sRtn="application/x-omcregerator";} | |
| 739 | - else if("p".equals(lower)){sRtn="text/x-pascal";} | |
| 740 | - else if("p10".equals(lower)){sRtn="application/pkcs10";} | |
| 741 | - else if("p12".equals(lower)){sRtn="application/pkcs-12";} | |
| 742 | - else if("p7a".equals(lower)){sRtn="application/x-pkcs7-signature";} | |
| 743 | - else if("p7c".equals(lower)){sRtn="application/pkcs7-mime";} | |
| 744 | - else if("p7m".equals(lower)){sRtn="application/pkcs7-mime";} | |
| 745 | - else if("p7r".equals(lower)){sRtn="application/x-pkcs7-certreqresp";} | |
| 746 | - else if("p7s".equals(lower)){sRtn="application/pkcs7-signature";} | |
| 747 | - else if("part".equals(lower)){sRtn="application/pro_eng";} | |
| 748 | - else if("pas".equals(lower)){sRtn="text/pascal";} | |
| 749 | - else if("pbm".equals(lower)){sRtn="image/x-portable-bitmap";} | |
| 750 | - else if("pcl".equals(lower)){sRtn="application/vnd.hp-pcl";} | |
| 751 | - else if("pct".equals(lower)){sRtn="image/x-pict";} | |
| 752 | - else if("pcx".equals(lower)){sRtn="image/x-pcx";} | |
| 753 | - else if("pdb".equals(lower)){sRtn="chemical/x-pdb";} | |
| 754 | - else if("pdf".equals(lower)){sRtn="application/pdf";} | |
| 755 | - else if("pfunk".equals(lower)){sRtn="audio/make";} | |
| 756 | - else if("pgm".equals(lower)){sRtn="image/x-portable-graymap";} | |
| 757 | - else if("pgm".equals(lower)){sRtn="image/x-portable-greymap";} | |
| 758 | - else if("pic".equals(lower)){sRtn="image/pict";} | |
| 759 | - else if("pict".equals(lower)){sRtn="image/pict";} | |
| 760 | - else if("pkg".equals(lower)){sRtn="application/x-newton-compatible-pkg";} | |
| 761 | - else if("pko".equals(lower)){sRtn="application/vnd.ms-pki.pko";} | |
| 762 | - else if("pl".equals(lower)){sRtn="text/plain";} | |
| 763 | - else if("plx".equals(lower)){sRtn="application/x-pixclscript";} | |
| 764 | - else if("pm".equals(lower)){sRtn="image/x-xpixmap";} | |
| 765 | - else if("pm4".equals(lower)){sRtn="application/x-pagemaker";} | |
| 766 | - else if("pm5".equals(lower)){sRtn="application/x-pagemaker";} | |
| 767 | - else if("png".equals(lower)){sRtn="image/png";} | |
| 768 | - else if("pnm".equals(lower)){sRtn="application/x-portable-anymap";} | |
| 769 | - else if("pot".equals(lower)){sRtn="application/mspowerpoint";} | |
| 770 | - else if("pov".equals(lower)){sRtn="model/x-pov";} | |
| 771 | - else if("ppa".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 772 | - else if("ppm".equals(lower)){sRtn="image/x-portable-pixmap";} | |
| 773 | - else if("pps".equals(lower)){sRtn="application/mspowerpoint";} | |
| 774 | - else if("ppt".equals(lower)){sRtn="application/mspowerpoint";} | |
| 775 | - else if("ppt".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 776 | - else if("pptx".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 777 | - else if("ppz".equals(lower)){sRtn="application/mspowerpoint";} | |
| 778 | - else if("pre".equals(lower)){sRtn="application/x-freelance";} | |
| 779 | - else if("prt".equals(lower)){sRtn="application/pro_eng";} | |
| 780 | - else if("ps".equals(lower)){sRtn="application/postscript";} | |
| 781 | - else if("psd".equals(lower)){sRtn="application/octet-stream";} | |
| 782 | - else if("pvu".equals(lower)){sRtn="paleovu/x-pv";} | |
| 783 | - else if("pwz".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 784 | - else if("py".equals(lower)){sRtn="text/x-script.phyton";} | |
| 785 | - else if("pyc".equals(lower)){sRtn="applicaiton/x-bytecode.python";} | |
| 786 | - else if("qcp".equals(lower)){sRtn="audio/vnd.qcelp";} | |
| 787 | - else if("qd3".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 788 | - else if("qd3d".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 789 | - else if("qif".equals(lower)){sRtn="image/x-quicktime";} | |
| 790 | - else if("qt".equals(lower)){sRtn="video/quicktime";} | |
| 791 | - else if("qtc".equals(lower)){sRtn="video/x-qtc";} | |
| 792 | - else if("qti".equals(lower)){sRtn="image/x-quicktime";} | |
| 793 | - else if("qtif".equals(lower)){sRtn="image/x-quicktime";} | |
| 794 | - else if("ra".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 795 | - else if("ram".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 796 | - else if("ras".equals(lower)){sRtn="application/x-cmu-raster";} | |
| 797 | - else if("rast".equals(lower)){sRtn="image/cmu-raster";} | |
| 798 | - else if("rexx".equals(lower)){sRtn="text/x-script.rexx";} | |
| 799 | - else if("rf".equals(lower)){sRtn="image/vnd.rn-realflash";} | |
| 800 | - else if("rgb".equals(lower)){sRtn="image/x-rgb";} | |
| 801 | - else if("rm".equals(lower)){sRtn="application/vnd.rn-realmedia";} | |
| 802 | - else if("rmi".equals(lower)){sRtn="audio/mid";} | |
| 803 | - else if("rmm".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 804 | - else if("rmp".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 805 | - else if("rng".equals(lower)){sRtn="application/ringing-tones";} | |
| 806 | - else if("rnx".equals(lower)){sRtn="application/vnd.rn-realplayer";} | |
| 807 | - else if("roff".equals(lower)){sRtn="application/x-troff";} | |
| 808 | - else if("rp".equals(lower)){sRtn="image/vnd.rn-realpix";} | |
| 809 | - else if("rpm".equals(lower)){sRtn="audio/x-pn-realaudio-plugin";} | |
| 810 | - else if("rt".equals(lower)){sRtn="text/richtext";} | |
| 811 | - else if("rtf".equals(lower)){sRtn="application/rtf";} | |
| 812 | - else if("rtx".equals(lower)){sRtn="application/rtf";} | |
| 813 | - else if("rv".equals(lower)){sRtn="video/vnd.rn-realvideo";} | |
| 814 | - else if("s".equals(lower)){sRtn="text/x-asm";} | |
| 815 | - else if("s3m".equals(lower)){sRtn="audio/s3m";} | |
| 816 | - else if("saveme".equals(lower)){sRtn="application/octet-stream";} | |
| 817 | - else if("sbk".equals(lower)){sRtn="application/x-tbook";} | |
| 818 | - else if("scm".equals(lower)){sRtn="application/x-lotusscreencam";} | |
| 819 | - else if("sdml".equals(lower)){sRtn="text/plain";} | |
| 820 | - else if("sdp".equals(lower)){sRtn="application/sdp";} | |
| 821 | - else if("sdr".equals(lower)){sRtn="application/sounder";} | |
| 822 | - else if("sea".equals(lower)){sRtn="application/sea";} | |
| 823 | - else if("set".equals(lower)){sRtn="application/set";} | |
| 824 | - else if("sgm".equals(lower)){sRtn="text/sgml";} | |
| 825 | - else if("sgml".equals(lower)){sRtn="text/sgml";} | |
| 826 | - else if("sh".equals(lower)){sRtn="application/x-bsh";} | |
| 827 | - else if("shar".equals(lower)){sRtn="application/x-bsh";} | |
| 828 | - else if("shtml".equals(lower)){sRtn="text/html";} | |
| 829 | - else if("sid".equals(lower)){sRtn="audio/x-psid";} | |
| 830 | - else if("sit".equals(lower)){sRtn="application/x-sit";} | |
| 831 | - else if("skd".equals(lower)){sRtn="application/x-koan";} | |
| 832 | - else if("skm".equals(lower)){sRtn="application/x-koan";} | |
| 833 | - else if("skp".equals(lower)){sRtn="application/x-koan";} | |
| 834 | - else if("skt".equals(lower)){sRtn="application/x-koan";} | |
| 835 | - else if("sl".equals(lower)){sRtn="application/x-seelogo";} | |
| 836 | - else if("smi".equals(lower)){sRtn="application/smil";} | |
| 837 | - else if("smil".equals(lower)){sRtn="application/smil";} | |
| 838 | - else if("snd".equals(lower)){sRtn="audio/basic";} | |
| 839 | - else if("sol".equals(lower)){sRtn="application/solids";} | |
| 840 | - else if("spc".equals(lower)){sRtn="application/x-pkcs7-certificates";} | |
| 841 | - else if("spl".equals(lower)){sRtn="application/futuresplash";} | |
| 842 | - else if("spr".equals(lower)){sRtn="application/x-sprite";} | |
| 843 | - else if("sprite".equals(lower)){sRtn="application/x-sprite";} | |
| 844 | - else if("src".equals(lower)){sRtn="application/x-wais-source";} | |
| 845 | - else if("ssi".equals(lower)){sRtn="text/x-server-parsed-html";} | |
| 846 | - else if("ssm".equals(lower)){sRtn="application/streamingmedia";} | |
| 847 | - else if("sst".equals(lower)){sRtn="application/vnd.ms-pki.certstore";} | |
| 848 | - else if("step".equals(lower)){sRtn="application/step";} | |
| 849 | - else if("stl".equals(lower)){sRtn="application/sla";} | |
| 850 | - else if("stp".equals(lower)){sRtn="application/step";} | |
| 851 | - else if("sv4cpio".equals(lower)){sRtn="application/x-sv4cpio";} | |
| 852 | - else if("sv4crc".equals(lower)){sRtn="application/x-sv4crc";} | |
| 853 | - else if("svf".equals(lower)){sRtn="image/vnd.dwg";} | |
| 854 | - else if("svr".equals(lower)){sRtn="application/x-world";} | |
| 855 | - else if("swf".equals(lower)){sRtn="application/x-shockwave-flash";} | |
| 856 | - else if("t".equals(lower)){sRtn="application/x-troff";} | |
| 857 | - else if("talk".equals(lower)){sRtn="text/x-speech";} | |
| 858 | - else if("tar".equals(lower)){sRtn="application/x-tar";} | |
| 859 | - else if("tbk".equals(lower)){sRtn="application/toolbook";} | |
| 860 | - else if("tcl".equals(lower)){sRtn="application/x-tcl";} | |
| 861 | - else if("tcsh".equals(lower)){sRtn="text/x-script.tcsh";} | |
| 862 | - else if("tex".equals(lower)){sRtn="application/x-tex";} | |
| 863 | - else if("texi".equals(lower)){sRtn="application/x-texinfo";} | |
| 864 | - else if("texinfo".equals(lower)){sRtn="application/x-texinfo";} | |
| 865 | - else if("text".equals(lower)){sRtn="application/plain";} | |
| 866 | - else if("tgz".equals(lower)){sRtn="application/gnutar";} | |
| 867 | - else if("tif".equals(lower)){sRtn="image/tiff";} | |
| 868 | - else if("tiff".equals(lower)){sRtn="image/tiff";} | |
| 869 | - else if("tr".equals(lower)){sRtn="application/x-troff";} | |
| 870 | - else if("tsi".equals(lower)){sRtn="audio/tsp-audio";} | |
| 871 | - else if("tsp".equals(lower)){sRtn="application/dsptype";} | |
| 872 | - else if("tsv".equals(lower)){sRtn="text/tab-separated-values";} | |
| 873 | - else if("turbot".equals(lower)){sRtn="image/florian";} | |
| 874 | - else if("txt".equals(lower)){sRtn="application/octet-stream";} | |
| 875 | - else if("uil".equals(lower)){sRtn="text/x-uil";} | |
| 876 | - else if("uni".equals(lower)){sRtn="text/uri-list";} | |
| 877 | - else if("unis".equals(lower)){sRtn="text/uri-list";} | |
| 878 | - else if("unv".equals(lower)){sRtn="application/i-deas";} | |
| 879 | - else if("uri".equals(lower)){sRtn="text/uri-list";} | |
| 880 | - else if("uris".equals(lower)){sRtn="text/uri-list";} | |
| 881 | - else if("ustar".equals(lower)){sRtn="application/x-ustar";} | |
| 882 | - else if("uu".equals(lower)){sRtn="application/octet-stream";} | |
| 883 | - else if("uue".equals(lower)){sRtn="text/x-uuencode";} | |
| 884 | - else if("vcd".equals(lower)){sRtn="application/x-cdlink";} | |
| 885 | - else if("vcs".equals(lower)){sRtn="text/x-vcalendar";} | |
| 886 | - else if("vda".equals(lower)){sRtn="application/vda";} | |
| 887 | - else if("vdo".equals(lower)){sRtn="video/vdo";} | |
| 888 | - else if("vew".equals(lower)){sRtn="application/groupwise";} | |
| 889 | - else if("viv".equals(lower)){sRtn="video/vivo";} | |
| 890 | - else if("vivo".equals(lower)){sRtn="video/vivo";} | |
| 891 | - else if("vmd".equals(lower)){sRtn="application/vocaltec-media-desc";} | |
| 892 | - else if("vmf".equals(lower)){sRtn="application/vocaltec-media-file";} | |
| 893 | - else if("voc".equals(lower)){sRtn="audio/voc";} | |
| 894 | - else if("vos".equals(lower)){sRtn="video/vosaic";} | |
| 895 | - else if("vox".equals(lower)){sRtn="audio/voxware";} | |
| 896 | - else if("vqe".equals(lower)){sRtn="audio/x-twinvq-plugin";} | |
| 897 | - else if("vqf".equals(lower)){sRtn="audio/x-twinvq";} | |
| 898 | - else if("vql".equals(lower)){sRtn="audio/x-twinvq-plugin";} | |
| 899 | - else if("vrml".equals(lower)){sRtn="application/x-vrml";} | |
| 900 | - else if("vrt".equals(lower)){sRtn="x-world/x-vrt";} | |
| 901 | - else if("vsd".equals(lower)){sRtn="application/x-visio";} | |
| 902 | - else if("vst".equals(lower)){sRtn="application/x-visio";} | |
| 903 | - else if("vsw".equals(lower)){sRtn="application/x-visio";} | |
| 904 | - else if("w60".equals(lower)){sRtn="application/wordperfect6.0";} | |
| 905 | - else if("w61".equals(lower)){sRtn="application/wordperfect6.1";} | |
| 906 | - else if("w6w".equals(lower)){sRtn="application/msword";} | |
| 907 | - else if("wav".equals(lower)){sRtn="audio/wav";} | |
| 908 | - else if("wb1".equals(lower)){sRtn="application/x-qpro";} | |
| 909 | - else if("wbmp".equals(lower)){sRtn="image/vnd.wap.wbmp";} | |
| 910 | - else if("web".equals(lower)){sRtn="application/vnd.xara";} | |
| 911 | - else if("wiz".equals(lower)){sRtn="application/msword";} | |
| 912 | - else if("wk1".equals(lower)){sRtn="application/x-123";} | |
| 913 | - else if("wmf".equals(lower)){sRtn="windows/metafile";} | |
| 914 | - else if("wml".equals(lower)){sRtn="text/vnd.wap.wml";} | |
| 915 | - else if("wmlc".equals(lower)){sRtn="application/vnd.wap.wmlc";} | |
| 916 | - else if("wmls".equals(lower)){sRtn="text/vnd.wap.wmlscript";} | |
| 917 | - else if("wmlsc".equals(lower)){sRtn="application/vnd.wap.wmlscriptc";} | |
| 918 | - else if("word".equals(lower)){sRtn="application/msword";} | |
| 919 | - else if("wp".equals(lower)){sRtn="application/wordperfect";} | |
| 920 | - else if("wp5".equals(lower)){sRtn="application/wordperfect";} | |
| 921 | - else if("wp6".equals(lower)){sRtn="application/wordperfect";} | |
| 922 | - else if("wpd".equals(lower)){sRtn="application/wordperfect";} | |
| 923 | - else if("wq1".equals(lower)){sRtn="application/x-lotus";} | |
| 924 | - else if("wri".equals(lower)){sRtn="application/mswrite";} | |
| 925 | - else if("wrl".equals(lower)){sRtn="application/x-world";} | |
| 926 | - else if("wrz".equals(lower)){sRtn="model/vrml";} | |
| 927 | - else if("wsc".equals(lower)){sRtn="text/scriplet";} | |
| 928 | - else if("wsrc".equals(lower)){sRtn="application/x-wais-source";} | |
| 929 | - else if("wtk".equals(lower)){sRtn="application/x-wintalk";} | |
| 930 | - else if("xbm".equals(lower)){sRtn="image/x-xbitmap";} | |
| 931 | - else if("xdr".equals(lower)){sRtn="video/x-amt-demorun";} | |
| 932 | - else if("xgz".equals(lower)){sRtn="xgl/drawing";} | |
| 933 | - else if("xif".equals(lower)){sRtn="image/vnd.xiff";} | |
| 934 | - else if("xl".equals(lower)){sRtn="application/excel";} | |
| 935 | - else if("xla".equals(lower)){sRtn="application/excel";} | |
| 936 | - else if("xlb".equals(lower)){sRtn="application/excel";} | |
| 937 | - else if("xlc".equals(lower)){sRtn="application/excel";} | |
| 938 | - else if("xld".equals(lower)){sRtn="application/excel";} | |
| 939 | - else if("xlk".equals(lower)){sRtn="application/excel";} | |
| 940 | - else if("xll".equals(lower)){sRtn="application/excel";} | |
| 941 | - else if("xlm".equals(lower)){sRtn="application/excel";} | |
| 942 | - else if("xls".equals(lower)){sRtn="application/excel";} | |
| 943 | - else if("xlsx".equals(lower)){sRtn="application/excel";} | |
| 944 | - else if("xlt".equals(lower)){sRtn="application/excel";} | |
| 945 | - else if("xlv".equals(lower)){sRtn="application/excel";} | |
| 946 | - else if("xlw".equals(lower)){sRtn="application/excel";} | |
| 947 | - else if("xm".equals(lower)){sRtn="audio/xm";} | |
| 948 | - else if("xml".equals(lower)){sRtn="application/xml";} | |
| 949 | - else if("xmz".equals(lower)){sRtn="xgl/movie";} | |
| 950 | - else if("xpix".equals(lower)){sRtn="application/x-vnd.ls-xpix";} | |
| 951 | - else if("xpm".equals(lower)){sRtn="image/x-xpixmap";} | |
| 952 | - else if("xpm".equals(lower)){sRtn="image/xpm";} | |
| 953 | - else if("x-png".equals(lower)){sRtn="image/png";} | |
| 954 | - else if("xsr".equals(lower)){sRtn="video/x-amt-showrun";} | |
| 955 | - else if("xwd".equals(lower)){sRtn="image/x-xwd";} | |
| 956 | - else if("xyz".equals(lower)){sRtn="chemical/x-pdb";} | |
| 957 | - else if("z".equals(lower)){sRtn="application/x-compress";} | |
| 958 | - else if("zip".equals(lower)){sRtn="application/zip";} | |
| 959 | - else if("zoo".equals(lower)){sRtn="application/octet-stream";} | |
| 960 | - else if("zsh".equals(lower)){sRtn="text/x-script.zsh";} | |
| 961 | - | |
| 962 | - return sRtn; | |
| 963 | - } | |
| 964 | -} |
--- base/src/main/java/egovframework/com/cmm/web/EgovFileMngController2.java
+++ base/src/main/java/egovframework/com/cmm/web/EgovFileMngController2.java
... | ... | @@ -1,18 +1,11 @@ |
| 1 | 1 |
package egovframework.com.cmm.web; |
| 2 | 2 |
|
| 3 |
-import java.io.File; |
|
| 4 |
-import java.io.FileNotFoundException; |
|
| 5 |
-import java.io.FileOutputStream; |
|
| 6 |
-import java.io.IOException; |
|
| 7 |
-import java.io.InputStream; |
|
| 8 |
-import java.io.OutputStream; |
|
| 9 | 3 |
import java.io.PrintWriter; |
| 10 | 4 |
import java.util.ArrayList; |
| 11 | 5 |
import java.util.List; |
| 12 | 6 |
import java.util.Map; |
| 13 | 7 |
|
| 14 | 8 |
import javax.annotation.Resource; |
| 15 |
-import javax.servlet.http.HttpServletRequest; |
|
| 16 | 9 |
import javax.servlet.http.HttpServletResponse; |
| 17 | 10 |
|
| 18 | 11 |
import org.springframework.stereotype.Controller; |
... | ... | @@ -22,20 +15,17 @@ |
| 22 | 15 |
import org.springframework.web.multipart.MultipartFile; |
| 23 | 16 |
import org.springframework.web.multipart.MultipartHttpServletRequest; |
| 24 | 17 |
|
| 25 |
-import egovframework.com.cmm.service.EgovFileMngUtil; |
|
| 18 |
+import egovframework.com.cmm.service.FileMngUtil; |
|
| 26 | 19 |
import egovframework.com.cmm.service.FileVO; |
| 27 | 20 |
import egovframework.com.cmm.service.JsonResponse; |
| 28 |
-import egovframework.com.sym.sit.service.SiteManageService; |
|
| 29 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 30 | 21 |
|
| 31 | 22 |
import com.google.gson.Gson; |
| 32 |
-import com.google.gson.JsonObject; |
|
| 33 | 23 |
|
| 34 | 24 |
@Controller |
| 35 | 25 |
public class EgovFileMngController2 {
|
| 36 | 26 |
|
| 37 |
- @Resource(name = "EgovFileMngUtil") |
|
| 38 |
- private EgovFileMngUtil fileUtil; |
|
| 27 |
+ @Resource(name = "fileMngUtil") |
|
| 28 |
+ private FileMngUtil fileUtil; |
|
| 39 | 29 |
|
| 40 | 30 |
@RequestMapping(value = "/fileUpload.do", method = RequestMethod.POST) |
| 41 | 31 |
@SuppressWarnings("unchecked")
|
+++ base/src/main/java/egovframework/com/cmm/web/FileDownloadController.java
... | ... | @@ -0,0 +1,903 @@ |
| 1 | +package egovframework.com.cmm.web; | |
| 2 | + | |
| 3 | +import java.io.BufferedInputStream; | |
| 4 | +import java.io.BufferedOutputStream; | |
| 5 | +import java.io.File; | |
| 6 | +import java.io.FileInputStream; | |
| 7 | +import java.io.FileNotFoundException; | |
| 8 | +import java.io.FileOutputStream; | |
| 9 | +import java.io.IOException; | |
| 10 | +import java.io.PrintWriter; | |
| 11 | +import java.net.URLEncoder; | |
| 12 | +import java.text.SimpleDateFormat; | |
| 13 | +import java.util.ArrayList; | |
| 14 | +import java.util.Date; | |
| 15 | +import java.util.HashMap; | |
| 16 | +import java.util.List; | |
| 17 | +import java.util.Map; | |
| 18 | +import java.util.zip.ZipEntry; | |
| 19 | +import java.util.zip.ZipOutputStream; | |
| 20 | + | |
| 21 | +import javax.annotation.Resource; | |
| 22 | +import javax.servlet.ServletOutputStream; | |
| 23 | +import javax.servlet.http.HttpServletRequest; | |
| 24 | +import javax.servlet.http.HttpServletResponse; | |
| 25 | + | |
| 26 | +import org.apache.log4j.Logger; | |
| 27 | +import org.springframework.stereotype.Controller; | |
| 28 | +import org.springframework.util.FileCopyUtils; | |
| 29 | +import org.springframework.web.bind.annotation.ModelAttribute; | |
| 30 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 31 | +import org.springframework.web.bind.annotation.RequestParam; | |
| 32 | + | |
| 33 | +import egovframework.com.cmm.service.FileMngService; | |
| 34 | +import egovframework.com.cmm.service.FileVO; | |
| 35 | +import egovframework.com.sym.sit.service.SiteManageService; | |
| 36 | +import egovframework.rte.fdl.property.EgovPropertyService; | |
| 37 | +import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 38 | + | |
| 39 | + | |
| 40 | +//파일 다운로드를 위한 컨트롤러 클래스 | |
| 41 | +@Controller | |
| 42 | +public class FileDownloadController { | |
| 43 | + @Resource(name = "propertiesService") | |
| 44 | + protected EgovPropertyService propertyService; | |
| 45 | + | |
| 46 | + @Resource(name = "siteManageService") | |
| 47 | + SiteManageService siteManageService; | |
| 48 | + | |
| 49 | + @Resource(name = "fileMngService") | |
| 50 | + private FileMngService fileService; | |
| 51 | + | |
| 52 | + @Resource(name = "propertiesService") | |
| 53 | + protected EgovPropertyService propertiesService; | |
| 54 | + | |
| 55 | + Logger log = Logger.getLogger(this.getClass()); | |
| 56 | + | |
| 57 | + //브라우저 구분 얻기. | |
| 58 | + private String getBrowser(HttpServletRequest request) { | |
| 59 | + String header = request.getHeader("User-Agent"); | |
| 60 | + if (header.indexOf("MSIE") > -1) { | |
| 61 | + return "MSIE"; | |
| 62 | + } else if (header.indexOf("Trident") > -1) { // IE11 문자열 깨짐 방지 | |
| 63 | + return "Trident"; | |
| 64 | + } else if (header.indexOf("Chrome") > -1) { | |
| 65 | + return "Chrome"; | |
| 66 | + } else if (header.indexOf("Opera") > -1) { | |
| 67 | + return "Opera"; | |
| 68 | + } | |
| 69 | + return "Firefox"; | |
| 70 | + } | |
| 71 | + | |
| 72 | + //Disposition 지정하기. | |
| 73 | + private void setDisposition(String filename, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 74 | + String browser = getBrowser(request); | |
| 75 | + | |
| 76 | + String dispositionPrefix = "attachment; filename="; | |
| 77 | + String encodedFilename = null; | |
| 78 | + | |
| 79 | + if (browser.equals("MSIE")) { | |
| 80 | + encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 81 | + } else if (browser.equals("Trident")) { | |
| 82 | + encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 83 | + } else if (browser.equals("Firefox")) { | |
| 84 | + encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 85 | + } else if (browser.equals("Opera")) { | |
| 86 | + encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 87 | + } else if (browser.equals("Chrome")) { | |
| 88 | + StringBuffer sb = new StringBuffer(); | |
| 89 | + for (int i = 0; i < filename.length(); i++) { | |
| 90 | + char c = filename.charAt(i); | |
| 91 | + if (c > '~') { | |
| 92 | + sb.append(URLEncoder.encode("" + c, "UTF-8")); | |
| 93 | + } else { | |
| 94 | + sb.append(c); | |
| 95 | + } | |
| 96 | + } | |
| 97 | + encodedFilename = sb.toString(); | |
| 98 | + } else { | |
| 99 | + //throw new RuntimeException("Not supported browser"); | |
| 100 | + throw new IOException("Not supported browser"); | |
| 101 | + } | |
| 102 | + | |
| 103 | + response.setHeader("Content-Disposition", dispositionPrefix + encodedFilename); | |
| 104 | + | |
| 105 | + if ("Opera".equals(browser)){ | |
| 106 | + response.setContentType("application/octet-stream;charset=UTF-8"); | |
| 107 | + } | |
| 108 | + } | |
| 109 | + | |
| 110 | + private void setDisposition(String filename, HttpServletRequest request, HttpServletResponse response, String disposition) throws Exception { | |
| 111 | + String browser = getBrowser(request); | |
| 112 | + | |
| 113 | + String dispositionPrefix = disposition + "; filename="; | |
| 114 | + String encodedFilename = null; | |
| 115 | + | |
| 116 | + if (browser.equals("MSIE")) { | |
| 117 | + encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 118 | + } else if (browser.equals("Trident")) { | |
| 119 | + encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); | |
| 120 | + } else if (browser.equals("Firefox")) { | |
| 121 | + encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 122 | + } else if (browser.equals("Opera")) { | |
| 123 | + encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; | |
| 124 | + } else if (browser.equals("Chrome")) { | |
| 125 | + StringBuffer sb = new StringBuffer(); | |
| 126 | + for (int i = 0; i < filename.length(); i++) { | |
| 127 | + char c = filename.charAt(i); | |
| 128 | + if (c > '~') { | |
| 129 | + sb.append(URLEncoder.encode("" + c, "UTF-8")); | |
| 130 | + } else { | |
| 131 | + sb.append(c); | |
| 132 | + } | |
| 133 | + } | |
| 134 | + encodedFilename = sb.toString(); | |
| 135 | + } else { | |
| 136 | + //throw new RuntimeException("Not supported browser"); | |
| 137 | + throw new IOException("Not supported browser"); | |
| 138 | + } | |
| 139 | + | |
| 140 | + response.setHeader("Content-Disposition", dispositionPrefix + encodedFilename); | |
| 141 | + | |
| 142 | + if ("Opera".equals(browser)){ | |
| 143 | + response.setContentType("application/octet-stream;charset=UTF-8"); | |
| 144 | + } | |
| 145 | + } | |
| 146 | + | |
| 147 | + | |
| 148 | + //첨부파일로 등록된 파일에 대하여 다운로드를 제공한다. | |
| 149 | + @RequestMapping(value = "/cmm/fms/FileDown.do") | |
| 150 | + public void cvplFileDownload(@RequestParam Map commandMap, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 151 | + | |
| 152 | + String atchFileId = (String)commandMap.get("atchFileId"); | |
| 153 | + String fileSn = (String)commandMap.get("fileSn"); | |
| 154 | + String plId = commandMap.get("plId") != null ? (String)commandMap.get("plId") : ""; | |
| 155 | + String userId = commandMap.get("userId") != null ? (String)commandMap.get("userId") : ""; | |
| 156 | + String streFileNm = commandMap.get("streFileNm") != null ? (String)commandMap.get("streFileNm") : ""; | |
| 157 | + | |
| 158 | + String strReturnMsg = ""; | |
| 159 | + Boolean isAuthenticated = true;//EgovUserDetailsHelper.isAuthenticated(); | |
| 160 | + | |
| 161 | + //BigDecimal mlgScore = BigDecimal.ZERO; | |
| 162 | + //String nttId = (String)commandMap.get("nttId"); | |
| 163 | + //String bbsId = (String)commandMap.get("bbsId"); | |
| 164 | + | |
| 165 | + if (isAuthenticated) { | |
| 166 | + | |
| 167 | + FileVO fileVO = new FileVO(); | |
| 168 | + fileVO.setAtchFileId(atchFileId); | |
| 169 | + fileVO.setFileSn(fileSn); | |
| 170 | + FileVO fvo = null; | |
| 171 | + fvo = fileService.selectFileInf(fileVO); | |
| 172 | + | |
| 173 | + File uFile = new File(fvo.getFileStreCours(), fvo.getStreFileNm()); | |
| 174 | + int fSize = (int)uFile.length(); | |
| 175 | + | |
| 176 | + if (fSize > 0) { | |
| 177 | + String mimetype = getMime(fvo.getFileExtsn());//"application/x-msdownload"; | |
| 178 | + | |
| 179 | + //20110210 faq참조하여 알아서 주석처리.. | |
| 180 | + response.setContentType(mimetype); | |
| 181 | + setDisposition(fvo.getOrignlFileNm(), request, response); | |
| 182 | + BufferedInputStream in = null; | |
| 183 | + BufferedOutputStream out = null; | |
| 184 | + | |
| 185 | + try { | |
| 186 | + in = new BufferedInputStream(new FileInputStream(uFile)); | |
| 187 | + out = new BufferedOutputStream(response.getOutputStream()); | |
| 188 | + | |
| 189 | + FileCopyUtils.copy(in, out); | |
| 190 | + out.flush(); | |
| 191 | + }catch(FileNotFoundException e){ | |
| 192 | + log.debug("FileNotFoundException: "+ e.getMessage() ); | |
| 193 | + }catch(IOException e){ | |
| 194 | + log.debug("IOException: "+ e.getMessage() ); | |
| 195 | + }catch (Exception e) { | |
| 196 | + log.debug("Exception: "+ e.getMessage() ); | |
| 197 | + } finally { | |
| 198 | + if (in != null) { | |
| 199 | + try { | |
| 200 | + in.close(); | |
| 201 | + } catch (IOException e) { | |
| 202 | + log.debug("IGNORED: "+ e.getMessage() ); | |
| 203 | + } | |
| 204 | + } | |
| 205 | + if (out != null) { | |
| 206 | + try { | |
| 207 | + out.close(); | |
| 208 | + } catch (IOException e) { | |
| 209 | + log.debug("IGNORED: "+ e.getMessage() ); | |
| 210 | + } | |
| 211 | + } | |
| 212 | + } | |
| 213 | + | |
| 214 | + } else { | |
| 215 | + response.setContentType("text/html;charset=UTF-8"); | |
| 216 | + | |
| 217 | + PrintWriter printwriter = response.getWriter(); | |
| 218 | + printwriter.println("<html>"); | |
| 219 | + printwriter.println("<script type=\"text/javascript\">alert('파일을 찾을수 없습니다.');window.close();</script>"); | |
| 220 | + printwriter.println("<br><br><br><h2>Could not get file name:<br>" + fvo.getOrignlFileNm() + "</h2>"); | |
| 221 | + printwriter.println("<br><br><br>"); | |
| 222 | + printwriter.println("</html>"); | |
| 223 | + printwriter.flush(); | |
| 224 | + printwriter.close(); | |
| 225 | + } | |
| 226 | + } else { | |
| 227 | + response.setContentType("text/html;charset=UTF-8"); | |
| 228 | + | |
| 229 | + PrintWriter printwriter = response.getWriter(); | |
| 230 | + printwriter.println("<html>"); | |
| 231 | + printwriter.println("<script type=\"text/javascript\">alert('" + strReturnMsg + "');window.close();</script>"); | |
| 232 | + printwriter.println("<br><br><br><h2>" + strReturnMsg + "</h2>"); | |
| 233 | + printwriter.println("<br><br><br>"); | |
| 234 | + printwriter.println("</html>"); | |
| 235 | + printwriter.flush(); | |
| 236 | + printwriter.close(); | |
| 237 | + } | |
| 238 | + } | |
| 239 | + | |
| 240 | + //절대경로 파일 다운로드를 제공한다. | |
| 241 | + @RequestMapping(value = "/cmm/fms/absolutePathFileDown.do") | |
| 242 | + public void absolutePathFileDown(@RequestParam Map commandMap, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 243 | + String filePath = propertyService.getString((String)commandMap.get("filePath")) + File.separator; | |
| 244 | + String fileNm = (String)commandMap.get("fileNm"); | |
| 245 | + String oriFileNm = (String)commandMap.get("oriFileNm"); | |
| 246 | + | |
| 247 | + //파일 확장자 추출 | |
| 248 | + int pos = fileNm.lastIndexOf( "." ); | |
| 249 | + String ext = fileNm.substring( pos + 1 ); | |
| 250 | + | |
| 251 | + String strReturnMsg = ""; | |
| 252 | + Boolean isAuthenticated = true;//EgovUserDetailsHelper.isAuthenticated(); | |
| 253 | + | |
| 254 | + if (isAuthenticated) { | |
| 255 | + File uFile = new File(filePath, fileNm); | |
| 256 | + int fSize = (int)uFile.length(); | |
| 257 | + | |
| 258 | + if (fSize > 0) { | |
| 259 | + String mimetype = getMime(ext);//"application/x-msdownload"; | |
| 260 | + | |
| 261 | + //20110210 faq참조하여 알아서 주석처리.. | |
| 262 | + response.setContentType(mimetype); | |
| 263 | + setDisposition(oriFileNm, request, response); | |
| 264 | + BufferedInputStream in = null; | |
| 265 | + BufferedOutputStream out = null; | |
| 266 | + | |
| 267 | + try { | |
| 268 | + in = new BufferedInputStream(new FileInputStream(uFile)); | |
| 269 | + out = new BufferedOutputStream(response.getOutputStream()); | |
| 270 | + | |
| 271 | + FileCopyUtils.copy(in, out); | |
| 272 | + out.flush(); | |
| 273 | + }catch(FileNotFoundException e){ | |
| 274 | + log.debug("FileNotFoundException: "+ e.getMessage() ); | |
| 275 | + }catch(IOException e){ | |
| 276 | + log.debug("IOException: "+ e.getMessage() ); | |
| 277 | + }catch (Exception e) { | |
| 278 | + log.debug("Exception: "+ e.getMessage() ); | |
| 279 | + } finally { | |
| 280 | + if (in != null) { | |
| 281 | + try { | |
| 282 | + in.close(); | |
| 283 | + } catch (IOException e) { | |
| 284 | + log.debug("IGNORED: "+ e.getMessage() ); | |
| 285 | + } | |
| 286 | + } | |
| 287 | + if (out != null) { | |
| 288 | + try { | |
| 289 | + out.close(); | |
| 290 | + } catch (IOException e) { | |
| 291 | + log.debug("IGNORED: "+ e.getMessage() ); | |
| 292 | + } | |
| 293 | + } | |
| 294 | + } | |
| 295 | + | |
| 296 | + } else { | |
| 297 | + response.setContentType("text/html;charset=UTF-8"); | |
| 298 | + | |
| 299 | + PrintWriter printwriter = response.getWriter(); | |
| 300 | + printwriter.println("<html>"); | |
| 301 | + printwriter.println("<script type=\"text/javascript\">alert('파일을 찾을수 없습니다.');window.close();</script>"); | |
| 302 | + printwriter.println("<br><br><br><h2>Could not get file name:<br>" + oriFileNm + "</h2>"); | |
| 303 | + printwriter.println("<br><br><br>"); | |
| 304 | + printwriter.println("</html>"); | |
| 305 | + printwriter.flush(); | |
| 306 | + printwriter.close(); | |
| 307 | + } | |
| 308 | + } else { | |
| 309 | + response.setContentType("text/html;charset=UTF-8"); | |
| 310 | + | |
| 311 | + PrintWriter printwriter = response.getWriter(); | |
| 312 | + printwriter.println("<html>"); | |
| 313 | + printwriter.println("<script type=\"text/javascript\">alert('" + strReturnMsg + "');window.close();</script>"); | |
| 314 | + printwriter.println("<br><br><br><h2>" + strReturnMsg + "</h2>"); | |
| 315 | + printwriter.println("<br><br><br>"); | |
| 316 | + printwriter.println("</html>"); | |
| 317 | + printwriter.flush(); | |
| 318 | + printwriter.close(); | |
| 319 | + } | |
| 320 | + } | |
| 321 | + | |
| 322 | + //첨부파일 압축 다운로드 | |
| 323 | + @RequestMapping(value = "/cmm/fms/paperFileDownLoadZip.do") | |
| 324 | + public void cvplFileDownload1Zip(@ModelAttribute("searchVO") FileVO fileVO, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 325 | + List<HashMap<String, String>> sourceFiles = new ArrayList<HashMap<String, String>>(); | |
| 326 | + Date from = new Date(); | |
| 327 | + SimpleDateFormat date = new SimpleDateFormat("yyyyMMddHHmmss"); | |
| 328 | + String dateToString = date.format(from); | |
| 329 | + String downloadFileName = "hufs_" + dateToString; | |
| 330 | + String tempDirectoryPath = propertiesService.getString("Globals.fileStorePath") + "/zip/"; | |
| 331 | + String zipFile = tempDirectoryPath + downloadFileName; | |
| 332 | + | |
| 333 | + //디렉토리가 없으면 생성 | |
| 334 | + File tempDirectory = new File(tempDirectoryPath); | |
| 335 | + | |
| 336 | + if (!tempDirectory.exists()) { | |
| 337 | + tempDirectory.mkdir(); | |
| 338 | + } | |
| 339 | + | |
| 340 | + //다운로드 타입(arr:파일아이디 여러개, 나머지는 한개) | |
| 341 | + if("arr".equals(fileVO.getDownLoadType())) { | |
| 342 | + for(int i=0;i<fileVO.getAtchFileIdArr().size();i++) { | |
| 343 | + if(fileVO.getAtchFileIdArr().get(i) != null && !"".equals(fileVO.getAtchFileIdArr().get(i))) { | |
| 344 | + fileVO.setAtchFileId(fileVO.getAtchFileIdArr().get(i)); | |
| 345 | + | |
| 346 | + List<FileVO> fvo = fileService.selectFileInfs(fileVO); | |
| 347 | + | |
| 348 | + for(int e=0;e<fvo.size();e++) { | |
| 349 | + HashMap<String, String> fileName = new HashMap<String, String>(); | |
| 350 | + | |
| 351 | + fileName.put("orignlDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getOrignlFileNm()); | |
| 352 | + fileName.put("streDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getStreFileNm()); | |
| 353 | + | |
| 354 | + sourceFiles.add(fileName); | |
| 355 | + } | |
| 356 | + } | |
| 357 | + } | |
| 358 | + } else { | |
| 359 | + if(fileVO.getAtchFileId() != null && !"".equals(fileVO.getAtchFileId())) { | |
| 360 | + List<FileVO> fvo = fileService.selectFileInfs(fileVO); | |
| 361 | + | |
| 362 | + for(int e=0;e<fvo.size();e++) { | |
| 363 | + HashMap<String, String> fileName = new HashMap<String, String>(); | |
| 364 | + | |
| 365 | + fileName.put("orignlDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getOrignlFileNm()); | |
| 366 | + fileName.put("streDocNm", fvo.get(e).getFileStreCours() + File.separator + fvo.get(e).getStreFileNm()); | |
| 367 | + | |
| 368 | + sourceFiles.add(fileName); | |
| 369 | + } | |
| 370 | + } | |
| 371 | + } | |
| 372 | + | |
| 373 | + try{ | |
| 374 | + // ZipOutputStream을 FileOutputStream 으로 감쌈 | |
| 375 | + FileOutputStream fout = new FileOutputStream(zipFile); | |
| 376 | + ZipOutputStream zout = new ZipOutputStream(fout); | |
| 377 | + | |
| 378 | + for(int i=0; i < sourceFiles.size(); i++){ | |
| 379 | + | |
| 380 | + // 본래 파일명 유지, 경로제외 파일압축을 위해 new File로 | |
| 381 | + ZipEntry zipEntry = new ZipEntry(new File(sourceFiles.get(i).get("orignlDocNm")).getName()); | |
| 382 | + zout.putNextEntry(zipEntry); | |
| 383 | + | |
| 384 | + FileInputStream fin = new FileInputStream(sourceFiles.get(i).get("streDocNm")); | |
| 385 | + byte[] buffer = new byte[1024]; | |
| 386 | + int length; | |
| 387 | + | |
| 388 | + // input file을 1024바이트로 읽음, zip stream에 읽은 바이트를 씀 | |
| 389 | + while((length = fin.read(buffer)) > 0){ | |
| 390 | + zout.write(buffer, 0, length); | |
| 391 | + } | |
| 392 | + | |
| 393 | + zout.closeEntry(); | |
| 394 | + fin.close(); | |
| 395 | + } | |
| 396 | + | |
| 397 | + zout.close(); | |
| 398 | + | |
| 399 | + response.setContentType("application/zip"); | |
| 400 | + response.addHeader("Content-Disposition", "attachment; filename=" + downloadFileName + ".zip"); | |
| 401 | + | |
| 402 | + FileInputStream fis=new FileInputStream(zipFile); | |
| 403 | + BufferedInputStream bis=new BufferedInputStream(fis); | |
| 404 | + ServletOutputStream so=response.getOutputStream(); | |
| 405 | + BufferedOutputStream bos=new BufferedOutputStream(so); | |
| 406 | + | |
| 407 | + byte[] data=new byte[2048]; | |
| 408 | + int input=0; | |
| 409 | + | |
| 410 | + while((input=bis.read(data))!=-1){ | |
| 411 | + bos.write(data,0,input); | |
| 412 | + bos.flush(); | |
| 413 | + } | |
| 414 | + | |
| 415 | + if(bos!=null) bos.close(); | |
| 416 | + if(bis!=null) bis.close(); | |
| 417 | + if(so!=null) so.close(); | |
| 418 | + if(fis!=null) fis.close(); | |
| 419 | + | |
| 420 | + // 다운로드 후 파일 삭제 | |
| 421 | + File file = new File(zipFile); | |
| 422 | + if(file.exists()){ | |
| 423 | + file.delete(); | |
| 424 | + } | |
| 425 | + } catch(Exception ex){ | |
| 426 | + response.setContentType("text/html;charset=UTF-8"); | |
| 427 | + | |
| 428 | + PrintWriter printwriter = response.getWriter(); | |
| 429 | + printwriter.println("<html>"); | |
| 430 | + printwriter.println("<script type=\"text/javascript\">alert('파일을 찾을수 없습니다.');</script>"); | |
| 431 | + printwriter.println("</html>"); | |
| 432 | + printwriter.flush(); | |
| 433 | + printwriter.close(); | |
| 434 | + } | |
| 435 | + } | |
| 436 | + | |
| 437 | + public String getMime(String args) | |
| 438 | + { | |
| 439 | + String sRtn = "application/octet-stream"; | |
| 440 | + String lower = args.toLowerCase(); | |
| 441 | + if("3dm".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 442 | + else if("3dmf".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 443 | + else if("a".equals(lower)){sRtn="application/octet-stream";} | |
| 444 | + else if("aab".equals(lower)){sRtn="application/x-authorware-bin";} | |
| 445 | + else if("aam".equals(lower)){sRtn="application/x-authorware-map";} | |
| 446 | + else if("aas".equals(lower)){sRtn="application/x-authorware-seg";} | |
| 447 | + else if("abc".equals(lower)){sRtn="text/vnd.abc";} | |
| 448 | + else if("acgi".equals(lower)){sRtn="text/html";} | |
| 449 | + else if("afl".equals(lower)){sRtn="video/animaflex";} | |
| 450 | + else if("ai".equals(lower)){sRtn="application/postscript";} | |
| 451 | + else if("aif".equals(lower)){sRtn="audio/aiff";} | |
| 452 | + else if("aifc".equals(lower)){sRtn="audio/aiff";} | |
| 453 | + else if("aiff".equals(lower)){sRtn="audio/x-aiff";} | |
| 454 | + else if("aim".equals(lower)){sRtn="application/x-aim";} | |
| 455 | + else if("aip".equals(lower)){sRtn="text/x-audiosoft-intra";} | |
| 456 | + else if("ani".equals(lower)){sRtn="application/x-navi-animation";} | |
| 457 | + else if("aos".equals(lower)){sRtn="application/x-nokia-9000-communicator-add-on-software";} | |
| 458 | + else if("aps".equals(lower)){sRtn="application/mime";} | |
| 459 | + else if("arc".equals(lower)){sRtn="application/octet-stream";} | |
| 460 | + else if("arj".equals(lower)){sRtn="application/arj";} | |
| 461 | + else if("art".equals(lower)){sRtn="image/x-jg";} | |
| 462 | + else if("asf".equals(lower)){sRtn="video/x-ms-asf";} | |
| 463 | + else if("asm".equals(lower)){sRtn="text/x-asm";} | |
| 464 | + else if("asp".equals(lower)){sRtn="text/asp";} | |
| 465 | + else if("asx".equals(lower)){sRtn="video/x-ms-asf";} | |
| 466 | + else if("au".equals(lower)){sRtn="audio/x-au";} | |
| 467 | + else if("avi".equals(lower)){sRtn="video/x-msvideo";} | |
| 468 | + else if("avs".equals(lower)){sRtn="video/avs-video";} | |
| 469 | + else if("bcpio".equals(lower)){sRtn="application/x-bcpio";} | |
| 470 | + else if("bin".equals(lower)){sRtn="application/octet-stream";} | |
| 471 | + else if("bm".equals(lower)){sRtn="image/bmp";} | |
| 472 | + else if("bmp".equals(lower)){sRtn="image/bmp";} | |
| 473 | + else if("boo".equals(lower)){sRtn="application/book";} | |
| 474 | + else if("book".equals(lower)){sRtn="application/book";} | |
| 475 | + else if("boz".equals(lower)){sRtn="application/x-bzip2";} | |
| 476 | + else if("bsh".equals(lower)){sRtn="application/x-bsh";} | |
| 477 | + else if("bz".equals(lower)){sRtn="application/x-bzip";} | |
| 478 | + else if("bz2".equals(lower)){sRtn="application/x-bzip2";} | |
| 479 | + else if("c".equals(lower)){sRtn="text/plain";} | |
| 480 | + else if("c++".equals(lower)){sRtn="text/plain";} | |
| 481 | + else if("cat".equals(lower)){sRtn="application/vnd.ms-pki.seccat";} | |
| 482 | + else if("cc".equals(lower)){sRtn="text/plain";} | |
| 483 | + else if("cc".equals(lower)){sRtn="text/x-c";} | |
| 484 | + else if("ccad".equals(lower)){sRtn="application/clariscad";} | |
| 485 | + else if("cco".equals(lower)){sRtn="application/x-cocoa";} | |
| 486 | + else if("cdf".equals(lower)){sRtn="application/cdf";} | |
| 487 | + else if("cer".equals(lower)){sRtn="application/pkix-cert";} | |
| 488 | + else if("cha".equals(lower)){sRtn="application/x-chat";} | |
| 489 | + else if("chat".equals(lower)){sRtn="application/x-chat";} | |
| 490 | + else if("com".equals(lower)){sRtn="text/plain";} | |
| 491 | + else if("conf".equals(lower)){sRtn="text/plain";} | |
| 492 | + else if("cpio".equals(lower)){sRtn="application/x-cpio";} | |
| 493 | + else if("cpp".equals(lower)){sRtn="text/x-c";} | |
| 494 | + else if("cpt".equals(lower)){sRtn="application/mac-compactpro";} | |
| 495 | + else if("crl".equals(lower)){sRtn="application/pkcs-crl";} | |
| 496 | + else if("crt".equals(lower)){sRtn="application/pkix-cert";} | |
| 497 | + else if("csh".equals(lower)){sRtn="application/x-csh";} | |
| 498 | + else if("css".equals(lower)){sRtn="text/css";} | |
| 499 | + else if("cxx".equals(lower)){sRtn="text/plain";} | |
| 500 | + else if("dcr".equals(lower)){sRtn="application/x-director";} | |
| 501 | + else if("deepv".equals(lower)){sRtn="application/x-deepv";} | |
| 502 | + else if("def".equals(lower)){sRtn="text/plain";} | |
| 503 | + else if("dif".equals(lower)){sRtn="video/x-dv";} | |
| 504 | + else if("dir".equals(lower)){sRtn="application/x-director";} | |
| 505 | + else if("dl".equals(lower)){sRtn="video/dl";} | |
| 506 | + else if("doc".equals(lower)){sRtn="application/msword";} | |
| 507 | + else if("docx".equals(lower)){sRtn="application/msword";} | |
| 508 | + else if("dot".equals(lower)){sRtn="application/msword";} | |
| 509 | + else if("dp".equals(lower)){sRtn="application/commonground";} | |
| 510 | + else if("drw".equals(lower)){sRtn="application/drafting";} | |
| 511 | + else if("dump".equals(lower)){sRtn="application/octet-stream";} | |
| 512 | + else if("dv".equals(lower)){sRtn="video/x-dv";} | |
| 513 | + else if("dvi".equals(lower)){sRtn="application/x-dvi";} | |
| 514 | + else if("dwf".equals(lower)){sRtn="model/vnd.dwf";} | |
| 515 | + else if("dwg".equals(lower)){sRtn="image/vnd.dwg";} | |
| 516 | + else if("dwg".equals(lower)){sRtn="image/x-dwg";} | |
| 517 | + else if("dxf".equals(lower)){sRtn="application/dxf";} | |
| 518 | + else if("el".equals(lower)){sRtn="text/x-script.elisp";} | |
| 519 | + else if("elc".equals(lower)){sRtn="application/x-elc";} | |
| 520 | + else if("env".equals(lower)){sRtn="application/x-envoy";} | |
| 521 | + else if("eps".equals(lower)){sRtn="application/postscript";} | |
| 522 | + else if("es".equals(lower)){sRtn="application/x-esrehber";} | |
| 523 | + else if("etx".equals(lower)){sRtn="text/x-setext";} | |
| 524 | + else if("evy".equals(lower)){sRtn="application/envoy";} | |
| 525 | + else if("exe".equals(lower)){sRtn="application/octet-stream";} | |
| 526 | + else if("f".equals(lower)){sRtn="text/plain";} | |
| 527 | + else if("f77".equals(lower)){sRtn="text/x-fortran";} | |
| 528 | + else if("f90".equals(lower)){sRtn="text/plain";} | |
| 529 | + else if("f90".equals(lower)){sRtn="text/x-fortran";} | |
| 530 | + else if("fdf".equals(lower)){sRtn="application/vnd.fdf";} | |
| 531 | + else if("fif".equals(lower)){sRtn="application/fractals";} | |
| 532 | + else if("fif".equals(lower)){sRtn="image/fif";} | |
| 533 | + else if("fli".equals(lower)){sRtn="video/fli";} | |
| 534 | + else if("flo".equals(lower)){sRtn="image/florian";} | |
| 535 | + else if("flx".equals(lower)){sRtn="text/vnd.fmi.flexstor";} | |
| 536 | + else if("fmf".equals(lower)){sRtn="video/x-atomic3d-feature";} | |
| 537 | + else if("for".equals(lower)){sRtn="text/plain";} | |
| 538 | + else if("fpx".equals(lower)){sRtn="image/vnd.fpx";} | |
| 539 | + else if("frl".equals(lower)){sRtn="application/freeloader";} | |
| 540 | + else if("funk".equals(lower)){sRtn="audio/make";} | |
| 541 | + else if("g".equals(lower)){sRtn="text/plain";} | |
| 542 | + else if("g3".equals(lower)){sRtn="image/g3fax";} | |
| 543 | + else if("gif".equals(lower)){sRtn="image/gif";} | |
| 544 | + else if("gl".equals(lower)){sRtn="video/gl";} | |
| 545 | + else if("gsd".equals(lower)){sRtn="audio/x-gsm";} | |
| 546 | + else if("gsm".equals(lower)){sRtn="audio/x-gsm";} | |
| 547 | + else if("gsp".equals(lower)){sRtn="application/x-gsp";} | |
| 548 | + else if("gss".equals(lower)){sRtn="application/x-gss";} | |
| 549 | + else if("gtar".equals(lower)){sRtn="application/x-gtar";} | |
| 550 | + else if("gz".equals(lower)){sRtn="application/x-compressed";} | |
| 551 | + else if("gzip".equals(lower)){sRtn="application/x-gzip";} | |
| 552 | + else if("h".equals(lower)){sRtn="text/plain";} | |
| 553 | + else if("hdf".equals(lower)){sRtn="application/x-hdf";} | |
| 554 | + else if("help".equals(lower)){sRtn="application/x-helpfile";} | |
| 555 | + else if("hgl".equals(lower)){sRtn="application/vnd.hp-hpgl";} | |
| 556 | + else if("hh".equals(lower)){sRtn="text/plain";} | |
| 557 | + else if("hlb".equals(lower)){sRtn="text/x-script";} | |
| 558 | + else if("hlp".equals(lower)){sRtn="application/hlp";} | |
| 559 | + else if("hpg".equals(lower)){sRtn="application/vnd.hp-hpgl";} | |
| 560 | + else if("hpgl".equals(lower)){sRtn="application/vnd.hp-hpgl";} | |
| 561 | + else if("hqx".equals(lower)){sRtn="application/binhex";} | |
| 562 | + else if("hta".equals(lower)){sRtn="application/hta";} | |
| 563 | + else if("htc".equals(lower)){sRtn="text/x-component";} | |
| 564 | + else if("htm".equals(lower)){sRtn="text/html";} | |
| 565 | + else if("html".equals(lower)){sRtn="text/html";} | |
| 566 | + else if("htmls".equals(lower)){sRtn="text/html";} | |
| 567 | + else if("htt".equals(lower)){sRtn="text/webviewhtml";} | |
| 568 | + else if("htx".equals(lower)){sRtn="text/html";} | |
| 569 | + else if("hwp".equals(lower)){sRtn="application/haansofthwp";} | |
| 570 | + else if("ice".equals(lower)){sRtn="x-conference/x-cooltalk";} | |
| 571 | + else if("ico".equals(lower)){sRtn="image/x-icon";} | |
| 572 | + else if("idc".equals(lower)){sRtn="text/plain";} | |
| 573 | + else if("ief".equals(lower)){sRtn="image/ief";} | |
| 574 | + else if("iefs".equals(lower)){sRtn="image/ief";} | |
| 575 | + else if("iges".equals(lower)){sRtn="application/iges";} | |
| 576 | + else if("iges".equals(lower)){sRtn="model/iges";} | |
| 577 | + else if("igs".equals(lower)){sRtn="application/iges";} | |
| 578 | + else if("ima".equals(lower)){sRtn="application/x-ima";} | |
| 579 | + else if("imap".equals(lower)){sRtn="application/x-httpd-imap";} | |
| 580 | + else if("inf".equals(lower)){sRtn="application/inf";} | |
| 581 | + else if("ip".equals(lower)){sRtn="application/x-ip2";} | |
| 582 | + else if("isu".equals(lower)){sRtn="video/x-isvideo";} | |
| 583 | + else if("it".equals(lower)){sRtn="audio/it";} | |
| 584 | + else if("iv".equals(lower)){sRtn="application/x-inventor";} | |
| 585 | + else if("ivr".equals(lower)){sRtn="i-world/i-vrml";} | |
| 586 | + else if("ivy".equals(lower)){sRtn="application/x-livescreen";} | |
| 587 | + else if("jam".equals(lower)){sRtn="audio/x-jam";} | |
| 588 | + else if("jav".equals(lower)){sRtn="text/plain";} | |
| 589 | + else if("java".equals(lower)){sRtn="text/plain";} | |
| 590 | + else if("jcm".equals(lower)){sRtn="application/x-java-commerce";} | |
| 591 | + else if("jfif".equals(lower)){sRtn="image/jpeg";} | |
| 592 | + else if("jfif-tbnl".equals(lower)){sRtn="image/jpeg";} | |
| 593 | + else if("jpe".equals(lower)){sRtn="image/jpeg";} | |
| 594 | + else if("jpeg".equals(lower)){sRtn="image/jpeg";} | |
| 595 | + else if("jpg".equals(lower)){sRtn="image/jpeg";} | |
| 596 | + else if("jps".equals(lower)){sRtn="image/x-jps";} | |
| 597 | + else if("js".equals(lower)){sRtn="application/x-javascript";} | |
| 598 | + else if("jut".equals(lower)){sRtn="image/jutvision";} | |
| 599 | + else if("kar".equals(lower)){sRtn="audio/midi";} | |
| 600 | + else if("ksh".equals(lower)){sRtn="application/x-ksh";} | |
| 601 | + else if("ksh".equals(lower)){sRtn="text/x-script.ksh";} | |
| 602 | + else if("la".equals(lower)){sRtn="audio/nspaudio";} | |
| 603 | + else if("la".equals(lower)){sRtn="audio/x-nspaudio";} | |
| 604 | + else if("lam".equals(lower)){sRtn="audio/x-liveaudio";} | |
| 605 | + else if("latex".equals(lower)){sRtn="application/x-latex";} | |
| 606 | + else if("lha".equals(lower)){sRtn="application/lha";} | |
| 607 | + else if("lhx".equals(lower)){sRtn="application/octet-stream";} | |
| 608 | + else if("list".equals(lower)){sRtn="text/plain";} | |
| 609 | + else if("lma".equals(lower)){sRtn="audio/nspaudio";} | |
| 610 | + else if("lma".equals(lower)){sRtn="audio/x-nspaudio";} | |
| 611 | + else if("log".equals(lower)){sRtn="text/plain";} | |
| 612 | + else if("lsp".equals(lower)){sRtn="application/x-lisp";} | |
| 613 | + else if("lsp".equals(lower)){sRtn="text/x-script.lisp";} | |
| 614 | + else if("lst".equals(lower)){sRtn="text/plain";} | |
| 615 | + else if("lsx".equals(lower)){sRtn="text/x-la-asf";} | |
| 616 | + else if("ltx".equals(lower)){sRtn="application/x-latex";} | |
| 617 | + else if("lzh".equals(lower)){sRtn="application/octet-stream";} | |
| 618 | + else if("m".equals(lower)){sRtn="text/plain";} | |
| 619 | + else if("m".equals(lower)){sRtn="text/x-m";} | |
| 620 | + else if("m1v".equals(lower)){sRtn="video/mpeg";} | |
| 621 | + else if("m2a".equals(lower)){sRtn="audio/mpeg";} | |
| 622 | + else if("m2v".equals(lower)){sRtn="video/mpeg";} | |
| 623 | + else if("m3u".equals(lower)){sRtn="audio/x-mpequrl";} | |
| 624 | + else if("man".equals(lower)){sRtn="application/x-troff-man";} | |
| 625 | + else if("map".equals(lower)){sRtn="application/x-navimap";} | |
| 626 | + else if("mar".equals(lower)){sRtn="text/plain";} | |
| 627 | + else if("mbd".equals(lower)){sRtn="application/mbedlet";} | |
| 628 | + else if("mc$".equals(lower)){sRtn="application/x-magic-cap-package-1.0";} | |
| 629 | + else if("mcd".equals(lower)){sRtn="application/mcad";} | |
| 630 | + else if("mcf".equals(lower)){sRtn="image/vasa";} | |
| 631 | + else if("mcp".equals(lower)){sRtn="application/netmc";} | |
| 632 | + else if("me".equals(lower)){sRtn="application/x-troff-me";} | |
| 633 | + else if("mht".equals(lower)){sRtn="message/rfc822";} | |
| 634 | + else if("mhtml".equals(lower)){sRtn="message/rfc822";} | |
| 635 | + else if("mid".equals(lower)){sRtn="application/x-midi";} | |
| 636 | + else if("midi".equals(lower)){sRtn="application/x-midi";} | |
| 637 | + else if("mif".equals(lower)){sRtn="application/x-frame";} | |
| 638 | + else if("mime".equals(lower)){sRtn="message/rfc822";} | |
| 639 | + else if("mjf".equals(lower)){sRtn="audio/x-vnd.audioexplosion.mjuicemediafile";} | |
| 640 | + else if("mjpg".equals(lower)){sRtn="video/x-motion-jpeg";} | |
| 641 | + else if("mm".equals(lower)){sRtn="application/base64";} | |
| 642 | + else if("mme".equals(lower)){sRtn="application/base64";} | |
| 643 | + else if("mod".equals(lower)){sRtn="audio/mod";} | |
| 644 | + else if("moov".equals(lower)){sRtn="video/quicktime";} | |
| 645 | + else if("mov".equals(lower)){sRtn="video/quicktime";} | |
| 646 | + else if("movie".equals(lower)){sRtn="video/x-sgi-movie";} | |
| 647 | + else if("mp2".equals(lower)){sRtn="audio/mpeg";} | |
| 648 | + else if("mp3".equals(lower)){sRtn="audio/mpeg3";} | |
| 649 | + else if("mpa".equals(lower)){sRtn="audio/mpeg";} | |
| 650 | + else if("mpc".equals(lower)){sRtn="application/x-project";} | |
| 651 | + else if("mpe".equals(lower)){sRtn="video/mpeg";} | |
| 652 | + else if("mpeg".equals(lower)){sRtn="video/mpeg";} | |
| 653 | + else if("mpg".equals(lower)){sRtn="audio/mpeg";} | |
| 654 | + else if("mpga".equals(lower)){sRtn="audio/mpeg";} | |
| 655 | + else if("mpp".equals(lower)){sRtn="application/vnd.ms-project";} | |
| 656 | + else if("mpt".equals(lower)){sRtn="application/x-project";} | |
| 657 | + else if("mpv".equals(lower)){sRtn="application/x-project";} | |
| 658 | + else if("mpx".equals(lower)){sRtn="application/x-project";} | |
| 659 | + else if("mrc".equals(lower)){sRtn="application/marc";} | |
| 660 | + else if("ms".equals(lower)){sRtn="application/x-troff-ms";} | |
| 661 | + else if("mv".equals(lower)){sRtn="video/x-sgi-movie";} | |
| 662 | + else if("my".equals(lower)){sRtn="audio/make";} | |
| 663 | + else if("mzz".equals(lower)){sRtn="application/x-vnd.audioexplosion.mzz";} | |
| 664 | + else if("nap".equals(lower)){sRtn="image/naplps";} | |
| 665 | + else if("naplps".equals(lower)){sRtn="image/naplps";} | |
| 666 | + else if("nc".equals(lower)){sRtn="application/x-netcdf";} | |
| 667 | + else if("ncm".equals(lower)){sRtn="application/vnd.nokia.configuration-message";} | |
| 668 | + else if("nif".equals(lower)){sRtn="image/x-niff";} | |
| 669 | + else if("niff".equals(lower)){sRtn="image/x-niff";} | |
| 670 | + else if("nix".equals(lower)){sRtn="application/x-mix-transfer";} | |
| 671 | + else if("nsc".equals(lower)){sRtn="application/x-conference";} | |
| 672 | + else if("nvd".equals(lower)){sRtn="application/x-navidoc";} | |
| 673 | + else if("o".equals(lower)){sRtn="application/octet-stream";} | |
| 674 | + else if("oda".equals(lower)){sRtn="application/oda";} | |
| 675 | + else if("omc".equals(lower)){sRtn="application/x-omc";} | |
| 676 | + else if("omcd".equals(lower)){sRtn="application/x-omcdatamaker";} | |
| 677 | + else if("omcr".equals(lower)){sRtn="application/x-omcregerator";} | |
| 678 | + else if("p".equals(lower)){sRtn="text/x-pascal";} | |
| 679 | + else if("p10".equals(lower)){sRtn="application/pkcs10";} | |
| 680 | + else if("p12".equals(lower)){sRtn="application/pkcs-12";} | |
| 681 | + else if("p7a".equals(lower)){sRtn="application/x-pkcs7-signature";} | |
| 682 | + else if("p7c".equals(lower)){sRtn="application/pkcs7-mime";} | |
| 683 | + else if("p7m".equals(lower)){sRtn="application/pkcs7-mime";} | |
| 684 | + else if("p7r".equals(lower)){sRtn="application/x-pkcs7-certreqresp";} | |
| 685 | + else if("p7s".equals(lower)){sRtn="application/pkcs7-signature";} | |
| 686 | + else if("part".equals(lower)){sRtn="application/pro_eng";} | |
| 687 | + else if("pas".equals(lower)){sRtn="text/pascal";} | |
| 688 | + else if("pbm".equals(lower)){sRtn="image/x-portable-bitmap";} | |
| 689 | + else if("pcl".equals(lower)){sRtn="application/vnd.hp-pcl";} | |
| 690 | + else if("pct".equals(lower)){sRtn="image/x-pict";} | |
| 691 | + else if("pcx".equals(lower)){sRtn="image/x-pcx";} | |
| 692 | + else if("pdb".equals(lower)){sRtn="chemical/x-pdb";} | |
| 693 | + else if("pdf".equals(lower)){sRtn="application/pdf";} | |
| 694 | + else if("pfunk".equals(lower)){sRtn="audio/make";} | |
| 695 | + else if("pgm".equals(lower)){sRtn="image/x-portable-graymap";} | |
| 696 | + else if("pgm".equals(lower)){sRtn="image/x-portable-greymap";} | |
| 697 | + else if("pic".equals(lower)){sRtn="image/pict";} | |
| 698 | + else if("pict".equals(lower)){sRtn="image/pict";} | |
| 699 | + else if("pkg".equals(lower)){sRtn="application/x-newton-compatible-pkg";} | |
| 700 | + else if("pko".equals(lower)){sRtn="application/vnd.ms-pki.pko";} | |
| 701 | + else if("pl".equals(lower)){sRtn="text/plain";} | |
| 702 | + else if("plx".equals(lower)){sRtn="application/x-pixclscript";} | |
| 703 | + else if("pm".equals(lower)){sRtn="image/x-xpixmap";} | |
| 704 | + else if("pm4".equals(lower)){sRtn="application/x-pagemaker";} | |
| 705 | + else if("pm5".equals(lower)){sRtn="application/x-pagemaker";} | |
| 706 | + else if("png".equals(lower)){sRtn="image/png";} | |
| 707 | + else if("pnm".equals(lower)){sRtn="application/x-portable-anymap";} | |
| 708 | + else if("pot".equals(lower)){sRtn="application/mspowerpoint";} | |
| 709 | + else if("pov".equals(lower)){sRtn="model/x-pov";} | |
| 710 | + else if("ppa".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 711 | + else if("ppm".equals(lower)){sRtn="image/x-portable-pixmap";} | |
| 712 | + else if("pps".equals(lower)){sRtn="application/mspowerpoint";} | |
| 713 | + else if("ppt".equals(lower)){sRtn="application/mspowerpoint";} | |
| 714 | + else if("ppt".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 715 | + else if("pptx".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 716 | + else if("ppz".equals(lower)){sRtn="application/mspowerpoint";} | |
| 717 | + else if("pre".equals(lower)){sRtn="application/x-freelance";} | |
| 718 | + else if("prt".equals(lower)){sRtn="application/pro_eng";} | |
| 719 | + else if("ps".equals(lower)){sRtn="application/postscript";} | |
| 720 | + else if("psd".equals(lower)){sRtn="application/octet-stream";} | |
| 721 | + else if("pvu".equals(lower)){sRtn="paleovu/x-pv";} | |
| 722 | + else if("pwz".equals(lower)){sRtn="application/vnd.ms-powerpoint";} | |
| 723 | + else if("py".equals(lower)){sRtn="text/x-script.phyton";} | |
| 724 | + else if("pyc".equals(lower)){sRtn="applicaiton/x-bytecode.python";} | |
| 725 | + else if("qcp".equals(lower)){sRtn="audio/vnd.qcelp";} | |
| 726 | + else if("qd3".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 727 | + else if("qd3d".equals(lower)){sRtn="x-world/x-3dmf";} | |
| 728 | + else if("qif".equals(lower)){sRtn="image/x-quicktime";} | |
| 729 | + else if("qt".equals(lower)){sRtn="video/quicktime";} | |
| 730 | + else if("qtc".equals(lower)){sRtn="video/x-qtc";} | |
| 731 | + else if("qti".equals(lower)){sRtn="image/x-quicktime";} | |
| 732 | + else if("qtif".equals(lower)){sRtn="image/x-quicktime";} | |
| 733 | + else if("ra".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 734 | + else if("ram".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 735 | + else if("ras".equals(lower)){sRtn="application/x-cmu-raster";} | |
| 736 | + else if("rast".equals(lower)){sRtn="image/cmu-raster";} | |
| 737 | + else if("rexx".equals(lower)){sRtn="text/x-script.rexx";} | |
| 738 | + else if("rf".equals(lower)){sRtn="image/vnd.rn-realflash";} | |
| 739 | + else if("rgb".equals(lower)){sRtn="image/x-rgb";} | |
| 740 | + else if("rm".equals(lower)){sRtn="application/vnd.rn-realmedia";} | |
| 741 | + else if("rmi".equals(lower)){sRtn="audio/mid";} | |
| 742 | + else if("rmm".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 743 | + else if("rmp".equals(lower)){sRtn="audio/x-pn-realaudio";} | |
| 744 | + else if("rng".equals(lower)){sRtn="application/ringing-tones";} | |
| 745 | + else if("rnx".equals(lower)){sRtn="application/vnd.rn-realplayer";} | |
| 746 | + else if("roff".equals(lower)){sRtn="application/x-troff";} | |
| 747 | + else if("rp".equals(lower)){sRtn="image/vnd.rn-realpix";} | |
| 748 | + else if("rpm".equals(lower)){sRtn="audio/x-pn-realaudio-plugin";} | |
| 749 | + else if("rt".equals(lower)){sRtn="text/richtext";} | |
| 750 | + else if("rtf".equals(lower)){sRtn="application/rtf";} | |
| 751 | + else if("rtx".equals(lower)){sRtn="application/rtf";} | |
| 752 | + else if("rv".equals(lower)){sRtn="video/vnd.rn-realvideo";} | |
| 753 | + else if("s".equals(lower)){sRtn="text/x-asm";} | |
| 754 | + else if("s3m".equals(lower)){sRtn="audio/s3m";} | |
| 755 | + else if("saveme".equals(lower)){sRtn="application/octet-stream";} | |
| 756 | + else if("sbk".equals(lower)){sRtn="application/x-tbook";} | |
| 757 | + else if("scm".equals(lower)){sRtn="application/x-lotusscreencam";} | |
| 758 | + else if("sdml".equals(lower)){sRtn="text/plain";} | |
| 759 | + else if("sdp".equals(lower)){sRtn="application/sdp";} | |
| 760 | + else if("sdr".equals(lower)){sRtn="application/sounder";} | |
| 761 | + else if("sea".equals(lower)){sRtn="application/sea";} | |
| 762 | + else if("set".equals(lower)){sRtn="application/set";} | |
| 763 | + else if("sgm".equals(lower)){sRtn="text/sgml";} | |
| 764 | + else if("sgml".equals(lower)){sRtn="text/sgml";} | |
| 765 | + else if("sh".equals(lower)){sRtn="application/x-bsh";} | |
| 766 | + else if("shar".equals(lower)){sRtn="application/x-bsh";} | |
| 767 | + else if("shtml".equals(lower)){sRtn="text/html";} | |
| 768 | + else if("sid".equals(lower)){sRtn="audio/x-psid";} | |
| 769 | + else if("sit".equals(lower)){sRtn="application/x-sit";} | |
| 770 | + else if("skd".equals(lower)){sRtn="application/x-koan";} | |
| 771 | + else if("skm".equals(lower)){sRtn="application/x-koan";} | |
| 772 | + else if("skp".equals(lower)){sRtn="application/x-koan";} | |
| 773 | + else if("skt".equals(lower)){sRtn="application/x-koan";} | |
| 774 | + else if("sl".equals(lower)){sRtn="application/x-seelogo";} | |
| 775 | + else if("smi".equals(lower)){sRtn="application/smil";} | |
| 776 | + else if("smil".equals(lower)){sRtn="application/smil";} | |
| 777 | + else if("snd".equals(lower)){sRtn="audio/basic";} | |
| 778 | + else if("sol".equals(lower)){sRtn="application/solids";} | |
| 779 | + else if("spc".equals(lower)){sRtn="application/x-pkcs7-certificates";} | |
| 780 | + else if("spl".equals(lower)){sRtn="application/futuresplash";} | |
| 781 | + else if("spr".equals(lower)){sRtn="application/x-sprite";} | |
| 782 | + else if("sprite".equals(lower)){sRtn="application/x-sprite";} | |
| 783 | + else if("src".equals(lower)){sRtn="application/x-wais-source";} | |
| 784 | + else if("ssi".equals(lower)){sRtn="text/x-server-parsed-html";} | |
| 785 | + else if("ssm".equals(lower)){sRtn="application/streamingmedia";} | |
| 786 | + else if("sst".equals(lower)){sRtn="application/vnd.ms-pki.certstore";} | |
| 787 | + else if("step".equals(lower)){sRtn="application/step";} | |
| 788 | + else if("stl".equals(lower)){sRtn="application/sla";} | |
| 789 | + else if("stp".equals(lower)){sRtn="application/step";} | |
| 790 | + else if("sv4cpio".equals(lower)){sRtn="application/x-sv4cpio";} | |
| 791 | + else if("sv4crc".equals(lower)){sRtn="application/x-sv4crc";} | |
| 792 | + else if("svf".equals(lower)){sRtn="image/vnd.dwg";} | |
| 793 | + else if("svr".equals(lower)){sRtn="application/x-world";} | |
| 794 | + else if("swf".equals(lower)){sRtn="application/x-shockwave-flash";} | |
| 795 | + else if("t".equals(lower)){sRtn="application/x-troff";} | |
| 796 | + else if("talk".equals(lower)){sRtn="text/x-speech";} | |
| 797 | + else if("tar".equals(lower)){sRtn="application/x-tar";} | |
| 798 | + else if("tbk".equals(lower)){sRtn="application/toolbook";} | |
| 799 | + else if("tcl".equals(lower)){sRtn="application/x-tcl";} | |
| 800 | + else if("tcsh".equals(lower)){sRtn="text/x-script.tcsh";} | |
| 801 | + else if("tex".equals(lower)){sRtn="application/x-tex";} | |
| 802 | + else if("texi".equals(lower)){sRtn="application/x-texinfo";} | |
| 803 | + else if("texinfo".equals(lower)){sRtn="application/x-texinfo";} | |
| 804 | + else if("text".equals(lower)){sRtn="application/plain";} | |
| 805 | + else if("tgz".equals(lower)){sRtn="application/gnutar";} | |
| 806 | + else if("tif".equals(lower)){sRtn="image/tiff";} | |
| 807 | + else if("tiff".equals(lower)){sRtn="image/tiff";} | |
| 808 | + else if("tr".equals(lower)){sRtn="application/x-troff";} | |
| 809 | + else if("tsi".equals(lower)){sRtn="audio/tsp-audio";} | |
| 810 | + else if("tsp".equals(lower)){sRtn="application/dsptype";} | |
| 811 | + else if("tsv".equals(lower)){sRtn="text/tab-separated-values";} | |
| 812 | + else if("turbot".equals(lower)){sRtn="image/florian";} | |
| 813 | + else if("txt".equals(lower)){sRtn="application/octet-stream";} | |
| 814 | + else if("uil".equals(lower)){sRtn="text/x-uil";} | |
| 815 | + else if("uni".equals(lower)){sRtn="text/uri-list";} | |
| 816 | + else if("unis".equals(lower)){sRtn="text/uri-list";} | |
| 817 | + else if("unv".equals(lower)){sRtn="application/i-deas";} | |
| 818 | + else if("uri".equals(lower)){sRtn="text/uri-list";} | |
| 819 | + else if("uris".equals(lower)){sRtn="text/uri-list";} | |
| 820 | + else if("ustar".equals(lower)){sRtn="application/x-ustar";} | |
| 821 | + else if("uu".equals(lower)){sRtn="application/octet-stream";} | |
| 822 | + else if("uue".equals(lower)){sRtn="text/x-uuencode";} | |
| 823 | + else if("vcd".equals(lower)){sRtn="application/x-cdlink";} | |
| 824 | + else if("vcs".equals(lower)){sRtn="text/x-vcalendar";} | |
| 825 | + else if("vda".equals(lower)){sRtn="application/vda";} | |
| 826 | + else if("vdo".equals(lower)){sRtn="video/vdo";} | |
| 827 | + else if("vew".equals(lower)){sRtn="application/groupwise";} | |
| 828 | + else if("viv".equals(lower)){sRtn="video/vivo";} | |
| 829 | + else if("vivo".equals(lower)){sRtn="video/vivo";} | |
| 830 | + else if("vmd".equals(lower)){sRtn="application/vocaltec-media-desc";} | |
| 831 | + else if("vmf".equals(lower)){sRtn="application/vocaltec-media-file";} | |
| 832 | + else if("voc".equals(lower)){sRtn="audio/voc";} | |
| 833 | + else if("vos".equals(lower)){sRtn="video/vosaic";} | |
| 834 | + else if("vox".equals(lower)){sRtn="audio/voxware";} | |
| 835 | + else if("vqe".equals(lower)){sRtn="audio/x-twinvq-plugin";} | |
| 836 | + else if("vqf".equals(lower)){sRtn="audio/x-twinvq";} | |
| 837 | + else if("vql".equals(lower)){sRtn="audio/x-twinvq-plugin";} | |
| 838 | + else if("vrml".equals(lower)){sRtn="application/x-vrml";} | |
| 839 | + else if("vrt".equals(lower)){sRtn="x-world/x-vrt";} | |
| 840 | + else if("vsd".equals(lower)){sRtn="application/x-visio";} | |
| 841 | + else if("vst".equals(lower)){sRtn="application/x-visio";} | |
| 842 | + else if("vsw".equals(lower)){sRtn="application/x-visio";} | |
| 843 | + else if("w60".equals(lower)){sRtn="application/wordperfect6.0";} | |
| 844 | + else if("w61".equals(lower)){sRtn="application/wordperfect6.1";} | |
| 845 | + else if("w6w".equals(lower)){sRtn="application/msword";} | |
| 846 | + else if("wav".equals(lower)){sRtn="audio/wav";} | |
| 847 | + else if("wb1".equals(lower)){sRtn="application/x-qpro";} | |
| 848 | + else if("wbmp".equals(lower)){sRtn="image/vnd.wap.wbmp";} | |
| 849 | + else if("web".equals(lower)){sRtn="application/vnd.xara";} | |
| 850 | + else if("wiz".equals(lower)){sRtn="application/msword";} | |
| 851 | + else if("wk1".equals(lower)){sRtn="application/x-123";} | |
| 852 | + else if("wmf".equals(lower)){sRtn="windows/metafile";} | |
| 853 | + else if("wml".equals(lower)){sRtn="text/vnd.wap.wml";} | |
| 854 | + else if("wmlc".equals(lower)){sRtn="application/vnd.wap.wmlc";} | |
| 855 | + else if("wmls".equals(lower)){sRtn="text/vnd.wap.wmlscript";} | |
| 856 | + else if("wmlsc".equals(lower)){sRtn="application/vnd.wap.wmlscriptc";} | |
| 857 | + else if("word".equals(lower)){sRtn="application/msword";} | |
| 858 | + else if("wp".equals(lower)){sRtn="application/wordperfect";} | |
| 859 | + else if("wp5".equals(lower)){sRtn="application/wordperfect";} | |
| 860 | + else if("wp6".equals(lower)){sRtn="application/wordperfect";} | |
| 861 | + else if("wpd".equals(lower)){sRtn="application/wordperfect";} | |
| 862 | + else if("wq1".equals(lower)){sRtn="application/x-lotus";} | |
| 863 | + else if("wri".equals(lower)){sRtn="application/mswrite";} | |
| 864 | + else if("wrl".equals(lower)){sRtn="application/x-world";} | |
| 865 | + else if("wrz".equals(lower)){sRtn="model/vrml";} | |
| 866 | + else if("wsc".equals(lower)){sRtn="text/scriplet";} | |
| 867 | + else if("wsrc".equals(lower)){sRtn="application/x-wais-source";} | |
| 868 | + else if("wtk".equals(lower)){sRtn="application/x-wintalk";} | |
| 869 | + else if("xbm".equals(lower)){sRtn="image/x-xbitmap";} | |
| 870 | + else if("xdr".equals(lower)){sRtn="video/x-amt-demorun";} | |
| 871 | + else if("xgz".equals(lower)){sRtn="xgl/drawing";} | |
| 872 | + else if("xif".equals(lower)){sRtn="image/vnd.xiff";} | |
| 873 | + else if("xl".equals(lower)){sRtn="application/excel";} | |
| 874 | + else if("xla".equals(lower)){sRtn="application/excel";} | |
| 875 | + else if("xlb".equals(lower)){sRtn="application/excel";} | |
| 876 | + else if("xlc".equals(lower)){sRtn="application/excel";} | |
| 877 | + else if("xld".equals(lower)){sRtn="application/excel";} | |
| 878 | + else if("xlk".equals(lower)){sRtn="application/excel";} | |
| 879 | + else if("xll".equals(lower)){sRtn="application/excel";} | |
| 880 | + else if("xlm".equals(lower)){sRtn="application/excel";} | |
| 881 | + else if("xls".equals(lower)){sRtn="application/excel";} | |
| 882 | + else if("xlsx".equals(lower)){sRtn="application/excel";} | |
| 883 | + else if("xlt".equals(lower)){sRtn="application/excel";} | |
| 884 | + else if("xlv".equals(lower)){sRtn="application/excel";} | |
| 885 | + else if("xlw".equals(lower)){sRtn="application/excel";} | |
| 886 | + else if("xm".equals(lower)){sRtn="audio/xm";} | |
| 887 | + else if("xml".equals(lower)){sRtn="application/xml";} | |
| 888 | + else if("xmz".equals(lower)){sRtn="xgl/movie";} | |
| 889 | + else if("xpix".equals(lower)){sRtn="application/x-vnd.ls-xpix";} | |
| 890 | + else if("xpm".equals(lower)){sRtn="image/x-xpixmap";} | |
| 891 | + else if("xpm".equals(lower)){sRtn="image/xpm";} | |
| 892 | + else if("x-png".equals(lower)){sRtn="image/png";} | |
| 893 | + else if("xsr".equals(lower)){sRtn="video/x-amt-showrun";} | |
| 894 | + else if("xwd".equals(lower)){sRtn="image/x-xwd";} | |
| 895 | + else if("xyz".equals(lower)){sRtn="chemical/x-pdb";} | |
| 896 | + else if("z".equals(lower)){sRtn="application/x-compress";} | |
| 897 | + else if("zip".equals(lower)){sRtn="application/zip";} | |
| 898 | + else if("zoo".equals(lower)){sRtn="application/octet-stream";} | |
| 899 | + else if("zsh".equals(lower)){sRtn="text/x-script.zsh";} | |
| 900 | + | |
| 901 | + return sRtn; | |
| 902 | + } | |
| 903 | +} |
--- base/src/main/java/egovframework/com/cmm/web/EgovFileMngController.java
+++ base/src/main/java/egovframework/com/cmm/web/FileMngController.java
... | ... | @@ -37,46 +37,25 @@ |
| 37 | 37 |
import com.google.gson.Gson; |
| 38 | 38 |
import com.google.gson.JsonObject; |
| 39 | 39 |
|
| 40 |
-import egovframework.com.cmm.service.EgovFileMngService; |
|
| 41 |
-import egovframework.com.cmm.service.EgovFileMngUtil; |
|
| 40 |
+import egovframework.com.cmm.service.FileMngService; |
|
| 41 |
+import egovframework.com.cmm.service.FileMngUtil; |
|
| 42 | 42 |
import egovframework.com.cmm.service.FileVO; |
| 43 | 43 |
import egovframework.com.cmm.service.JsonResponse; |
| 44 |
-import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 45 | 44 |
import egovframework.com.sym.sit.service.SiteManageService; |
| 46 | 45 |
import egovframework.com.sym.sit.service.SiteManageVO; |
| 47 |
-import egovframework.com.uat.uia.service.LoginVO; |
|
| 48 | 46 |
import egovframework.com.utl.fcc.service.EgovStringUtil; |
| 49 | 47 |
import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
| 50 | 48 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 51 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 52 | 49 |
|
| 53 |
-/** |
|
| 54 |
- * 파일 조회, 삭제, 다운로드 처리를 위한 컨트롤러 클래스 |
|
| 55 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 56 |
- * @since 2009.06.01 |
|
| 57 |
- * @version 1.0 |
|
| 58 |
- * @see |
|
| 59 |
- * |
|
| 60 |
- * <pre> |
|
| 61 |
- * << 개정이력(Modification Information) >> |
|
| 62 |
- * |
|
| 63 |
- * 수정일 수정자 수정내용 |
|
| 64 |
- * ------- -------- --------------------------- |
|
| 65 |
- * 2009.3.25 이삼섭 최초 생성 |
|
| 66 |
- * |
|
| 67 |
- * </pre> |
|
| 68 |
- */ |
|
| 50 |
+//파일 조회, 삭제, 다운로드 처리를 위한 컨트롤러 클래스 |
|
| 69 | 51 |
@Controller |
| 70 |
-public class EgovFileMngController {
|
|
| 52 |
+public class FileMngController {
|
|
| 71 | 53 |
|
| 72 |
- @Resource(name = "EgovFileMngService") |
|
| 73 |
- private EgovFileMngService fileService; |
|
| 54 |
+ @Resource(name = "fileMngService") |
|
| 55 |
+ private FileMngService fileService; |
|
| 74 | 56 |
|
| 75 |
- @Resource(name = "EgovFileMngUtil") |
|
| 76 |
- private EgovFileMngUtil fileUtil; |
|
| 77 |
- |
|
| 78 |
- @Resource(name = "EgovFileMngService") |
|
| 79 |
- private EgovFileMngService fileMngService; |
|
| 57 |
+ @Resource(name = "fileMngUtil") |
|
| 58 |
+ private FileMngUtil fileUtil; |
|
| 80 | 59 |
|
| 81 | 60 |
@Resource(name = "siteManageService") |
| 82 | 61 |
SiteManageService siteManageService; |
... | ... | @@ -89,49 +68,31 @@ |
| 89 | 68 |
|
| 90 | 69 |
Logger log = Logger.getLogger(this.getClass()); |
| 91 | 70 |
|
| 92 |
- /** |
|
| 93 |
- * 첨부파일에 대한 목록을 조회한다. |
|
| 94 |
- * |
|
| 95 |
- * @param fileVO |
|
| 96 |
- * @param atchFileId |
|
| 97 |
- * @param sessionVO |
|
| 98 |
- * @param model |
|
| 99 |
- * @return |
|
| 100 |
- * @throws Exception |
|
| 101 |
- */ |
|
| 71 |
+ //첨부파일에 대한 목록을 조회한다. |
|
| 102 | 72 |
@RequestMapping("/cmm/fms/selectFileInfs.do")
|
| 103 | 73 |
public String selectFileInfs(HttpServletRequest request, @ModelAttribute("searchVO") FileVO fileVO, @RequestParam("param_atchFileId") String param_atchFileId, ModelMap model) throws Exception {
|
| 104 |
- String returnUrl = "cmm/fms/EgovFileList"; |
|
| 105 |
- String atchFileId = param_atchFileId; |
|
| 106 |
- String viewDivision = request.getParameter("viewDivision") == null ? "" : request.getParameter("viewDivision").toString();
|
|
| 107 |
- if("staff".equals(viewDivision)){
|
|
| 108 |
- returnUrl = "cmm/fms/EgovStaffFileList"; |
|
| 109 |
- }else{
|
|
| 110 |
- model.addAttribute("updateFlag", "N");
|
|
| 111 |
- } |
|
| 74 |
+ String returnUrl = "cmm/fms/EgovFileList"; |
|
| 75 |
+ String atchFileId = param_atchFileId; |
|
| 76 |
+ String viewDivision = request.getParameter("viewDivision") == null ? "" : request.getParameter("viewDivision").toString();
|
|
| 77 |
+ if("staff".equals(viewDivision)){
|
|
| 78 |
+ returnUrl = "cmm/fms/EgovStaffFileList"; |
|
| 79 |
+ }else{
|
|
| 80 |
+ model.addAttribute("updateFlag", "N");
|
|
| 81 |
+ } |
|
| 112 | 82 |
|
| 113 |
- fileVO.setAtchFileId(atchFileId); |
|
| 114 |
- List<FileVO> result = fileService.selectFileInfs(fileVO); |
|
| 83 |
+ fileVO.setAtchFileId(atchFileId); |
|
| 84 |
+ List<FileVO> result = fileService.selectFileInfs(fileVO); |
|
| 115 | 85 |
|
| 116 | 86 |
|
| 117 |
- model.addAttribute("fileList", result);
|
|
| 118 |
- model.addAttribute("fileListCnt", result.size());
|
|
| 119 |
- model.addAttribute("atchFileId", atchFileId);
|
|
| 120 |
- model.addAttribute("webPath", propertiesService.getString("web.path"));
|
|
| 87 |
+ model.addAttribute("fileList", result);
|
|
| 88 |
+ model.addAttribute("fileListCnt", result.size());
|
|
| 89 |
+ model.addAttribute("atchFileId", atchFileId);
|
|
| 90 |
+ model.addAttribute("webPath", propertiesService.getString("web.path"));
|
|
| 121 | 91 |
|
| 122 | 92 |
return "cmm/fms/EgovFileList"; |
| 123 | 93 |
} |
| 124 | 94 |
|
| 125 |
- /** |
|
| 126 |
- * 자료요청 완료 첨부파일에 대한 목록을 조회한다. |
|
| 127 |
- * |
|
| 128 |
- * @param fileVO |
|
| 129 |
- * @param atchFileId |
|
| 130 |
- * @param sessionVO |
|
| 131 |
- * @param model |
|
| 132 |
- * @return |
|
| 133 |
- * @throws Exception |
|
| 134 |
- */ |
|
| 95 |
+ //자료요청 완료 첨부파일에 대한 목록을 조회한다. |
|
| 135 | 96 |
@RequestMapping("/cmm/fms/selectDtaResFileInfs.do")
|
| 136 | 97 |
public String selectDtaResFileInfs(@ModelAttribute("searchVO") FileVO fileVO, @RequestParam("param_atchFileId") String param_atchFileId, ModelMap model) throws Exception {
|
| 137 | 98 |
String atchFileId = param_atchFileId; |
... | ... | @@ -147,16 +108,7 @@ |
| 147 | 108 |
return "cmm/fms/EgovDtaResFileList"; |
| 148 | 109 |
} |
| 149 | 110 |
|
| 150 |
- /** |
|
| 151 |
- * 첨부파일 변경을 위한 수정페이지로 이동한다. |
|
| 152 |
- * |
|
| 153 |
- * @param fileVO |
|
| 154 |
- * @param atchFileId |
|
| 155 |
- * @param sessionVO |
|
| 156 |
- * @param model |
|
| 157 |
- * @return |
|
| 158 |
- * @throws Exception |
|
| 159 |
- */ |
|
| 111 |
+ //첨부파일 변경을 위한 수정페이지로 이동한다. |
|
| 160 | 112 |
@RequestMapping("/cmm/fms/selectFileInfsForUpdate.do")
|
| 161 | 113 |
public String selectFileInfsForUpdate(HttpServletRequest request, |
| 162 | 114 |
HttpServletResponse response, @ModelAttribute("searchVO") FileVO fileVO, @RequestParam("param_atchFileId") String param_atchFileId,
|
... | ... | @@ -185,16 +137,7 @@ |
| 185 | 137 |
return returnUrl; |
| 186 | 138 |
} |
| 187 | 139 |
|
| 188 |
- /** |
|
| 189 |
- * 첨부파일에 대한 삭제를 처리한다. |
|
| 190 |
- * |
|
| 191 |
- * @param fileVO |
|
| 192 |
- * @param returnUrl |
|
| 193 |
- * @param sessionVO |
|
| 194 |
- * @param model |
|
| 195 |
- * @return |
|
| 196 |
- * @throws Exception |
|
| 197 |
- */ |
|
| 140 |
+ //첨부파일에 대한 삭제를 처리한다. |
|
| 198 | 141 |
@RequestMapping("/cmm/fms/deleteFileInfs.do")
|
| 199 | 142 |
public String deleteFileInf(@ModelAttribute("searchVO") FileVO fileVO, @RequestParam("returnUrl") String returnUrl,
|
| 200 | 143 |
HttpServletRequest request, |
... | ... | @@ -216,16 +159,7 @@ |
| 216 | 159 |
|
| 217 | 160 |
} |
| 218 | 161 |
|
| 219 |
- /** |
|
| 220 |
- * 첨부파일에 대한 삭제를 처리한다. |
|
| 221 |
- * |
|
| 222 |
- * @param fileVO |
|
| 223 |
- * @param returnUrl |
|
| 224 |
- * @param sessionVO |
|
| 225 |
- * @param model |
|
| 226 |
- * @return |
|
| 227 |
- * @throws Exception |
|
| 228 |
- */ |
|
| 162 |
+ //첨부파일에 대한 삭제를 처리한다. |
|
| 229 | 163 |
@RequestMapping("/cmm/fms/deleteFileInfByAjax.do")
|
| 230 | 164 |
public void deleteFileInfByJson(@ModelAttribute("searchVO") FileVO fileVO,
|
| 231 | 165 |
HttpServletRequest request, |
... | ... | @@ -257,16 +191,7 @@ |
| 257 | 191 |
|
| 258 | 192 |
} |
| 259 | 193 |
|
| 260 |
- /** |
|
| 261 |
- * 이미지 첨부파일에 대한 목록을 조회한다. |
|
| 262 |
- * |
|
| 263 |
- * @param fileVO |
|
| 264 |
- * @param atchFileId |
|
| 265 |
- * @param sessionVO |
|
| 266 |
- * @param model |
|
| 267 |
- * @return |
|
| 268 |
- * @throws Exception |
|
| 269 |
- */ |
|
| 194 |
+ //이미지 첨부파일에 대한 목록을 조회한다. |
|
| 270 | 195 |
@RequestMapping("/cmm/fms/selectImageFileInfs.do")
|
| 271 | 196 |
public String selectImageFileInfs(@ModelAttribute("searchVO") FileVO fileVO,
|
| 272 | 197 |
//SessionVO sessionVO, |
... | ... | @@ -282,13 +207,8 @@ |
| 282 | 207 |
return "cmm/fms/EgovImgFileList"; |
| 283 | 208 |
} |
| 284 | 209 |
|
| 285 |
- /** |
|
| 286 |
- * 대용량파일을 Upload 처리한다. |
|
| 287 |
- * |
|
| 288 |
- * @param fileVO |
|
| 289 |
- * @return |
|
| 290 |
- * @throws Exception |
|
| 291 |
- *//* |
|
| 210 |
+ //대용량파일을 Upload 처리한다. |
|
| 211 |
+ /* |
|
| 292 | 212 |
@RequestMapping("/cmm/fms/uploadStreamLongFiles.do")
|
| 293 | 213 |
public void uploadStreamLongFiles(@ModelAttribute("searchVO") FileVO fileVO, @CommandMap Map<String, Object> commandMap, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 294 | 214 |
|
... | ... | @@ -632,107 +552,6 @@ |
| 632 | 552 |
@RequestMapping(value = "/cmm/fms/upload.do", method = RequestMethod.POST) |
| 633 | 553 |
public void upload(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") FileVO searchVO, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 634 | 554 |
|
| 635 |
- /* |
|
| 636 |
- String siteId = searchVO.getSiteId(); |
|
| 637 |
- if(EgovStringUtil.isEmpty(siteId)) {
|
|
| 638 |
- SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); |
|
| 639 |
- siteId = siteVO.getSiteId(); |
|
| 640 |
- } |
|
| 641 |
- |
|
| 642 |
- if(EgovStringUtil.isEmpty(searchVO.getAtchFileId())) {
|
|
| 643 |
- searchVO.setAtchFileId(fileIdgenService.getNextStringId()); |
|
| 644 |
- } |
|
| 645 |
- |
|
| 646 |
- String appendPath = searchVO.getSiteId(); |
|
| 647 |
- if(!EgovStringUtil.isEmpty(searchVO.getAppendPath())) {
|
|
| 648 |
- appendPath = appendPath + "/" + searchVO.getAppendPath(); |
|
| 649 |
- } |
|
| 650 |
- |
|
| 651 |
- |
|
| 652 |
- String storePathString = ""; |
|
| 653 |
- String storeWebPathString = ""; |
|
| 654 |
- String atchFileIdString = ""; |
|
| 655 |
- |
|
| 656 |
- String storePath = searchVO.getPathKey() + ".fileStorePath"; |
|
| 657 |
- String storeWebPath = searchVO.getPathKey() + ".fileStoreWebPath"; |
|
| 658 |
- if ("".equals(storePath) || storePath == null) {
|
|
| 659 |
- storePathString = propertiesService.getString("Globals.fileStorePath");
|
|
| 660 |
- storeWebPathString = propertiesService.getString("Globals.fileStoreWebPath");
|
|
| 661 |
- } else {
|
|
| 662 |
- storePathString = propertiesService.getString(storePath); |
|
| 663 |
- storeWebPathString = propertiesService.getString(storeWebPath); |
|
| 664 |
- } |
|
| 665 |
- |
|
| 666 |
- if (!("".equals(appendPath) || appendPath == null)) {
|
|
| 667 |
- storePathString = storePathString + "/" + appendPath; |
|
| 668 |
- storeWebPathString = storeWebPathString + "/" + appendPath; |
|
| 669 |
- } |
|
| 670 |
- |
|
| 671 |
- String range = multiRequest.getHeader("Content-Range");
|
|
| 672 |
- long fileFullLength = -1; |
|
| 673 |
- long chunkFrom = -1; |
|
| 674 |
- long chunkTo = -1; |
|
| 675 |
- if (range != null) {
|
|
| 676 |
- if (!range.startsWith("bytes "))
|
|
| 677 |
- throw new ServletException("Unexpected range format: " + range);
|
|
| 678 |
- String[] fromToAndLength = range.substring(6).split(Pattern.quote("/"));
|
|
| 679 |
- fileFullLength = Long.parseLong(fromToAndLength[1]); |
|
| 680 |
- String[] fromAndTo = fromToAndLength[0].split(Pattern.quote("-"));
|
|
| 681 |
- chunkFrom = Long.parseLong(fromAndTo[0]); |
|
| 682 |
- chunkTo = Long.parseLong(fromAndTo[1]); |
|
| 683 |
- } |
|
| 684 |
- |
|
| 685 |
- |
|
| 686 |
- |
|
| 687 |
- File tempDir = new File(storePathString);//new File(System.getProperty("java.io.tmpdir")); // Configure according
|
|
| 688 |
- File storageDir = tempDir; // project server environment. |
|
| 689 |
- |
|
| 690 |
- final Map<String, MultipartFile> files = multiRequest.getFileMap(); |
|
| 691 |
- Iterator<Entry<String, MultipartFile>> it = files.entrySet().iterator(); |
|
| 692 |
- MultipartFile item; |
|
| 693 |
- List<Map<String, Object>> ret = new ArrayList<Map<String,Object>>(); |
|
| 694 |
- while (it.hasNext()) {
|
|
| 695 |
- Entry<String, MultipartFile> entry = it.next(); |
|
| 696 |
- |
|
| 697 |
- item = entry.getValue(); |
|
| 698 |
- |
|
| 699 |
- String fileId = searchVO.getAtchFileId() + "_" + String.valueOf(item.getOriginalFilename().hashCode()); |
|
| 700 |
- |
|
| 701 |
- Map<String, Object> fileInfo = new LinkedHashMap<String, Object>(); |
|
| 702 |
- File assembledFile = null; |
|
| 703 |
- fileInfo.put("name", item.getName());
|
|
| 704 |
- fileInfo.put("type", item.getContentType());
|
|
| 705 |
- File dir = new File(storageDir, fileId); |
|
| 706 |
- if (!dir.exists()) |
|
| 707 |
- dir.mkdir(); |
|
| 708 |
- if (fileFullLength < 0) { // File is not chunked
|
|
| 709 |
- fileInfo.put("size", item.getSize());
|
|
| 710 |
- assembledFile = new File(dir, item.getName()); |
|
| 711 |
- item.transferTo(assembledFile); |
|
| 712 |
- } else { // File is chunked
|
|
| 713 |
- byte[] bytes = item.getBytes(); |
|
| 714 |
- if (chunkFrom + bytes.length != chunkTo + 1) |
|
| 715 |
- throw new ServletException("Unexpected length of chunk: " + bytes.length +
|
|
| 716 |
- " != " + (chunkTo + 1) + " - " + chunkFrom); |
|
| 717 |
- saveChunk(dir, item.getName(), chunkFrom, bytes, fileFullLength); |
|
| 718 |
- TreeMap<Long, Long> chunkStartsToLengths = getChunkStartsToLengths(dir, item.getName()); |
|
| 719 |
- long lengthSoFar = getCommonLength(chunkStartsToLengths); |
|
| 720 |
- fileInfo.put("size", lengthSoFar);
|
|
| 721 |
- if (lengthSoFar == fileFullLength) {
|
|
| 722 |
- assembledFile = assembleAndDeleteChunks(dir, item.getName(), |
|
| 723 |
- new ArrayList<Long>(chunkStartsToLengths.keySet())); |
|
| 724 |
- } |
|
| 725 |
- } |
|
| 726 |
- if (assembledFile != null) {
|
|
| 727 |
- fileInfo.put("complete", true);
|
|
| 728 |
- fileInfo.put("serverPath", assembledFile.getAbsolutePath());
|
|
| 729 |
- // Here you can do something with fully assembled file. |
|
| 730 |
- } |
|
| 731 |
- ret.add(fileInfo); |
|
| 732 |
- }; |
|
| 733 |
- */ |
|
| 734 |
- |
|
| 735 |
- |
|
| 736 | 555 |
int imgOrientation = 0; |
| 737 | 556 |
|
| 738 | 557 |
String range = multiRequest.getHeader("Content-Range");
|
... | ... | @@ -795,15 +614,15 @@ |
| 795 | 614 |
if(!"Y".equals(searchVO.getIsNoTempFile())) {
|
| 796 | 615 |
for(int i=0; i<fileList.size(); i++) {
|
| 797 | 616 |
fileList.get(i).setOrientation(imgOrientation); |
| 798 |
- FileVO dbVO = fileMngService.insertTempFileInf(fileList.get(i)); |
|
| 617 |
+ FileVO dbVO = fileService.insertTempFileInf(fileList.get(i)); |
|
| 799 | 618 |
result.add(dbVO); |
| 800 | 619 |
} |
| 801 | 620 |
} else {
|
| 802 |
- int maxSn = fileMngService.getMaxFileSN(searchVO); |
|
| 621 |
+ int maxSn = fileService.getMaxFileSN(searchVO); |
|
| 803 | 622 |
for(int i=0; i<fileList.size(); i++) {
|
| 804 | 623 |
fileList.get(i).setFileSn(String.valueOf(maxSn + i)); |
| 805 | 624 |
} |
| 806 |
- fileMngService.updateFileInfs(fileList); |
|
| 625 |
+ fileService.updateFileInfs(fileList); |
|
| 807 | 626 |
result.addAll(fileList); |
| 808 | 627 |
} |
| 809 | 628 |
} |
... | ... | @@ -814,7 +633,7 @@ |
| 814 | 633 |
wireData.put("editorId", searchVO.getEditorId());
|
| 815 | 634 |
if(result.size() > 0) {
|
| 816 | 635 |
|
| 817 |
- FileVO totalInfoVO = fileMngService.selectFileDetailTotalInfo(result.get(0)); |
|
| 636 |
+ FileVO totalInfoVO = fileService.selectFileDetailTotalInfo(result.get(0)); |
|
| 818 | 637 |
wireData.put("totalFileMg", totalInfoVO.getTotalFileMg());
|
| 819 | 638 |
wireData.put("totalFileCount", totalInfoVO.getTotalFileCount());
|
| 820 | 639 |
} |
... | ... | @@ -918,17 +737,11 @@ |
| 918 | 737 |
return assembledFile; |
| 919 | 738 |
} |
| 920 | 739 |
|
| 921 |
- /** |
|
| 922 |
- * 대용량파일을 삭제 처리한다. |
|
| 923 |
- * |
|
| 924 |
- * @param fileVO |
|
| 925 |
- * @return |
|
| 926 |
- * @throws Exception |
|
| 927 |
- */ |
|
| 740 |
+ //대용량파일을 삭제 처리한다. |
|
| 928 | 741 |
@RequestMapping("/cmm/fms/deleteStreamLongFileByAjax.do")
|
| 929 | 742 |
public void deleteStreamLongFileByAjax(@ModelAttribute("searchVO") FileVO fileVO, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 930 | 743 |
|
| 931 |
- FileVO dbVO = fileMngService.deleteTempFileInf(fileVO); |
|
| 744 |
+ FileVO dbVO = fileService.deleteTempFileInf(fileVO); |
|
| 932 | 745 |
|
| 933 | 746 |
Gson gson = new Gson(); |
| 934 | 747 |
JsonObject jObj = new JsonObject(); |
... | ... | @@ -952,13 +765,7 @@ |
| 952 | 765 |
printwriter.close(); |
| 953 | 766 |
} |
| 954 | 767 |
|
| 955 |
- /** |
|
| 956 |
- * 파일ID를 생성환다. |
|
| 957 |
- * |
|
| 958 |
- * @param fileVO |
|
| 959 |
- * @return |
|
| 960 |
- * @throws Exception |
|
| 961 |
- */ |
|
| 768 |
+ //파일ID를 생성환다. |
|
| 962 | 769 |
@RequestMapping("/cmm/fms/selectFileIdByAjax.do")
|
| 963 | 770 |
public void selectFileIdByAjax(@ModelAttribute("searchVO") FileVO fileVO, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 964 | 771 |
|
--- base/src/main/java/egovframework/com/cop/bbs/service/BoardMasterVO.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/BoardMasterVO.java
... | ... | @@ -50,9 +50,6 @@ |
| 50 | 50 |
//등록구분코드 |
| 51 | 51 |
private String registSeCode = "REGC01"; |
| 52 | 52 |
|
| 53 |
- //유일 아이디 |
|
| 54 |
- private String uniqId = ""; |
|
| 55 |
- |
|
| 56 | 53 |
//댓글 여부 |
| 57 | 54 |
private String commentUseAt = "N"; |
| 58 | 55 |
|
... | ... | @@ -201,14 +198,6 @@ |
| 201 | 198 |
|
| 202 | 199 |
public void setRegistSeCode(String registSeCode) {
|
| 203 | 200 |
this.registSeCode = registSeCode; |
| 204 |
- } |
|
| 205 |
- |
|
| 206 |
- public String getUniqId() {
|
|
| 207 |
- return uniqId; |
|
| 208 |
- } |
|
| 209 |
- |
|
| 210 |
- public void setUniqId(String uniqId) {
|
|
| 211 |
- this.uniqId = uniqId; |
|
| 212 | 201 |
} |
| 213 | 202 |
|
| 214 | 203 |
public String getCommentUseAt() {
|
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCommentMapper.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCommentMapper.java
... | ... | @@ -45,26 +45,9 @@ |
| 45 | 45 |
/* |
| 46 | 46 |
public void insertCommentBatch(final List<CommentVO> commentList) throws Exception {
|
| 47 | 47 |
|
| 48 |
- Exception error = null; |
|
| 49 | 48 |
if(commentList != null && commentList.size() > 0) {
|
| 50 |
- try {
|
|
| 51 |
- sqlMapClient.startTransaction(); |
|
| 52 |
- sqlMapClient.startBatch(); |
|
| 53 |
- |
|
| 54 |
- for(int i = 0; i < commentList.size(); i++) {
|
|
| 55 |
- insert("BBSCommentDAO.insertComment", commentList.get(i));
|
|
| 56 |
- } |
|
| 57 |
- } catch(SQLException e) {
|
|
| 58 |
- error = e; |
|
| 59 |
- } |
|
| 60 |
- catch (Exception e){
|
|
| 61 |
- error = e; |
|
| 62 |
- }finally{
|
|
| 63 |
- sqlMapClient.endTransaction(); |
|
| 64 |
- } |
|
| 65 |
- |
|
| 66 |
- if (error != null){
|
|
| 67 |
- throw error; |
|
| 49 |
+ for(int i = 0; i < commentList.size(); i++) {
|
|
| 50 |
+ insert("BBSCommentDAO.insertComment", commentList.get(i));
|
|
| 68 | 51 |
} |
| 69 | 52 |
} |
| 70 | 53 |
} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSManageMapper.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSManageMapper.java
... | ... | @@ -63,32 +63,11 @@ |
| 63 | 63 |
//관리용 게시물을 일괄등록한다. |
| 64 | 64 |
/* |
| 65 | 65 |
public void insertBoardArticleBatch(final List<BoardVO> articleList) throws Exception {
|
| 66 |
- |
|
| 67 |
- Exception error = null; |
|
| 68 |
- |
|
| 69 | 66 |
if(articleList != null && articleList.size() > 0) {
|
| 70 |
- try {
|
|
| 71 |
- sqlMapClient.startTransaction(); |
|
| 72 |
- sqlMapClient.startBatch(); |
|
| 73 |
- |
|
| 74 |
- for(int i = 0; i < articleList.size(); i++) {
|
|
| 75 |
- insert("BBSManageDAO.insertBoardArticle", articleList.get(i));
|
|
| 76 |
- } |
|
| 77 |
- } catch(SQLException e) {
|
|
| 78 |
- error = e; |
|
| 79 |
- } |
|
| 80 |
- catch (Exception e){
|
|
| 81 |
- error = e; |
|
| 82 |
- } |
|
| 83 |
- finally{
|
|
| 84 |
- sqlMapClient.endTransaction(); |
|
| 85 |
- } |
|
| 86 |
- |
|
| 87 |
- if (error != null){
|
|
| 88 |
- throw error; |
|
| 67 |
+ for(int i = 0; i < articleList.size(); i++) {
|
|
| 68 |
+ insert("BBSManageDAO.insertBoardArticle", articleList.get(i));
|
|
| 89 | 69 |
} |
| 90 | 70 |
} |
| 91 |
- |
|
| 92 | 71 |
} |
| 93 | 72 |
*/ |
| 94 | 73 |
|
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSManageServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSManageServiceImpl.java
... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 |
import org.apache.log4j.Logger; |
| 10 | 10 |
import org.springframework.stereotype.Service; |
| 11 | 11 |
|
| 12 |
-import egovframework.com.cmm.service.EgovFileMngService; |
|
| 12 |
+import egovframework.com.cmm.service.FileMngService; |
|
| 13 | 13 |
import egovframework.com.cmm.service.FileVO; |
| 14 | 14 |
import egovframework.com.utl.fcc.service.EgovStringUtil; |
| 15 | 15 |
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
... | ... | @@ -27,8 +27,8 @@ |
| 27 | 27 |
@Resource(name = "bbsCommentService") |
| 28 | 28 |
protected BBSCommentService bbsCommentService; |
| 29 | 29 |
|
| 30 |
- @Resource(name = "EgovFileMngService") |
|
| 31 |
- private EgovFileMngService fileMngService; |
|
| 30 |
+ @Resource(name = "fileMngService") |
|
| 31 |
+ private FileMngService fileMngService; |
|
| 32 | 32 |
|
| 33 | 33 |
@Resource(name = "bbsNttNoGnrService") |
| 34 | 34 |
private EgovIdGnrService idgenService; |
--- base/src/main/java/egovframework/com/cop/bbs/web/EgovBBSCommentController.java
+++ base/src/main/java/egovframework/com/cop/bbs/web/BBSCommentController.java
... | ... | @@ -1,293 +1,293 @@ |
| 1 |
-package egovframework.com.cop.bbs.web; |
|
| 2 |
- |
|
| 3 |
-import java.util.Map; |
|
| 4 |
- |
|
| 5 |
-import javax.annotation.Resource; |
|
| 6 |
-import javax.servlet.http.HttpServletRequest; |
|
| 7 |
-import javax.servlet.http.HttpServletResponse; |
|
| 8 |
- |
|
| 9 |
-import org.apache.log4j.Logger; |
|
| 10 |
-import org.springframework.beans.factory.annotation.Autowired; |
|
| 11 |
-import org.springframework.stereotype.Controller; |
|
| 12 |
-import org.springframework.ui.ModelMap; |
|
| 13 |
-import org.springframework.validation.BindingResult; |
|
| 14 |
-import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
-import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
-import org.springmodules.validation.commons.DefaultBeanValidator; |
|
| 17 |
- |
|
| 18 |
-import egovframework.com.cmm.EgovMessageSource; |
|
| 19 |
-import egovframework.com.cop.bbs.service.CommentVO; |
|
| 20 |
-import egovframework.com.cop.bbs.service.BBSCommentService; |
|
| 21 |
-import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 22 |
-import egovframework.com.uat.uia.service.LoginVO; |
|
| 23 |
-import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 24 |
-import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 25 |
- |
|
| 26 |
-//댓글관리 서비스 컨트롤러 클래스 |
|
| 27 |
-@Controller("EgovBBSCommentController")
|
|
| 28 |
-public class EgovBBSCommentController {
|
|
| 29 |
- |
|
| 30 |
- @Resource(name = "bbsCommentService") |
|
| 31 |
- protected BBSCommentService bbsCommentService; |
|
| 32 |
- |
|
| 33 |
- @Resource(name = "propertiesService") |
|
| 34 |
- protected EgovPropertyService propertyService; |
|
| 35 |
- |
|
| 36 |
- @Resource(name = "egovMessageSource") |
|
| 37 |
- EgovMessageSource egovMessageSource; |
|
| 38 |
- |
|
| 39 |
- @Autowired |
|
| 40 |
- private DefaultBeanValidator beanValidator; |
|
| 41 |
- |
|
| 42 |
- Logger log = Logger.getLogger(this.getClass()); |
|
| 43 |
- |
|
| 44 |
-//XSS 방지 처리. |
|
| 45 |
-protected String unscript(String data) {
|
|
| 46 |
- if(data == null || data.trim().equals("")) {
|
|
| 47 |
- return ""; |
|
| 48 |
- } |
|
| 49 |
- |
|
| 50 |
- String ret = data; |
|
| 51 |
- |
|
| 52 |
- ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script");
|
|
| 53 |
- ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script");
|
|
| 54 |
- |
|
| 55 |
- ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object");
|
|
| 56 |
- ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object");
|
|
| 57 |
- |
|
| 58 |
- ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet");
|
|
| 59 |
- ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet");
|
|
| 60 |
- |
|
| 61 |
- // ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 62 |
- // ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 63 |
- |
|
| 64 |
- ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 65 |
- ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 66 |
- |
|
| 67 |
- return ret; |
|
| 68 |
-} |
|
| 69 |
- |
|
| 70 |
- //댓글관리 목록 조회를 제공한다. |
|
| 71 |
- @RequestMapping(value = "/cop/bbs/selectCommentList.do") |
|
| 72 |
- public String selectCommentList(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, String urlPrefix, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 73 |
- |
|
| 74 |
- try {
|
|
| 75 |
- // 수정 처리된 후 댓글 등록 화면으로 처리되기 위한 구현 |
|
| 76 |
- if(commentVO.isModified()) {
|
|
| 77 |
- commentVO.setCommentNo(null); |
|
| 78 |
- commentVO.setCommentCn("");
|
|
| 79 |
- } |
|
| 80 |
- |
|
| 81 |
- // 수정을 위한 처리 |
|
| 82 |
- if(commentVO.getCommentNo() != null) {
|
|
| 83 |
- return "forward:/cop/bbs/selectSingleComment.do"; |
|
| 84 |
- } |
|
| 85 |
- |
|
| 86 |
- model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 87 |
- |
|
| 88 |
- if(commentVO.getType().equals("head")) {
|
|
| 89 |
- return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 90 |
- } |
|
| 91 |
- // //---------------------------------------- |
|
| 92 |
- |
|
| 93 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 94 |
- if(user != null) {
|
|
| 95 |
- commentVO.setWrterNm(user.getName()); |
|
| 96 |
- commentVO.setFrstRegisterId(user.getId()); |
|
| 97 |
- } |
|
| 98 |
- |
|
| 99 |
- commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 100 |
- commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 101 |
- |
|
| 102 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 103 |
- paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 104 |
- paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 105 |
- paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 106 |
- |
|
| 107 |
- commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 108 |
- commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 109 |
- commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 110 |
- |
|
| 111 |
- Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 112 |
- int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 113 |
- |
|
| 114 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 115 |
- |
|
| 116 |
- model.addAttribute("resultList", map.get("resultList"));
|
|
| 117 |
- model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 118 |
- model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile"));
|
|
| 119 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 120 |
- |
|
| 121 |
- commentVO.setCommentCn(""); // 등록 후 댓글 내용 처리
|
|
| 122 |
- } catch(Exception ex) {
|
|
| 123 |
- ex.printStackTrace(); |
|
| 124 |
- } |
|
| 125 |
- return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 126 |
- } |
|
| 127 |
- |
|
| 128 |
- //댓글을 등록한다. |
|
| 129 |
- @RequestMapping(value = "/cop/bbs/insertComment.do") |
|
| 130 |
- public String insertComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 131 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 132 |
- |
|
| 133 |
- if(user == null) {
|
|
| 134 |
- return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); |
|
| 135 |
- } |
|
| 136 |
- |
|
| 137 |
- if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 138 |
- |
|
| 139 |
- model.addAttribute("msg", "동일한 댓글을 중복적으로 등록 할 수 없습니다.");
|
|
| 140 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 141 |
- } |
|
| 142 |
- |
|
| 143 |
- |
|
| 144 |
- beanValidator.validate(comment, bindingResult); |
|
| 145 |
- if(bindingResult.hasErrors()) {
|
|
| 146 |
- model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 147 |
- |
|
| 148 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 149 |
- } |
|
| 150 |
- |
|
| 151 |
- comment.setFrstRegisterId(user.getId()); |
|
| 152 |
- comment.setWrterNm(user.getName()); |
|
| 153 |
- comment.setCommentCn(unscript(comment.getCommentCn())); |
|
| 154 |
- bbsCommentService.insertComment(comment); |
|
| 155 |
- |
|
| 156 |
- request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 157 |
- |
|
| 158 |
- commentVO.setCommentCn("");
|
|
| 159 |
- commentVO.setCommentNo(null); |
|
| 160 |
- |
|
| 161 |
- |
|
| 162 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 163 |
- } |
|
| 164 |
- |
|
| 165 |
- @RequestMapping(value = "/cop/bbs/insertReplyComment.do") |
|
| 166 |
- public String insertReplyComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 167 |
- if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 168 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 169 |
- } |
|
| 170 |
- |
|
| 171 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 172 |
- if(user == null) {
|
|
| 173 |
- return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); |
|
| 174 |
- } |
|
| 175 |
- |
|
| 176 |
- beanValidator.validate(comment, bindingResult); |
|
| 177 |
- if(bindingResult.hasErrors()) {
|
|
| 178 |
- model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 179 |
- |
|
| 180 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 181 |
- } |
|
| 182 |
- |
|
| 183 |
- commentVO.setFrstRegisterId(user.getId()); |
|
| 184 |
- commentVO.setWrterNm(user.getName()); |
|
| 185 |
- commentVO.setCommentCn(unscript(commentVO.getCommentCn())); |
|
| 186 |
- |
|
| 187 |
- bbsCommentService.insertReplyComment(commentVO); |
|
| 188 |
- |
|
| 189 |
- request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 190 |
- commentVO.setCommentCn("");
|
|
| 191 |
- commentVO.setCommentNo(null); |
|
| 192 |
- |
|
| 193 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 194 |
- } |
|
| 195 |
- //댓글을 삭제한다. |
|
| 196 |
- @RequestMapping(value = "/cop/bbs/deleteComment.do") |
|
| 197 |
- public String deleteComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 198 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 199 |
- if(user != null) {
|
|
| 200 |
- commentVO.setLastUpdusrId(user.getId()); |
|
| 201 |
- bbsCommentService.deleteComment(commentVO); |
|
| 202 |
- } |
|
| 203 |
- |
|
| 204 |
- commentVO.setCommentCn("");
|
|
| 205 |
- commentVO.setCommentNo(null); |
|
| 206 |
- |
|
| 207 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 208 |
- } |
|
| 209 |
- |
|
| 210 |
- //댓글 수정 페이지로 이동한다. |
|
| 211 |
- @RequestMapping(value = "/cop/bbs/selectSingleComment.do") |
|
| 212 |
- public String selectSingleComment(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 213 |
- |
|
| 214 |
- model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 215 |
- |
|
| 216 |
- if(commentVO.getType().equals("head")) {
|
|
| 217 |
- return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 218 |
- } |
|
| 219 |
- // //---------------------------------------- |
|
| 220 |
- |
|
| 221 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 222 |
- |
|
| 223 |
- commentVO.setWrterNm(user.getName()); |
|
| 224 |
- |
|
| 225 |
- commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 226 |
- commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 227 |
- |
|
| 228 |
- PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 229 |
- paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 230 |
- paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 231 |
- paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 232 |
- |
|
| 233 |
- commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 234 |
- commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 235 |
- commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 236 |
- |
|
| 237 |
- Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 238 |
- int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 239 |
- |
|
| 240 |
- paginationInfo.setTotalRecordCount(totCnt); |
|
| 241 |
- |
|
| 242 |
- model.addAttribute("resultList", map.get("resultList"));
|
|
| 243 |
- model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 244 |
- model.addAttribute("paginationInfo", paginationInfo);
|
|
| 245 |
- model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile"));
|
|
| 246 |
- |
|
| 247 |
- CommentVO data = bbsCommentService.selectComment(commentVO); |
|
| 248 |
- |
|
| 249 |
- commentVO.setCommentNo(data.getCommentNo()); |
|
| 250 |
- commentVO.setNttNo(data.getNttNo()); |
|
| 251 |
- commentVO.setWrterNm(data.getWrterNm()); |
|
| 252 |
- commentVO.setCommentCn(data.getCommentCn()); |
|
| 253 |
- commentVO.setUseAt(data.getUseAt()); |
|
| 254 |
- commentVO.setFrstRegisterPnttm(data.getFrstRegisterPnttm()); |
|
| 255 |
- |
|
| 256 |
- request.getSession().setAttribute("sessionVO", commentVO);
|
|
| 257 |
- |
|
| 258 |
- return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 259 |
- } |
|
| 260 |
- |
|
| 261 |
- //댓글을 수정한다. |
|
| 262 |
- @RequestMapping(value = "/cop/bbs/updateComment.do") |
|
| 263 |
- public String updateCommentList(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 264 |
- |
|
| 265 |
- if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 266 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 267 |
- } |
|
| 268 |
- |
|
| 269 |
- LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 270 |
- Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 271 |
- |
|
| 272 |
- beanValidator.validate(comment, bindingResult); |
|
| 273 |
- if(bindingResult.hasErrors()) {
|
|
| 274 |
- model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 275 |
- |
|
| 276 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 277 |
- } |
|
| 278 |
- |
|
| 279 |
- if(isAuthenticated) {
|
|
| 280 |
- comment.setLastUpdusrId(user.getId()); |
|
| 281 |
- |
|
| 282 |
- bbsCommentService.updateComment(comment); |
|
| 283 |
- |
|
| 284 |
- commentVO.setCommentCn("");
|
|
| 285 |
- commentVO.setCommentNo(null); |
|
| 286 |
- |
|
| 287 |
- request.getSession().removeAttribute("sessionVO");
|
|
| 288 |
- } |
|
| 289 |
- |
|
| 290 |
- return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 291 |
- } |
|
| 292 |
- |
|
| 293 |
-} |
|
| 1 |
+package egovframework.com.cop.bbs.web; |
|
| 2 |
+ |
|
| 3 |
+import java.util.Map; |
|
| 4 |
+ |
|
| 5 |
+import javax.annotation.Resource; |
|
| 6 |
+import javax.servlet.http.HttpServletRequest; |
|
| 7 |
+import javax.servlet.http.HttpServletResponse; |
|
| 8 |
+ |
|
| 9 |
+import org.apache.log4j.Logger; |
|
| 10 |
+import org.springframework.beans.factory.annotation.Autowired; |
|
| 11 |
+import org.springframework.stereotype.Controller; |
|
| 12 |
+import org.springframework.ui.ModelMap; |
|
| 13 |
+import org.springframework.validation.BindingResult; |
|
| 14 |
+import org.springframework.web.bind.annotation.ModelAttribute; |
|
| 15 |
+import org.springframework.web.bind.annotation.RequestMapping; |
|
| 16 |
+import org.springmodules.validation.commons.DefaultBeanValidator; |
|
| 17 |
+ |
|
| 18 |
+import egovframework.com.cmm.EgovMessageSource; |
|
| 19 |
+import egovframework.com.cop.bbs.service.CommentVO; |
|
| 20 |
+import egovframework.com.cop.bbs.service.BBSCommentService; |
|
| 21 |
+import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
|
| 22 |
+import egovframework.com.uat.uia.service.LoginVO; |
|
| 23 |
+import egovframework.rte.fdl.property.EgovPropertyService; |
|
| 24 |
+import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
|
| 25 |
+ |
|
| 26 |
+//댓글관리 서비스 컨트롤러 클래스 |
|
| 27 |
+@Controller("EgovBBSCommentController")
|
|
| 28 |
+public class BBSCommentController {
|
|
| 29 |
+ |
|
| 30 |
+ @Resource(name = "bbsCommentService") |
|
| 31 |
+ protected BBSCommentService bbsCommentService; |
|
| 32 |
+ |
|
| 33 |
+ @Resource(name = "propertiesService") |
|
| 34 |
+ protected EgovPropertyService propertyService; |
|
| 35 |
+ |
|
| 36 |
+ @Resource(name = "egovMessageSource") |
|
| 37 |
+ EgovMessageSource egovMessageSource; |
|
| 38 |
+ |
|
| 39 |
+ @Autowired |
|
| 40 |
+ private DefaultBeanValidator beanValidator; |
|
| 41 |
+ |
|
| 42 |
+ Logger log = Logger.getLogger(this.getClass()); |
|
| 43 |
+ |
|
| 44 |
+//XSS 방지 처리. |
|
| 45 |
+protected String unscript(String data) {
|
|
| 46 |
+ if(data == null || data.trim().equals("")) {
|
|
| 47 |
+ return ""; |
|
| 48 |
+ } |
|
| 49 |
+ |
|
| 50 |
+ String ret = data; |
|
| 51 |
+ |
|
| 52 |
+ ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script");
|
|
| 53 |
+ ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script");
|
|
| 54 |
+ |
|
| 55 |
+ ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object");
|
|
| 56 |
+ ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object");
|
|
| 57 |
+ |
|
| 58 |
+ ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet");
|
|
| 59 |
+ ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet");
|
|
| 60 |
+ |
|
| 61 |
+ // ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 62 |
+ // ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed");
|
|
| 63 |
+ |
|
| 64 |
+ ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 65 |
+ ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form");
|
|
| 66 |
+ |
|
| 67 |
+ return ret; |
|
| 68 |
+} |
|
| 69 |
+ |
|
| 70 |
+ //댓글관리 목록 조회를 제공한다. |
|
| 71 |
+ @RequestMapping(value = "/cop/bbs/selectCommentList.do") |
|
| 72 |
+ public String selectCommentList(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, String urlPrefix, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 73 |
+ |
|
| 74 |
+ try {
|
|
| 75 |
+ // 수정 처리된 후 댓글 등록 화면으로 처리되기 위한 구현 |
|
| 76 |
+ if(commentVO.isModified()) {
|
|
| 77 |
+ commentVO.setCommentNo(null); |
|
| 78 |
+ commentVO.setCommentCn("");
|
|
| 79 |
+ } |
|
| 80 |
+ |
|
| 81 |
+ // 수정을 위한 처리 |
|
| 82 |
+ if(commentVO.getCommentNo() != null) {
|
|
| 83 |
+ return "forward:/cop/bbs/selectSingleComment.do"; |
|
| 84 |
+ } |
|
| 85 |
+ |
|
| 86 |
+ model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 87 |
+ |
|
| 88 |
+ if(commentVO.getType().equals("head")) {
|
|
| 89 |
+ return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 90 |
+ } |
|
| 91 |
+ // //---------------------------------------- |
|
| 92 |
+ |
|
| 93 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 94 |
+ if(user != null) {
|
|
| 95 |
+ commentVO.setWrterNm(user.getName()); |
|
| 96 |
+ commentVO.setFrstRegisterId(user.getId()); |
|
| 97 |
+ } |
|
| 98 |
+ |
|
| 99 |
+ commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 100 |
+ commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 101 |
+ |
|
| 102 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 103 |
+ paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 104 |
+ paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 105 |
+ paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 106 |
+ |
|
| 107 |
+ commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 108 |
+ commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 109 |
+ commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 110 |
+ |
|
| 111 |
+ Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 112 |
+ int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 113 |
+ |
|
| 114 |
+ paginationInfo.setTotalRecordCount(totCnt); |
|
| 115 |
+ |
|
| 116 |
+ model.addAttribute("resultList", map.get("resultList"));
|
|
| 117 |
+ model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 118 |
+ model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile"));
|
|
| 119 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 120 |
+ |
|
| 121 |
+ commentVO.setCommentCn(""); // 등록 후 댓글 내용 처리
|
|
| 122 |
+ } catch(Exception ex) {
|
|
| 123 |
+ ex.printStackTrace(); |
|
| 124 |
+ } |
|
| 125 |
+ return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 126 |
+ } |
|
| 127 |
+ |
|
| 128 |
+ //댓글을 등록한다. |
|
| 129 |
+ @RequestMapping(value = "/cop/bbs/insertComment.do") |
|
| 130 |
+ public String insertComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 131 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 132 |
+ |
|
| 133 |
+ if(user == null) {
|
|
| 134 |
+ return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); |
|
| 135 |
+ } |
|
| 136 |
+ |
|
| 137 |
+ if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 138 |
+ |
|
| 139 |
+ model.addAttribute("msg", "동일한 댓글을 중복적으로 등록 할 수 없습니다.");
|
|
| 140 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 141 |
+ } |
|
| 142 |
+ |
|
| 143 |
+ |
|
| 144 |
+ beanValidator.validate(comment, bindingResult); |
|
| 145 |
+ if(bindingResult.hasErrors()) {
|
|
| 146 |
+ model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 147 |
+ |
|
| 148 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 149 |
+ } |
|
| 150 |
+ |
|
| 151 |
+ comment.setFrstRegisterId(user.getId()); |
|
| 152 |
+ comment.setWrterNm(user.getName()); |
|
| 153 |
+ comment.setCommentCn(unscript(comment.getCommentCn())); |
|
| 154 |
+ bbsCommentService.insertComment(comment); |
|
| 155 |
+ |
|
| 156 |
+ request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 157 |
+ |
|
| 158 |
+ commentVO.setCommentCn("");
|
|
| 159 |
+ commentVO.setCommentNo(null); |
|
| 160 |
+ |
|
| 161 |
+ |
|
| 162 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 163 |
+ } |
|
| 164 |
+ |
|
| 165 |
+ @RequestMapping(value = "/cop/bbs/insertReplyComment.do") |
|
| 166 |
+ public String insertReplyComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 167 |
+ if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
|
|
| 168 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 169 |
+ } |
|
| 170 |
+ |
|
| 171 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 172 |
+ if(user == null) {
|
|
| 173 |
+ return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); |
|
| 174 |
+ } |
|
| 175 |
+ |
|
| 176 |
+ beanValidator.validate(comment, bindingResult); |
|
| 177 |
+ if(bindingResult.hasErrors()) {
|
|
| 178 |
+ model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 179 |
+ |
|
| 180 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 181 |
+ } |
|
| 182 |
+ |
|
| 183 |
+ commentVO.setFrstRegisterId(user.getId()); |
|
| 184 |
+ commentVO.setWrterNm(user.getName()); |
|
| 185 |
+ commentVO.setCommentCn(unscript(commentVO.getCommentCn())); |
|
| 186 |
+ |
|
| 187 |
+ bbsCommentService.insertReplyComment(commentVO); |
|
| 188 |
+ |
|
| 189 |
+ request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
|
|
| 190 |
+ commentVO.setCommentCn("");
|
|
| 191 |
+ commentVO.setCommentNo(null); |
|
| 192 |
+ |
|
| 193 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 194 |
+ } |
|
| 195 |
+ //댓글을 삭제한다. |
|
| 196 |
+ @RequestMapping(value = "/cop/bbs/deleteComment.do") |
|
| 197 |
+ public String deleteComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 198 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 199 |
+ if(user != null) {
|
|
| 200 |
+ commentVO.setLastUpdusrId(user.getId()); |
|
| 201 |
+ bbsCommentService.deleteComment(commentVO); |
|
| 202 |
+ } |
|
| 203 |
+ |
|
| 204 |
+ commentVO.setCommentCn("");
|
|
| 205 |
+ commentVO.setCommentNo(null); |
|
| 206 |
+ |
|
| 207 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 208 |
+ } |
|
| 209 |
+ |
|
| 210 |
+ //댓글 수정 페이지로 이동한다. |
|
| 211 |
+ @RequestMapping(value = "/cop/bbs/selectSingleComment.do") |
|
| 212 |
+ public String selectSingleComment(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 213 |
+ |
|
| 214 |
+ model.addAttribute("type", commentVO.getType()); // head or body
|
|
| 215 |
+ |
|
| 216 |
+ if(commentVO.getType().equals("head")) {
|
|
| 217 |
+ return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 218 |
+ } |
|
| 219 |
+ // //---------------------------------------- |
|
| 220 |
+ |
|
| 221 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 222 |
+ |
|
| 223 |
+ commentVO.setWrterNm(user.getName()); |
|
| 224 |
+ |
|
| 225 |
+ commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
|
|
| 226 |
+ commentVO.setSubPageSize(propertyService.getInt("pageSize"));
|
|
| 227 |
+ |
|
| 228 |
+ PaginationInfo paginationInfo = new PaginationInfo(); |
|
| 229 |
+ paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); |
|
| 230 |
+ paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); |
|
| 231 |
+ paginationInfo.setPageSize(commentVO.getSubPageSize()); |
|
| 232 |
+ |
|
| 233 |
+ commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); |
|
| 234 |
+ commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); |
|
| 235 |
+ commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); |
|
| 236 |
+ |
|
| 237 |
+ Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); |
|
| 238 |
+ int totCnt = Integer.parseInt((String)map.get("resultCnt"));
|
|
| 239 |
+ |
|
| 240 |
+ paginationInfo.setTotalRecordCount(totCnt); |
|
| 241 |
+ |
|
| 242 |
+ model.addAttribute("resultList", map.get("resultList"));
|
|
| 243 |
+ model.addAttribute("resultCnt", map.get("resultCnt"));
|
|
| 244 |
+ model.addAttribute("paginationInfo", paginationInfo);
|
|
| 245 |
+ model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile"));
|
|
| 246 |
+ |
|
| 247 |
+ CommentVO data = bbsCommentService.selectComment(commentVO); |
|
| 248 |
+ |
|
| 249 |
+ commentVO.setCommentNo(data.getCommentNo()); |
|
| 250 |
+ commentVO.setNttNo(data.getNttNo()); |
|
| 251 |
+ commentVO.setWrterNm(data.getWrterNm()); |
|
| 252 |
+ commentVO.setCommentCn(data.getCommentCn()); |
|
| 253 |
+ commentVO.setUseAt(data.getUseAt()); |
|
| 254 |
+ commentVO.setFrstRegisterPnttm(data.getFrstRegisterPnttm()); |
|
| 255 |
+ |
|
| 256 |
+ request.getSession().setAttribute("sessionVO", commentVO);
|
|
| 257 |
+ |
|
| 258 |
+ return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + commentVO.getSourcId() + "/EgovCommentList";
|
|
| 259 |
+ } |
|
| 260 |
+ |
|
| 261 |
+ //댓글을 수정한다. |
|
| 262 |
+ @RequestMapping(value = "/cop/bbs/updateComment.do") |
|
| 263 |
+ public String updateCommentList(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 264 |
+ |
|
| 265 |
+ if(request.getSession().getAttribute("sessionVO") == null) {
|
|
| 266 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 267 |
+ } |
|
| 268 |
+ |
|
| 269 |
+ LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
|
| 270 |
+ Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); |
|
| 271 |
+ |
|
| 272 |
+ beanValidator.validate(comment, bindingResult); |
|
| 273 |
+ if(bindingResult.hasErrors()) {
|
|
| 274 |
+ model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
|
|
| 275 |
+ |
|
| 276 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 277 |
+ } |
|
| 278 |
+ |
|
| 279 |
+ if(isAuthenticated) {
|
|
| 280 |
+ comment.setLastUpdusrId(user.getId()); |
|
| 281 |
+ |
|
| 282 |
+ bbsCommentService.updateComment(comment); |
|
| 283 |
+ |
|
| 284 |
+ commentVO.setCommentCn("");
|
|
| 285 |
+ commentVO.setCommentNo(null); |
|
| 286 |
+ |
|
| 287 |
+ request.getSession().removeAttribute("sessionVO");
|
|
| 288 |
+ } |
|
| 289 |
+ |
|
| 290 |
+ return "forward:/cop/bbs/selectBoardArticle.do"; |
|
| 291 |
+ } |
|
| 292 |
+ |
|
| 293 |
+} |
--- base/src/main/java/egovframework/com/cop/bbs/web/EgovBBSManageController.java
+++ base/src/main/java/egovframework/com/cop/bbs/web/BBSManageController.java
... | ... | @@ -22,8 +22,8 @@ |
| 22 | 22 |
|
| 23 | 23 |
import egovframework.com.cmm.EgovMessageSource; |
| 24 | 24 |
import egovframework.com.cmm.service.CmmUseService; |
| 25 |
-import egovframework.com.cmm.service.EgovFileMngService; |
|
| 26 |
-import egovframework.com.cmm.service.EgovFileMngUtil; |
|
| 25 |
+import egovframework.com.cmm.service.FileMngService; |
|
| 26 |
+import egovframework.com.cmm.service.FileMngUtil; |
|
| 27 | 27 |
import egovframework.com.cmm.service.FileVO; |
| 28 | 28 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 29 | 29 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
... | ... | @@ -32,7 +32,7 @@ |
| 32 | 32 |
import egovframework.com.uat.uia.service.LoginVO; |
| 33 | 33 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 34 | 34 |
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
| 35 |
-import egovframework.com.uss.ivp.service.EgovIndvdlestbsService; |
|
| 35 |
+import egovframework.com.uss.ivp.service.IndvdlestbsService; |
|
| 36 | 36 |
import egovframework.com.uss.ivp.service.IndvdlestbsVO; |
| 37 | 37 |
import egovframework.com.utl.fcc.service.EgovHttpUtil; |
| 38 | 38 |
import egovframework.com.utl.fcc.service.EgovStringUtil; |
... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 |
|
| 45 | 45 |
//게시물 관리를 위한 컨트롤러 클래스 |
| 46 | 46 |
@Controller("EgovBBSManageController")
|
| 47 |
-public class EgovBBSManageController {
|
|
| 47 |
+public class BBSManageController {
|
|
| 48 | 48 |
|
| 49 | 49 |
@Resource(name = "bbsManageService") |
| 50 | 50 |
private BBSManageService bbsMngService; |
... | ... | @@ -58,11 +58,11 @@ |
| 58 | 58 |
@Resource(name = "siteManageService") |
| 59 | 59 |
SiteManageService siteManageService; |
| 60 | 60 |
|
| 61 |
- @Resource(name = "EgovFileMngService") |
|
| 62 |
- private EgovFileMngService fileMngService; |
|
| 61 |
+ @Resource(name = "fileMngService") |
|
| 62 |
+ private FileMngService fileMngService; |
|
| 63 | 63 |
|
| 64 |
- @Resource(name = "EgovFileMngUtil") |
|
| 65 |
- private EgovFileMngUtil fileUtil; |
|
| 64 |
+ @Resource(name = "fileMngUtil") |
|
| 65 |
+ private FileMngUtil fileUtil; |
|
| 66 | 66 |
|
| 67 | 67 |
@Resource(name = "propertiesService") |
| 68 | 68 |
protected EgovPropertyService propertyService; |
... | ... | @@ -73,8 +73,8 @@ |
| 73 | 73 |
@Resource(name = "cmmUseService") |
| 74 | 74 |
private CmmUseService cmmUseService; |
| 75 | 75 |
|
| 76 |
- @Resource(name = "IndvdlestbsService") |
|
| 77 |
- private EgovIndvdlestbsService indvdlestbsService; |
|
| 76 |
+ @Resource(name = "indvdlestbsService") |
|
| 77 |
+ private IndvdlestbsService indvdlestbsService; |
|
| 78 | 78 |
|
| 79 | 79 |
@Resource(name = "bbsCtgryMasterService") |
| 80 | 80 |
private BBSCtgryMasterService bbsCtgryMasterService; |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSManageController.java
+++ base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSManageController.java
... | ... | @@ -20,8 +20,8 @@ |
| 20 | 20 |
|
| 21 | 21 |
import egovframework.com.cmm.EgovMessageSource; |
| 22 | 22 |
import egovframework.com.cmm.service.CmmUseService; |
| 23 |
-import egovframework.com.cmm.service.EgovFileMngService; |
|
| 24 |
-import egovframework.com.cmm.service.EgovFileMngUtil; |
|
| 23 |
+import egovframework.com.cmm.service.FileMngService; |
|
| 24 |
+import egovframework.com.cmm.service.FileMngUtil; |
|
| 25 | 25 |
import egovframework.com.cmm.service.FileVO; |
| 26 | 26 |
import egovframework.com.cop.cmy.service.CommunityUser; |
| 27 | 27 |
import egovframework.com.cop.cmy.service.EgovCommunityManageService; |
... | ... | @@ -56,11 +56,11 @@ |
| 56 | 56 |
@Resource(name = "siteManageService") |
| 57 | 57 |
SiteManageService siteManageService; |
| 58 | 58 |
|
| 59 |
- @Resource(name = "EgovFileMngService") |
|
| 60 |
- private EgovFileMngService fileMngService; |
|
| 59 |
+ @Resource(name = "fileMngService") |
|
| 60 |
+ private FileMngService fileMngService; |
|
| 61 | 61 |
|
| 62 |
- @Resource(name = "EgovFileMngUtil") |
|
| 63 |
- private EgovFileMngUtil fileUtil; |
|
| 62 |
+ @Resource(name = "fileMngUtil") |
|
| 63 |
+ private FileMngUtil fileUtil; |
|
| 64 | 64 |
|
| 65 | 65 |
@Resource(name = "propertiesService") |
| 66 | 66 |
protected EgovPropertyService propertyService; |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovCommunityManageController.java
+++ base/src/main/java/egovframework/com/cop/cmy/web/EgovCommunityManageController.java
... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 |
import javax.servlet.http.HttpServletRequest; |
| 11 | 11 |
import javax.servlet.http.HttpServletResponse; |
| 12 | 12 |
|
| 13 |
+import egovframework.com.cop.com.service.ConfirmHistoryVO; |
|
| 13 | 14 |
import org.apache.log4j.Logger; |
| 14 | 15 |
import net.sf.json.JSONArray; |
| 15 | 16 |
import net.sf.json.JSONObject; |
... | ... | @@ -25,7 +26,7 @@ |
| 25 | 26 |
|
| 26 | 27 |
import egovframework.com.cmm.EgovMessageSource; |
| 27 | 28 |
import egovframework.com.cmm.service.CmmUseService; |
| 28 |
-import egovframework.com.cmm.service.EgovFileMngUtil; |
|
| 29 |
+import egovframework.com.cmm.service.FileMngUtil; |
|
| 29 | 30 |
import egovframework.com.cmm.service.FileVO; |
| 30 | 31 |
import egovframework.com.cop.bbs.service.BoardMasterVO; |
| 31 | 32 |
import egovframework.com.cop.bbs.service.BoardVO; |
... | ... | @@ -36,8 +37,7 @@ |
| 36 | 37 |
import egovframework.com.cop.cmy.service.CommunityVO; |
| 37 | 38 |
import egovframework.com.cop.cmy.service.CommunityMnu; |
| 38 | 39 |
import egovframework.com.cop.cmy.service.EgovCommunityManageService; |
| 39 |
-import egovframework.com.cop.com.service.ConfirmHistory; |
|
| 40 |
-import egovframework.com.cop.com.service.EgovConfirmManageService; |
|
| 40 |
+import egovframework.com.cop.com.service.ConfirmManageService; |
|
| 41 | 41 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 42 | 42 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
| 43 | 43 |
import egovframework.com.sym.sit.service.SiteManageService; |
... | ... | @@ -50,23 +50,7 @@ |
| 50 | 50 |
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
| 51 | 51 |
|
| 52 | 52 |
|
| 53 |
-/** |
|
| 54 |
- * 커뮤니티 정보를 관리하기 위한 컨트롤러 클래스 |
|
| 55 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 56 |
- * @since 2009.06.01 |
|
| 57 |
- * @version 1.0 |
|
| 58 |
- * @see |
|
| 59 |
- * |
|
| 60 |
- * <pre> |
|
| 61 |
- * << 개정이력(Modification Information) >> |
|
| 62 |
- * |
|
| 63 |
- * 수정일 수정자 수정내용 |
|
| 64 |
- * ------- -------- --------------------------- |
|
| 65 |
- * 2009. 4. 2 이삼섭 최초 생성 |
|
| 66 |
- * 2012. 1. 18 이호영 충청남도교육연구정보원 스마트충남 기능 개선 구축 |
|
| 67 |
- * |
|
| 68 |
- * </pre> |
|
| 69 |
- */ |
|
| 53 |
+//커뮤니티 정보를 관리하기 위한 컨트롤러 클래스 |
|
| 70 | 54 |
@Controller("EgovCommunityManageController")
|
| 71 | 55 |
public class EgovCommunityManageController {
|
| 72 | 56 |
|
... | ... | @@ -74,7 +58,7 @@ |
| 74 | 58 |
private EgovCommunityManageService cmmntyService; |
| 75 | 59 |
|
| 76 | 60 |
@Resource(name = "EgovConfirmManageService") |
| 77 |
- private EgovConfirmManageService confmService; |
|
| 61 |
+ private ConfirmManageService confmService; |
|
| 78 | 62 |
|
| 79 | 63 |
@Resource(name = "propertiesService") |
| 80 | 64 |
protected EgovPropertyService propertyService; |
... | ... | @@ -85,8 +69,8 @@ |
| 85 | 69 |
@Resource(name="cmmUseService") |
| 86 | 70 |
private CmmUseService cmmUseService; |
| 87 | 71 |
|
| 88 |
- @Resource(name = "EgovFileMngUtil") |
|
| 89 |
- private EgovFileMngUtil fileUtil; |
|
| 72 |
+ @Resource(name = "fileMngUtil") |
|
| 73 |
+ private FileMngUtil fileUtil; |
|
| 90 | 74 |
|
| 91 | 75 |
@Resource(name = "egovMessageSource") |
| 92 | 76 |
EgovMessageSource egovMessageSource; |
... | ... | @@ -97,12 +81,7 @@ |
| 97 | 81 |
Logger log = Logger.getLogger(this.getClass()); |
| 98 | 82 |
|
| 99 | 83 |
|
| 100 |
- /** |
|
| 101 |
- * 커뮤니티 관리자 권한을 확인한다. |
|
| 102 |
- * |
|
| 103 |
- * @param history |
|
| 104 |
- * @throws EgovBizException |
|
| 105 |
- */ |
|
| 84 |
+ //커뮤니티 관리자 권한을 확인한다. |
|
| 106 | 85 |
protected void checkAuthority(String trgetId, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 107 | 86 |
|
| 108 | 87 |
LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
... | ... | @@ -125,14 +104,7 @@ |
| 125 | 104 |
} |
| 126 | 105 |
} |
| 127 | 106 |
|
| 128 |
- /** |
|
| 129 |
- * 커뮤니티 메인에 대한 목록을 조회한다. |
|
| 130 |
- * |
|
| 131 |
- * @param cmmntyVO |
|
| 132 |
- * @param model |
|
| 133 |
- * @return |
|
| 134 |
- * @throws Exception |
|
| 135 |
- */ |
|
| 107 |
+ //커뮤니티 메인에 대한 목록을 조회한다. |
|
| 136 | 108 |
@RequestMapping("/cop/cmy/selectCmmntyInfs.do")
|
| 137 | 109 |
public String selectCmmntyInfs(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 138 | 110 |
|
... | ... | @@ -176,15 +148,7 @@ |
| 176 | 148 |
return "cop/cmy/EgovCmmntyInfs"; |
| 177 | 149 |
} |
| 178 | 150 |
|
| 179 |
- /** |
|
| 180 |
- * 커뮤니티 메인에 대한 목록을 조회한다. |
|
| 181 |
- * |
|
| 182 |
- * @param cmmntyVO |
|
| 183 |
- * @param model |
|
| 184 |
- * @return |
|
| 185 |
- * @throws Exception |
|
| 186 |
- */ |
|
| 187 |
- @SuppressWarnings({ "unchecked", "rawtypes" })
|
|
| 151 |
+ //커뮤니티 메인에 대한 목록을 조회한다. |
|
| 188 | 152 |
@RequestMapping("/cop/cmy/selectCmmntyJsonList.do")
|
| 189 | 153 |
public void selectCmmntyMainList(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 190 | 154 |
|
... | ... | @@ -229,14 +193,7 @@ |
| 229 | 193 |
printwriter.close(); |
| 230 | 194 |
} |
| 231 | 195 |
|
| 232 |
- /** |
|
| 233 |
- * 커뮤니티 등록을 위한 약관페이지로 이동한다. |
|
| 234 |
- * |
|
| 235 |
- * @param cmmntyVO |
|
| 236 |
- * @param model |
|
| 237 |
- * @return |
|
| 238 |
- * @throws Exception |
|
| 239 |
- */ |
|
| 196 |
+ //커뮤니티 등록을 위한 약관페이지로 이동한다. |
|
| 240 | 197 |
@RequestMapping("/cop/cmy/selectCmmntyStplat.do")
|
| 241 | 198 |
public String selectCmmntyStplat(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 242 | 199 |
|
... | ... | @@ -258,14 +215,7 @@ |
| 258 | 215 |
return "cop/cmy/EgovCmmntyStplat"; |
| 259 | 216 |
} |
| 260 | 217 |
|
| 261 |
- /** |
|
| 262 |
- * 커뮤니티 등록을 위한 등록페이지로 이동한다. |
|
| 263 |
- * |
|
| 264 |
- * @param cmmntyVO |
|
| 265 |
- * @param model |
|
| 266 |
- * @return |
|
| 267 |
- * @throws Exception |
|
| 268 |
- */ |
|
| 218 |
+ //커뮤니티 등록을 위한 등록페이지로 이동한다. |
|
| 269 | 219 |
@RequestMapping("/cop/cmy/addCmmntyInf.do")
|
| 270 | 220 |
public String addCmmntyInf(@ModelAttribute("searchVO") CommunityVO cmmntyVO,
|
| 271 | 221 |
Community community, |
... | ... | @@ -300,15 +250,7 @@ |
| 300 | 250 |
return "cop/cmy/EgovCmmntyRegist"; |
| 301 | 251 |
} |
| 302 | 252 |
|
| 303 |
- /** |
|
| 304 |
- * 커뮤니티 정보를 등록 개설한다. |
|
| 305 |
- * |
|
| 306 |
- * @param cmmntyVO |
|
| 307 |
- * @param community |
|
| 308 |
- * @return |
|
| 309 |
- * @throws Exception |
|
| 310 |
- */ |
|
| 311 |
- @SuppressWarnings("unchecked")
|
|
| 253 |
+ //커뮤니티 정보를 등록 개설한다. |
|
| 312 | 254 |
@RequestMapping("/cop/cmy/insertCmmntyInf.do")
|
| 313 | 255 |
public String insertCmmntyInf(final MultipartHttpServletRequest multiRequest, |
| 314 | 256 |
@ModelAttribute("searchVO") CommunityVO cmmntyVO,
|
... | ... | @@ -380,14 +322,7 @@ |
| 380 | 322 |
} |
| 381 | 323 |
} |
| 382 | 324 |
|
| 383 |
- /** |
|
| 384 |
- * 커뮤니티 정보 수정을 위한 수정페이지로 이동한다. |
|
| 385 |
- * |
|
| 386 |
- * @param cmmntyVO |
|
| 387 |
- * @param model |
|
| 388 |
- * @return |
|
| 389 |
- * @throws Exception |
|
| 390 |
- */ |
|
| 325 |
+ //커뮤니티 정보 수정을 위한 수정페이지로 이동한다. |
|
| 391 | 326 |
@RequestMapping("/cop/cmy/forUpdateCmmntyInf.do")
|
| 392 | 327 |
public String forUpdateCmmntyInf(@ModelAttribute("searchVO") CommunityVO cmmntyVO, Community community,
|
| 393 | 328 |
ModelMap model, HttpServletRequest request, HttpServletResponse response) |
... | ... | @@ -416,16 +351,7 @@ |
| 416 | 351 |
return "cop/cmy/EgovCmmntyUpdt"; |
| 417 | 352 |
} |
| 418 | 353 |
|
| 419 |
- /** |
|
| 420 |
- * 커뮤니티 정보를 수정한다. |
|
| 421 |
- * |
|
| 422 |
- * @param cmmntyVO |
|
| 423 |
- * @param status |
|
| 424 |
- * @param model |
|
| 425 |
- * @return |
|
| 426 |
- * @throws Exception |
|
| 427 |
- */ |
|
| 428 |
- @SuppressWarnings("unchecked")
|
|
| 354 |
+ //커뮤니티 정보를 수정한다. |
|
| 429 | 355 |
@RequestMapping("/cop/cmy/updtCmmntyInf.do")
|
| 430 | 356 |
public String updtCmmntyInf(final MultipartHttpServletRequest multiRequest, |
| 431 | 357 |
@ModelAttribute("searchVO") CommunityVO cmmntyVO,
|
... | ... | @@ -475,11 +401,7 @@ |
| 475 | 401 |
return "forward:/cmy/"+cmmntyVO.getCmmntyAdres()+".do"; |
| 476 | 402 |
} |
| 477 | 403 |
|
| 478 |
- /** |
|
| 479 |
- * 정규식에 의한 페이지 주소 확인 |
|
| 480 |
- * |
|
| 481 |
- * @param url |
|
| 482 |
- */ |
|
| 404 |
+ //정규식에 의한 페이지 주소 확인 |
|
| 483 | 405 |
public String extractUrlParts(String url) {
|
| 484 | 406 |
|
| 485 | 407 |
String rVal = ""; |
... | ... | @@ -492,14 +414,7 @@ |
| 492 | 414 |
return rVal; |
| 493 | 415 |
} |
| 494 | 416 |
|
| 495 |
- /** |
|
| 496 |
- * 커뮤니티 메인페이지의 기본 내용(게시판 4개 표시) 조회한다. |
|
| 497 |
- * |
|
| 498 |
- * @param cmmntyVO |
|
| 499 |
- * @param model |
|
| 500 |
- * @return |
|
| 501 |
- * @throws Exception |
|
| 502 |
- */ |
|
| 417 |
+ //커뮤니티 메인페이지의 기본 내용(게시판 4개 표시) 조회한다. |
|
| 503 | 418 |
@RequestMapping(value = "/cmy/*") |
| 504 | 419 |
public String selectCmmntyMainPage(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 505 | 420 |
|
... | ... | @@ -569,14 +484,7 @@ |
| 569 | 484 |
return "cop/cmy/EgovCmmntyMainPage"; |
| 570 | 485 |
} |
| 571 | 486 |
|
| 572 |
- /** |
|
| 573 |
- * 커뮤니티 소개 페이지. |
|
| 574 |
- * |
|
| 575 |
- * @param cmmntyVO |
|
| 576 |
- * @param model |
|
| 577 |
- * @return |
|
| 578 |
- * @throws Exception |
|
| 579 |
- */ |
|
| 487 |
+ //커뮤니티 소개 페이지. |
|
| 580 | 488 |
@RequestMapping("/cop/cmy/selectCmmntyInfo.do")
|
| 581 | 489 |
public String selectCmmntyView(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 582 | 490 |
|
... | ... | @@ -590,14 +498,7 @@ |
| 590 | 498 |
return "cop/cmy/EgovCmmntyInfo"; |
| 591 | 499 |
} |
| 592 | 500 |
|
| 593 |
- /** |
|
| 594 |
- * 커뮤니티 사용신청(회원가입) 등록페이지. |
|
| 595 |
- * |
|
| 596 |
- * @param cmmntyVO |
|
| 597 |
- * @param model |
|
| 598 |
- * @return |
|
| 599 |
- * @throws Exception |
|
| 600 |
- */ |
|
| 501 |
+ //커뮤니티 사용신청(회원가입) 등록페이지. |
|
| 601 | 502 |
@RequestMapping("/cop/cmy/selectCmmntyUserBySelf.do")
|
| 602 | 503 |
public String selectCmmntyUserBySelf(@ModelAttribute("communityUserVO") CommunityUserVO communityUserVO,
|
| 603 | 504 |
ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
... | ... | @@ -617,14 +518,7 @@ |
| 617 | 518 |
return "cop/cmy/EgovCmmntyUserBySelf"; |
| 618 | 519 |
} |
| 619 | 520 |
|
| 620 |
- /** |
|
| 621 |
- * 커뮤니티 사용신청(회원가입)을 등록한다. |
|
| 622 |
- * |
|
| 623 |
- * @param communityUserVO |
|
| 624 |
- * @param model |
|
| 625 |
- * @return |
|
| 626 |
- * @throws Exception |
|
| 627 |
- */ |
|
| 521 |
+ //커뮤니티 사용신청(회원가입)을 등록한다. |
|
| 628 | 522 |
@RequestMapping("/cop/cmy/insertCmmntyUserBySelf.do")
|
| 629 | 523 |
public String insertCmmntyUserBySelf(@ModelAttribute("communityUserVO") CommunityUserVO communityUserVO,
|
| 630 | 524 |
BindingResult bindingResult, |
... | ... | @@ -670,8 +564,8 @@ |
| 670 | 564 |
if (!retVal.equals("EXIST")) {
|
| 671 | 565 |
|
| 672 | 566 |
CommunityUser manager = cmmntyService.selectManager(cmmntyVO); |
| 673 |
- |
|
| 674 |
- ConfirmHistory history = new ConfirmHistory(); |
|
| 567 |
+ |
|
| 568 |
+ ConfirmHistoryVO history = new ConfirmHistoryVO(); |
|
| 675 | 569 |
|
| 676 | 570 |
history.setAutoAt(resultInfo.getConfmPolicyCode()); // 자동승인여부 |
| 677 | 571 |
history.setConfmRqesterId(user.getId()); // 요청자 ID |
... | ... | @@ -712,14 +606,7 @@ |
| 712 | 606 |
return "forward:/cop/cmy/selectCmmntyMsg.do"; |
| 713 | 607 |
} |
| 714 | 608 |
|
| 715 |
- /** |
|
| 716 |
- * 커뮤니티 탈퇴신청 페이지로 이동한다. |
|
| 717 |
- * |
|
| 718 |
- * @param cmmntyVO |
|
| 719 |
- * @param model |
|
| 720 |
- * @return |
|
| 721 |
- * @throws Exception |
|
| 722 |
- */ |
|
| 609 |
+ //커뮤니티 탈퇴신청 페이지로 이동한다. |
|
| 723 | 610 |
@RequestMapping("/cop/cmy/selectCmmntyUserSecsn.do")
|
| 724 | 611 |
public String selectCmmntyUserSecsn(@ModelAttribute("searchVO") CommunityVO cmmntyVO,
|
| 725 | 612 |
ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
... | ... | @@ -739,14 +626,7 @@ |
| 739 | 626 |
return "cop/cmy/EgovCmmntyUserSecsn"; |
| 740 | 627 |
} |
| 741 | 628 |
|
| 742 |
- /** |
|
| 743 |
- * 커뮤니티 탈퇴신청을 처리한다. |
|
| 744 |
- * |
|
| 745 |
- * @param cmmntyUser |
|
| 746 |
- * @param model |
|
| 747 |
- * @return |
|
| 748 |
- * @throws Exception |
|
| 749 |
- */ |
|
| 629 |
+ //커뮤니티 탈퇴신청을 처리한다. |
|
| 750 | 630 |
@RequestMapping("/cop/cmy/deleteCmmntyUserSecsn.do")
|
| 751 | 631 |
public String deleteCmmntyUserBySelf(@ModelAttribute("cmmntyUser") CommunityUser cmmntyUser,
|
| 752 | 632 |
@ModelAttribute("cmmntyVO") CommunityVO cmmntyVO,
|
... | ... | @@ -766,8 +646,8 @@ |
| 766 | 646 |
cmmntyUser.setLastUpdusrId(user.getId()); |
| 767 | 647 |
cmmntyUser.setEmplyrId(user.getId()); |
| 768 | 648 |
cmmntyUser.setSecsnDe(EgovDateUtil.getToday()); |
| 769 |
- |
|
| 770 |
- ConfirmHistory history = new ConfirmHistory(); |
|
| 649 |
+ |
|
| 650 |
+ ConfirmHistoryVO history = new ConfirmHistoryVO(); |
|
| 771 | 651 |
history.setConfmRqesterId(user.getId()); |
| 772 | 652 |
history.setConfmerId(cmmntyUser.getEmplyrId()); |
| 773 | 653 |
history.setConfmDe(EgovDateUtil.getToday()); |
... | ... | @@ -788,14 +668,7 @@ |
| 788 | 668 |
return "forward:/cop/cmy/selectCmmntyMsg.do"; |
| 789 | 669 |
} |
| 790 | 670 |
|
| 791 |
- /** |
|
| 792 |
- * 커뮤니티 폐쇄신청페이지로 이동한다. |
|
| 793 |
- * |
|
| 794 |
- * @param cmmntyVO |
|
| 795 |
- * @param model |
|
| 796 |
- * @return |
|
| 797 |
- * @throws Exception |
|
| 798 |
- */ |
|
| 671 |
+ //커뮤니티 폐쇄신청페이지로 이동한다. |
|
| 799 | 672 |
@RequestMapping("/cop/cmy/selectCmmntyClosing.do")
|
| 800 | 673 |
public String selectCmmntyClosing(@ModelAttribute("searchVO") CommunityVO cmmntyVO,
|
| 801 | 674 |
ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
... | ... | @@ -816,15 +689,7 @@ |
| 816 | 689 |
return "cop/cmy/EgovCmmntyClosing"; |
| 817 | 690 |
} |
| 818 | 691 |
|
| 819 |
- /** |
|
| 820 |
- * 커뮤니티를 폐쇄한다. |
|
| 821 |
- * |
|
| 822 |
- * @param cmmntyVO |
|
| 823 |
- * @param status |
|
| 824 |
- * @param model |
|
| 825 |
- * @return |
|
| 826 |
- * @throws Exception |
|
| 827 |
- */ |
|
| 692 |
+ //커뮤니티를 폐쇄한다. |
|
| 828 | 693 |
@RequestMapping("/cop/cmy/deleteCmmntyClosing.do")
|
| 829 | 694 |
public String updtCmmntyCls(@ModelAttribute("searchVO") CommunityVO cmmntyVO,
|
| 830 | 695 |
Community community, |
... | ... | @@ -854,14 +719,7 @@ |
| 854 | 719 |
} |
| 855 | 720 |
|
| 856 | 721 |
|
| 857 |
- /** |
|
| 858 |
- * 커뮤니티 등록을 위한 커뮤니티명을 중복검색 한다. |
|
| 859 |
- * |
|
| 860 |
- * @param cmmntyVO |
|
| 861 |
- * @param model |
|
| 862 |
- * @return |
|
| 863 |
- * @throws Exception |
|
| 864 |
- */ |
|
| 722 |
+ //커뮤니티 등록을 위한 커뮤니티명을 중복검색 한다. |
|
| 865 | 723 |
@RequestMapping("/cop/cmy/selectCmmntyNmDplct.do")
|
| 866 | 724 |
public String selectCmmntyNmDplct(@ModelAttribute("cmmntyVO") CommunityVO cmmntyVO,
|
| 867 | 725 |
ModelMap model, HttpServletRequest request) throws Exception {
|
... | ... | @@ -881,14 +739,7 @@ |
| 881 | 739 |
return "cop/cmy/EgovCmmntyNmDplct"; |
| 882 | 740 |
} |
| 883 | 741 |
|
| 884 |
- /** |
|
| 885 |
- * 커뮤니티 등록을 위한 커뮤니티 주소를 중복검색 한다. |
|
| 886 |
- * |
|
| 887 |
- * @param cmmntyVO |
|
| 888 |
- * @param model |
|
| 889 |
- * @return |
|
| 890 |
- * @throws Exception |
|
| 891 |
- */ |
|
| 742 |
+ //커뮤니티 등록을 위한 커뮤니티 주소를 중복검색 한다. |
|
| 892 | 743 |
@RequestMapping("/cop/cmy/selectCmmntyAdresDplct.do")
|
| 893 | 744 |
public String selectCmmntyAdresDplct(@ModelAttribute("cmmntyVO") CommunityVO cmmntyVO,
|
| 894 | 745 |
ModelMap model, HttpServletRequest request) throws Exception {
|
... | ... | @@ -908,14 +759,7 @@ |
| 908 | 759 |
return "cop/cmy/EgovCmmntyAdresDplct"; |
| 909 | 760 |
} |
| 910 | 761 |
|
| 911 |
- /** |
|
| 912 |
- * 커뮤니티 메뉴를 순서를 변경한다. |
|
| 913 |
- * |
|
| 914 |
- * @param mnuVO |
|
| 915 |
- * @param model |
|
| 916 |
- * @return |
|
| 917 |
- * @throws Exception |
|
| 918 |
- */ |
|
| 762 |
+ //커뮤니티 메뉴를 순서를 변경한다. |
|
| 919 | 763 |
@RequestMapping("/cop/cmy/updateCmmntySortOrdr.do")
|
| 920 | 764 |
public String updateMpmSortOrdr(@ModelAttribute("searchVO") CommunityMnu communityMnu, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 921 | 765 |
|
... | ... | @@ -933,14 +777,7 @@ |
| 933 | 777 |
return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; |
| 934 | 778 |
} |
| 935 | 779 |
|
| 936 |
- /** |
|
| 937 |
- * 커뮤니티 게시판 마스터 목록을 조회한다. |
|
| 938 |
- * |
|
| 939 |
- * @param communityMnuVO |
|
| 940 |
- * @param model |
|
| 941 |
- * @return |
|
| 942 |
- * @throws Exception |
|
| 943 |
- */ |
|
| 780 |
+ //커뮤니티 게시판 마스터 목록을 조회한다. |
|
| 944 | 781 |
@RequestMapping("/cop/cmy/selectCmmntyMasterInfs.do")
|
| 945 | 782 |
public String selectCmmntyMasterInfs(@ModelAttribute("searchVO") CommunityMnuVO communityMnuVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 946 | 783 |
|
... | ... | @@ -987,15 +824,7 @@ |
| 987 | 824 |
return "cop/cmy/EgovCmybbsMstrList"; |
| 988 | 825 |
} |
| 989 | 826 |
|
| 990 |
- /** |
|
| 991 |
- * 커뮤니티에 대한 처리결과 메세지를 보여준다. |
|
| 992 |
- * |
|
| 993 |
- * @param cmmntyVO |
|
| 994 |
- * @param status |
|
| 995 |
- * @param model |
|
| 996 |
- * @return |
|
| 997 |
- * @throws Exception |
|
| 998 |
- */ |
|
| 827 |
+ //커뮤니티에 대한 처리결과 메세지를 보여준다. |
|
| 999 | 828 |
@RequestMapping("/cop/cmy/selectCmmntyMsg.do")
|
| 1000 | 829 |
public String selectCmmntyMsg(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 1001 | 830 |
|
... | ... | @@ -1014,15 +843,7 @@ |
| 1014 | 843 |
return "cop/cmy/EgovCmmntyMsg"; |
| 1015 | 844 |
} |
| 1016 | 845 |
|
| 1017 |
- /** |
|
| 1018 |
- * 커뮤니티 게시판의 전체검색 결과를 보여준다. |
|
| 1019 |
- * |
|
| 1020 |
- * @param cmmntyVO |
|
| 1021 |
- * @param status |
|
| 1022 |
- * @param model |
|
| 1023 |
- * @return |
|
| 1024 |
- * @throws Exception |
|
| 1025 |
- */ |
|
| 846 |
+ //커뮤니티 게시판의 전체검색 결과를 보여준다. |
|
| 1026 | 847 |
@RequestMapping("/cop/cmy/selectCmmntyBoardList.do")
|
| 1027 | 848 |
public String selectCmmntyBoardList(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
| 1028 | 849 |
|
--- base/src/main/java/egovframework/com/cop/com/service/EgovBBSUseInfoManageService.java
+++ base/src/main/java/egovframework/com/cop/com/service/BBSUseInfoManageService.java
... | ... | @@ -1,45 +1,45 @@ |
| 1 |
-package egovframework.com.cop.com.service; |
|
| 2 |
- |
|
| 3 |
-import java.util.Map; |
|
| 4 |
- |
|
| 5 |
- |
|
| 6 |
-//게시판 이용정보를 관리하기 위한 서비스 인터페이스 클래스 |
|
| 7 |
-public interface EgovBBSUseInfoManageService {
|
|
| 8 |
- |
|
| 9 |
- //게시판 사용 정보를 삭제한다. |
|
| 10 |
- public void deleteBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; |
|
| 11 |
- |
|
| 12 |
- //커뮤니티에 사용되는 게시판 사용정보를 삭제한다. |
|
| 13 |
- public void deleteBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception; |
|
| 14 |
- |
|
| 15 |
- //동호회에 사용되는 게시판 사용정보를 삭제한다. |
|
| 16 |
- public void deleteBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception; |
|
| 17 |
- |
|
| 18 |
- //커뮤니티에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 19 |
- public void deleteAllBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception; |
|
| 20 |
- |
|
| 21 |
- //동호회에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 22 |
- public void deleteAllBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception; |
|
| 23 |
- |
|
| 24 |
- //게시판 사용정보를 등록한다. |
|
| 25 |
- public void insertBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; |
|
| 26 |
- |
|
| 27 |
- //게시판 사용정보 목록을 조회한다. |
|
| 28 |
- public Map<String, Object> selectBBSUseInfs(BoardUseInfVO bdUseVO) throws Exception; |
|
| 29 |
- |
|
| 30 |
- //게시판 사용정보를 수정한다. |
|
| 31 |
- public void updateBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; |
|
| 32 |
- |
|
| 33 |
- //게시판 사용정보에 대한 상세정보를 조회한다. |
|
| 34 |
- public BoardUseInfVO selectBBSUseInf(BoardUseInfVO bdUseVO) throws Exception; |
|
| 35 |
- |
|
| 36 |
- //게시판에 대한 사용정보를 삭제한다. |
|
| 37 |
- public void deleteBBSUseInfByBoardId(BoardUseInfVO bdUseInf) throws Exception; |
|
| 38 |
- |
|
| 39 |
- //커뮤니티, 동호회에 사용되는 게시판 사용정보에 대한 목록을 조회한다. |
|
| 40 |
- public Map<String, Object> selectBBSUseInfsByTrget(BoardUseInfVO bdUseVO) throws Exception; |
|
| 41 |
- |
|
| 42 |
- //커뮤니티, 동호회에 사용되는 게시판 사용정보를 수정한다. |
|
| 43 |
- public void updateBBSUseInfByTrget(BoardUseInfVO bdUseInf) throws Exception; |
|
| 44 |
- |
|
| 45 |
-} |
|
| 1 |
+package egovframework.com.cop.com.service; |
|
| 2 |
+ |
|
| 3 |
+import java.util.Map; |
|
| 4 |
+ |
|
| 5 |
+ |
|
| 6 |
+//게시판 이용정보를 관리하기 위한 서비스 인터페이스 클래스 |
|
| 7 |
+public interface BBSUseInfoManageService {
|
|
| 8 |
+ |
|
| 9 |
+ //게시판 사용 정보를 삭제한다. |
|
| 10 |
+ public void deleteBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; |
|
| 11 |
+ |
|
| 12 |
+ //커뮤니티에 사용되는 게시판 사용정보를 삭제한다. |
|
| 13 |
+ public void deleteBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception; |
|
| 14 |
+ |
|
| 15 |
+ //동호회에 사용되는 게시판 사용정보를 삭제한다. |
|
| 16 |
+ public void deleteBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception; |
|
| 17 |
+ |
|
| 18 |
+ //커뮤니티에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 19 |
+ public void deleteAllBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception; |
|
| 20 |
+ |
|
| 21 |
+ //동호회에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 22 |
+ public void deleteAllBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception; |
|
| 23 |
+ |
|
| 24 |
+ //게시판 사용정보를 등록한다. |
|
| 25 |
+ public void insertBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; |
|
| 26 |
+ |
|
| 27 |
+ //게시판 사용정보 목록을 조회한다. |
|
| 28 |
+ public Map<String, Object> selectBBSUseInfs(BoardUseInfVO bdUseVO) throws Exception; |
|
| 29 |
+ |
|
| 30 |
+ //게시판 사용정보를 수정한다. |
|
| 31 |
+ public void updateBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; |
|
| 32 |
+ |
|
| 33 |
+ //게시판 사용정보에 대한 상세정보를 조회한다. |
|
| 34 |
+ public BoardUseInfVO selectBBSUseInf(BoardUseInfVO bdUseVO) throws Exception; |
|
| 35 |
+ |
|
| 36 |
+ //게시판에 대한 사용정보를 삭제한다. |
|
| 37 |
+ public void deleteBBSUseInfByBoardId(BoardUseInfVO bdUseInf) throws Exception; |
|
| 38 |
+ |
|
| 39 |
+ //커뮤니티, 동호회에 사용되는 게시판 사용정보에 대한 목록을 조회한다. |
|
| 40 |
+ public Map<String, Object> selectBBSUseInfsByTrget(BoardUseInfVO bdUseVO) throws Exception; |
|
| 41 |
+ |
|
| 42 |
+ //커뮤니티, 동호회에 사용되는 게시판 사용정보를 수정한다. |
|
| 43 |
+ public void updateBBSUseInfByTrget(BoardUseInfVO bdUseInf) throws Exception; |
|
| 44 |
+ |
|
| 45 |
+} |
--- base/src/main/java/egovframework/com/cop/com/service/ConfirmHistory.java
... | ... | @@ -1,348 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 6 | - | |
| 7 | - | |
| 8 | -/** | |
| 9 | - * 승인정보를 관리하기 위한 모델 클래스 | |
| 10 | - * @author 공통서비스개발팀 이삼섭 | |
| 11 | - * @since 2009.06.01 | |
| 12 | - * @version 1.0 | |
| 13 | - * @see | |
| 14 | - * | |
| 15 | - * <pre> | |
| 16 | - * << 개정이력(Modification Information) >> | |
| 17 | - * | |
| 18 | - * 수정일 수정자 수정내용 | |
| 19 | - * ------- -------- --------------------------- | |
| 20 | - * 2009.4.7 이삼섭 최초 생성 | |
| 21 | - * | |
| 22 | - * </pre> | |
| 23 | - */ | |
| 24 | -@SuppressWarnings("serial")
| |
| 25 | -public class ConfirmHistory implements Serializable {
| |
| 26 | - | |
| 27 | - /** | |
| 28 | - * 승인일 | |
| 29 | - */ | |
| 30 | - private String confmDe = ""; | |
| 31 | - | |
| 32 | - /** | |
| 33 | - * 승인자 아이디 | |
| 34 | - */ | |
| 35 | - private String confmerId = ""; | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * 확인구분코드 | |
| 39 | - */ | |
| 40 | - private int confmNumber = 0; | |
| 41 | - | |
| 42 | - /** | |
| 43 | - * 승인요청자 아이디 | |
| 44 | - */ | |
| 45 | - private String confmRqesterId = ""; | |
| 46 | - | |
| 47 | - /** | |
| 48 | - * 승인요청자 이름 | |
| 49 | - */ | |
| 50 | - private String confmRqesterNm = ""; | |
| 51 | - | |
| 52 | - /** | |
| 53 | - * 승인요청자 소개 | |
| 54 | - */ | |
| 55 | - private String confmRqesterIntrcn = ""; | |
| 56 | - | |
| 57 | - /** | |
| 58 | - * 승인상태코드 | |
| 59 | - */ | |
| 60 | - private String confmSttusCode = ""; | |
| 61 | - | |
| 62 | - /** | |
| 63 | - * 승인유형코드 | |
| 64 | - */ | |
| 65 | - private String confmTyCode = ""; | |
| 66 | - | |
| 67 | - /** | |
| 68 | - * 작업 아이디 | |
| 69 | - */ | |
| 70 | - private String opertId = ""; | |
| 71 | - | |
| 72 | - /** | |
| 73 | - * 작업유형코드 | |
| 74 | - */ | |
| 75 | - private String opertTyCode = ""; | |
| 76 | - | |
| 77 | - /** | |
| 78 | - * 대상업무 아이디 | |
| 79 | - */ | |
| 80 | - private String trgetJobId = ""; | |
| 81 | - | |
| 82 | - /** | |
| 83 | - * 대상업무유형코드 | |
| 84 | - */ | |
| 85 | - private String trgetJobTyCode = ""; | |
| 86 | - | |
| 87 | - /** | |
| 88 | - * 대상 ID | |
| 89 | - */ | |
| 90 | - private String trgetId = ""; | |
| 91 | - | |
| 92 | - /** | |
| 93 | - * 자동승인여부 | |
| 94 | - */ | |
| 95 | - private String autoAt = ""; | |
| 96 | - | |
| 97 | - /** | |
| 98 | - * 마이메뉴사용여부 | |
| 99 | - */ | |
| 100 | - private String myMenuAt = ""; | |
| 101 | - | |
| 102 | - /** | |
| 103 | - * confmDe attribute를 리턴한다. | |
| 104 | - * @return the confmDe | |
| 105 | - */ | |
| 106 | - public String getConfmDe() {
| |
| 107 | - return confmDe; | |
| 108 | - } | |
| 109 | - | |
| 110 | - /** | |
| 111 | - * confmDe attribute 값을 설정한다. | |
| 112 | - * @param confmDe the confmDe to set | |
| 113 | - */ | |
| 114 | - public void setConfmDe(String confmDe) {
| |
| 115 | - this.confmDe = confmDe; | |
| 116 | - } | |
| 117 | - | |
| 118 | - /** | |
| 119 | - * confmerId attribute를 리턴한다. | |
| 120 | - * @return the confmerId | |
| 121 | - */ | |
| 122 | - public String getConfmerId() {
| |
| 123 | - return confmerId; | |
| 124 | - } | |
| 125 | - | |
| 126 | - /** | |
| 127 | - * confmerId attribute 값을 설정한다. | |
| 128 | - * @param confmerId the confmerId to set | |
| 129 | - */ | |
| 130 | - public void setConfmerId(String confmerId) {
| |
| 131 | - this.confmerId = confmerId; | |
| 132 | - } | |
| 133 | - | |
| 134 | - /** | |
| 135 | - * confmNumber attribute를 리턴한다. | |
| 136 | - * @return the confmNumber | |
| 137 | - */ | |
| 138 | - public int getConfmNumber() {
| |
| 139 | - return confmNumber; | |
| 140 | - } | |
| 141 | - | |
| 142 | - /** | |
| 143 | - * confmNumber attribute 값을 설정한다. | |
| 144 | - * @param confmNumber the confmNumber to set | |
| 145 | - */ | |
| 146 | - public void setConfmNumber(int confmNumber) {
| |
| 147 | - this.confmNumber = confmNumber; | |
| 148 | - } | |
| 149 | - | |
| 150 | - /** | |
| 151 | - * confmRqesterId attribute를 리턴한다. | |
| 152 | - * @return the confmRqesterId | |
| 153 | - */ | |
| 154 | - public String getConfmRqesterId() {
| |
| 155 | - return confmRqesterId; | |
| 156 | - } | |
| 157 | - | |
| 158 | - /** | |
| 159 | - * confmRqesterId attribute 값을 설정한다. | |
| 160 | - * @param confmRqesterId the confmRqesterId to set | |
| 161 | - */ | |
| 162 | - public void setConfmRqesterId(String confmRqesterId) {
| |
| 163 | - this.confmRqesterId = confmRqesterId; | |
| 164 | - } | |
| 165 | - | |
| 166 | - /** | |
| 167 | - * confmRqesterNm attribute를 리턴한다. | |
| 168 | - * @return the confmRqesterNm | |
| 169 | - */ | |
| 170 | - public String getConfmRqesterNm() {
| |
| 171 | - return confmRqesterNm; | |
| 172 | - } | |
| 173 | - | |
| 174 | - /** | |
| 175 | - * confmRqesterNm attribute 값을 설정한다. | |
| 176 | - * @param confmRqesterNm the confmRqesterNm to set | |
| 177 | - */ | |
| 178 | - public void setConfmRqesterNm(String confmRqesterNm) {
| |
| 179 | - this.confmRqesterNm = confmRqesterNm; | |
| 180 | - } | |
| 181 | - | |
| 182 | - /** | |
| 183 | - * confmRqesterIntrcn attribute를 리턴한다. | |
| 184 | - * @return the confmRqesterIntrcn | |
| 185 | - */ | |
| 186 | - public String getConfmRqesterIntrcn() {
| |
| 187 | - return confmRqesterIntrcn; | |
| 188 | - } | |
| 189 | - | |
| 190 | - /** | |
| 191 | - * confmRqesterIntrcn attribute 값을 설정한다. | |
| 192 | - * @param confmRqesterIntrcn the confmRqesterIntrcn to set | |
| 193 | - */ | |
| 194 | - public void setConfmRqesterIntrcn(String confmRqesterIntrcn) {
| |
| 195 | - this.confmRqesterIntrcn = confmRqesterIntrcn; | |
| 196 | - } | |
| 197 | - | |
| 198 | - /** | |
| 199 | - * confmSttusCode attribute를 리턴한다. | |
| 200 | - * @return the confmSttusCode | |
| 201 | - */ | |
| 202 | - public String getConfmSttusCode() {
| |
| 203 | - return confmSttusCode; | |
| 204 | - } | |
| 205 | - | |
| 206 | - /** | |
| 207 | - * confmSttusCode attribute 값을 설정한다. | |
| 208 | - * @param confmSttusCode the confmSttusCode to set | |
| 209 | - */ | |
| 210 | - public void setConfmSttusCode(String confmSttusCode) {
| |
| 211 | - this.confmSttusCode = confmSttusCode; | |
| 212 | - } | |
| 213 | - | |
| 214 | - /** | |
| 215 | - * confmTyCode attribute를 리턴한다. | |
| 216 | - * @return the confmTyCode | |
| 217 | - */ | |
| 218 | - public String getConfmTyCode() {
| |
| 219 | - return confmTyCode; | |
| 220 | - } | |
| 221 | - | |
| 222 | - /** | |
| 223 | - * confmTyCode attribute 값을 설정한다. | |
| 224 | - * @param confmTyCode the confmTyCode to set | |
| 225 | - */ | |
| 226 | - public void setConfmTyCode(String confmTyCode) {
| |
| 227 | - this.confmTyCode = confmTyCode; | |
| 228 | - } | |
| 229 | - | |
| 230 | - /** | |
| 231 | - * opertId attribute를 리턴한다. | |
| 232 | - * @return the opertId | |
| 233 | - */ | |
| 234 | - public String getOpertId() {
| |
| 235 | - return opertId; | |
| 236 | - } | |
| 237 | - | |
| 238 | - /** | |
| 239 | - * opertId attribute 값을 설정한다. | |
| 240 | - * @param opertId the opertId to set | |
| 241 | - */ | |
| 242 | - public void setOpertId(String opertId) {
| |
| 243 | - this.opertId = opertId; | |
| 244 | - } | |
| 245 | - | |
| 246 | - /** | |
| 247 | - * opertTyCode attribute를 리턴한다. | |
| 248 | - * @return the opertTyCode | |
| 249 | - */ | |
| 250 | - public String getOpertTyCode() {
| |
| 251 | - return opertTyCode; | |
| 252 | - } | |
| 253 | - | |
| 254 | - /** | |
| 255 | - * opertTyCode attribute 값을 설정한다. | |
| 256 | - * @param opertTyCode the opertTyCode to set | |
| 257 | - */ | |
| 258 | - public void setOpertTyCode(String opertTyCode) {
| |
| 259 | - this.opertTyCode = opertTyCode; | |
| 260 | - } | |
| 261 | - | |
| 262 | - /** | |
| 263 | - * trgetJobId attribute를 리턴한다. | |
| 264 | - * @return the trgetJobId | |
| 265 | - */ | |
| 266 | - public String getTrgetJobId() {
| |
| 267 | - return trgetJobId; | |
| 268 | - } | |
| 269 | - | |
| 270 | - /** | |
| 271 | - * trgetJobId attribute 값을 설정한다. | |
| 272 | - * @param trgetJobId the trgetJobId to set | |
| 273 | - */ | |
| 274 | - public void setTrgetJobId(String trgetJobId) {
| |
| 275 | - this.trgetJobId = trgetJobId; | |
| 276 | - } | |
| 277 | - | |
| 278 | - /** | |
| 279 | - * trgetJobTyCode attribute를 리턴한다. | |
| 280 | - * @return the trgetJobTyCode | |
| 281 | - */ | |
| 282 | - public String getTrgetJobTyCode() {
| |
| 283 | - return trgetJobTyCode; | |
| 284 | - } | |
| 285 | - | |
| 286 | - /** | |
| 287 | - * trgetJobTyCode attribute 값을 설정한다. | |
| 288 | - * @param trgetJobTyCode the trgetJobTyCode to set | |
| 289 | - */ | |
| 290 | - public void setTrgetJobTyCode(String trgetJobTyCode) {
| |
| 291 | - this.trgetJobTyCode = trgetJobTyCode; | |
| 292 | - } | |
| 293 | - | |
| 294 | - /** | |
| 295 | - * trgetId attribute를 리턴한다. | |
| 296 | - * @return the trgetId | |
| 297 | - */ | |
| 298 | - public String getTrgetId() {
| |
| 299 | - return trgetId; | |
| 300 | - } | |
| 301 | - | |
| 302 | - /** | |
| 303 | - * autoAt attribute 값을 설정한다. | |
| 304 | - * @param autoAt the autoAt to set | |
| 305 | - */ | |
| 306 | - public void setAutoAt(String autoAt) {
| |
| 307 | - this.autoAt = autoAt; | |
| 308 | - } | |
| 309 | - | |
| 310 | - /** | |
| 311 | - * autoAt attribute를 리턴한다. | |
| 312 | - * @return the autoAt | |
| 313 | - */ | |
| 314 | - public String getAutoAt() {
| |
| 315 | - return autoAt; | |
| 316 | - } | |
| 317 | - | |
| 318 | - /** | |
| 319 | - * trgetId attribute 값을 설정한다. | |
| 320 | - * @param trgetId the trgetId to set | |
| 321 | - */ | |
| 322 | - public void setTrgetId(String trgetId) {
| |
| 323 | - this.trgetId = trgetId; | |
| 324 | - } | |
| 325 | - | |
| 326 | - /** | |
| 327 | - * myMenuAt attribute를 리턴한다. | |
| 328 | - * @return the myMenuAt | |
| 329 | - */ | |
| 330 | - public String getMyMenuAt() {
| |
| 331 | - return myMenuAt; | |
| 332 | - } | |
| 333 | - | |
| 334 | - /** | |
| 335 | - * myMenuAt attribute 값을 설정한다. | |
| 336 | - * @param myMenuAt the myMenuAt to set | |
| 337 | - */ | |
| 338 | - public void setMyMenuAt(String myMenuAt) {
| |
| 339 | - this.myMenuAt = myMenuAt; | |
| 340 | - } | |
| 341 | - | |
| 342 | - /** | |
| 343 | - * toString 메소드를 대치한다. | |
| 344 | - */ | |
| 345 | - public String toString() {
| |
| 346 | - return ToStringBuilder.reflectionToString(this); | |
| 347 | - } | |
| 348 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/ConfirmHistoryVO.java
+++ base/src/main/java/egovframework/com/cop/com/service/ConfirmHistoryVO.java
... | ... | @@ -2,472 +2,219 @@ |
| 2 | 2 |
|
| 3 | 3 |
import java.io.Serializable; |
| 4 | 4 |
|
| 5 |
+import egovframework.com.cmm.ComDefaultVO; |
|
| 5 | 6 |
import org.apache.commons.lang.builder.ToStringBuilder; |
| 6 | 7 |
|
| 7 |
-/** |
|
| 8 |
- * 승인정보를 관리하기 위한 VO 클래스 |
|
| 9 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 10 |
- * @since 2009.06.01 |
|
| 11 |
- * @version 1.0 |
|
| 12 |
- * @see |
|
| 13 |
- * |
|
| 14 |
- * <pre> |
|
| 15 |
- * << 개정이력(Modification Information) >> |
|
| 16 |
- * |
|
| 17 |
- * 수정일 수정자 수정내용 |
|
| 18 |
- * ------- -------- --------------------------- |
|
| 19 |
- * 2009.4.7 이삼섭 최초 생성 |
|
| 20 |
- * |
|
| 21 |
- * </pre> |
|
| 22 |
- */ |
|
| 23 |
-@SuppressWarnings("serial")
|
|
| 24 |
-public class ConfirmHistoryVO extends ConfirmHistory implements Serializable {
|
|
| 8 |
+//승인정보를 관리하기 위한 VO 클래스 |
|
| 9 |
+public class ConfirmHistoryVO extends ComDefaultVO{
|
|
| 25 | 10 |
|
| 26 |
- /** |
|
| 27 |
- * 검색시작일 |
|
| 28 |
- */ |
|
| 29 |
- private String searchBgnDe = ""; |
|
| 30 |
- |
|
| 31 |
- /** |
|
| 32 |
- * 검색구분 |
|
| 33 |
- */ |
|
| 34 |
- private String searchTy = ""; |
|
| 35 |
- |
|
| 36 |
- /** |
|
| 37 |
- * 검색조건 |
|
| 38 |
- */ |
|
| 39 |
- private String searchCnd = ""; |
|
| 40 |
- |
|
| 41 |
- /** |
|
| 42 |
- * 검색종료일 |
|
| 43 |
- */ |
|
| 44 |
- private String searchEndDe = ""; |
|
| 45 |
- |
|
| 46 |
- /** |
|
| 47 |
- * 검색단어 |
|
| 48 |
- */ |
|
| 49 |
- private String searchWrd = ""; |
|
| 50 |
- |
|
| 51 |
- /** |
|
| 52 |
- * 정렬순서(DESC,ASC) |
|
| 53 |
- */ |
|
| 54 |
- private long sortOrdr = 0L; |
|
| 11 |
+ //승인일 |
|
| 12 |
+ private String confmDe = ""; |
|
| 55 | 13 |
|
| 56 |
- /** |
|
| 57 |
- * 검색사용여부 |
|
| 58 |
- */ |
|
| 59 |
- private String searchUseYn = ""; |
|
| 14 |
+ //승인자 아이디 |
|
| 15 |
+ private String confmerId = ""; |
|
| 60 | 16 |
|
| 61 |
- /** |
|
| 62 |
- * 현재페이지 |
|
| 63 |
- */ |
|
| 64 |
- private int pageIndex = 1; |
|
| 17 |
+ //확인구분코드 |
|
| 18 |
+ private int confmNumber = 0; |
|
| 65 | 19 |
|
| 66 |
- /** |
|
| 67 |
- * 페이지갯수 |
|
| 68 |
- */ |
|
| 69 |
- private int pageUnit = 10; |
|
| 20 |
+ //승인요청자 아이디 |
|
| 21 |
+ private String confmRqesterId = ""; |
|
| 70 | 22 |
|
| 71 |
- /** |
|
| 72 |
- * 페이지사이즈 |
|
| 73 |
- */ |
|
| 74 |
- private int pageSize = 10; |
|
| 23 |
+ //승인요청자 이름 |
|
| 24 |
+ private String confmRqesterNm = ""; |
|
| 75 | 25 |
|
| 76 |
- /** |
|
| 77 |
- * 첫페이지 인덱스 |
|
| 78 |
- */ |
|
| 79 |
- private int firstIndex = 1; |
|
| 26 |
+ //승인요청자 소개 |
|
| 27 |
+ private String confmRqesterIntrcn = ""; |
|
| 80 | 28 |
|
| 81 |
- /** |
|
| 82 |
- * 마지막페이지 인덱스 |
|
| 83 |
- */ |
|
| 84 |
- private int lastIndex = 1; |
|
| 29 |
+ //승인상태코드 |
|
| 30 |
+ private String confmSttusCode = ""; |
|
| 85 | 31 |
|
| 86 |
- /** |
|
| 87 |
- * 페이지당 레코드 개수 |
|
| 88 |
- */ |
|
| 89 |
- private int recordCountPerPage = 10; |
|
| 32 |
+ //승인유형코드 |
|
| 33 |
+ private String confmTyCode = ""; |
|
| 90 | 34 |
|
| 91 |
- /** |
|
| 92 |
- * 레코드 번호 |
|
| 93 |
- */ |
|
| 94 |
- private int rowNo = 0; |
|
| 35 |
+ //작업 아이디 |
|
| 36 |
+ private String opertId = ""; |
|
| 95 | 37 |
|
| 96 |
- /** |
|
| 97 |
- * 최초 등록자명 |
|
| 98 |
- */ |
|
| 99 |
- private String frstRegisterNm = ""; |
|
| 38 |
+ //작업유형코드 |
|
| 39 |
+ private String opertTyCode = ""; |
|
| 100 | 40 |
|
| 101 |
- /** |
|
| 102 |
- * 최종 수정자명 |
|
| 103 |
- */ |
|
| 104 |
- private String lastUpdusrNm = ""; |
|
| 41 |
+ //대상업무 아이디 |
|
| 42 |
+ private String trgetJobId = ""; |
|
| 105 | 43 |
|
| 106 |
- /** |
|
| 107 |
- * 확인요청자명 |
|
| 108 |
- */ |
|
| 109 |
- private String confmRqesterNm = ""; |
|
| 44 |
+ //대상업무유형코드 |
|
| 45 |
+ private String trgetJobTyCode = ""; |
|
| 110 | 46 |
|
| 111 |
- /** |
|
| 112 |
- * 확인구분 코드명 |
|
| 113 |
- */ |
|
| 47 |
+ //대상 ID |
|
| 48 |
+ private String trgetId = ""; |
|
| 49 |
+ |
|
| 50 |
+ //자동승인여부 |
|
| 51 |
+ private String autoAt = ""; |
|
| 52 |
+ |
|
| 53 |
+ //마이메뉴사용여부 |
|
| 54 |
+ private String myMenuAt = ""; |
|
| 55 |
+ |
|
| 56 |
+ //확인구분 코드명 |
|
| 114 | 57 |
private String confmTyCodeNm = ""; |
| 115 | 58 |
|
| 116 |
- /** |
|
| 117 |
- * 확인상태 코드명 |
|
| 118 |
- */ |
|
| 59 |
+ //확인상태 코드명 |
|
| 119 | 60 |
private String confmSttusCodeNm = ""; |
| 120 | 61 |
|
| 121 |
- /** |
|
| 122 |
- * 대상유형구분 코드명 |
|
| 123 |
- */ |
|
| 62 |
+ //대상유형구분 코드명 |
|
| 124 | 63 |
private String trgetJobTyNm = ""; |
| 125 | 64 |
|
| 126 |
- /** |
|
| 127 |
- * 처리구분 코드명 |
|
| 128 |
- */ |
|
| 65 |
+ //처리구분 코드명 |
|
| 129 | 66 |
private String opertTyCodeNm = ""; |
| 130 | 67 |
|
| 131 |
- /** |
|
| 132 |
- * searchBgnDe attribute를 리턴한다. |
|
| 133 |
- * @return the searchBgnDe |
|
| 134 |
- */ |
|
| 135 |
- public String getSearchBgnDe() {
|
|
| 136 |
- return searchBgnDe; |
|
| 137 |
- } |
|
| 138 | 68 |
|
| 139 |
- /** |
|
| 140 |
- * searchBgnDe attribute 값을 설정한다. |
|
| 141 |
- * @param searchBgnDe the searchBgnDe to set |
|
| 142 |
- */ |
|
| 143 |
- public void setSearchBgnDe(String searchBgnDe) {
|
|
| 144 |
- this.searchBgnDe = searchBgnDe; |
|
| 145 |
- } |
|
| 69 |
+ public String getConfmDe() {
|
|
| 70 |
+ return confmDe; |
|
| 71 |
+ } |
|
| 146 | 72 |
|
| 147 |
- /** |
|
| 148 |
- * searchCnd attribute를 리턴한다. |
|
| 149 |
- * @return the searchCnd |
|
| 150 |
- */ |
|
| 151 |
- public String getSearchCnd() {
|
|
| 152 |
- return searchCnd; |
|
| 153 |
- } |
|
| 73 |
+ public void setConfmDe(String confmDe) {
|
|
| 74 |
+ this.confmDe = confmDe; |
|
| 75 |
+ } |
|
| 154 | 76 |
|
| 155 |
- /** |
|
| 156 |
- * searchCnd attribute 값을 설정한다. |
|
| 157 |
- * @param searchCnd the searchCnd to set |
|
| 158 |
- */ |
|
| 159 |
- public void setSearchCnd(String searchCnd) {
|
|
| 160 |
- this.searchCnd = searchCnd; |
|
| 161 |
- } |
|
| 162 |
- |
|
| 163 |
- /** |
|
| 164 |
- * searchTy attribute를 리턴한다. |
|
| 165 |
- * @return the searchTy |
|
| 166 |
- */ |
|
| 167 |
- public String getSearchTy() {
|
|
| 168 |
- return searchTy; |
|
| 169 |
- } |
|
| 77 |
+ public String getConfmerId() {
|
|
| 78 |
+ return confmerId; |
|
| 79 |
+ } |
|
| 170 | 80 |
|
| 171 |
- /** |
|
| 172 |
- * searchTy attribute 값을 설정한다. |
|
| 173 |
- * @param searchTy the searchTy to set |
|
| 174 |
- */ |
|
| 175 |
- public void setSearchTy(String searchTy) {
|
|
| 176 |
- this.searchTy = searchTy; |
|
| 177 |
- } |
|
| 81 |
+ public void setConfmerId(String confmerId) {
|
|
| 82 |
+ this.confmerId = confmerId; |
|
| 83 |
+ } |
|
| 178 | 84 |
|
| 179 |
- /** |
|
| 180 |
- * searchEndDe attribute를 리턴한다. |
|
| 181 |
- * @return the searchEndDe |
|
| 182 |
- */ |
|
| 183 |
- public String getSearchEndDe() {
|
|
| 184 |
- return searchEndDe; |
|
| 185 |
- } |
|
| 85 |
+ public int getConfmNumber() {
|
|
| 86 |
+ return confmNumber; |
|
| 87 |
+ } |
|
| 186 | 88 |
|
| 187 |
- /** |
|
| 188 |
- * searchEndDe attribute 값을 설정한다. |
|
| 189 |
- * @param searchEndDe the searchEndDe to set |
|
| 190 |
- */ |
|
| 191 |
- public void setSearchEndDe(String searchEndDe) {
|
|
| 192 |
- this.searchEndDe = searchEndDe; |
|
| 193 |
- } |
|
| 89 |
+ public void setConfmNumber(int confmNumber) {
|
|
| 90 |
+ this.confmNumber = confmNumber; |
|
| 91 |
+ } |
|
| 194 | 92 |
|
| 195 |
- /** |
|
| 196 |
- * searchWrd attribute를 리턴한다. |
|
| 197 |
- * @return the searchWrd |
|
| 198 |
- */ |
|
| 199 |
- public String getSearchWrd() {
|
|
| 200 |
- return searchWrd; |
|
| 201 |
- } |
|
| 93 |
+ public String getConfmRqesterId() {
|
|
| 94 |
+ return confmRqesterId; |
|
| 95 |
+ } |
|
| 202 | 96 |
|
| 203 |
- /** |
|
| 204 |
- * searchWrd attribute 값을 설정한다. |
|
| 205 |
- * @param searchWrd the searchWrd to set |
|
| 206 |
- */ |
|
| 207 |
- public void setSearchWrd(String searchWrd) {
|
|
| 208 |
- this.searchWrd = searchWrd; |
|
| 209 |
- } |
|
| 97 |
+ public void setConfmRqesterId(String confmRqesterId) {
|
|
| 98 |
+ this.confmRqesterId = confmRqesterId; |
|
| 99 |
+ } |
|
| 210 | 100 |
|
| 211 |
- /** |
|
| 212 |
- * sortOrdr attribute를 리턴한다. |
|
| 213 |
- * @return the sortOrdr |
|
| 214 |
- */ |
|
| 215 |
- public long getSortOrdr() {
|
|
| 216 |
- return sortOrdr; |
|
| 217 |
- } |
|
| 101 |
+ public String getConfmRqesterNm() {
|
|
| 102 |
+ return confmRqesterNm; |
|
| 103 |
+ } |
|
| 218 | 104 |
|
| 219 |
- /** |
|
| 220 |
- * sortOrdr attribute 값을 설정한다. |
|
| 221 |
- * @param sortOrdr the sortOrdr to set |
|
| 222 |
- */ |
|
| 223 |
- public void setSortOrdr(long sortOrdr) {
|
|
| 224 |
- this.sortOrdr = sortOrdr; |
|
| 225 |
- } |
|
| 105 |
+ public void setConfmRqesterNm(String confmRqesterNm) {
|
|
| 106 |
+ this.confmRqesterNm = confmRqesterNm; |
|
| 107 |
+ } |
|
| 226 | 108 |
|
| 227 |
- /** |
|
| 228 |
- * searchUseYn attribute를 리턴한다. |
|
| 229 |
- * @return the searchUseYn |
|
| 230 |
- */ |
|
| 231 |
- public String getSearchUseYn() {
|
|
| 232 |
- return searchUseYn; |
|
| 233 |
- } |
|
| 109 |
+ public String getConfmRqesterIntrcn() {
|
|
| 110 |
+ return confmRqesterIntrcn; |
|
| 111 |
+ } |
|
| 234 | 112 |
|
| 235 |
- /** |
|
| 236 |
- * searchUseYn attribute 값을 설정한다. |
|
| 237 |
- * @param searchUseYn the searchUseYn to set |
|
| 238 |
- */ |
|
| 239 |
- public void setSearchUseYn(String searchUseYn) {
|
|
| 240 |
- this.searchUseYn = searchUseYn; |
|
| 241 |
- } |
|
| 113 |
+ public void setConfmRqesterIntrcn(String confmRqesterIntrcn) {
|
|
| 114 |
+ this.confmRqesterIntrcn = confmRqesterIntrcn; |
|
| 115 |
+ } |
|
| 242 | 116 |
|
| 243 |
- /** |
|
| 244 |
- * pageIndex attribute를 리턴한다. |
|
| 245 |
- * @return the pageIndex |
|
| 246 |
- */ |
|
| 247 |
- public int getPageIndex() {
|
|
| 248 |
- return pageIndex; |
|
| 249 |
- } |
|
| 117 |
+ public String getConfmSttusCode() {
|
|
| 118 |
+ return confmSttusCode; |
|
| 119 |
+ } |
|
| 250 | 120 |
|
| 251 |
- /** |
|
| 252 |
- * pageIndex attribute 값을 설정한다. |
|
| 253 |
- * @param pageIndex the pageIndex to set |
|
| 254 |
- */ |
|
| 255 |
- public void setPageIndex(int pageIndex) {
|
|
| 256 |
- this.pageIndex = pageIndex; |
|
| 257 |
- } |
|
| 121 |
+ public void setConfmSttusCode(String confmSttusCode) {
|
|
| 122 |
+ this.confmSttusCode = confmSttusCode; |
|
| 123 |
+ } |
|
| 258 | 124 |
|
| 259 |
- /** |
|
| 260 |
- * pageUnit attribute를 리턴한다. |
|
| 261 |
- * @return the pageUnit |
|
| 262 |
- */ |
|
| 263 |
- public int getPageUnit() {
|
|
| 264 |
- return pageUnit; |
|
| 265 |
- } |
|
| 125 |
+ public String getConfmTyCode() {
|
|
| 126 |
+ return confmTyCode; |
|
| 127 |
+ } |
|
| 266 | 128 |
|
| 267 |
- /** |
|
| 268 |
- * pageUnit attribute 값을 설정한다. |
|
| 269 |
- * @param pageUnit the pageUnit to set |
|
| 270 |
- */ |
|
| 271 |
- public void setPageUnit(int pageUnit) {
|
|
| 272 |
- this.pageUnit = pageUnit; |
|
| 273 |
- } |
|
| 129 |
+ public void setConfmTyCode(String confmTyCode) {
|
|
| 130 |
+ this.confmTyCode = confmTyCode; |
|
| 131 |
+ } |
|
| 274 | 132 |
|
| 275 |
- /** |
|
| 276 |
- * pageSize attribute를 리턴한다. |
|
| 277 |
- * @return the pageSize |
|
| 278 |
- */ |
|
| 279 |
- public int getPageSize() {
|
|
| 280 |
- return pageSize; |
|
| 281 |
- } |
|
| 133 |
+ public String getOpertId() {
|
|
| 134 |
+ return opertId; |
|
| 135 |
+ } |
|
| 282 | 136 |
|
| 283 |
- /** |
|
| 284 |
- * pageSize attribute 값을 설정한다. |
|
| 285 |
- * @param pageSize the pageSize to set |
|
| 286 |
- */ |
|
| 287 |
- public void setPageSize(int pageSize) {
|
|
| 288 |
- this.pageSize = pageSize; |
|
| 289 |
- } |
|
| 137 |
+ public void setOpertId(String opertId) {
|
|
| 138 |
+ this.opertId = opertId; |
|
| 139 |
+ } |
|
| 290 | 140 |
|
| 291 |
- /** |
|
| 292 |
- * firstIndex attribute를 리턴한다. |
|
| 293 |
- * @return the firstIndex |
|
| 294 |
- */ |
|
| 295 |
- public int getFirstIndex() {
|
|
| 296 |
- return firstIndex; |
|
| 297 |
- } |
|
| 141 |
+ public String getOpertTyCode() {
|
|
| 142 |
+ return opertTyCode; |
|
| 143 |
+ } |
|
| 298 | 144 |
|
| 299 |
- /** |
|
| 300 |
- * firstIndex attribute 값을 설정한다. |
|
| 301 |
- * @param firstIndex the firstIndex to set |
|
| 302 |
- */ |
|
| 303 |
- public void setFirstIndex(int firstIndex) {
|
|
| 304 |
- this.firstIndex = firstIndex; |
|
| 305 |
- } |
|
| 145 |
+ public void setOpertTyCode(String opertTyCode) {
|
|
| 146 |
+ this.opertTyCode = opertTyCode; |
|
| 147 |
+ } |
|
| 306 | 148 |
|
| 307 |
- /** |
|
| 308 |
- * lastIndex attribute를 리턴한다. |
|
| 309 |
- * @return the lastIndex |
|
| 310 |
- */ |
|
| 311 |
- public int getLastIndex() {
|
|
| 312 |
- return lastIndex; |
|
| 313 |
- } |
|
| 149 |
+ public String getTrgetJobId() {
|
|
| 150 |
+ return trgetJobId; |
|
| 151 |
+ } |
|
| 314 | 152 |
|
| 315 |
- /** |
|
| 316 |
- * lastIndex attribute 값을 설정한다. |
|
| 317 |
- * @param lastIndex the lastIndex to set |
|
| 318 |
- */ |
|
| 319 |
- public void setLastIndex(int lastIndex) {
|
|
| 320 |
- this.lastIndex = lastIndex; |
|
| 321 |
- } |
|
| 153 |
+ public void setTrgetJobId(String trgetJobId) {
|
|
| 154 |
+ this.trgetJobId = trgetJobId; |
|
| 155 |
+ } |
|
| 322 | 156 |
|
| 323 |
- /** |
|
| 324 |
- * recordCountPerPage attribute를 리턴한다. |
|
| 325 |
- * @return the recordCountPerPage |
|
| 326 |
- */ |
|
| 327 |
- public int getRecordCountPerPage() {
|
|
| 328 |
- return recordCountPerPage; |
|
| 329 |
- } |
|
| 157 |
+ public String getTrgetJobTyCode() {
|
|
| 158 |
+ return trgetJobTyCode; |
|
| 159 |
+ } |
|
| 330 | 160 |
|
| 331 |
- /** |
|
| 332 |
- * recordCountPerPage attribute 값을 설정한다. |
|
| 333 |
- * @param recordCountPerPage the recordCountPerPage to set |
|
| 334 |
- */ |
|
| 335 |
- public void setRecordCountPerPage(int recordCountPerPage) {
|
|
| 336 |
- this.recordCountPerPage = recordCountPerPage; |
|
| 337 |
- } |
|
| 161 |
+ public void setTrgetJobTyCode(String trgetJobTyCode) {
|
|
| 162 |
+ this.trgetJobTyCode = trgetJobTyCode; |
|
| 163 |
+ } |
|
| 338 | 164 |
|
| 339 |
- /** |
|
| 340 |
- * rowNo attribute를 리턴한다. |
|
| 341 |
- * @return the rowNo |
|
| 342 |
- */ |
|
| 343 |
- public int getRowNo() {
|
|
| 344 |
- return rowNo; |
|
| 345 |
- } |
|
| 165 |
+ public String getTrgetId() {
|
|
| 166 |
+ return trgetId; |
|
| 167 |
+ } |
|
| 346 | 168 |
|
| 347 |
- /** |
|
| 348 |
- * rowNo attribute 값을 설정한다. |
|
| 349 |
- * @param rowNo the rowNo to set |
|
| 350 |
- */ |
|
| 351 |
- public void setRowNo(int rowNo) {
|
|
| 352 |
- this.rowNo = rowNo; |
|
| 353 |
- } |
|
| 169 |
+ public void setTrgetId(String trgetId) {
|
|
| 170 |
+ this.trgetId = trgetId; |
|
| 171 |
+ } |
|
| 354 | 172 |
|
| 355 |
- /** |
|
| 356 |
- * frstRegisterNm attribute를 리턴한다. |
|
| 357 |
- * @return the frstRegisterNm |
|
| 358 |
- */ |
|
| 359 |
- public String getFrstRegisterNm() {
|
|
| 360 |
- return frstRegisterNm; |
|
| 361 |
- } |
|
| 173 |
+ public String getAutoAt() {
|
|
| 174 |
+ return autoAt; |
|
| 175 |
+ } |
|
| 362 | 176 |
|
| 363 |
- /** |
|
| 364 |
- * frstRegisterNm attribute 값을 설정한다. |
|
| 365 |
- * @param frstRegisterNm the frstRegisterNm to set |
|
| 366 |
- */ |
|
| 367 |
- public void setFrstRegisterNm(String frstRegisterNm) {
|
|
| 368 |
- this.frstRegisterNm = frstRegisterNm; |
|
| 369 |
- } |
|
| 177 |
+ public void setAutoAt(String autoAt) {
|
|
| 178 |
+ this.autoAt = autoAt; |
|
| 179 |
+ } |
|
| 370 | 180 |
|
| 371 |
- /** |
|
| 372 |
- * lastUpdusrNm attribute를 리턴한다. |
|
| 373 |
- * @return the lastUpdusrNm |
|
| 374 |
- */ |
|
| 375 |
- public String getLastUpdusrNm() {
|
|
| 376 |
- return lastUpdusrNm; |
|
| 377 |
- } |
|
| 181 |
+ public String getMyMenuAt() {
|
|
| 182 |
+ return myMenuAt; |
|
| 183 |
+ } |
|
| 378 | 184 |
|
| 379 |
- /** |
|
| 380 |
- * lastUpdusrNm attribute 값을 설정한다. |
|
| 381 |
- * @param lastUpdusrNm the lastUpdusrNm to set |
|
| 382 |
- */ |
|
| 383 |
- public void setLastUpdusrNm(String lastUpdusrNm) {
|
|
| 384 |
- this.lastUpdusrNm = lastUpdusrNm; |
|
| 385 |
- } |
|
| 185 |
+ public void setMyMenuAt(String myMenuAt) {
|
|
| 186 |
+ this.myMenuAt = myMenuAt; |
|
| 187 |
+ } |
|
| 386 | 188 |
|
| 387 |
- /** |
|
| 388 |
- * confmRqesterNm attribute를 리턴한다. |
|
| 389 |
- * @return the confmRqesterNm |
|
| 390 |
- */ |
|
| 391 |
- public String getConfmRqesterNm() {
|
|
| 392 |
- return confmRqesterNm; |
|
| 393 |
- } |
|
| 189 |
+ public String getConfmTyCodeNm() {
|
|
| 190 |
+ return confmTyCodeNm; |
|
| 191 |
+ } |
|
| 394 | 192 |
|
| 395 |
- /** |
|
| 396 |
- * confmRqesterNm attribute 값을 설정한다. |
|
| 397 |
- * @param confmRqesterNm the confmRqesterNm to set |
|
| 398 |
- */ |
|
| 399 |
- public void setConfmRqesterNm(String confmRqesterNm) {
|
|
| 400 |
- this.confmRqesterNm = confmRqesterNm; |
|
| 401 |
- } |
|
| 193 |
+ public void setConfmTyCodeNm(String confmTyCodeNm) {
|
|
| 194 |
+ this.confmTyCodeNm = confmTyCodeNm; |
|
| 195 |
+ } |
|
| 402 | 196 |
|
| 403 |
- /** |
|
| 404 |
- * confmTyCodeNm attribute를 리턴한다. |
|
| 405 |
- * @return the confmTyCodeNm |
|
| 406 |
- */ |
|
| 407 |
- public String getConfmTyCodeNm() {
|
|
| 408 |
- return confmTyCodeNm; |
|
| 409 |
- } |
|
| 197 |
+ public String getConfmSttusCodeNm() {
|
|
| 198 |
+ return confmSttusCodeNm; |
|
| 199 |
+ } |
|
| 410 | 200 |
|
| 411 |
- /** |
|
| 412 |
- * confmTyCodeNm attribute 값을 설정한다. |
|
| 413 |
- * @param confmTyCodeNm the confmTyCodeNm to set |
|
| 414 |
- */ |
|
| 415 |
- public void setConfmTyCodeNm(String confmTyCodeNm) {
|
|
| 416 |
- this.confmTyCodeNm = confmTyCodeNm; |
|
| 417 |
- } |
|
| 201 |
+ public void setConfmSttusCodeNm(String confmSttusCodeNm) {
|
|
| 202 |
+ this.confmSttusCodeNm = confmSttusCodeNm; |
|
| 203 |
+ } |
|
| 418 | 204 |
|
| 419 |
- /** |
|
| 420 |
- * confmSttusCodeNm attribute를 리턴한다. |
|
| 421 |
- * @return the confmSttusCodeNm |
|
| 422 |
- */ |
|
| 423 |
- public String getConfmSttusCodeNm() {
|
|
| 424 |
- return confmSttusCodeNm; |
|
| 425 |
- } |
|
| 205 |
+ public String getTrgetJobTyNm() {
|
|
| 206 |
+ return trgetJobTyNm; |
|
| 207 |
+ } |
|
| 426 | 208 |
|
| 427 |
- /** |
|
| 428 |
- * confmSttusCodeNm attribute 값을 설정한다. |
|
| 429 |
- * @param confmSttusCodeNm the confmSttusCodeNm to set |
|
| 430 |
- */ |
|
| 431 |
- public void setConfmSttusCodeNm(String confmSttusCodeNm) {
|
|
| 432 |
- this.confmSttusCodeNm = confmSttusCodeNm; |
|
| 433 |
- } |
|
| 209 |
+ public void setTrgetJobTyNm(String trgetJobTyNm) {
|
|
| 210 |
+ this.trgetJobTyNm = trgetJobTyNm; |
|
| 211 |
+ } |
|
| 434 | 212 |
|
| 435 |
- /** |
|
| 436 |
- * trgetJobTyNm attribute를 리턴한다. |
|
| 437 |
- * @return the trgetJobTyNm |
|
| 438 |
- */ |
|
| 439 |
- public String getTrgetJobTyNm() {
|
|
| 440 |
- return trgetJobTyNm; |
|
| 441 |
- } |
|
| 213 |
+ public String getOpertTyCodeNm() {
|
|
| 214 |
+ return opertTyCodeNm; |
|
| 215 |
+ } |
|
| 442 | 216 |
|
| 443 |
- /** |
|
| 444 |
- * trgetJobTyNm attribute 값을 설정한다. |
|
| 445 |
- * @param trgetJobTyNm the trgetJobTyNm to set |
|
| 446 |
- */ |
|
| 447 |
- public void setTrgetJobTyNm(String trgetJobTyNm) {
|
|
| 448 |
- this.trgetJobTyNm = trgetJobTyNm; |
|
| 449 |
- } |
|
| 450 |
- |
|
| 451 |
- /** |
|
| 452 |
- * opertTyCodeNm attribute를 리턴한다. |
|
| 453 |
- * @return the opertTyCodeNm |
|
| 454 |
- */ |
|
| 455 |
- public String getOpertTyCodeNm() {
|
|
| 456 |
- return opertTyCodeNm; |
|
| 457 |
- } |
|
| 458 |
- |
|
| 459 |
- /** |
|
| 460 |
- * opertTyCodeNm attribute 값을 설정한다. |
|
| 461 |
- * @param opertTyCodeNm the opertTyCodeNm to set |
|
| 462 |
- */ |
|
| 463 |
- public void setOpertTyCodeNm(String opertTyCodeNm) {
|
|
| 464 |
- this.opertTyCodeNm = opertTyCodeNm; |
|
| 465 |
- } |
|
| 466 |
- |
|
| 467 |
- /** |
|
| 468 |
- * toString 메소드를 대치한다. |
|
| 469 |
- */ |
|
| 470 |
- public String toString() {
|
|
| 471 |
- return ToStringBuilder.reflectionToString(this); |
|
| 472 |
- } |
|
| 217 |
+ public void setOpertTyCodeNm(String opertTyCodeNm) {
|
|
| 218 |
+ this.opertTyCodeNm = opertTyCodeNm; |
|
| 219 |
+ } |
|
| 473 | 220 |
} |
+++ base/src/main/java/egovframework/com/cop/com/service/ConfirmManageService.java
... | ... | @@ -0,0 +1,22 @@ |
| 1 | +package egovframework.com.cop.com.service; | |
| 2 | + | |
| 3 | +import java.util.Map; | |
| 4 | + | |
| 5 | +//승인정보를 관리하기 위한 서비스 인테페이스 클래스 | |
| 6 | +public interface ConfirmManageService { | |
| 7 | + | |
| 8 | + //승인(탈퇴)요청에 대한 등록을 처리한다. | |
| 9 | + public void insertConfirmRequest(ConfirmHistoryVO history) throws Exception; | |
| 10 | + | |
| 11 | + //승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 12 | + public Map<String, Object> selectConfirmRequest(ConfirmHistoryVO historyVO) throws Exception; | |
| 13 | + | |
| 14 | + //승인(탈퇴)요청에 대한 확인을 처리한다. | |
| 15 | + public void updateConfirmRequest(ConfirmHistoryVO history) throws Exception; | |
| 16 | + | |
| 17 | + //승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 18 | + public ConfirmHistoryVO selectSingleConfirmRequest(ConfirmHistoryVO historyVO) throws Exception; | |
| 19 | + | |
| 20 | + //현재 승인 요청된 건수를 조회한다. | |
| 21 | + public int countConfirmRequest(ConfirmHistoryVO history) throws Exception; | |
| 22 | +} |
--- base/src/main/java/egovframework/com/cop/com/service/EgovConfirmManageService.java
... | ... | @@ -1,61 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.Map; | |
| 4 | - | |
| 5 | -/** | |
| 6 | - * 승인정보를 관리하기 위한 서비스 인테페이스 클래스 | |
| 7 | - * @author 공통서비스개발팀 이삼섭 | |
| 8 | - * @since 2009.06.01 | |
| 9 | - * @version 1.0 | |
| 10 | - * @see | |
| 11 | - * | |
| 12 | - * <pre> | |
| 13 | - * << 개정이력(Modification Information) >> | |
| 14 | - * | |
| 15 | - * 수정일 수정자 수정내용 | |
| 16 | - * ------- -------- --------------------------- | |
| 17 | - * 2009.4.7 이삼섭 최초 생성 | |
| 18 | - * | |
| 19 | - * </pre> | |
| 20 | - */ | |
| 21 | -public interface EgovConfirmManageService {
| |
| 22 | - | |
| 23 | - /** | |
| 24 | - * 승인(탈퇴)요청에 대한 등록을 처리한다. | |
| 25 | - * | |
| 26 | - * @param history | |
| 27 | - * @throws Exception | |
| 28 | - */ | |
| 29 | - public void insertConfirmRequest(ConfirmHistory history) throws Exception; | |
| 30 | - | |
| 31 | - /** | |
| 32 | - * 승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 33 | - * | |
| 34 | - * @param historyVO | |
| 35 | - * @return | |
| 36 | - * @throws Exception | |
| 37 | - */ | |
| 38 | - public Map<String, Object> selectConfirmRequest(ConfirmHistoryVO historyVO) throws Exception; | |
| 39 | - | |
| 40 | - /** | |
| 41 | - * 승인(탈퇴)요청에 대한 확인을 처리한다. | |
| 42 | - * | |
| 43 | - * @param history | |
| 44 | - * @throws Exception | |
| 45 | - */ | |
| 46 | - public void updateConfirmRequest(ConfirmHistory history) throws Exception; | |
| 47 | - | |
| 48 | - /** | |
| 49 | - * 승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 50 | - * | |
| 51 | - * @param historyVO | |
| 52 | - * @return | |
| 53 | - * @throws Exception | |
| 54 | - */ | |
| 55 | - public ConfirmHistoryVO selectSingleConfirmRequest(ConfirmHistoryVO historyVO) throws Exception; | |
| 56 | - | |
| 57 | - /** | |
| 58 | - * 현재 승인 요청된 건수를 조회한다. | |
| 59 | - */ | |
| 60 | - public int countConfirmRequest(ConfirmHistory history) throws Exception; | |
| 61 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/EgovUserInfManageService.java
+++ base/src/main/java/egovframework/com/cop/com/service/UserInfManageService.java
... | ... | @@ -1,78 +1,78 @@ |
| 1 |
-package egovframework.com.cop.com.service; |
|
| 2 |
- |
|
| 3 |
-import java.util.List; |
|
| 4 |
-import java.util.Map; |
|
| 5 |
- |
|
| 6 |
- |
|
| 7 |
-/** |
|
| 8 |
- * 협업 기능에서 사용자 정보를 관리하기 위한 서비스 인터페이스 클래스 |
|
| 9 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 10 |
- * @since 2009.06.01 |
|
| 11 |
- * @version 1.0 |
|
| 12 |
- * @see |
|
| 13 |
- * |
|
| 14 |
- * <pre> |
|
| 15 |
- * << 개정이력(Modification Information) >> |
|
| 16 |
- * |
|
| 17 |
- * 수정일 수정자 수정내용 |
|
| 18 |
- * ------- -------- --------------------------- |
|
| 19 |
- * 2009.4.6 이삼섭 최초 생성 |
|
| 20 |
- * |
|
| 21 |
- * </pre> |
|
| 22 |
- */ |
|
| 23 |
-public interface EgovUserInfManageService {
|
|
| 24 |
- |
|
| 25 |
- /** |
|
| 26 |
- * 커뮤니티 사용자 목록을 조회한다. |
|
| 27 |
- * |
|
| 28 |
- * @param userVO |
|
| 29 |
- * @return |
|
| 30 |
- * @throws Exception |
|
| 31 |
- */ |
|
| 32 |
- public Map<String, Object> selectCmmntyUserList(UserInfVO userVO) throws Exception; |
|
| 33 |
- |
|
| 34 |
- /** |
|
| 35 |
- * 커뮤니티 관리자 목록을 조회한다. |
|
| 36 |
- * |
|
| 37 |
- * @param userVO |
|
| 38 |
- * @return |
|
| 39 |
- * @throws Exception |
|
| 40 |
- */ |
|
| 41 |
- public Map<String, Object> selectCmmntyMngrList(UserInfVO userVO) throws Exception; |
|
| 42 |
- |
|
| 43 |
- /** |
|
| 44 |
- * 동호회 사용자 목록을 조회한다. |
|
| 45 |
- * |
|
| 46 |
- * @param userVO |
|
| 47 |
- * @return |
|
| 48 |
- * @throws Exception |
|
| 49 |
- */ |
|
| 50 |
- public Map<String, Object> selectClubUserList(UserInfVO userVO) throws Exception; |
|
| 51 |
- |
|
| 52 |
- /** |
|
| 53 |
- * 동호회 운영자 목록을 조회한다. |
|
| 54 |
- * |
|
| 55 |
- * @param userVO |
|
| 56 |
- * @return |
|
| 57 |
- * @throws Exception |
|
| 58 |
- */ |
|
| 59 |
- public Map<String, Object> selectClubOprtrList(UserInfVO userVO) throws Exception; |
|
| 60 |
- |
|
| 61 |
- /** |
|
| 62 |
- * 동호회에 대한 모든 사용자 목록을 조회한다. |
|
| 63 |
- * |
|
| 64 |
- * @param userVO |
|
| 65 |
- * @return |
|
| 66 |
- * @throws Exception |
|
| 67 |
- */ |
|
| 68 |
- public List<UserInfVO> selectAllClubUser(UserInfVO userVO) throws Exception; |
|
| 69 |
- |
|
| 70 |
- /** |
|
| 71 |
- * 커뮤니티에 대한 모든 사용자 목록을 조회한다. |
|
| 72 |
- * |
|
| 73 |
- * @param userVO |
|
| 74 |
- * @return |
|
| 75 |
- * @throws Exception |
|
| 76 |
- */ |
|
| 77 |
- public List<UserInfVO> selectAllCmmntyUser(UserInfVO userVO) throws Exception; |
|
| 78 |
-} |
|
| 1 |
+package egovframework.com.cop.com.service; |
|
| 2 |
+ |
|
| 3 |
+import java.util.List; |
|
| 4 |
+import java.util.Map; |
|
| 5 |
+ |
|
| 6 |
+ |
|
| 7 |
+/** |
|
| 8 |
+ * 협업 기능에서 사용자 정보를 관리하기 위한 서비스 인터페이스 클래스 |
|
| 9 |
+ * @author 공통서비스개발팀 이삼섭 |
|
| 10 |
+ * @since 2009.06.01 |
|
| 11 |
+ * @version 1.0 |
|
| 12 |
+ * @see |
|
| 13 |
+ * |
|
| 14 |
+ * <pre> |
|
| 15 |
+ * << 개정이력(Modification Information) >> |
|
| 16 |
+ * |
|
| 17 |
+ * 수정일 수정자 수정내용 |
|
| 18 |
+ * ------- -------- --------------------------- |
|
| 19 |
+ * 2009.4.6 이삼섭 최초 생성 |
|
| 20 |
+ * |
|
| 21 |
+ * </pre> |
|
| 22 |
+ */ |
|
| 23 |
+public interface UserInfManageService {
|
|
| 24 |
+ |
|
| 25 |
+ /** |
|
| 26 |
+ * 커뮤니티 사용자 목록을 조회한다. |
|
| 27 |
+ * |
|
| 28 |
+ * @param userVO |
|
| 29 |
+ * @return |
|
| 30 |
+ * @throws Exception |
|
| 31 |
+ */ |
|
| 32 |
+ public Map<String, Object> selectCmmntyUserList(UserInfVO userVO) throws Exception; |
|
| 33 |
+ |
|
| 34 |
+ /** |
|
| 35 |
+ * 커뮤니티 관리자 목록을 조회한다. |
|
| 36 |
+ * |
|
| 37 |
+ * @param userVO |
|
| 38 |
+ * @return |
|
| 39 |
+ * @throws Exception |
|
| 40 |
+ */ |
|
| 41 |
+ public Map<String, Object> selectCmmntyMngrList(UserInfVO userVO) throws Exception; |
|
| 42 |
+ |
|
| 43 |
+ /** |
|
| 44 |
+ * 동호회 사용자 목록을 조회한다. |
|
| 45 |
+ * |
|
| 46 |
+ * @param userVO |
|
| 47 |
+ * @return |
|
| 48 |
+ * @throws Exception |
|
| 49 |
+ */ |
|
| 50 |
+ public Map<String, Object> selectClubUserList(UserInfVO userVO) throws Exception; |
|
| 51 |
+ |
|
| 52 |
+ /** |
|
| 53 |
+ * 동호회 운영자 목록을 조회한다. |
|
| 54 |
+ * |
|
| 55 |
+ * @param userVO |
|
| 56 |
+ * @return |
|
| 57 |
+ * @throws Exception |
|
| 58 |
+ */ |
|
| 59 |
+ public Map<String, Object> selectClubOprtrList(UserInfVO userVO) throws Exception; |
|
| 60 |
+ |
|
| 61 |
+ /** |
|
| 62 |
+ * 동호회에 대한 모든 사용자 목록을 조회한다. |
|
| 63 |
+ * |
|
| 64 |
+ * @param userVO |
|
| 65 |
+ * @return |
|
| 66 |
+ * @throws Exception |
|
| 67 |
+ */ |
|
| 68 |
+ public List<UserInfVO> selectAllClubUser(UserInfVO userVO) throws Exception; |
|
| 69 |
+ |
|
| 70 |
+ /** |
|
| 71 |
+ * 커뮤니티에 대한 모든 사용자 목록을 조회한다. |
|
| 72 |
+ * |
|
| 73 |
+ * @param userVO |
|
| 74 |
+ * @return |
|
| 75 |
+ * @throws Exception |
|
| 76 |
+ */ |
|
| 77 |
+ public List<UserInfVO> selectAllCmmntyUser(UserInfVO userVO) throws Exception; |
|
| 78 |
+} |
--- base/src/main/java/egovframework/com/cop/com/service/UserInfVO.java
+++ base/src/main/java/egovframework/com/cop/com/service/UserInfVO.java
... | ... | @@ -2,490 +2,88 @@ |
| 2 | 2 |
|
| 3 | 3 |
import java.io.Serializable; |
| 4 | 4 |
|
| 5 |
+import egovframework.com.cmm.ComDefaultVO; |
|
| 5 | 6 |
import org.apache.commons.lang.builder.ToStringBuilder; |
| 6 | 7 |
|
| 7 | 8 |
|
| 8 |
-/** |
|
| 9 |
- * 사용자 정보 조회를 위한 VO 클래스 |
|
| 10 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 11 |
- * @since 2009.06.01 |
|
| 12 |
- * @version 1.0 |
|
| 13 |
- * @see |
|
| 14 |
- * |
|
| 15 |
- * <pre> |
|
| 16 |
- * << 개정이력(Modification Information) >> |
|
| 17 |
- * |
|
| 18 |
- * 수정일 수정자 수정내용 |
|
| 19 |
- * ------- -------- --------------------------- |
|
| 20 |
- * 2009.4.6 이삼섭 최초 생성 |
|
| 21 |
- * |
|
| 22 |
- * </pre> |
|
| 23 |
- */ |
|
| 24 |
-@SuppressWarnings("serial")
|
|
| 25 |
-public class UserInfVO implements Serializable {
|
|
| 9 |
+//사용자 정보 조회를 위한 VO 클래스 |
|
| 10 |
+public class UserInfVO extends ComDefaultVO {
|
|
| 26 | 11 |
|
| 27 |
- /** |
|
| 28 |
- * 사용자 아이디 |
|
| 29 |
- */ |
|
| 30 |
- private String userId = ""; |
|
| 31 |
- |
|
| 32 |
- /** |
|
| 33 |
- * 사용자 명 |
|
| 34 |
- */ |
|
| 12 |
+ //사용자 명 |
|
| 35 | 13 |
private String userNm = ""; |
| 36 | 14 |
|
| 37 |
- /** |
|
| 38 |
- * 사용자 우편번호 |
|
| 39 |
- */ |
|
| 15 |
+ //사용자 우편번호 |
|
| 40 | 16 |
private String userZip = ""; |
| 41 | 17 |
|
| 42 |
- /** |
|
| 43 |
- * 사용자 주소 |
|
| 44 |
- */ |
|
| 18 |
+ //사용자 주소 |
|
| 45 | 19 |
private String userAdres = ""; |
| 46 | 20 |
|
| 47 |
- /** |
|
| 48 |
- * 사용자 이메일 |
|
| 49 |
- */ |
|
| 21 |
+ //사용자 이메일 |
|
| 50 | 22 |
private String userEmail = ""; |
| 51 | 23 |
|
| 52 |
- /** |
|
| 53 |
- * 권한코드 |
|
| 54 |
- */ |
|
| 24 |
+ //권한코드 |
|
| 55 | 25 |
private String authorCode = ""; |
| 56 | 26 |
|
| 57 |
- /** |
|
| 58 |
- * 권한코드 |
|
| 59 |
- */ |
|
| 27 |
+ //권한코드 |
|
| 60 | 28 |
private String authorNm = ""; |
| 61 | 29 |
|
| 62 |
- /** |
|
| 63 |
- * 검색시작일 |
|
| 64 |
- */ |
|
| 30 |
+ //검색시작일 |
|
| 65 | 31 |
private String searchBgnDe = ""; |
| 66 | 32 |
|
| 67 |
- /** |
|
| 68 |
- * 검색조건 |
|
| 69 |
- */ |
|
| 70 |
- private String searchCnd = ""; |
|
| 71 |
- |
|
| 72 |
- /** |
|
| 73 |
- * 검색종료일 |
|
| 74 |
- */ |
|
| 33 |
+ //검색종료일 |
|
| 75 | 34 |
private String searchEndDe = ""; |
| 76 | 35 |
|
| 77 |
- /** |
|
| 78 |
- * 회원검색구분 |
|
| 79 |
- */ |
|
| 36 |
+ //회원검색구분 |
|
| 80 | 37 |
private String searchSe = ""; |
| 81 |
- /** |
|
| 82 |
- * 검색단어 |
|
| 83 |
- */ |
|
| 84 |
- private String searchWrd = ""; |
|
| 85 |
- |
|
| 86 |
- /** |
|
| 87 |
- * 정렬순서(DESC,ASC) |
|
| 88 |
- */ |
|
| 89 |
- private String sortOrdr = ""; |
|
| 90 | 38 |
|
| 91 |
- /** |
|
| 92 |
- * 검색사용여부 |
|
| 93 |
- */ |
|
| 94 |
- private String searchUseYn = ""; |
|
| 95 |
- |
|
| 96 |
- /** |
|
| 97 |
- * 현재페이지 |
|
| 98 |
- */ |
|
| 99 |
- private int pageIndex = 1; |
|
| 100 |
- |
|
| 101 |
- /** |
|
| 102 |
- * 페이지갯수 |
|
| 103 |
- */ |
|
| 104 |
- private int pageUnit = 10; |
|
| 105 |
- |
|
| 106 |
- /** |
|
| 107 |
- * 페이지사이즈 |
|
| 108 |
- */ |
|
| 109 |
- private int pageSize = 10; |
|
| 110 |
- |
|
| 111 |
- /** |
|
| 112 |
- * 첫페이지 인덱스 |
|
| 113 |
- */ |
|
| 114 |
- private int firstIndex = 1; |
|
| 115 |
- |
|
| 116 |
- /** |
|
| 117 |
- * 마지막페이지 인덱스 |
|
| 118 |
- */ |
|
| 119 |
- private int lastIndex = 1; |
|
| 120 |
- |
|
| 121 |
- /** |
|
| 122 |
- * 페이지당 레코드 개수 |
|
| 123 |
- */ |
|
| 124 |
- private int recordCountPerPage = 10; |
|
| 125 |
- |
|
| 126 |
- /** |
|
| 127 |
- * 레코드 번호 |
|
| 128 |
- */ |
|
| 39 |
+ //레코드 번호 |
|
| 129 | 40 |
private int rowNo = 0; |
| 130 | 41 |
|
| 131 |
- /** |
|
| 132 |
- * 대상 아이디 |
|
| 133 |
- */ |
|
| 42 |
+ //대상 아이디 |
|
| 134 | 43 |
private String trgetId = ""; |
| 135 | 44 |
|
| 136 |
- /** |
|
| 137 |
- * 사용여부 |
|
| 138 |
- */ |
|
| 139 |
- private String useAt = "Y"; |
|
| 140 |
- |
|
| 141 |
- /** |
|
| 142 |
- * 커뮤니티 아이디 |
|
| 143 |
- */ |
|
| 45 |
+ //커뮤니티 아이디 |
|
| 144 | 46 |
private String cmmntyId = ""; |
| 145 | 47 |
|
| 146 |
- /** |
|
| 147 |
- * 동호회 아이디 |
|
| 148 |
- */ |
|
| 48 |
+ //동호회 아이디 |
|
| 149 | 49 |
private String clubId = ""; |
| 150 | 50 |
|
| 151 |
- /** |
|
| 152 |
- * 대상 중지 여부 (커뮤니티 또는 동호회) |
|
| 153 |
- */ |
|
| 51 |
+ //대상 중지 여부 (커뮤니티 또는 동호회) |
|
| 154 | 52 |
private String deletedAt = "N"; |
| 155 | 53 |
|
| 156 |
- /** |
|
| 157 |
- * 관리자 여부 |
|
| 158 |
- */ |
|
| 159 |
- private String mngrAt = ""; |
|
| 160 |
- |
|
| 161 |
- /** |
|
| 162 |
- * 최초등록시점 |
|
| 163 |
- */ |
|
| 164 |
- private java.util.Date frstRegisterPnttm; |
|
| 165 |
- |
|
| 166 |
- /** |
|
| 167 |
- * userId attribute를 리턴한다. |
|
| 168 |
- * @return the userId |
|
| 169 |
- */ |
|
| 170 |
- public String getUserId() {
|
|
| 171 |
- return userId; |
|
| 172 |
- } |
|
| 54 |
+ public String getUserNm() {
|
|
| 55 |
+ return userNm; |
|
| 56 |
+ } |
|
| 173 | 57 |
|
| 174 |
- /** |
|
| 175 |
- * userId attribute 값을 설정한다. |
|
| 176 |
- * @param userId the userId to set |
|
| 177 |
- */ |
|
| 178 |
- public void setUserId(String userId) {
|
|
| 179 |
- this.userId = userId; |
|
| 180 |
- } |
|
| 58 |
+ public void setUserNm(String userNm) {
|
|
| 59 |
+ this.userNm = userNm; |
|
| 60 |
+ } |
|
| 181 | 61 |
|
| 182 |
- /** |
|
| 183 |
- * userNm attribute를 리턴한다. |
|
| 184 |
- * @return the userNm |
|
| 185 |
- */ |
|
| 186 |
- public String getUserNm() {
|
|
| 187 |
- return userNm; |
|
| 188 |
- } |
|
| 62 |
+ public String getUserZip() {
|
|
| 63 |
+ return userZip; |
|
| 64 |
+ } |
|
| 189 | 65 |
|
| 190 |
- /** |
|
| 191 |
- * userNm attribute 값을 설정한다. |
|
| 192 |
- * @param userNm the userNm to set |
|
| 193 |
- */ |
|
| 194 |
- public void setUserNm(String userNm) {
|
|
| 195 |
- this.userNm = userNm; |
|
| 196 |
- } |
|
| 66 |
+ public void setUserZip(String userZip) {
|
|
| 67 |
+ this.userZip = userZip; |
|
| 68 |
+ } |
|
| 197 | 69 |
|
| 198 |
- /** |
|
| 199 |
- * userZip attribute를 리턴한다. |
|
| 200 |
- * @return the userZip |
|
| 201 |
- */ |
|
| 202 |
- public String getUserZip() {
|
|
| 203 |
- return userZip; |
|
| 204 |
- } |
|
| 70 |
+ public String getUserAdres() {
|
|
| 71 |
+ return userAdres; |
|
| 72 |
+ } |
|
| 205 | 73 |
|
| 206 |
- /** |
|
| 207 |
- * userZip attribute 값을 설정한다. |
|
| 208 |
- * @param userZip the userZip to set |
|
| 209 |
- */ |
|
| 210 |
- public void setUserZip(String userZip) {
|
|
| 211 |
- this.userZip = userZip; |
|
| 212 |
- } |
|
| 74 |
+ public void setUserAdres(String userAdres) {
|
|
| 75 |
+ this.userAdres = userAdres; |
|
| 76 |
+ } |
|
| 213 | 77 |
|
| 214 |
- /** |
|
| 215 |
- * userAdres attribute를 리턴한다. |
|
| 216 |
- * @return the userAdres |
|
| 217 |
- */ |
|
| 218 |
- public String getUserAdres() {
|
|
| 219 |
- return userAdres; |
|
| 220 |
- } |
|
| 78 |
+ public String getUserEmail() {
|
|
| 79 |
+ return userEmail; |
|
| 80 |
+ } |
|
| 221 | 81 |
|
| 222 |
- /** |
|
| 223 |
- * userAdres attribute 값을 설정한다. |
|
| 224 |
- * @param userAdres the userAdres to set |
|
| 225 |
- */ |
|
| 226 |
- public void setUserAdres(String userAdres) {
|
|
| 227 |
- this.userAdres = userAdres; |
|
| 228 |
- } |
|
| 82 |
+ public void setUserEmail(String userEmail) {
|
|
| 83 |
+ this.userEmail = userEmail; |
|
| 84 |
+ } |
|
| 229 | 85 |
|
| 230 |
- /** |
|
| 231 |
- * userEmail attribute를 리턴한다. |
|
| 232 |
- * @return the userEmail |
|
| 233 |
- */ |
|
| 234 |
- public String getUserEmail() {
|
|
| 235 |
- return userEmail; |
|
| 236 |
- } |
|
| 237 |
- |
|
| 238 |
- /** |
|
| 239 |
- * userEmail attribute 값을 설정한다. |
|
| 240 |
- * @param userEmail the userEmail to set |
|
| 241 |
- */ |
|
| 242 |
- public void setUserEmail(String userEmail) {
|
|
| 243 |
- this.userEmail = userEmail; |
|
| 244 |
- } |
|
| 245 |
- |
|
| 246 |
- /** |
|
| 247 |
- * searchBgnDe attribute를 리턴한다. |
|
| 248 |
- * @return the searchBgnDe |
|
| 249 |
- */ |
|
| 250 |
- public String getSearchBgnDe() {
|
|
| 251 |
- return searchBgnDe; |
|
| 252 |
- } |
|
| 253 |
- |
|
| 254 |
- /** |
|
| 255 |
- * searchBgnDe attribute 값을 설정한다. |
|
| 256 |
- * @param searchBgnDe the searchBgnDe to set |
|
| 257 |
- */ |
|
| 258 |
- public void setSearchBgnDe(String searchBgnDe) {
|
|
| 259 |
- this.searchBgnDe = searchBgnDe; |
|
| 260 |
- } |
|
| 261 |
- |
|
| 262 |
- /** |
|
| 263 |
- * searchCnd attribute를 리턴한다. |
|
| 264 |
- * @return the searchCnd |
|
| 265 |
- */ |
|
| 266 |
- public String getSearchCnd() {
|
|
| 267 |
- return searchCnd; |
|
| 268 |
- } |
|
| 269 |
- |
|
| 270 |
- /** |
|
| 271 |
- * searchCnd attribute 값을 설정한다. |
|
| 272 |
- * @param searchCnd the searchCnd to set |
|
| 273 |
- */ |
|
| 274 |
- public void setSearchCnd(String searchCnd) {
|
|
| 275 |
- this.searchCnd = searchCnd; |
|
| 276 |
- } |
|
| 277 |
- |
|
| 278 |
- /** |
|
| 279 |
- * searchEndDe attribute를 리턴한다. |
|
| 280 |
- * @return the searchEndDe |
|
| 281 |
- */ |
|
| 282 |
- public String getSearchEndDe() {
|
|
| 283 |
- return searchEndDe; |
|
| 284 |
- } |
|
| 285 |
- |
|
| 286 |
- /** |
|
| 287 |
- * searchEndDe attribute 값을 설정한다. |
|
| 288 |
- * @param searchEndDe the searchEndDe to set |
|
| 289 |
- */ |
|
| 290 |
- public void setSearchEndDe(String searchEndDe) {
|
|
| 291 |
- this.searchEndDe = searchEndDe; |
|
| 292 |
- } |
|
| 293 |
- |
|
| 294 |
- /** |
|
| 295 |
- * searchSe attribute를 리턴한다. |
|
| 296 |
- * @return the searchSe |
|
| 297 |
- */ |
|
| 298 |
- public String getSearchSe() {
|
|
| 299 |
- return searchSe; |
|
| 300 |
- } |
|
| 301 |
- |
|
| 302 |
- /** |
|
| 303 |
- * searchSe attribute 값을 설정한다. |
|
| 304 |
- * @param searchSe the searchSe to set |
|
| 305 |
- */ |
|
| 306 |
- public void setSearchSe(String searchSe) {
|
|
| 307 |
- this.searchSe = searchSe; |
|
| 308 |
- } |
|
| 309 |
- |
|
| 310 |
- /** |
|
| 311 |
- * searchWrd attribute를 리턴한다. |
|
| 312 |
- * @return the searchWrd |
|
| 313 |
- */ |
|
| 314 |
- public String getSearchWrd() {
|
|
| 315 |
- return searchWrd; |
|
| 316 |
- } |
|
| 317 |
- |
|
| 318 |
- /** |
|
| 319 |
- * searchWrd attribute 값을 설정한다. |
|
| 320 |
- * @param searchWrd the searchWrd to set |
|
| 321 |
- */ |
|
| 322 |
- public void setSearchWrd(String searchWrd) {
|
|
| 323 |
- this.searchWrd = searchWrd; |
|
| 324 |
- } |
|
| 325 |
- |
|
| 326 |
- /** |
|
| 327 |
- * sortOrdr attribute를 리턴한다. |
|
| 328 |
- * @return the sortOrdr |
|
| 329 |
- */ |
|
| 330 |
- public String getSortOrdr() {
|
|
| 331 |
- return sortOrdr; |
|
| 332 |
- } |
|
| 333 |
- |
|
| 334 |
- /** |
|
| 335 |
- * sortOrdr attribute 값을 설정한다. |
|
| 336 |
- * @param sortOrdr the sortOrdr to set |
|
| 337 |
- */ |
|
| 338 |
- public void setSortOrdr(String sortOrdr) {
|
|
| 339 |
- this.sortOrdr = sortOrdr; |
|
| 340 |
- } |
|
| 341 |
- |
|
| 342 |
- /** |
|
| 343 |
- * searchUseYn attribute를 리턴한다. |
|
| 344 |
- * @return the searchUseYn |
|
| 345 |
- */ |
|
| 346 |
- public String getSearchUseYn() {
|
|
| 347 |
- return searchUseYn; |
|
| 348 |
- } |
|
| 349 |
- |
|
| 350 |
- /** |
|
| 351 |
- * searchUseYn attribute 값을 설정한다. |
|
| 352 |
- * @param searchUseYn the searchUseYn to set |
|
| 353 |
- */ |
|
| 354 |
- public void setSearchUseYn(String searchUseYn) {
|
|
| 355 |
- this.searchUseYn = searchUseYn; |
|
| 356 |
- } |
|
| 357 |
- |
|
| 358 |
- /** |
|
| 359 |
- * pageIndex attribute를 리턴한다. |
|
| 360 |
- * @return the pageIndex |
|
| 361 |
- */ |
|
| 362 |
- public int getPageIndex() {
|
|
| 363 |
- return pageIndex; |
|
| 364 |
- } |
|
| 365 |
- |
|
| 366 |
- /** |
|
| 367 |
- * pageIndex attribute 값을 설정한다. |
|
| 368 |
- * @param pageIndex the pageIndex to set |
|
| 369 |
- */ |
|
| 370 |
- public void setPageIndex(int pageIndex) {
|
|
| 371 |
- this.pageIndex = pageIndex; |
|
| 372 |
- } |
|
| 373 |
- |
|
| 374 |
- /** |
|
| 375 |
- * pageUnit attribute를 리턴한다. |
|
| 376 |
- * @return the pageUnit |
|
| 377 |
- */ |
|
| 378 |
- public int getPageUnit() {
|
|
| 379 |
- return pageUnit; |
|
| 380 |
- } |
|
| 381 |
- |
|
| 382 |
- /** |
|
| 383 |
- * pageUnit attribute 값을 설정한다. |
|
| 384 |
- * @param pageUnit the pageUnit to set |
|
| 385 |
- */ |
|
| 386 |
- public void setPageUnit(int pageUnit) {
|
|
| 387 |
- this.pageUnit = pageUnit; |
|
| 388 |
- } |
|
| 389 |
- |
|
| 390 |
- /** |
|
| 391 |
- * pageSize attribute를 리턴한다. |
|
| 392 |
- * @return the pageSize |
|
| 393 |
- */ |
|
| 394 |
- public int getPageSize() {
|
|
| 395 |
- return pageSize; |
|
| 396 |
- } |
|
| 397 |
- |
|
| 398 |
- /** |
|
| 399 |
- * pageSize attribute 값을 설정한다. |
|
| 400 |
- * @param pageSize the pageSize to set |
|
| 401 |
- */ |
|
| 402 |
- public void setPageSize(int pageSize) {
|
|
| 403 |
- this.pageSize = pageSize; |
|
| 404 |
- } |
|
| 405 |
- |
|
| 406 |
- /** |
|
| 407 |
- * firstIndex attribute를 리턴한다. |
|
| 408 |
- * @return the firstIndex |
|
| 409 |
- */ |
|
| 410 |
- public int getFirstIndex() {
|
|
| 411 |
- return firstIndex; |
|
| 412 |
- } |
|
| 413 |
- |
|
| 414 |
- /** |
|
| 415 |
- * firstIndex attribute 값을 설정한다. |
|
| 416 |
- * @param firstIndex the firstIndex to set |
|
| 417 |
- */ |
|
| 418 |
- public void setFirstIndex(int firstIndex) {
|
|
| 419 |
- this.firstIndex = firstIndex; |
|
| 420 |
- } |
|
| 421 |
- |
|
| 422 |
- /** |
|
| 423 |
- * lastIndex attribute를 리턴한다. |
|
| 424 |
- * @return the lastIndex |
|
| 425 |
- */ |
|
| 426 |
- public int getLastIndex() {
|
|
| 427 |
- return lastIndex; |
|
| 428 |
- } |
|
| 429 |
- |
|
| 430 |
- /** |
|
| 431 |
- * lastIndex attribute 값을 설정한다. |
|
| 432 |
- * @param lastIndex the lastIndex to set |
|
| 433 |
- */ |
|
| 434 |
- public void setLastIndex(int lastIndex) {
|
|
| 435 |
- this.lastIndex = lastIndex; |
|
| 436 |
- } |
|
| 437 |
- |
|
| 438 |
- /** |
|
| 439 |
- * recordCountPerPage attribute를 리턴한다. |
|
| 440 |
- * @return the recordCountPerPage |
|
| 441 |
- */ |
|
| 442 |
- public int getRecordCountPerPage() {
|
|
| 443 |
- return recordCountPerPage; |
|
| 444 |
- } |
|
| 445 |
- |
|
| 446 |
- /** |
|
| 447 |
- * recordCountPerPage attribute 값을 설정한다. |
|
| 448 |
- * @param recordCountPerPage the recordCountPerPage to set |
|
| 449 |
- */ |
|
| 450 |
- public void setRecordCountPerPage(int recordCountPerPage) {
|
|
| 451 |
- this.recordCountPerPage = recordCountPerPage; |
|
| 452 |
- } |
|
| 453 |
- |
|
| 454 |
- /** |
|
| 455 |
- * rowNo attribute를 리턴한다. |
|
| 456 |
- * @return the rowNo |
|
| 457 |
- * @uml.property name="rowNo" |
|
| 458 |
- */ |
|
| 459 |
- public int getRowNo() {
|
|
| 460 |
- return rowNo; |
|
| 461 |
- } |
|
| 462 |
- |
|
| 463 |
- /** |
|
| 464 |
- * rowNo attribute 값을 설정한다. |
|
| 465 |
- * @param rowNo the rowNo to set |
|
| 466 |
- */ |
|
| 467 |
- public void setRowNo(int rowNo) {
|
|
| 468 |
- this.rowNo = rowNo; |
|
| 469 |
- } |
|
| 470 |
- |
|
| 471 |
- /** |
|
| 472 |
- * trgetId attribute를 리턴한다. |
|
| 473 |
- * @return the trgetId |
|
| 474 |
- */ |
|
| 475 |
- public String getTrgetId() {
|
|
| 476 |
- return trgetId; |
|
| 477 |
- } |
|
| 478 |
- |
|
| 479 |
- /** |
|
| 480 |
- * trgetId attribute 값을 설정한다. |
|
| 481 |
- * @param trgetId the trgetId to set |
|
| 482 |
- */ |
|
| 483 |
- public void setTrgetId(String trgetId) {
|
|
| 484 |
- this.trgetId = trgetId; |
|
| 485 |
- } |
|
| 486 |
- |
|
| 487 |
- |
|
| 488 |
- public String getAuthorCode() {
|
|
| 86 |
+ public String getAuthorCode() {
|
|
| 489 | 87 |
return authorCode; |
| 490 | 88 |
} |
| 491 | 89 |
|
... | ... | @@ -501,99 +99,67 @@ |
| 501 | 99 |
this.authorNm = authorNm; |
| 502 | 100 |
} |
| 503 | 101 |
|
| 504 |
- /** |
|
| 505 |
- * useAt attribute를 리턴한다. |
|
| 506 |
- * @return the useAt |
|
| 507 |
- */ |
|
| 508 |
- public String getUseAt() {
|
|
| 509 |
- return useAt; |
|
| 510 |
- } |
|
| 511 |
- |
|
| 512 |
- /** |
|
| 513 |
- * useAt attribute 값을 설정한다. |
|
| 514 |
- * @param useAt the useAt to set |
|
| 515 |
- */ |
|
| 516 |
- public void setUseAt(String useAt) {
|
|
| 517 |
- this.useAt = useAt; |
|
| 518 |
- } |
|
| 519 |
- |
|
| 520 |
- /** |
|
| 521 |
- * cmmntyId attribute를 리턴한다. |
|
| 522 |
- * @return the cmmntyId |
|
| 523 |
- */ |
|
| 524 |
- public String getCmmntyId() {
|
|
| 525 |
- return cmmntyId; |
|
| 526 |
- } |
|
| 527 |
- |
|
| 528 |
- /** |
|
| 529 |
- * cmmntyId attribute 값을 설정한다. |
|
| 530 |
- * @param cmmntyId the cmmntyId to set |
|
| 531 |
- */ |
|
| 532 |
- public void setCmmntyId(String cmmntyId) {
|
|
| 533 |
- this.cmmntyId = cmmntyId; |
|
| 534 |
- } |
|
| 535 |
- |
|
| 536 |
- /** |
|
| 537 |
- * clubId attribute를 리턴한다. |
|
| 538 |
- * @return the clubId |
|
| 539 |
- */ |
|
| 540 |
- public String getClubId() {
|
|
| 541 |
- return clubId; |
|
| 542 |
- } |
|
| 543 |
- |
|
| 544 |
- /** |
|
| 545 |
- * clubId attribute 값을 설정한다. |
|
| 546 |
- * @param clubId the clubId to set |
|
| 547 |
- */ |
|
| 548 |
- public void setClubId(String clubId) {
|
|
| 549 |
- this.clubId = clubId; |
|
| 550 |
- } |
|
| 551 |
- |
|
| 552 |
- /** |
|
| 553 |
- * deletedAt attribute를 리턴한다. |
|
| 554 |
- * @return the deletedAt |
|
| 555 |
- */ |
|
| 556 |
- public String getDeletedAt() {
|
|
| 557 |
- return deletedAt; |
|
| 558 |
- } |
|
| 559 |
- |
|
| 560 |
- /** |
|
| 561 |
- * deletedAt attribute 값을 설정한다. |
|
| 562 |
- * @param deletedAt the deletedAt to set |
|
| 563 |
- */ |
|
| 564 |
- public void setDeletedAt(String deletedAt) {
|
|
| 565 |
- this.deletedAt = deletedAt; |
|
| 566 |
- } |
|
| 567 |
- |
|
| 568 |
- |
|
| 569 |
- public String getMngrAt() {
|
|
| 570 |
- return mngrAt; |
|
| 102 |
+ public String getSearchBgnDe() {
|
|
| 103 |
+ return searchBgnDe; |
|
| 571 | 104 |
} |
| 572 | 105 |
|
| 573 |
- public void setMngrAt(String mngrAt) {
|
|
| 574 |
- this.mngrAt = mngrAt; |
|
| 106 |
+ public void setSearchBgnDe(String searchBgnDe) {
|
|
| 107 |
+ this.searchBgnDe = searchBgnDe; |
|
| 575 | 108 |
} |
| 576 | 109 |
|
| 577 |
- /** |
|
| 578 |
- * frstRegisterPnttm attribute를 리턴한다. |
|
| 579 |
- * @return the frstRegisterPnttm |
|
| 580 |
- */ |
|
| 581 |
- public java.util.Date getFrstRegisterPnttm() {
|
|
| 582 |
- return frstRegisterPnttm; |
|
| 583 |
- } |
|
| 110 |
+ public String getSearchEndDe() {
|
|
| 111 |
+ return searchEndDe; |
|
| 112 |
+ } |
|
| 584 | 113 |
|
| 585 |
- /** |
|
| 586 |
- * frstRegisterPnttm attribute 값을 설정한다. |
|
| 587 |
- * @param frstRegisterPnttm the frstRegisterPnttm to set |
|
| 588 |
- */ |
|
| 589 |
- public void setFrstRegisterPnttm(java.util.Date frstRegisterPnttm) {
|
|
| 590 |
- this.frstRegisterPnttm = frstRegisterPnttm; |
|
| 591 |
- } |
|
| 592 |
- |
|
| 593 |
- /** |
|
| 594 |
- * toString 메소드를 대치한다. |
|
| 595 |
- */ |
|
| 596 |
- public String toString() {
|
|
| 597 |
- return ToStringBuilder.reflectionToString(this); |
|
| 598 |
- } |
|
| 114 |
+ public void setSearchEndDe(String searchEndDe) {
|
|
| 115 |
+ this.searchEndDe = searchEndDe; |
|
| 116 |
+ } |
|
| 117 |
+ |
|
| 118 |
+ public String getSearchSe() {
|
|
| 119 |
+ return searchSe; |
|
| 120 |
+ } |
|
| 121 |
+ |
|
| 122 |
+ public void setSearchSe(String searchSe) {
|
|
| 123 |
+ this.searchSe = searchSe; |
|
| 124 |
+ } |
|
| 125 |
+ |
|
| 126 |
+ public int getRowNo() {
|
|
| 127 |
+ return rowNo; |
|
| 128 |
+ } |
|
| 129 |
+ |
|
| 130 |
+ public void setRowNo(int rowNo) {
|
|
| 131 |
+ this.rowNo = rowNo; |
|
| 132 |
+ } |
|
| 133 |
+ |
|
| 134 |
+ public String getTrgetId() {
|
|
| 135 |
+ return trgetId; |
|
| 136 |
+ } |
|
| 137 |
+ |
|
| 138 |
+ public void setTrgetId(String trgetId) {
|
|
| 139 |
+ this.trgetId = trgetId; |
|
| 140 |
+ } |
|
| 141 |
+ |
|
| 142 |
+ public String getCmmntyId() {
|
|
| 143 |
+ return cmmntyId; |
|
| 144 |
+ } |
|
| 145 |
+ |
|
| 146 |
+ public void setCmmntyId(String cmmntyId) {
|
|
| 147 |
+ this.cmmntyId = cmmntyId; |
|
| 148 |
+ } |
|
| 149 |
+ |
|
| 150 |
+ public String getClubId() {
|
|
| 151 |
+ return clubId; |
|
| 152 |
+ } |
|
| 153 |
+ |
|
| 154 |
+ public void setClubId(String clubId) {
|
|
| 155 |
+ this.clubId = clubId; |
|
| 156 |
+ } |
|
| 157 |
+ |
|
| 158 |
+ public String getDeletedAt() {
|
|
| 159 |
+ return deletedAt; |
|
| 160 |
+ } |
|
| 161 |
+ |
|
| 162 |
+ public void setDeletedAt(String deletedAt) {
|
|
| 163 |
+ this.deletedAt = deletedAt; |
|
| 164 |
+ } |
|
| 599 | 165 |
} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/EgovBBSUseInfoManageServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/com/service/impl/BBSUseInfoManageServiceImpl.java
... | ... | @@ -1,123 +1,123 @@ |
| 1 |
-package egovframework.com.cop.com.service.impl; |
|
| 2 |
- |
|
| 3 |
-import java.util.HashMap; |
|
| 4 |
-import java.util.Iterator; |
|
| 5 |
-import java.util.List; |
|
| 6 |
-import java.util.Map; |
|
| 7 |
- |
|
| 8 |
-import javax.annotation.Resource; |
|
| 9 |
- |
|
| 10 |
-import org.springframework.stereotype.Service; |
|
| 11 |
- |
|
| 12 |
-import egovframework.com.cop.com.service.BoardUseInfVO; |
|
| 13 |
-import egovframework.com.cop.com.service.EgovBBSUseInfoManageService; |
|
| 14 |
-import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 15 |
- |
|
| 16 |
-//게시판 이용정보를 관리하기 위한 서비스 구현 클래스 |
|
| 17 |
-@Service("EgovBBSUseInfoManageService")
|
|
| 18 |
-public class EgovBBSUseInfoManageServiceImpl extends EgovAbstractServiceImpl implements EgovBBSUseInfoManageService {
|
|
| 19 |
- |
|
| 20 |
- @Resource(name = "bbsUseInfoManageMapper") |
|
| 21 |
- private BBSUseInfoManageMapper bbsUseInfoManageMapper; |
|
| 22 |
- |
|
| 23 |
- //게시판 사용 정보를 삭제한다. |
|
| 24 |
- public void deleteBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 25 |
- bbsUseInfoManageMapper.deleteBBSUseInf(bdUseInf); |
|
| 26 |
- } |
|
| 27 |
- |
|
| 28 |
- //게시판 사용정보를 등록한다. |
|
| 29 |
- public void insertBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 30 |
- bbsUseInfoManageMapper.insertBBSUseInf(bdUseInf); |
|
| 31 |
- } |
|
| 32 |
- |
|
| 33 |
- //게시판 사용정보 목록을 조회한다. |
|
| 34 |
- public Map<String, Object> selectBBSUseInfs(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 35 |
- List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfs(bdUseVO); |
|
| 36 |
- int cnt = bbsUseInfoManageMapper.selectBBSUseInfsCnt(bdUseVO); |
|
| 37 |
- |
|
| 38 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 39 |
- |
|
| 40 |
- map.put("resultList", result);
|
|
| 41 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 42 |
- |
|
| 43 |
- return map; |
|
| 44 |
- } |
|
| 45 |
- |
|
| 46 |
- //게시판 사용정보를 수정한다. |
|
| 47 |
- public void updateBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 48 |
- bbsUseInfoManageMapper.updateBBSUseInf(bdUseInf); |
|
| 49 |
- } |
|
| 50 |
- |
|
| 51 |
- //게시판 사용정보에 대한 상세정보를 조회한다. |
|
| 52 |
- public BoardUseInfVO selectBBSUseInf(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 53 |
- return bbsUseInfoManageMapper.selectBBSUseInf(bdUseVO); |
|
| 54 |
- } |
|
| 55 |
- |
|
| 56 |
- //동호회에 사용되는 게시판 사용정보를 삭제한다. |
|
| 57 |
- public void deleteBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 58 |
- List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfByClub(bdUseVO); |
|
| 59 |
- |
|
| 60 |
- BoardUseInfVO bdUseInf = null; |
|
| 61 |
- Iterator<BoardUseInfVO> iter = result.iterator(); |
|
| 62 |
- while (iter.hasNext()) {
|
|
| 63 |
- bdUseInf = (BoardUseInfVO)iter.next(); |
|
| 64 |
- |
|
| 65 |
- bdUseInf.setLastUpdusrId(bdUseVO.getLastUpdusrId()); |
|
| 66 |
- //bdUseInf.setTrgetId(bdUseVO.getClbId()); // 사용자 ID를 넘겨야 함.. |
|
| 67 |
- bdUseInf.setTrgetId(bdUseVO.getTrgetId()); |
|
| 68 |
- |
|
| 69 |
- bbsUseInfoManageMapper.deleteBBSUseInf(bdUseInf); |
|
| 70 |
- } |
|
| 71 |
- } |
|
| 72 |
- |
|
| 73 |
- //커뮤니티에 사용되는 게시판 사용정보를 삭제한다. |
|
| 74 |
- public void deleteBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 75 |
- List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfByCmmnty(bdUseVO); |
|
| 76 |
- |
|
| 77 |
- BoardUseInfVO bdUseInf = null; |
|
| 78 |
- Iterator<BoardUseInfVO> iter = result.iterator(); |
|
| 79 |
- |
|
| 80 |
- while (iter.hasNext()) {
|
|
| 81 |
- bdUseInf = (BoardUseInfVO)iter.next(); |
|
| 82 |
- |
|
| 83 |
- bdUseInf.setLastUpdusrId(bdUseVO.getLastUpdusrId()); |
|
| 84 |
- //bdUseInf.setTrgetId(bdUseVO.getCmmntyId()); // 사용자 ID를 넘겨야 함.. |
|
| 85 |
- bdUseInf.setTrgetId(bdUseVO.getTrgetId()); |
|
| 86 |
- |
|
| 87 |
- bbsUseInfoManageMapper.deleteBBSUseInf(bdUseInf); |
|
| 88 |
- } |
|
| 89 |
- } |
|
| 90 |
- |
|
| 91 |
- //동호회에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 92 |
- public void deleteAllBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 93 |
- bbsUseInfoManageMapper.deleteAllBBSUseInfByClub(bdUseVO); |
|
| 94 |
- } |
|
| 95 |
- |
|
| 96 |
- //커뮤니티에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 97 |
- public void deleteAllBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 98 |
- bbsUseInfoManageMapper.deleteAllBBSUseInfByCmmnty(bdUseVO); |
|
| 99 |
- } |
|
| 100 |
- |
|
| 101 |
- //게시판에 대한 사용정보를 삭제한다. |
|
| 102 |
- public void deleteBBSUseInfByBoardId(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 103 |
- bbsUseInfoManageMapper.deleteBBSUseInfByBoardId(bdUseInf); |
|
| 104 |
- } |
|
| 105 |
- |
|
| 106 |
- //커뮤니티, 동호회에 사용되는 게시판 사용정보에 대한 목록을 조회한다. |
|
| 107 |
- public Map<String, Object> selectBBSUseInfsByTrget(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 108 |
- List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfsByTrget(bdUseVO); |
|
| 109 |
- int cnt = bbsUseInfoManageMapper.selectBBSUseInfsCntByTrget(bdUseVO); |
|
| 110 |
- |
|
| 111 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 112 |
- |
|
| 113 |
- map.put("resultList", result);
|
|
| 114 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 115 |
- |
|
| 116 |
- return map; |
|
| 117 |
- } |
|
| 118 |
- |
|
| 119 |
- //커뮤니티, 동호회에 사용되는 게시판 사용정보를 수정한다. |
|
| 120 |
- public void updateBBSUseInfByTrget(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 121 |
- bbsUseInfoManageMapper.updateBBSUseInfByTrget(bdUseInf); |
|
| 122 |
- } |
|
| 123 |
-} |
|
| 1 |
+package egovframework.com.cop.com.service.impl; |
|
| 2 |
+ |
|
| 3 |
+import java.util.HashMap; |
|
| 4 |
+import java.util.Iterator; |
|
| 5 |
+import java.util.List; |
|
| 6 |
+import java.util.Map; |
|
| 7 |
+ |
|
| 8 |
+import javax.annotation.Resource; |
|
| 9 |
+ |
|
| 10 |
+import org.springframework.stereotype.Service; |
|
| 11 |
+ |
|
| 12 |
+import egovframework.com.cop.com.service.BoardUseInfVO; |
|
| 13 |
+import egovframework.com.cop.com.service.BBSUseInfoManageService; |
|
| 14 |
+import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 15 |
+ |
|
| 16 |
+//게시판 이용정보를 관리하기 위한 서비스 구현 클래스 |
|
| 17 |
+@Service("bbsUseInfoManageService")
|
|
| 18 |
+public class BBSUseInfoManageServiceImpl extends EgovAbstractServiceImpl implements BBSUseInfoManageService {
|
|
| 19 |
+ |
|
| 20 |
+ @Resource(name = "bbsUseInfoManageMapper") |
|
| 21 |
+ private BBSUseInfoManageMapper bbsUseInfoManageMapper; |
|
| 22 |
+ |
|
| 23 |
+ //게시판 사용 정보를 삭제한다. |
|
| 24 |
+ public void deleteBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 25 |
+ bbsUseInfoManageMapper.deleteBBSUseInf(bdUseInf); |
|
| 26 |
+ } |
|
| 27 |
+ |
|
| 28 |
+ //게시판 사용정보를 등록한다. |
|
| 29 |
+ public void insertBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 30 |
+ bbsUseInfoManageMapper.insertBBSUseInf(bdUseInf); |
|
| 31 |
+ } |
|
| 32 |
+ |
|
| 33 |
+ //게시판 사용정보 목록을 조회한다. |
|
| 34 |
+ public Map<String, Object> selectBBSUseInfs(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 35 |
+ List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfs(bdUseVO); |
|
| 36 |
+ int cnt = bbsUseInfoManageMapper.selectBBSUseInfsCnt(bdUseVO); |
|
| 37 |
+ |
|
| 38 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 39 |
+ |
|
| 40 |
+ map.put("resultList", result);
|
|
| 41 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 42 |
+ |
|
| 43 |
+ return map; |
|
| 44 |
+ } |
|
| 45 |
+ |
|
| 46 |
+ //게시판 사용정보를 수정한다. |
|
| 47 |
+ public void updateBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 48 |
+ bbsUseInfoManageMapper.updateBBSUseInf(bdUseInf); |
|
| 49 |
+ } |
|
| 50 |
+ |
|
| 51 |
+ //게시판 사용정보에 대한 상세정보를 조회한다. |
|
| 52 |
+ public BoardUseInfVO selectBBSUseInf(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 53 |
+ return bbsUseInfoManageMapper.selectBBSUseInf(bdUseVO); |
|
| 54 |
+ } |
|
| 55 |
+ |
|
| 56 |
+ //동호회에 사용되는 게시판 사용정보를 삭제한다. |
|
| 57 |
+ public void deleteBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 58 |
+ List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfByClub(bdUseVO); |
|
| 59 |
+ |
|
| 60 |
+ BoardUseInfVO bdUseInf = null; |
|
| 61 |
+ Iterator<BoardUseInfVO> iter = result.iterator(); |
|
| 62 |
+ while (iter.hasNext()) {
|
|
| 63 |
+ bdUseInf = (BoardUseInfVO)iter.next(); |
|
| 64 |
+ |
|
| 65 |
+ bdUseInf.setLastUpdusrId(bdUseVO.getLastUpdusrId()); |
|
| 66 |
+ //bdUseInf.setTrgetId(bdUseVO.getClbId()); // 사용자 ID를 넘겨야 함.. |
|
| 67 |
+ bdUseInf.setTrgetId(bdUseVO.getTrgetId()); |
|
| 68 |
+ |
|
| 69 |
+ bbsUseInfoManageMapper.deleteBBSUseInf(bdUseInf); |
|
| 70 |
+ } |
|
| 71 |
+ } |
|
| 72 |
+ |
|
| 73 |
+ //커뮤니티에 사용되는 게시판 사용정보를 삭제한다. |
|
| 74 |
+ public void deleteBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 75 |
+ List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfByCmmnty(bdUseVO); |
|
| 76 |
+ |
|
| 77 |
+ BoardUseInfVO bdUseInf = null; |
|
| 78 |
+ Iterator<BoardUseInfVO> iter = result.iterator(); |
|
| 79 |
+ |
|
| 80 |
+ while (iter.hasNext()) {
|
|
| 81 |
+ bdUseInf = (BoardUseInfVO)iter.next(); |
|
| 82 |
+ |
|
| 83 |
+ bdUseInf.setLastUpdusrId(bdUseVO.getLastUpdusrId()); |
|
| 84 |
+ //bdUseInf.setTrgetId(bdUseVO.getCmmntyId()); // 사용자 ID를 넘겨야 함.. |
|
| 85 |
+ bdUseInf.setTrgetId(bdUseVO.getTrgetId()); |
|
| 86 |
+ |
|
| 87 |
+ bbsUseInfoManageMapper.deleteBBSUseInf(bdUseInf); |
|
| 88 |
+ } |
|
| 89 |
+ } |
|
| 90 |
+ |
|
| 91 |
+ //동호회에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 92 |
+ public void deleteAllBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 93 |
+ bbsUseInfoManageMapper.deleteAllBBSUseInfByClub(bdUseVO); |
|
| 94 |
+ } |
|
| 95 |
+ |
|
| 96 |
+ //커뮤니티에 사용되는 모든 게시판 사용정보를 삭제한다. |
|
| 97 |
+ public void deleteAllBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 98 |
+ bbsUseInfoManageMapper.deleteAllBBSUseInfByCmmnty(bdUseVO); |
|
| 99 |
+ } |
|
| 100 |
+ |
|
| 101 |
+ //게시판에 대한 사용정보를 삭제한다. |
|
| 102 |
+ public void deleteBBSUseInfByBoardId(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 103 |
+ bbsUseInfoManageMapper.deleteBBSUseInfByBoardId(bdUseInf); |
|
| 104 |
+ } |
|
| 105 |
+ |
|
| 106 |
+ //커뮤니티, 동호회에 사용되는 게시판 사용정보에 대한 목록을 조회한다. |
|
| 107 |
+ public Map<String, Object> selectBBSUseInfsByTrget(BoardUseInfVO bdUseVO) throws Exception {
|
|
| 108 |
+ List<BoardUseInfVO> result = bbsUseInfoManageMapper.selectBBSUseInfsByTrget(bdUseVO); |
|
| 109 |
+ int cnt = bbsUseInfoManageMapper.selectBBSUseInfsCntByTrget(bdUseVO); |
|
| 110 |
+ |
|
| 111 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 112 |
+ |
|
| 113 |
+ map.put("resultList", result);
|
|
| 114 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 115 |
+ |
|
| 116 |
+ return map; |
|
| 117 |
+ } |
|
| 118 |
+ |
|
| 119 |
+ //커뮤니티, 동호회에 사용되는 게시판 사용정보를 수정한다. |
|
| 120 |
+ public void updateBBSUseInfByTrget(BoardUseInfVO bdUseInf) throws Exception {
|
|
| 121 |
+ bbsUseInfoManageMapper.updateBBSUseInfByTrget(bdUseInf); |
|
| 122 |
+ } |
|
| 123 |
+} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/ConfirmManageDAO.java
... | ... | @@ -1,94 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import org.springframework.stereotype.Repository; | |
| 6 | - | |
| 7 | -import egovframework.com.cop.com.service.ConfirmHistory; | |
| 8 | -import egovframework.com.cop.com.service.ConfirmHistoryVO; | |
| 9 | -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; | |
| 10 | - | |
| 11 | -/** | |
| 12 | - * 승인정보 관리를 위한 데이터 접근 클래스 | |
| 13 | - * @author 공통서비스개발팀 이삼섭 | |
| 14 | - * @since 2009.06.01 | |
| 15 | - * @version 1.0 | |
| 16 | - * @see | |
| 17 | - * | |
| 18 | - * <pre> | |
| 19 | - * << 개정이력(Modification Information) >> | |
| 20 | - * | |
| 21 | - * 수정일 수정자 수정내용 | |
| 22 | - * ------- -------- --------------------------- | |
| 23 | - * 2009.4.7 이삼섭 최초 생성 | |
| 24 | - * | |
| 25 | - * </pre> | |
| 26 | - */ | |
| 27 | -@Repository("ConfirmManageDAO")
| |
| 28 | -public class ConfirmManageDAO extends EgovAbstractDAO {
| |
| 29 | - | |
| 30 | - /** | |
| 31 | - * 승인(탈퇴)요청에 대한 등록을 처리한다. | |
| 32 | - * | |
| 33 | - * @param history | |
| 34 | - * @throws Exception | |
| 35 | - */ | |
| 36 | - public void insertConfirmRequest(ConfirmHistory history) throws Exception {
| |
| 37 | - insert("ConfirmManageDAO.insertConfirmRequest", history);
| |
| 38 | - } | |
| 39 | - | |
| 40 | - /** | |
| 41 | - * 승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 42 | - * | |
| 43 | - * @param historyVO | |
| 44 | - * @return | |
| 45 | - * @throws Exception | |
| 46 | - */ | |
| 47 | - @SuppressWarnings("unchecked")
| |
| 48 | - public List<ConfirmHistoryVO> selectConfirmRequestList(ConfirmHistoryVO historyVO) throws Exception {
| |
| 49 | - return (List<ConfirmHistoryVO>)list("ConfirmManageDAO.selectConfirmRequestList", historyVO);
| |
| 50 | - } | |
| 51 | - | |
| 52 | - /** | |
| 53 | - * 승인(탈퇴)요청에 대한 목록 전체 건수를 조회한다. | |
| 54 | - * | |
| 55 | - * @param historyVO | |
| 56 | - * @return | |
| 57 | - * @throws Exception | |
| 58 | - */ | |
| 59 | - public int selectConfirmRequestListCnt(ConfirmHistoryVO historyVO) throws Exception {
| |
| 60 | - return (Integer)select("ConfirmManageDAO.selectConfirmRequestListCnt", historyVO);
| |
| 61 | - } | |
| 62 | - | |
| 63 | - /** | |
| 64 | - * 승인(탈퇴)요청에 대한 정보를 수정한다. | |
| 65 | - * | |
| 66 | - * @param history | |
| 67 | - * @throws Exception | |
| 68 | - */ | |
| 69 | - public void updateConfirmRequest(ConfirmHistory history) throws Exception {
| |
| 70 | - update("ConfirmManageDAO.updateConfirmRequest", history);
| |
| 71 | - } | |
| 72 | - | |
| 73 | - /** | |
| 74 | - * 승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 75 | - * | |
| 76 | - * @param historyVO | |
| 77 | - * @return | |
| 78 | - * @throws Exception | |
| 79 | - */ | |
| 80 | - public ConfirmHistoryVO selectSingleConfirmRequest(ConfirmHistoryVO historyVO) throws Exception {
| |
| 81 | - return (ConfirmHistoryVO)select("ConfirmManageDAO.selectSingleConfirmRequest", historyVO);
| |
| 82 | - } | |
| 83 | - | |
| 84 | - /** | |
| 85 | - * 승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 86 | - * | |
| 87 | - * @param historyVO | |
| 88 | - * @return | |
| 89 | - * @throws Exception | |
| 90 | - */ | |
| 91 | - public int countConfirmRequest(ConfirmHistory history) throws Exception {
| |
| 92 | - return (Integer)select("ConfirmManageDAO.countConfirmRequest", history);
| |
| 93 | - } | |
| 94 | -} |
+++ base/src/main/java/egovframework/com/cop/com/service/impl/ConfirmManageMapper.java
... | ... | @@ -0,0 +1,30 @@ |
| 1 | +package egovframework.com.cop.com.service.impl; | |
| 2 | + | |
| 3 | +import egovframework.com.cop.com.service.ConfirmHistoryVO; | |
| 4 | +import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 5 | + | |
| 6 | +import java.util.List; | |
| 7 | + | |
| 8 | +//승인정보 관리를 위한 데이터 접근 클래스 | |
| 9 | +@Mapper("confirmManageMapper") | |
| 10 | +public interface ConfirmManageMapper { | |
| 11 | + | |
| 12 | + //승인(탈퇴)요청에 대한 등록을 처리한다. | |
| 13 | + public void insertConfirmRequest(ConfirmHistoryVO history) throws Exception; | |
| 14 | + | |
| 15 | + //승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 16 | + public List<ConfirmHistoryVO> selectConfirmRequestList(ConfirmHistoryVO historyVO) throws Exception; | |
| 17 | + | |
| 18 | + //승인(탈퇴)요청에 대한 목록 전체 건수를 조회한다. | |
| 19 | + public int selectConfirmRequestListCnt(ConfirmHistoryVO historyVO) throws Exception; | |
| 20 | + | |
| 21 | + //승인(탈퇴)요청에 대한 정보를 수정한다. | |
| 22 | + public void updateConfirmRequest(ConfirmHistoryVO history) throws Exception; | |
| 23 | + | |
| 24 | + //승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 25 | + public ConfirmHistoryVO selectSingleConfirmRequest(ConfirmHistoryVO historyVO) throws Exception; | |
| 26 | + | |
| 27 | + //승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 28 | + public int countConfirmRequest(ConfirmHistoryVO history) throws Exception; | |
| 29 | + | |
| 30 | +} |
+++ base/src/main/java/egovframework/com/cop/com/service/impl/ConfirmManageServiceImpl.java
... | ... | @@ -0,0 +1,137 @@ |
| 1 | +package egovframework.com.cop.com.service.impl; | |
| 2 | + | |
| 3 | +import java.util.HashMap; | |
| 4 | +import java.util.List; | |
| 5 | +import java.util.Map; | |
| 6 | + | |
| 7 | +import javax.annotation.Resource; | |
| 8 | + | |
| 9 | +import org.springframework.stereotype.Service; | |
| 10 | + | |
| 11 | +import egovframework.com.cop.cmy.service.Community; | |
| 12 | +import egovframework.com.cop.cmy.service.CommunityUser; | |
| 13 | +import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 14 | +import egovframework.com.cop.com.service.ConfirmHistoryVO; | |
| 15 | +import egovframework.com.cop.com.service.ConfirmManageService; | |
| 16 | +import egovframework.com.utl.fcc.service.EgovDateUtil; | |
| 17 | +import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 18 | + | |
| 19 | +//승인정보를 관리하기 위한 서비스 구현 클래스 | |
| 20 | +@Service("EgovConfirmManageService") | |
| 21 | +public class ConfirmManageServiceImpl extends EgovAbstractServiceImpl implements ConfirmManageService { | |
| 22 | + | |
| 23 | + @Resource(name = "confirmManageMapper") | |
| 24 | + private ConfirmManageMapper confirmManageMapper; | |
| 25 | + | |
| 26 | + @Resource(name = "EgovCommunityManageService") | |
| 27 | + private EgovCommunityManageService cmmntyService; | |
| 28 | + | |
| 29 | + //승인(탈퇴)요청에 대한 등록을 처리한다. | |
| 30 | + public void insertConfirmRequest(ConfirmHistoryVO history) throws Exception { | |
| 31 | + if("Y".equals(history.getAutoAt())){ //자동 승인경우 | |
| 32 | + CommunityUser cmmntyUser = new CommunityUser(); | |
| 33 | + | |
| 34 | + cmmntyUser.setCmmntyId(history.getTrgetJobId()); | |
| 35 | + cmmntyUser.setEmplyrId(history.getConfmRqesterId()); | |
| 36 | + cmmntyUser.setEmplyrNm(history.getConfmRqesterNm()); | |
| 37 | + | |
| 38 | + String retVal = cmmntyService.checkCommunityUserInf(cmmntyUser); | |
| 39 | + if(retVal.equals("EXIST")){ //이전 탈퇴자라면 재가입 시켜준다. | |
| 40 | + cmmntyUser.setUseAt("Y"); | |
| 41 | + cmmntyService.updateCommunityUserInf(cmmntyUser); | |
| 42 | + }else{ | |
| 43 | + cmmntyUser.setUseAt("Y"); | |
| 44 | + cmmntyUser.setMngrAt("N"); | |
| 45 | + cmmntyUser.setAuthorCode("02"); | |
| 46 | + cmmntyUser.setFrstRegisterId(history.getConfmRqesterId()); | |
| 47 | + cmmntyService.insertCommunityUserInf(cmmntyUser); | |
| 48 | + } | |
| 49 | + history.setConfmSttusCode("AP02"); // 승인완료처리 | |
| 50 | + history.setConfmDe(EgovDateUtil.getToday()); // 승인완료처리일 | |
| 51 | + } | |
| 52 | + confirmManageMapper.insertConfirmRequest(history); | |
| 53 | + } | |
| 54 | + | |
| 55 | + //승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 56 | + public Map<String, Object> selectConfirmRequest(ConfirmHistoryVO historyVO) throws Exception { | |
| 57 | + List<ConfirmHistoryVO> result = confirmManageMapper.selectConfirmRequestList(historyVO); | |
| 58 | + int cnt = confirmManageMapper.selectConfirmRequestListCnt(historyVO); | |
| 59 | + | |
| 60 | + Map<String, Object> map = new HashMap<String, Object>(); | |
| 61 | + | |
| 62 | + map.put("resultList", result); | |
| 63 | + map.put("resultCnt", Integer.toString(cnt)); | |
| 64 | + | |
| 65 | + return map; | |
| 66 | + } | |
| 67 | + | |
| 68 | + //승인(탈퇴)요청에 대한 확인을 처리한다. | |
| 69 | + public void updateConfirmRequest(ConfirmHistoryVO history) throws Exception { | |
| 70 | + String sttus = history.getConfmSttusCode(); | |
| 71 | + | |
| 72 | + // 승인요청이면 아무것도 처리하지 않음 | |
| 73 | + if ("AP01".equals(sttus)) { | |
| 74 | + return; | |
| 75 | + } | |
| 76 | + | |
| 77 | + /* sttus 가 승인완료 AP02일때만 로직처리/ 승인반려시에는 승인정보만 변경처리 */ | |
| 78 | + if ("AP02".equals(sttus)) { | |
| 79 | + if ("CF12".equals(history.getConfmTyCode())) { | |
| 80 | + // 커뮤니티 사용자 탈퇴처리 | |
| 81 | + CommunityUser cmmntyUser = new CommunityUser(); | |
| 82 | + | |
| 83 | + cmmntyUser.setLastUpdusrId(history.getConfmerId()); | |
| 84 | + cmmntyUser.setCmmntyId(history.getTrgetJobId()); | |
| 85 | + cmmntyUser.setEmplyrId(history.getConfmRqesterId()); | |
| 86 | + cmmntyUser.setSecsnDe(EgovDateUtil.getToday()); | |
| 87 | + | |
| 88 | + cmmntyService.deleteCommunityUserInf(cmmntyUser); | |
| 89 | + | |
| 90 | + } else if ("CF02".equals(history.getConfmTyCode())) { | |
| 91 | + // 커뮤니티 삭제 | |
| 92 | + Community cmmnty = new Community(); | |
| 93 | + | |
| 94 | + cmmnty.setLastUpdusrId(history.getConfmerId()); | |
| 95 | + cmmnty.setCmmntyId(history.getTrgetJobId()); | |
| 96 | + | |
| 97 | + cmmntyService.deleteCommunityInf(cmmnty); | |
| 98 | + | |
| 99 | + } else if ("CF11".equals(history.getConfmTyCode())) { | |
| 100 | + // 커뮤니티 가입 | |
| 101 | + CommunityUser cmmntyUser = new CommunityUser(); | |
| 102 | + | |
| 103 | + cmmntyUser.setCmmntyId(history.getTrgetJobId()); | |
| 104 | + cmmntyUser.setEmplyrId(history.getConfmRqesterId()); | |
| 105 | + cmmntyUser.setEmplyrNm(history.getConfmRqesterNm()); | |
| 106 | + cmmntyUser.setFrstRegisterId(history.getConfmRqesterId()); | |
| 107 | + | |
| 108 | + String retVal = cmmntyService.checkCommunityUserInf(cmmntyUser); | |
| 109 | + if(retVal.equals("EXIST")){ //이전 탈퇴자라면 재가입 시켜준다. | |
| 110 | + cmmntyUser.setUseAt("Y"); | |
| 111 | + cmmntyService.updateCommunityUserInf(cmmntyUser); | |
| 112 | + }else{ | |
| 113 | + cmmntyUser.setUseAt("Y"); | |
| 114 | + cmmntyUser.setMngrAt("N"); | |
| 115 | + cmmntyUser.setAuthorCode("02"); | |
| 116 | + cmmntyUser.setFrstRegisterId(history.getConfmRqesterId()); | |
| 117 | + cmmntyService.insertCommunityUserInf(cmmntyUser); | |
| 118 | + } | |
| 119 | + | |
| 120 | + } | |
| 121 | + } | |
| 122 | + | |
| 123 | + history.setConfmDe(EgovDateUtil.getToday()); | |
| 124 | + | |
| 125 | + confirmManageMapper.updateConfirmRequest(history); | |
| 126 | + } | |
| 127 | + | |
| 128 | + //승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 129 | + public ConfirmHistoryVO selectSingleConfirmRequest(ConfirmHistoryVO historyVO) throws Exception { | |
| 130 | + return confirmManageMapper.selectSingleConfirmRequest(historyVO); | |
| 131 | + } | |
| 132 | + | |
| 133 | + //현재 승인 요청된 건수를 조회한다. | |
| 134 | + public int countConfirmRequest(ConfirmHistoryVO history) throws Exception { | |
| 135 | + return confirmManageMapper.countConfirmRequest(history); | |
| 136 | + } | |
| 137 | +} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/EgovConfirmManageServiceImpl.java
... | ... | @@ -1,182 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.HashMap; | |
| 4 | -import java.util.List; | |
| 5 | -import java.util.Map; | |
| 6 | - | |
| 7 | -import javax.annotation.Resource; | |
| 8 | - | |
| 9 | -import org.springframework.stereotype.Service; | |
| 10 | - | |
| 11 | -import egovframework.com.cop.cmy.service.Community; | |
| 12 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 13 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 14 | -import egovframework.com.cop.com.service.ConfirmHistory; | |
| 15 | -import egovframework.com.cop.com.service.ConfirmHistoryVO; | |
| 16 | -import egovframework.com.cop.com.service.EgovConfirmManageService; | |
| 17 | -import egovframework.com.utl.fcc.service.EgovDateUtil; | |
| 18 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 19 | - | |
| 20 | -/** | |
| 21 | - * 승인정보를 관리하기 위한 서비스 구현 클래스 | |
| 22 | - * @author 공통서비스개발팀 이삼섭 | |
| 23 | - * @since 2009.06.01 | |
| 24 | - * @version 1.0 | |
| 25 | - * @see | |
| 26 | - * | |
| 27 | - * <pre> | |
| 28 | - * << 개정이력(Modification Information) >> | |
| 29 | - * | |
| 30 | - * 수정일 수정자 수정내용 | |
| 31 | - * ------- -------- --------------------------- | |
| 32 | - * 2009.4.7 이삼섭 최초 생성 | |
| 33 | - * 2012. 1. 26 이호영 충청남도교육연구정보원 스마트충남 기능 개선 구축 | |
| 34 | - * | |
| 35 | - * </pre> | |
| 36 | - */ | |
| 37 | -@Service("EgovConfirmManageService")
| |
| 38 | -public class EgovConfirmManageServiceImpl extends EgovAbstractServiceImpl implements EgovConfirmManageService {
| |
| 39 | - | |
| 40 | - /** | |
| 41 | - * @uml.property name="confmDAO" | |
| 42 | - * @uml.associationEnd readOnly="true" | |
| 43 | - */ | |
| 44 | - @Resource(name = "ConfirmManageDAO") | |
| 45 | - private ConfirmManageDAO confmDAO; | |
| 46 | - | |
| 47 | - /** | |
| 48 | - * @uml.property name="cmmntyService" | |
| 49 | - * @uml.associationEnd readOnly="true" | |
| 50 | - */ | |
| 51 | - @Resource(name = "EgovCommunityManageService") | |
| 52 | - private EgovCommunityManageService cmmntyService; | |
| 53 | - | |
| 54 | - /** | |
| 55 | - * 승인(탈퇴)요청에 대한 등록을 처리한다. | |
| 56 | - * | |
| 57 | - * @see egovframework.com.cop.com.service.EgovConfirmManageService#insertConfirmRequest(egovframework.com.cop.com.service.ConfirmHistory) | |
| 58 | - */ | |
| 59 | - public void insertConfirmRequest(ConfirmHistory history) throws Exception {
| |
| 60 | - if("Y".equals(history.getAutoAt())){ //자동 승인경우
| |
| 61 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 62 | - | |
| 63 | - cmmntyUser.setCmmntyId(history.getTrgetJobId()); | |
| 64 | - cmmntyUser.setEmplyrId(history.getConfmRqesterId()); | |
| 65 | - cmmntyUser.setEmplyrNm(history.getConfmRqesterNm()); | |
| 66 | - | |
| 67 | - String retVal = cmmntyService.checkCommunityUserInf(cmmntyUser); | |
| 68 | - if(retVal.equals("EXIST")){ //이전 탈퇴자라면 재가입 시켜준다.
| |
| 69 | - cmmntyUser.setUseAt("Y");
| |
| 70 | - cmmntyService.updateCommunityUserInf(cmmntyUser); | |
| 71 | - }else{
| |
| 72 | - cmmntyUser.setUseAt("Y");
| |
| 73 | - cmmntyUser.setMngrAt("N");
| |
| 74 | - cmmntyUser.setAuthorCode("02");
| |
| 75 | - cmmntyUser.setFrstRegisterId(history.getConfmRqesterId()); | |
| 76 | - cmmntyService.insertCommunityUserInf(cmmntyUser); | |
| 77 | - } | |
| 78 | - history.setConfmSttusCode("AP02"); // 승인완료처리
| |
| 79 | - history.setConfmDe(EgovDateUtil.getToday()); // 승인완료처리일 | |
| 80 | - } | |
| 81 | - confmDAO.insertConfirmRequest(history); | |
| 82 | - } | |
| 83 | - | |
| 84 | - /** | |
| 85 | - * 승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 86 | - * | |
| 87 | - * @see egovframework.com.cop.com.service.EgovConfirmManageService#selectConfirmRequest(egovframework.com.cop.com.service.ConfirmHistoryVO) | |
| 88 | - */ | |
| 89 | - public Map<String, Object> selectConfirmRequest(ConfirmHistoryVO historyVO) throws Exception {
| |
| 90 | - List<ConfirmHistoryVO> result = confmDAO.selectConfirmRequestList(historyVO); | |
| 91 | - int cnt = confmDAO.selectConfirmRequestListCnt(historyVO); | |
| 92 | - | |
| 93 | - Map<String, Object> map = new HashMap<String, Object>(); | |
| 94 | - | |
| 95 | - map.put("resultList", result);
| |
| 96 | - map.put("resultCnt", Integer.toString(cnt));
| |
| 97 | - | |
| 98 | - return map; | |
| 99 | - } | |
| 100 | - | |
| 101 | - /** | |
| 102 | - * 승인(탈퇴)요청에 대한 확인을 처리한다. | |
| 103 | - * | |
| 104 | - * @see egovframework.com.cop.com.service.EgovConfirmManageService#updateConfirmRequest(egovframework.com.cop.com.service.ConfirmHistory) | |
| 105 | - */ | |
| 106 | - public void updateConfirmRequest(ConfirmHistory history) throws Exception {
| |
| 107 | - String sttus = history.getConfmSttusCode(); | |
| 108 | - | |
| 109 | - // 승인요청이면 아무것도 처리하지 않음 | |
| 110 | - if ("AP01".equals(sttus)) {
| |
| 111 | - return; | |
| 112 | - } | |
| 113 | - | |
| 114 | - /* sttus 가 승인완료 AP02일때만 로직처리/ 승인반려시에는 승인정보만 변경처리 */ | |
| 115 | - if ("AP02".equals(sttus)) {
| |
| 116 | - if ("CF12".equals(history.getConfmTyCode())) {
| |
| 117 | - // 커뮤니티 사용자 탈퇴처리 | |
| 118 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 119 | - | |
| 120 | - cmmntyUser.setLastUpdusrId(history.getConfmerId()); | |
| 121 | - cmmntyUser.setCmmntyId(history.getTrgetJobId()); | |
| 122 | - cmmntyUser.setEmplyrId(history.getConfmRqesterId()); | |
| 123 | - cmmntyUser.setSecsnDe(EgovDateUtil.getToday()); | |
| 124 | - | |
| 125 | - cmmntyService.deleteCommunityUserInf(cmmntyUser); | |
| 126 | - | |
| 127 | - } else if ("CF02".equals(history.getConfmTyCode())) {
| |
| 128 | - // 커뮤니티 삭제 | |
| 129 | - Community cmmnty = new Community(); | |
| 130 | - | |
| 131 | - cmmnty.setLastUpdusrId(history.getConfmerId()); | |
| 132 | - cmmnty.setCmmntyId(history.getTrgetJobId()); | |
| 133 | - | |
| 134 | - cmmntyService.deleteCommunityInf(cmmnty); | |
| 135 | - | |
| 136 | - } else if ("CF11".equals(history.getConfmTyCode())) {
| |
| 137 | - // 커뮤니티 가입 | |
| 138 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 139 | - | |
| 140 | - cmmntyUser.setCmmntyId(history.getTrgetJobId()); | |
| 141 | - cmmntyUser.setEmplyrId(history.getConfmRqesterId()); | |
| 142 | - cmmntyUser.setEmplyrNm(history.getConfmRqesterNm()); | |
| 143 | - cmmntyUser.setFrstRegisterId(history.getConfmRqesterId()); | |
| 144 | - | |
| 145 | - String retVal = cmmntyService.checkCommunityUserInf(cmmntyUser); | |
| 146 | - if(retVal.equals("EXIST")){ //이전 탈퇴자라면 재가입 시켜준다.
| |
| 147 | - cmmntyUser.setUseAt("Y");
| |
| 148 | - cmmntyService.updateCommunityUserInf(cmmntyUser); | |
| 149 | - }else{
| |
| 150 | - cmmntyUser.setUseAt("Y");
| |
| 151 | - cmmntyUser.setMngrAt("N");
| |
| 152 | - cmmntyUser.setAuthorCode("02");
| |
| 153 | - cmmntyUser.setFrstRegisterId(history.getConfmRqesterId()); | |
| 154 | - cmmntyService.insertCommunityUserInf(cmmntyUser); | |
| 155 | - } | |
| 156 | - | |
| 157 | - } | |
| 158 | - } | |
| 159 | - | |
| 160 | - history.setConfmDe(EgovDateUtil.getToday()); | |
| 161 | - | |
| 162 | - confmDAO.updateConfirmRequest(history); | |
| 163 | - } | |
| 164 | - | |
| 165 | - /** | |
| 166 | - * 승인(탈퇴)요청에 대한 상세내용을 조회한다. | |
| 167 | - * | |
| 168 | - * @see egovframework.com.cop.com.service.EgovConfirmManageService#selectSingleConfirmRequest(egovframework.com.cop.com.service.ConfirmHistoryVO) | |
| 169 | - */ | |
| 170 | - public ConfirmHistoryVO selectSingleConfirmRequest(ConfirmHistoryVO historyVO) throws Exception {
| |
| 171 | - return confmDAO.selectSingleConfirmRequest(historyVO); | |
| 172 | - } | |
| 173 | - | |
| 174 | - /** | |
| 175 | - * 현재 승인 요청된 건수를 조회한다. | |
| 176 | - * | |
| 177 | - * @see egovframework.com.cop.com.service.EgovConfirmManageService#countConfirmRequest(egovframework.com.cop.com.service.ConfirmHistoryVO) | |
| 178 | - */ | |
| 179 | - public int countConfirmRequest(ConfirmHistory history) throws Exception {
| |
| 180 | - return confmDAO.countConfirmRequest(history); | |
| 181 | - } | |
| 182 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/EgovUserInfManageDAO.java
... | ... | @@ -1,144 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import org.springframework.stereotype.Repository; | |
| 6 | - | |
| 7 | -import egovframework.com.cop.com.service.UserInfVO; | |
| 8 | -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; | |
| 9 | - | |
| 10 | -/** | |
| 11 | - * 협업 활용 사용자 정보 조회를 위한 데이터 접근 클래스 | |
| 12 | - * @author 공통서비스개발팀 이삼섭 | |
| 13 | - * @since 2009.06.01 | |
| 14 | - * @version 1.0 | |
| 15 | - * @see | |
| 16 | - * | |
| 17 | - * <pre> | |
| 18 | - * << 개정이력(Modification Information) >> | |
| 19 | - * | |
| 20 | - * 수정일 수정자 수정내용 | |
| 21 | - * ------- -------- --------------------------- | |
| 22 | - * 2009.4.6 이삼섭 최초 생성 | |
| 23 | - * | |
| 24 | - * </pre> | |
| 25 | - */ | |
| 26 | -@Repository("EgovUserInfManageDAO")
| |
| 27 | -public class EgovUserInfManageDAO extends EgovAbstractDAO {
| |
| 28 | - | |
| 29 | - /** | |
| 30 | - * 커뮤니티 사용자 목록을 조회한다. | |
| 31 | - * | |
| 32 | - * @param userVO | |
| 33 | - * @return | |
| 34 | - * @throws Exception | |
| 35 | - */ | |
| 36 | - @SuppressWarnings("unchecked")
| |
| 37 | - public List<UserInfVO> selectCmmntyUserList(UserInfVO userVO) throws Exception {
| |
| 38 | - return (List<UserInfVO>)list("EgovUserInfManageDAO.selectCmmntyUserList", userVO);
| |
| 39 | - } | |
| 40 | - | |
| 41 | - /** | |
| 42 | - * 커뮤니티 사용자 목록에 대한 전체 건수를 조회한다. | |
| 43 | - * | |
| 44 | - * @param userVO | |
| 45 | - * @return | |
| 46 | - * @throws Exception | |
| 47 | - */ | |
| 48 | - public int selectCmmntyUserListCnt(UserInfVO userVO) throws Exception {
| |
| 49 | - return (Integer)select("EgovUserInfManageDAO.selectCmmntyUserListCnt", userVO);
| |
| 50 | - } | |
| 51 | - | |
| 52 | - /** | |
| 53 | - * 커뮤니티 관리자 목록을 조회한다. | |
| 54 | - * | |
| 55 | - * @param userVO | |
| 56 | - * @return | |
| 57 | - * @throws Exception | |
| 58 | - */ | |
| 59 | - @SuppressWarnings("unchecked")
| |
| 60 | - public List<UserInfVO> selectCmmntyMngrList(UserInfVO userVO) throws Exception {
| |
| 61 | - return (List<UserInfVO>)list("EgovUserInfManageDAO.selectCmmntyMngrList", userVO);
| |
| 62 | - } | |
| 63 | - | |
| 64 | - /** | |
| 65 | - * 커뮤니티 관리자 목록에 대한 전체 건수를 조회한다. | |
| 66 | - * | |
| 67 | - * @param userVO | |
| 68 | - * @return | |
| 69 | - * @throws Exception | |
| 70 | - */ | |
| 71 | - public int selectCmmntyMngrListCnt(UserInfVO userVO) throws Exception {
| |
| 72 | - return (Integer)select("EgovUserInfManageDAO.selectCmmntyMngrListCnt", userVO);
| |
| 73 | - } | |
| 74 | - | |
| 75 | - /** | |
| 76 | - * 동호회 사용자 목록을 조회한다. | |
| 77 | - * | |
| 78 | - * @param userVO | |
| 79 | - * @return | |
| 80 | - * @throws Exception | |
| 81 | - */ | |
| 82 | - @SuppressWarnings("unchecked")
| |
| 83 | - public List<UserInfVO> selectClubUserList(UserInfVO userVO) throws Exception {
| |
| 84 | - return (List<UserInfVO>)list("EgovUserInfManageDAO.selectClubUserList", userVO);
| |
| 85 | - } | |
| 86 | - | |
| 87 | - /** | |
| 88 | - * 동호회 사용자 목록에 대한 전체 건수를 조회한다. | |
| 89 | - * | |
| 90 | - * @param userVO | |
| 91 | - * @return | |
| 92 | - * @throws Exception | |
| 93 | - */ | |
| 94 | - public int selectClubUserListCnt(UserInfVO userVO) throws Exception {
| |
| 95 | - return (Integer)select("EgovUserInfManageDAO.selectClubUserListCnt", userVO);
| |
| 96 | - } | |
| 97 | - | |
| 98 | - /** | |
| 99 | - * 동호회 운영자 목록을 조회한다. | |
| 100 | - * | |
| 101 | - * @param userVO | |
| 102 | - * @return | |
| 103 | - * @throws Exception | |
| 104 | - */ | |
| 105 | - @SuppressWarnings("unchecked")
| |
| 106 | - public List<UserInfVO> selectClubOprtrList(UserInfVO userVO) throws Exception {
| |
| 107 | - return (List<UserInfVO>)list("EgovUserInfManageDAO.selectClubOprtrList", userVO);
| |
| 108 | - } | |
| 109 | - | |
| 110 | - /** | |
| 111 | - * 동호회 운영자 목록에 대한 전체 건수를 조회한다. | |
| 112 | - * | |
| 113 | - * @param userVO | |
| 114 | - * @return | |
| 115 | - * @throws Exception | |
| 116 | - */ | |
| 117 | - public int selectClubOprtrListCnt(UserInfVO userVO) throws Exception {
| |
| 118 | - return (Integer)select("EgovUserInfManageDAO.selectClubOprtrListCnt", userVO);
| |
| 119 | - } | |
| 120 | - | |
| 121 | - /** | |
| 122 | - * 동호회에 대한 모든 사용자 목록을 조회한다. | |
| 123 | - * | |
| 124 | - * @param userVO | |
| 125 | - * @return | |
| 126 | - * @throws Exception | |
| 127 | - */ | |
| 128 | - @SuppressWarnings("unchecked")
| |
| 129 | - public List<UserInfVO> selectAllClubUser(UserInfVO userVO) throws Exception {
| |
| 130 | - return (List<UserInfVO>)list("EgovUserInfManageDAO.selectAllClubUser", userVO);
| |
| 131 | - } | |
| 132 | - | |
| 133 | - /** | |
| 134 | - * 커뮤니티에 대한 모든 사용자 목록을 조회한다. | |
| 135 | - * | |
| 136 | - * @param userVO | |
| 137 | - * @return | |
| 138 | - * @throws Exception | |
| 139 | - */ | |
| 140 | - @SuppressWarnings("unchecked")
| |
| 141 | - public List<UserInfVO> selectAllCmmntyUser(UserInfVO userVO) throws Exception {
| |
| 142 | - return (List<UserInfVO>)list("EgovUserInfManageDAO.selectAllCmmntyUser", userVO);
| |
| 143 | - } | |
| 144 | -} |
+++ base/src/main/java/egovframework/com/cop/com/service/impl/UserInfManageMapper.java
... | ... | @@ -0,0 +1,43 @@ |
| 1 | +package egovframework.com.cop.com.service.impl; | |
| 2 | + | |
| 3 | +import egovframework.com.cop.com.service.ConfirmHistoryVO; | |
| 4 | +import egovframework.com.cop.com.service.UserInfVO; | |
| 5 | +import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 6 | + | |
| 7 | +import java.util.List; | |
| 8 | + | |
| 9 | +//협업 활용 사용자 정보 조회를 위한 데이터 접근 클래스 | |
| 10 | +@Mapper("userInfManageMapper") | |
| 11 | +public interface UserInfManageMapper { | |
| 12 | + | |
| 13 | + //커뮤니티 사용자 목록을 조회한다. | |
| 14 | + public List<UserInfVO> selectCmmntyUserList(UserInfVO userVO) throws Exception; | |
| 15 | + | |
| 16 | + //커뮤니티 사용자 목록에 대한 전체 건수를 조회한다. | |
| 17 | + public int selectCmmntyUserListCnt(UserInfVO userVO) throws Exception; | |
| 18 | + | |
| 19 | + //커뮤니티 관리자 목록을 조회한다. | |
| 20 | + public List<UserInfVO> selectCmmntyMngrList(UserInfVO userVO) throws Exception; | |
| 21 | + | |
| 22 | + //커뮤니티 관리자 목록에 대한 전체 건수를 조회한다. | |
| 23 | + public int selectCmmntyMngrListCnt(UserInfVO userVO) throws Exception; | |
| 24 | + | |
| 25 | + //동호회 사용자 목록을 조회한다. | |
| 26 | + public List<UserInfVO> selectClubUserList(UserInfVO userVO) throws Exception; | |
| 27 | + | |
| 28 | + //동호회 사용자 목록에 대한 전체 건수를 조회한다. | |
| 29 | + public int selectClubUserListCnt(UserInfVO userVO) throws Exception; | |
| 30 | + | |
| 31 | + //동호회 운영자 목록을 조회한다. | |
| 32 | + public List<UserInfVO> selectClubOprtrList(UserInfVO userVO) throws Exception; | |
| 33 | + | |
| 34 | + //동호회 운영자 목록에 대한 전체 건수를 조회한다. | |
| 35 | + public int selectClubOprtrListCnt(UserInfVO userVO) throws Exception; | |
| 36 | + | |
| 37 | + //동호회에 대한 모든 사용자 목록을 조회한다. | |
| 38 | + public List<UserInfVO> selectAllClubUser(UserInfVO userVO) throws Exception; | |
| 39 | + | |
| 40 | + //커뮤니티에 대한 모든 사용자 목록을 조회한다. | |
| 41 | + public List<UserInfVO> selectAllCmmntyUser(UserInfVO userVO) throws Exception; | |
| 42 | + | |
| 43 | +} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/EgovUserInfManageServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/com/service/impl/UserInfManageServiceImpl.java
... | ... | @@ -1,83 +1,83 @@ |
| 1 |
-package egovframework.com.cop.com.service.impl; |
|
| 2 |
- |
|
| 3 |
-import java.util.HashMap; |
|
| 4 |
-import java.util.List; |
|
| 5 |
-import java.util.Map; |
|
| 6 |
- |
|
| 7 |
-import javax.annotation.Resource; |
|
| 8 |
- |
|
| 9 |
-import org.springframework.stereotype.Service; |
|
| 10 |
- |
|
| 11 |
-import egovframework.com.cop.com.service.EgovUserInfManageService; |
|
| 12 |
-import egovframework.com.cop.com.service.UserInfVO; |
|
| 13 |
-import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 14 |
- |
|
| 15 |
- |
|
| 16 |
-@Service("EgovUserInfManageService")
|
|
| 17 |
-public class EgovUserInfManageServiceImpl extends EgovAbstractServiceImpl implements EgovUserInfManageService {
|
|
| 18 |
- |
|
| 19 |
- @Resource(name = "EgovUserInfManageDAO") |
|
| 20 |
- private EgovUserInfManageDAO userInfDAO; |
|
| 21 |
- |
|
| 22 |
- //동호회 운영자 목록을 조회한다. |
|
| 23 |
- public Map<String, Object> selectClubOprtrList(UserInfVO userVO) throws Exception {
|
|
| 24 |
- List<UserInfVO> result = userInfDAO.selectClubOprtrList(userVO); |
|
| 25 |
- int cnt = userInfDAO.selectClubOprtrListCnt(userVO); |
|
| 26 |
- |
|
| 27 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 28 |
- |
|
| 29 |
- map.put("resultList", result);
|
|
| 30 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 31 |
- |
|
| 32 |
- return map; |
|
| 33 |
- } |
|
| 34 |
- |
|
| 35 |
- //동호회 사용자 목록을 조회한다. |
|
| 36 |
- public Map<String, Object> selectClubUserList(UserInfVO userVO) throws Exception {
|
|
| 37 |
- List<UserInfVO> result = userInfDAO.selectClubUserList(userVO); |
|
| 38 |
- int cnt = userInfDAO.selectClubUserListCnt(userVO); |
|
| 39 |
- |
|
| 40 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 41 |
- |
|
| 42 |
- map.put("resultList", result);
|
|
| 43 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 44 |
- |
|
| 45 |
- return map; |
|
| 46 |
- } |
|
| 47 |
- |
|
| 48 |
- //커뮤니티 관리자 목록을 조회한다. |
|
| 49 |
- public Map<String, Object> selectCmmntyMngrList(UserInfVO userVO) throws Exception {
|
|
| 50 |
- List<UserInfVO> result = userInfDAO.selectCmmntyMngrList(userVO); |
|
| 51 |
- int cnt = userInfDAO.selectCmmntyMngrListCnt(userVO); |
|
| 52 |
- |
|
| 53 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 54 |
- |
|
| 55 |
- map.put("resultList", result);
|
|
| 56 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 57 |
- |
|
| 58 |
- return map; |
|
| 59 |
- } |
|
| 60 |
- |
|
| 61 |
- //커뮤니티 사용자 목록을 조회한다. |
|
| 62 |
- public Map<String, Object> selectCmmntyUserList(UserInfVO userVO) throws Exception {
|
|
| 63 |
- List<UserInfVO> result = userInfDAO.selectCmmntyUserList(userVO); |
|
| 64 |
- int cnt = userInfDAO.selectCmmntyUserListCnt(userVO); |
|
| 65 |
- |
|
| 66 |
- Map<String, Object> map = new HashMap<String, Object>(); |
|
| 67 |
- |
|
| 68 |
- map.put("resultList", result);
|
|
| 69 |
- map.put("resultCnt", Integer.toString(cnt));
|
|
| 70 |
- |
|
| 71 |
- return map; |
|
| 72 |
- } |
|
| 73 |
- |
|
| 74 |
- //동호회에 대한 모든 사용자 목록을 조회한다. |
|
| 75 |
- public List<UserInfVO> selectAllClubUser(UserInfVO userVO) throws Exception {
|
|
| 76 |
- return userInfDAO.selectAllClubUser(userVO); |
|
| 77 |
- } |
|
| 78 |
- |
|
| 79 |
- //커뮤니티에 대한 모든 사용자 목록을 조회한다. |
|
| 80 |
- public List<UserInfVO> selectAllCmmntyUser(UserInfVO userVO) throws Exception {
|
|
| 81 |
- return userInfDAO.selectAllCmmntyUser(userVO); |
|
| 82 |
- } |
|
| 83 |
-} |
|
| 1 |
+package egovframework.com.cop.com.service.impl; |
|
| 2 |
+ |
|
| 3 |
+import java.util.HashMap; |
|
| 4 |
+import java.util.List; |
|
| 5 |
+import java.util.Map; |
|
| 6 |
+ |
|
| 7 |
+import javax.annotation.Resource; |
|
| 8 |
+ |
|
| 9 |
+import org.springframework.stereotype.Service; |
|
| 10 |
+ |
|
| 11 |
+import egovframework.com.cop.com.service.UserInfManageService; |
|
| 12 |
+import egovframework.com.cop.com.service.UserInfVO; |
|
| 13 |
+import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
|
| 14 |
+ |
|
| 15 |
+ |
|
| 16 |
+@Service("EgovUserInfManageService")
|
|
| 17 |
+public class UserInfManageServiceImpl extends EgovAbstractServiceImpl implements UserInfManageService {
|
|
| 18 |
+ |
|
| 19 |
+ @Resource(name = "userInfManageMapper") |
|
| 20 |
+ private UserInfManageMapper userInfManageMapper; |
|
| 21 |
+ |
|
| 22 |
+ //동호회 운영자 목록을 조회한다. |
|
| 23 |
+ public Map<String, Object> selectClubOprtrList(UserInfVO userVO) throws Exception {
|
|
| 24 |
+ List<UserInfVO> result = userInfManageMapper.selectClubOprtrList(userVO); |
|
| 25 |
+ int cnt = userInfManageMapper.selectClubOprtrListCnt(userVO); |
|
| 26 |
+ |
|
| 27 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 28 |
+ |
|
| 29 |
+ map.put("resultList", result);
|
|
| 30 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 31 |
+ |
|
| 32 |
+ return map; |
|
| 33 |
+ } |
|
| 34 |
+ |
|
| 35 |
+ //동호회 사용자 목록을 조회한다. |
|
| 36 |
+ public Map<String, Object> selectClubUserList(UserInfVO userVO) throws Exception {
|
|
| 37 |
+ List<UserInfVO> result = userInfManageMapper.selectClubUserList(userVO); |
|
| 38 |
+ int cnt = userInfManageMapper.selectClubUserListCnt(userVO); |
|
| 39 |
+ |
|
| 40 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 41 |
+ |
|
| 42 |
+ map.put("resultList", result);
|
|
| 43 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 44 |
+ |
|
| 45 |
+ return map; |
|
| 46 |
+ } |
|
| 47 |
+ |
|
| 48 |
+ //커뮤니티 관리자 목록을 조회한다. |
|
| 49 |
+ public Map<String, Object> selectCmmntyMngrList(UserInfVO userVO) throws Exception {
|
|
| 50 |
+ List<UserInfVO> result = userInfManageMapper.selectCmmntyMngrList(userVO); |
|
| 51 |
+ int cnt = userInfManageMapper.selectCmmntyMngrListCnt(userVO); |
|
| 52 |
+ |
|
| 53 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 54 |
+ |
|
| 55 |
+ map.put("resultList", result);
|
|
| 56 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 57 |
+ |
|
| 58 |
+ return map; |
|
| 59 |
+ } |
|
| 60 |
+ |
|
| 61 |
+ //커뮤니티 사용자 목록을 조회한다. |
|
| 62 |
+ public Map<String, Object> selectCmmntyUserList(UserInfVO userVO) throws Exception {
|
|
| 63 |
+ List<UserInfVO> result = userInfManageMapper.selectCmmntyUserList(userVO); |
|
| 64 |
+ int cnt = userInfManageMapper.selectCmmntyUserListCnt(userVO); |
|
| 65 |
+ |
|
| 66 |
+ Map<String, Object> map = new HashMap<String, Object>(); |
|
| 67 |
+ |
|
| 68 |
+ map.put("resultList", result);
|
|
| 69 |
+ map.put("resultCnt", Integer.toString(cnt));
|
|
| 70 |
+ |
|
| 71 |
+ return map; |
|
| 72 |
+ } |
|
| 73 |
+ |
|
| 74 |
+ //동호회에 대한 모든 사용자 목록을 조회한다. |
|
| 75 |
+ public List<UserInfVO> selectAllClubUser(UserInfVO userVO) throws Exception {
|
|
| 76 |
+ return userInfManageMapper.selectAllClubUser(userVO); |
|
| 77 |
+ } |
|
| 78 |
+ |
|
| 79 |
+ //커뮤니티에 대한 모든 사용자 목록을 조회한다. |
|
| 80 |
+ public List<UserInfVO> selectAllCmmntyUser(UserInfVO userVO) throws Exception {
|
|
| 81 |
+ return userInfManageMapper.selectAllCmmntyUser(userVO); |
|
| 82 |
+ } |
|
| 83 |
+} |
--- base/src/main/java/egovframework/com/cop/com/web/EgovConfirmController.java
+++ base/src/main/java/egovframework/com/cop/com/web/EgovConfirmController.java
... | ... | @@ -1,6 +1,5 @@ |
| 1 | 1 |
package egovframework.com.cop.com.web; |
| 2 | 2 |
|
| 3 |
-import java.util.List; |
|
| 4 | 3 |
import java.util.Map; |
| 5 | 4 |
|
| 6 | 5 |
import javax.annotation.Resource; |
... | ... | @@ -16,9 +15,8 @@ |
| 16 | 15 |
import egovframework.com.cmm.service.CmmUseService; |
| 17 | 16 |
import egovframework.com.cop.cmy.service.CommunityUser; |
| 18 | 17 |
import egovframework.com.cop.cmy.service.EgovCommunityManageService; |
| 19 |
-import egovframework.com.cop.com.service.ConfirmHistory; |
|
| 20 | 18 |
import egovframework.com.cop.com.service.ConfirmHistoryVO; |
| 21 |
-import egovframework.com.cop.com.service.EgovConfirmManageService; |
|
| 19 |
+import egovframework.com.cop.com.service.ConfirmManageService; |
|
| 22 | 20 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 23 | 21 |
import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
| 24 | 22 |
import egovframework.com.sym.sit.service.SiteManageService; |
... | ... | @@ -28,27 +26,12 @@ |
| 28 | 26 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 29 | 27 |
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; |
| 30 | 28 |
|
| 31 |
-/** |
|
| 32 |
- * 승인정보 관리를 위한 컨트롤러 클래스 |
|
| 33 |
- * @author 공통서비스개발팀 이삼섭 |
|
| 34 |
- * @since 2009.06.01 |
|
| 35 |
- * @version 1.0 |
|
| 36 |
- * @see |
|
| 37 |
- * |
|
| 38 |
- * <pre> |
|
| 39 |
- * << 개정이력(Modification Information) >> |
|
| 40 |
- * |
|
| 41 |
- * 수정일 수정자 수정내용 |
|
| 42 |
- * ------- -------- --------------------------- |
|
| 43 |
- * 2009.4.10 이삼섭 최초 생성 |
|
| 44 |
- * |
|
| 45 |
- * </pre> |
|
| 46 |
- */ |
|
| 29 |
+//승인정보 관리를 위한 컨트롤러 클래스 |
|
| 47 | 30 |
@Controller |
| 48 | 31 |
public class EgovConfirmController {
|
| 49 | 32 |
|
| 50 | 33 |
@Resource(name = "EgovConfirmManageService") |
| 51 |
- private EgovConfirmManageService confmService; |
|
| 34 |
+ private ConfirmManageService confmService; |
|
| 52 | 35 |
|
| 53 | 36 |
@Resource(name = "propertiesService") |
| 54 | 37 |
protected EgovPropertyService propertyService; |
... | ... | @@ -64,13 +47,8 @@ |
| 64 | 47 |
|
| 65 | 48 |
Logger log = Logger.getLogger(this.getClass()); |
| 66 | 49 |
|
| 67 |
- /** |
|
| 68 |
- * 커뮤니티 운영자 권한을 확인한다. |
|
| 69 |
- * |
|
| 70 |
- * @param history |
|
| 71 |
- * @throws EgovBizException |
|
| 72 |
- */ |
|
| 73 |
- protected void checkAuthority(ConfirmHistory history, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 50 |
+ //커뮤니티 운영자 권한을 확인한다. |
|
| 51 |
+ protected void checkAuthority(ConfirmHistoryVO history, HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
| 74 | 52 |
String targetId = history.getTrgetId(); |
| 75 | 53 |
|
| 76 | 54 |
LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); |
... | ... | @@ -93,16 +71,7 @@ |
| 93 | 71 |
} |
| 94 | 72 |
} |
| 95 | 73 |
|
| 96 |
- /** |
|
| 97 |
- * 승인(탈퇴)요청에 대한 목록을 조회한다. |
|
| 98 |
- * |
|
| 99 |
- * @param historyvO |
|
| 100 |
- * @param sessionVO |
|
| 101 |
- * @param status |
|
| 102 |
- * @param model |
|
| 103 |
- * @return |
|
| 104 |
- * @throws Exception |
|
| 105 |
- */ |
|
| 74 |
+ //승인(탈퇴)요청에 대한 목록을 조회한다. |
|
| 106 | 75 |
@RequestMapping("/cop/com/selectConfirmRequest.do")
|
| 107 | 76 |
public String selectConfirmRequest(@ModelAttribute("searchVO") ConfirmHistoryVO historyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
| 108 | 77 |
|
... | ... | @@ -136,15 +105,7 @@ |
| 136 | 105 |
return "cop/com/EgovConfirmList"; |
| 137 | 106 |
} |
| 138 | 107 |
|
| 139 |
- /** |
|
| 140 |
- * 승인(탈퇴)요청 확인 처리를 위해 수정페이지로 이동한다. |
|
| 141 |
- * |
|
| 142 |
- * @param historyVO |
|
| 143 |
- * @param status |
|
| 144 |
- * @param model |
|
| 145 |
- * @return |
|
| 146 |
- * @throws Exception |
|
| 147 |
- */ |
|
| 108 |
+ //승인(탈퇴)요청 확인 처리를 위해 수정페이지로 이동한다. |
|
| 148 | 109 |
@RequestMapping("/cop/com/forUpdateConfirmRequest.do")
|
| 149 | 110 |
public String forUpdateConfirmRequest(@ModelAttribute("searchVO") ConfirmHistoryVO historyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model)
|
| 150 | 111 |
throws Exception {
|
... | ... | @@ -174,18 +135,9 @@ |
| 174 | 135 |
return "cop/com/EgovConfmInfUpdt"; |
| 175 | 136 |
} |
| 176 | 137 |
|
| 177 |
- /** |
|
| 178 |
- * 승인(탈퇴)요청에 대한 확인을 처리한다. |
|
| 179 |
- * |
|
| 180 |
- * @param history |
|
| 181 |
- * @param sessionVO |
|
| 182 |
- * @param status |
|
| 183 |
- * @param model |
|
| 184 |
- * @return |
|
| 185 |
- * @throws Exception |
|
| 186 |
- */ |
|
| 138 |
+ //승인(탈퇴)요청에 대한 확인을 처리한다. |
|
| 187 | 139 |
@RequestMapping("/cop/com/updateConfirmRequest.do")
|
| 188 |
- public String updateConfirmRequest(@ModelAttribute("history") ConfirmHistory history, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
| 140 |
+ public String updateConfirmRequest(@ModelAttribute("history") ConfirmHistoryVO history, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
| 189 | 141 |
if (! "".equals(history.getTrgetId())) {
|
| 190 | 142 |
checkAuthority(history, request, response); // server-side 권한 확인 |
| 191 | 143 |
} |
... | ... | @@ -206,19 +158,9 @@ |
| 206 | 158 |
} |
| 207 | 159 |
} |
| 208 | 160 |
|
| 209 |
- /** |
|
| 210 |
- * 커뮤니티/동호회 관리부분에서 승인(탈퇴)요청에 대한 목록을 조회한다. |
|
| 211 |
- * |
|
| 212 |
- * @param historyvO |
|
| 213 |
- * @param sessionVO |
|
| 214 |
- * @param status |
|
| 215 |
- * @param model |
|
| 216 |
- * @return |
|
| 217 |
- * @throws Exception |
|
| 218 |
- */ |
|
| 161 |
+ //커뮤니티/동호회 관리부분에서 승인(탈퇴)요청에 대한 목록을 조회한다. |
|
| 219 | 162 |
@RequestMapping("/cop/com/selectConfirmRequestByTrget.do")
|
| 220 |
- public String selectConfirmRequestByTrget(@ModelAttribute("searchVO") ConfirmHistoryVO historyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model)
|
|
| 221 |
- throws Exception {
|
|
| 163 |
+ public String selectConfirmRequestByTrget(@ModelAttribute("searchVO") ConfirmHistoryVO historyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception {
|
|
| 222 | 164 |
|
| 223 | 165 |
checkAuthority(historyVO, request, response); // server-side 권한 확인 |
| 224 | 166 |
|
--- base/src/main/java/egovframework/com/cop/com/web/EgovCopUserInfController.java
+++ base/src/main/java/egovframework/com/cop/com/web/EgovCopUserInfController.java
... | ... | @@ -14,7 +14,7 @@ |
| 14 | 14 |
|
| 15 | 15 |
import egovframework.com.cop.cmy.service.CommunityUser; |
| 16 | 16 |
import egovframework.com.cop.cmy.service.EgovCommunityManageService; |
| 17 |
-import egovframework.com.cop.com.service.EgovUserInfManageService; |
|
| 17 |
+import egovframework.com.cop.com.service.UserInfManageService; |
|
| 18 | 18 |
import egovframework.com.cop.com.service.UserInfVO; |
| 19 | 19 |
import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; |
| 20 | 20 |
import egovframework.com.sym.sit.service.SiteManageService; |
... | ... | @@ -46,7 +46,7 @@ |
| 46 | 46 |
public class EgovCopUserInfController {
|
| 47 | 47 |
|
| 48 | 48 |
@Resource(name = "EgovUserInfManageService") |
| 49 |
- private EgovUserInfManageService userInfService; |
|
| 49 |
+ private UserInfManageService userInfService; |
|
| 50 | 50 |
|
| 51 | 51 |
@Resource(name = "EgovCommunityManageService") |
| 52 | 52 |
private EgovCommunityManageService cmmntyService; |
--- base/src/main/java/egovframework/com/cop/sms/service/EgovSmsInfoService.java
... | ... | @@ -1,44 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service; | |
| 2 | - | |
| 3 | -import java.util.Map; | |
| 4 | - | |
| 5 | -/** | |
| 6 | - * 문자메시지를 위한 서비스 인터페이스 클래스 | |
| 7 | - * @author 공통컴포넌트개발팀 한성곤 | |
| 8 | - * @since 2009.06.18 | |
| 9 | - * @version 1.0 | |
| 10 | - * @see | |
| 11 | - * | |
| 12 | - * <pre> | |
| 13 | - * << 개정이력(Modification Information) >> | |
| 14 | - * | |
| 15 | - * 수정일 수정자 수정내용 | |
| 16 | - * ------- -------- --------------------------- | |
| 17 | - * 2009.06.18 한성곤 최초 생성 | |
| 18 | - * | |
| 19 | - * </pre> | |
| 20 | - */ | |
| 21 | -public interface EgovSmsInfoService {
| |
| 22 | - /** | |
| 23 | - * 문자메시지 목록을 조회 한다. | |
| 24 | - * | |
| 25 | - * @param SmsVO | |
| 26 | - */ | |
| 27 | - public Map<String, Object> selectSmsInfs(SmsVO searchVO) throws Exception; | |
| 28 | - | |
| 29 | - /** | |
| 30 | - * 문자메시지를 전송(등록)한다. | |
| 31 | - * | |
| 32 | - * @param sms | |
| 33 | - * @throws Exception | |
| 34 | - */ | |
| 35 | - public void insertSmsInf(Sms sms) throws Exception; | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * 사용자 sms발송서비스.. 사용자 정보를 받아 sms 발송 처리 한다. | |
| 39 | - * @param userId 수신자ID | |
| 40 | - * @param sms 발송정보VO | |
| 41 | - */ | |
| 42 | - public int sendUserSms(String userId, Sms sms) throws Exception; | |
| 43 | - | |
| 44 | -} |
--- base/src/main/java/egovframework/com/cop/sms/service/Sms.java
... | ... | @@ -1,344 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import java.util.List; | |
| 5 | - | |
| 6 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 7 | - | |
| 8 | -/** | |
| 9 | - * 문자메시지 서비스 데이터 처리 모델 | |
| 10 | - * @author 공통컴포넌트개발팀 한성곤 | |
| 11 | - * @since 2009.06.18 | |
| 12 | - * @version 1.0 | |
| 13 | - * @see | |
| 14 | - * | |
| 15 | - * <pre> | |
| 16 | - * << 개정이력(Modification Information) >> | |
| 17 | - * | |
| 18 | - * 수정일 수정자 수정내용 | |
| 19 | - * ------- -------- --------------------------- | |
| 20 | - * 2009.06.18 한성곤 최초 생성 | |
| 21 | - * | |
| 22 | - * </pre> | |
| 23 | - */ | |
| 24 | -@SuppressWarnings("serial")
| |
| 25 | -public class Sms implements Serializable {
| |
| 26 | - | |
| 27 | - /** | |
| 28 | - * 문자메시지 ID | |
| 29 | - */ | |
| 30 | - private String smsId = ""; | |
| 31 | - | |
| 32 | - /** | |
| 33 | - * 전송 전화번호 | |
| 34 | - */ | |
| 35 | - private String trnsmitTelno = ""; | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * 수신 전화번호 | |
| 39 | - */ | |
| 40 | - private String recptnTelnoSingle = ""; | |
| 41 | - | |
| 42 | - /** | |
| 43 | - * 전송 내용 | |
| 44 | - */ | |
| 45 | - private String trnsmitCn = ""; | |
| 46 | - | |
| 47 | - /** | |
| 48 | - * 수신 전화번호 개수 | |
| 49 | - */ | |
| 50 | - private int recptnCnt = 0; | |
| 51 | - | |
| 52 | - /** | |
| 53 | - * 유일 아이디 | |
| 54 | - */ | |
| 55 | - private String uniqId = ""; | |
| 56 | - | |
| 57 | - /** | |
| 58 | - * 최초등록자 아이디 | |
| 59 | - */ | |
| 60 | - private String frstRegisterId = ""; | |
| 61 | - | |
| 62 | - /** | |
| 63 | - * 최초 등록자명 | |
| 64 | - */ | |
| 65 | - private String frstRegisterNm = ""; | |
| 66 | - | |
| 67 | - /** | |
| 68 | - * 최초등록시점 | |
| 69 | - */ | |
| 70 | - private String frstRegisterPnttm = ""; | |
| 71 | - | |
| 72 | - /** | |
| 73 | - * 수신 정보 List | |
| 74 | - */ | |
| 75 | - private List<SmsRecptn> recptn = null; | |
| 76 | - | |
| 77 | - /** | |
| 78 | - * 수전 전화번호 배열 | |
| 79 | - */ | |
| 80 | - private List<String> recptnTelno = null; | |
| 81 | - | |
| 82 | - /**예약여부*/ | |
| 83 | - private String reservationAt = "N"; | |
| 84 | - | |
| 85 | - /**MMS제목*/ | |
| 86 | - private String subject = null; | |
| 87 | - | |
| 88 | - /** | |
| 89 | - * 관리자여부 | |
| 90 | - */ | |
| 91 | - private String adminAt = "N"; | |
| 92 | - | |
| 93 | - public String getSubject() {
| |
| 94 | - return subject; | |
| 95 | - } | |
| 96 | - | |
| 97 | - public void setSubject(String subject) {
| |
| 98 | - this.subject = subject; | |
| 99 | - } | |
| 100 | - | |
| 101 | - public int getFileCnt() {
| |
| 102 | - return fileCnt; | |
| 103 | - } | |
| 104 | - | |
| 105 | - public void setFileCnt(int fileCnt) {
| |
| 106 | - this.fileCnt = fileCnt; | |
| 107 | - } | |
| 108 | - | |
| 109 | - public String getFilePath() {
| |
| 110 | - return filePath; | |
| 111 | - } | |
| 112 | - | |
| 113 | - public void setFilePath(String filePath) {
| |
| 114 | - this.filePath = filePath; | |
| 115 | - } | |
| 116 | - | |
| 117 | - /**첨부파일 갯수*/ | |
| 118 | - private int fileCnt = 1; | |
| 119 | - | |
| 120 | - /**첨부파일 경로*/ | |
| 121 | - private String filePath = null; | |
| 122 | - | |
| 123 | - | |
| 124 | - /** | |
| 125 | - * 예약일자 | |
| 126 | - * 포맷 : 2010-05-30 10:15:20 | |
| 127 | - */ | |
| 128 | - private String reservationDateString = null; | |
| 129 | - | |
| 130 | - public String getReservationDateString() {
| |
| 131 | - return reservationDateString; | |
| 132 | - } | |
| 133 | - | |
| 134 | - public void setReservationDateString(String reservationDateString) {
| |
| 135 | - this.reservationDateString = reservationDateString; | |
| 136 | - } | |
| 137 | - | |
| 138 | - public String getReservationAt() {
| |
| 139 | - return reservationAt; | |
| 140 | - } | |
| 141 | - | |
| 142 | - public void setReservationAt(String reservationAt) {
| |
| 143 | - this.reservationAt = reservationAt; | |
| 144 | - } | |
| 145 | - | |
| 146 | - /** | |
| 147 | - * smsId attribute를 리턴한다. | |
| 148 | - * @return the smsId | |
| 149 | - */ | |
| 150 | - public String getSmsId() {
| |
| 151 | - return smsId; | |
| 152 | - } | |
| 153 | - | |
| 154 | - /** | |
| 155 | - * smsId attribute 값을 설정한다. | |
| 156 | - * @param smsId the smsId to set | |
| 157 | - */ | |
| 158 | - public void setSmsId(String smsId) {
| |
| 159 | - this.smsId = smsId; | |
| 160 | - } | |
| 161 | - | |
| 162 | - /** | |
| 163 | - * trnsmitTelno attribute를 리턴한다. | |
| 164 | - * @return the trnsmitTelno | |
| 165 | - */ | |
| 166 | - public String getTrnsmitTelno() {
| |
| 167 | - return trnsmitTelno; | |
| 168 | - } | |
| 169 | - | |
| 170 | - /** | |
| 171 | - * trnsmitTelno attribute 값을 설정한다. | |
| 172 | - * @param trnsmitTelno the trnsmitTelno to set | |
| 173 | - */ | |
| 174 | - public void setTrnsmitTelno(String trnsmitTelno) {
| |
| 175 | - this.trnsmitTelno = trnsmitTelno; | |
| 176 | - } | |
| 177 | - | |
| 178 | - /** | |
| 179 | - * trnsmitCn attribute를 리턴한다. | |
| 180 | - * @return the trnsmitCn | |
| 181 | - */ | |
| 182 | - public String getTrnsmitCn() {
| |
| 183 | - return trnsmitCn; | |
| 184 | - } | |
| 185 | - | |
| 186 | - /** | |
| 187 | - * trnsmitCn attribute 값을 설정한다. | |
| 188 | - * @param trnsmitCn the trnsmitCn to set | |
| 189 | - */ | |
| 190 | - public void setTrnsmitCn(String trnsmitCn) {
| |
| 191 | - this.trnsmitCn = trnsmitCn; | |
| 192 | - } | |
| 193 | - | |
| 194 | - /** | |
| 195 | - * frstRegisterId attribute를 리턴한다. | |
| 196 | - * @return the frstRegisterId | |
| 197 | - */ | |
| 198 | - public String getFrstRegisterId() {
| |
| 199 | - return frstRegisterId; | |
| 200 | - } | |
| 201 | - | |
| 202 | - /** | |
| 203 | - * frstRegisterId attribute 값을 설정한다. | |
| 204 | - * @param frstRegisterId the frstRegisterId to set | |
| 205 | - */ | |
| 206 | - public void setFrstRegisterId(String frstRegisterId) {
| |
| 207 | - this.frstRegisterId = frstRegisterId; | |
| 208 | - } | |
| 209 | - | |
| 210 | - /** | |
| 211 | - * frstRegisterNm attribute를 리턴한다. | |
| 212 | - * @return the frstRegisterNm | |
| 213 | - */ | |
| 214 | - public String getFrstRegisterNm() {
| |
| 215 | - return frstRegisterNm; | |
| 216 | - } | |
| 217 | - | |
| 218 | - /** | |
| 219 | - * frstRegisterNm attribute 값을 설정한다. | |
| 220 | - * @param frstRegisterNm the frstRegisterNm to set | |
| 221 | - */ | |
| 222 | - public void setFrstRegisterNm(String frstRegisterNm) {
| |
| 223 | - this.frstRegisterNm = frstRegisterNm; | |
| 224 | - } | |
| 225 | - | |
| 226 | - /** | |
| 227 | - * frstRegisterPnttm attribute를 리턴한다. | |
| 228 | - * @return the frstRegisterPnttm | |
| 229 | - */ | |
| 230 | - public String getFrstRegisterPnttm() {
| |
| 231 | - return frstRegisterPnttm; | |
| 232 | - } | |
| 233 | - | |
| 234 | - /** | |
| 235 | - * frstRegisterPnttm attribute 값을 설정한다. | |
| 236 | - * @param frstRegisterPnttm the frstRegisterPnttm to set | |
| 237 | - */ | |
| 238 | - public void setFrstRegisterPnttm(String frstRegisterPnttm) {
| |
| 239 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 240 | - } | |
| 241 | - | |
| 242 | - /** | |
| 243 | - * recptn attribute를 리턴한다. | |
| 244 | - * @return the recptn | |
| 245 | - */ | |
| 246 | - public List<SmsRecptn> getRecptn() {
| |
| 247 | - return recptn; | |
| 248 | - } | |
| 249 | - | |
| 250 | - /** | |
| 251 | - * recptn attribute 값을 설정한다. | |
| 252 | - * @param recptn the recptn to set | |
| 253 | - */ | |
| 254 | - public void setRecptn(List<SmsRecptn> recptn) {
| |
| 255 | - this.recptn = recptn; | |
| 256 | - } | |
| 257 | - | |
| 258 | - /** | |
| 259 | - * uniqId attribute를 리턴한다. | |
| 260 | - * @return the uniqId | |
| 261 | - */ | |
| 262 | - public String getUniqId() {
| |
| 263 | - return uniqId; | |
| 264 | - } | |
| 265 | - | |
| 266 | - /** | |
| 267 | - * uniqId attribute 값을 설정한다. | |
| 268 | - * @param uniqId the uniqId to set | |
| 269 | - */ | |
| 270 | - public void setUniqId(String uniqId) {
| |
| 271 | - this.uniqId = uniqId; | |
| 272 | - } | |
| 273 | - | |
| 274 | - /** | |
| 275 | - * recptnCnt attribute를 리턴한다. | |
| 276 | - * @return the recptnCnt | |
| 277 | - */ | |
| 278 | - public int getRecptnCnt() {
| |
| 279 | - return recptnCnt; | |
| 280 | - } | |
| 281 | - | |
| 282 | - /** | |
| 283 | - * recptnCnt attribute 값을 설정한다. | |
| 284 | - * @param recptnCnt the recptnCnt to set | |
| 285 | - */ | |
| 286 | - public void setRecptnCnt(int recptnCnt) {
| |
| 287 | - this.recptnCnt = recptnCnt; | |
| 288 | - } | |
| 289 | - | |
| 290 | - /** | |
| 291 | - * recptnTelno attribute를 리턴한다. | |
| 292 | - * @return the recptnTelno | |
| 293 | - */ | |
| 294 | - public List<String> getRecptnTelno() {
| |
| 295 | - return recptnTelno; | |
| 296 | - } | |
| 297 | - | |
| 298 | - /** | |
| 299 | - * recptnTelno attribute 값을 설정한다. | |
| 300 | - * @param recptnTelno the recptnTelno to set | |
| 301 | - */ | |
| 302 | - public void setRecptnTelno(List<String> recptnTelno) {
| |
| 303 | - this.recptnTelno = recptnTelno; | |
| 304 | - } | |
| 305 | - | |
| 306 | - /** | |
| 307 | - * recptnTelnoSingle attribute를 리턴한다. | |
| 308 | - * @return the recptnTelnoSingle | |
| 309 | - */ | |
| 310 | - public String getRecptnTelnoSingle() {
| |
| 311 | - return recptnTelnoSingle; | |
| 312 | - } | |
| 313 | - | |
| 314 | - /** | |
| 315 | - * recptnTelnoSingle attribute 값을 설정한다. | |
| 316 | - * @param recptnTelnoSingle the recptnTelnoSingle to set | |
| 317 | - */ | |
| 318 | - public void setRecptnTelnoSingle(String recptnTelnoSingle) {
| |
| 319 | - this.recptnTelnoSingle = recptnTelnoSingle; | |
| 320 | - } | |
| 321 | - | |
| 322 | - /** | |
| 323 | - * toString 메소드를 대치한다. | |
| 324 | - */ | |
| 325 | - public String toString() {
| |
| 326 | - return ToStringBuilder.reflectionToString(this); | |
| 327 | - } | |
| 328 | - | |
| 329 | - /** | |
| 330 | - * adminAt attribute를 리턴한다. | |
| 331 | - * @return the adminAt | |
| 332 | - */ | |
| 333 | - public String getAdminAt() {
| |
| 334 | - return adminAt; | |
| 335 | - } | |
| 336 | - | |
| 337 | - /** | |
| 338 | - * siteId attribute 값을 설정한다. | |
| 339 | - * @param siteId the siteId to set | |
| 340 | - */ | |
| 341 | - public void setAdminAt(String adminAt) {
| |
| 342 | - this.adminAt = adminAt; | |
| 343 | - } | |
| 344 | -} |
+++ base/src/main/java/egovframework/com/cop/sms/service/SmsInfoService.java
... | ... | @@ -0,0 +1,16 @@ |
| 1 | +package egovframework.com.cop.sms.service; | |
| 2 | + | |
| 3 | +import java.util.Map; | |
| 4 | + | |
| 5 | +//문자메시지를 위한 서비스 인터페이스 클래스 | |
| 6 | +public interface SmsInfoService { | |
| 7 | + //문자메시지 목록을 조회 한다. | |
| 8 | + public Map<String, Object> selectSmsInfs(SmsVO searchVO) throws Exception; | |
| 9 | + | |
| 10 | + //문자메시지를 전송(등록)한다. | |
| 11 | + public void insertSmsInf(SmsVO sms) throws Exception; | |
| 12 | + | |
| 13 | + //사용자 sms발송서비스.. 사용자 정보를 받아 sms 발송 처리 한다. | |
| 14 | + public int sendUserSms(String userId, SmsVO sms) throws Exception; | |
| 15 | + | |
| 16 | +} |
--- base/src/main/java/egovframework/com/cop/sms/service/SmsRecptn.java
... | ... | @@ -1,115 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * 문자메시지 서비스 데이터 처리 모델 | |
| 9 | - * @author 공통컴포넌트개발팀 한성곤 | |
| 10 | - * @since 2009.06.18 | |
| 11 | - * @version 1.0 | |
| 12 | - * @see | |
| 13 | - * | |
| 14 | - * <pre> | |
| 15 | - * << 개정이력(Modification Information) >> | |
| 16 | - * | |
| 17 | - * 수정일 수정자 수정내용 | |
| 18 | - * ------- -------- --------------------------- | |
| 19 | - * 2009.06.18 한성곤 최초 생성 | |
| 20 | - * | |
| 21 | - * </pre> | |
| 22 | - */ | |
| 23 | -@SuppressWarnings("serial")
| |
| 24 | -public class SmsRecptn implements Serializable {
| |
| 25 | - /** | |
| 26 | - * 문자메시지 ID | |
| 27 | - */ | |
| 28 | - private String smsId = ""; | |
| 29 | - | |
| 30 | - /** | |
| 31 | - * 수신 전화번호 | |
| 32 | - */ | |
| 33 | - private String recptnTelno = ""; | |
| 34 | - | |
| 35 | - /** | |
| 36 | - * 결과코드 | |
| 37 | - */ | |
| 38 | - private String resultCode = ""; | |
| 39 | - | |
| 40 | - /** | |
| 41 | - * 결과메시지 | |
| 42 | - */ | |
| 43 | - private String resultMssage = ""; | |
| 44 | - | |
| 45 | - /** | |
| 46 | - * smsId attribute를 리턴한다. | |
| 47 | - * @return the smsId | |
| 48 | - */ | |
| 49 | - public String getSmsId() {
| |
| 50 | - return smsId; | |
| 51 | - } | |
| 52 | - | |
| 53 | - /** | |
| 54 | - * smsId attribute 값을 설정한다. | |
| 55 | - * @param smsId the smsId to set | |
| 56 | - */ | |
| 57 | - public void setSmsId(String smsId) {
| |
| 58 | - this.smsId = smsId; | |
| 59 | - } | |
| 60 | - | |
| 61 | - /** | |
| 62 | - * recptnTelno attribute를 리턴한다. | |
| 63 | - * @return the recptnTelno | |
| 64 | - */ | |
| 65 | - public String getRecptnTelno() {
| |
| 66 | - return recptnTelno; | |
| 67 | - } | |
| 68 | - | |
| 69 | - /** | |
| 70 | - * recptnTelno attribute 값을 설정한다. | |
| 71 | - * @param recptnTelno the recptnTelno to set | |
| 72 | - */ | |
| 73 | - public void setRecptnTelno(String recptnTelno) {
| |
| 74 | - this.recptnTelno = recptnTelno; | |
| 75 | - } | |
| 76 | - | |
| 77 | - /** | |
| 78 | - * resultCode attribute를 리턴한다. | |
| 79 | - * @return the resultCode | |
| 80 | - */ | |
| 81 | - public String getResultCode() {
| |
| 82 | - return resultCode; | |
| 83 | - } | |
| 84 | - | |
| 85 | - /** | |
| 86 | - * resultCode attribute 값을 설정한다. | |
| 87 | - * @param resultCode the resultCode to set | |
| 88 | - */ | |
| 89 | - public void setResultCode(String resultCode) {
| |
| 90 | - this.resultCode = resultCode; | |
| 91 | - } | |
| 92 | - | |
| 93 | - /** | |
| 94 | - * resultMssage attribute를 리턴한다. | |
| 95 | - * @return the resultMssage | |
| 96 | - */ | |
| 97 | - public String getResultMssage() {
| |
| 98 | - return resultMssage; | |
| 99 | - } | |
| 100 | - | |
| 101 | - /** | |
| 102 | - * resultMssage attribute 값을 설정한다. | |
| 103 | - * @param resultMssage the resultMssage to set | |
| 104 | - */ | |
| 105 | - public void setResultMssage(String resultMssage) {
| |
| 106 | - this.resultMssage = resultMssage; | |
| 107 | - } | |
| 108 | - | |
| 109 | - /** | |
| 110 | - * toString 메소드를 대치한다. | |
| 111 | - */ | |
| 112 | - public String toString() {
| |
| 113 | - return ToStringBuilder.reflectionToString(this); | |
| 114 | - } | |
| 115 | -} |
--- base/src/main/java/egovframework/com/cop/sms/service/SmsSenderService.java
+++ base/src/main/java/egovframework/com/cop/sms/service/SmsSenderService.java
... | ... | @@ -2,19 +2,9 @@ |
| 2 | 2 |
|
| 3 | 3 |
public interface SmsSenderService {
|
| 4 | 4 |
|
| 5 |
- /** |
|
| 6 |
- * 사용자 정보를 받아 sms 발송 처리 한다. |
|
| 7 |
- * SMS수신여부 관계없이 무조건 전송한다 |
|
| 8 |
- * @param strMsg 메세지본문 |
|
| 9 |
- * @param userId 수신자ID |
|
| 10 |
- */ |
|
| 5 |
+ //사용자 정보를 받아 sms 발송 처리 한다. |
|
| 11 | 6 |
public boolean sendSmsSender(String userId, String moblphonNo, String strMsg) throws Exception; |
| 12 | 7 |
|
| 13 |
- /** |
|
| 14 |
- * 사용자 정보를 받아 MMS정보를 처리 한다. |
|
| 15 |
- * SMS수신여부 관계없이 무조건 전송한다 |
|
| 16 |
- * @param strMsg 메세지본문 |
|
| 17 |
- * @param userId 수신자ID |
|
| 18 |
- */ |
|
| 8 |
+ //사용자 정보를 받아 MMS정보를 처리 한다. |
|
| 19 | 9 |
public boolean sendMmsSender(String userId, String moblphonNo, String strMsg, int fileCnt, String filePath) throws Exception; |
| 20 | 10 |
} |
--- base/src/main/java/egovframework/com/cop/sms/service/SmsVO.java
+++ base/src/main/java/egovframework/com/cop/sms/service/SmsVO.java
... | ... | @@ -1,239 +1,185 @@ |
| 1 | 1 |
package egovframework.com.cop.sms.service; |
| 2 | 2 |
|
| 3 |
+import egovframework.com.cmm.ComDefaultVO; |
|
| 3 | 4 |
import org.apache.commons.lang.builder.ToStringBuilder; |
| 4 | 5 |
|
| 5 |
-/** |
|
| 6 |
- * 문자메시지 서비스를 위한 VO 클래스 |
|
| 7 |
- * @author 공통컴포넌트개발팀 한성곤 |
|
| 8 |
- * @since 2009.06.18 |
|
| 9 |
- * @version 1.0 |
|
| 10 |
- * @see |
|
| 11 |
- * |
|
| 12 |
- * <pre> |
|
| 13 |
- * << 개정이력(Modification Information) >> |
|
| 14 |
- * |
|
| 15 |
- * 수정일 수정자 수정내용 |
|
| 16 |
- * ------- -------- --------------------------- |
|
| 17 |
- * 2009.06.18 한성곤 최초 생성 |
|
| 18 |
- * |
|
| 19 |
- * </pre> |
|
| 20 |
- */ |
|
| 21 |
-@SuppressWarnings("serial")
|
|
| 22 |
-public class SmsVO extends Sms {
|
|
| 23 |
- /** |
|
| 24 |
- * 검색조건 |
|
| 25 |
- */ |
|
| 26 |
- private String searchCnd = ""; |
|
| 27 |
- |
|
| 28 |
- /** |
|
| 29 |
- * 검색단어 |
|
| 30 |
- */ |
|
| 31 |
- private String searchWrd = ""; |
|
| 32 |
- |
|
| 33 |
- /** |
|
| 34 |
- * 정렬순서(DESC,ASC) |
|
| 35 |
- */ |
|
| 36 |
- private String sortOrdr = ""; |
|
| 37 |
- |
|
| 38 |
- /** |
|
| 39 |
- * 현재페이지 |
|
| 40 |
- */ |
|
| 41 |
- private int pageIndex = 1; |
|
| 6 |
+import java.util.List; |
|
| 42 | 7 |
|
| 43 |
- /** |
|
| 44 |
- * 페이지갯수 |
|
| 45 |
- */ |
|
| 46 |
- private int pageUnit = 10; |
|
| 8 |
+//문자메시지 서비스를 위한 VO 클래스 |
|
| 9 |
+public class SmsVO extends ComDefaultVO {
|
|
| 10 |
+ //문자메시지 ID |
|
| 11 |
+ private String smsId = ""; |
|
| 47 | 12 |
|
| 48 |
- /** |
|
| 49 |
- * 페이지사이즈 |
|
| 50 |
- */ |
|
| 51 |
- private int pageSize = 10; |
|
| 13 |
+ //전송 전화번호 |
|
| 14 |
+ private String trnsmitTelno = ""; |
|
| 52 | 15 |
|
| 53 |
- /** |
|
| 54 |
- * firstIndex |
|
| 55 |
- */ |
|
| 56 |
- private int firstIndex = 1; |
|
| 16 |
+ //수신 전화번호 |
|
| 17 |
+ private String recptnTelnoSingle = ""; |
|
| 57 | 18 |
|
| 58 |
- /** |
|
| 59 |
- * lastIndex |
|
| 60 |
- */ |
|
| 61 |
- private int lastIndex = 1; |
|
| 19 |
+ //전송 내용 |
|
| 20 |
+ private String trnsmitCn = ""; |
|
| 62 | 21 |
|
| 63 |
- /** |
|
| 64 |
- * recordCountPerPage |
|
| 65 |
- */ |
|
| 66 |
- private int recordCountPerPage = 10; |
|
| 22 |
+ //수신 전화번호 개수 |
|
| 23 |
+ private int recptnCnt = 0; |
|
| 67 | 24 |
|
| 68 |
- /** |
|
| 69 |
- * rowNo |
|
| 70 |
- */ |
|
| 25 |
+ //수신 정보 List |
|
| 26 |
+ private List<SmsVO> recptn = null; |
|
| 27 |
+ |
|
| 28 |
+ //수전 전화번호 |
|
| 29 |
+ private String recptnTelno; |
|
| 30 |
+ |
|
| 31 |
+ //수전 전화번호 배열 |
|
| 32 |
+ private List<String> recptnTelnoList = null; |
|
| 33 |
+ |
|
| 34 |
+ //예약여부 |
|
| 35 |
+ private String reservationAt = "N"; |
|
| 36 |
+ |
|
| 37 |
+ //MMS제목 |
|
| 38 |
+ private String subject = null; |
|
| 39 |
+ |
|
| 40 |
+ //첨부파일 갯수 |
|
| 41 |
+ private int fileCnt = 1; |
|
| 42 |
+ |
|
| 43 |
+ //첨부파일 경로 |
|
| 44 |
+ private String filePath = null; |
|
| 45 |
+ |
|
| 46 |
+ //예약일자 |
|
| 47 |
+ private String reservationDateString = null; |
|
| 48 |
+ |
|
| 49 |
+ //rowNo |
|
| 71 | 50 |
private int rowNo = 0; |
| 72 | 51 |
|
| 73 |
- /** |
|
| 74 |
- * searchCnd attribute를 리턴한다. |
|
| 75 |
- * @return the searchCnd |
|
| 76 |
- */ |
|
| 77 |
- public String getSearchCnd() {
|
|
| 78 |
- return searchCnd; |
|
| 52 |
+ //결과코드 |
|
| 53 |
+ private String resultCode = ""; |
|
| 54 |
+ |
|
| 55 |
+ //결과메시지 |
|
| 56 |
+ private String resultMssage = ""; |
|
| 57 |
+ |
|
| 58 |
+ public String getSmsId() {
|
|
| 59 |
+ return smsId; |
|
| 79 | 60 |
} |
| 80 | 61 |
|
| 81 |
- /** |
|
| 82 |
- * searchCnd attribute 값을 설정한다. |
|
| 83 |
- * @param searchCnd the searchCnd to set |
|
| 84 |
- */ |
|
| 85 |
- public void setSearchCnd(String searchCnd) {
|
|
| 86 |
- this.searchCnd = searchCnd; |
|
| 62 |
+ public void setSmsId(String smsId) {
|
|
| 63 |
+ this.smsId = smsId; |
|
| 87 | 64 |
} |
| 88 | 65 |
|
| 89 |
- /** |
|
| 90 |
- * searchWrd attribute를 리턴한다. |
|
| 91 |
- * @return the searchWrd |
|
| 92 |
- */ |
|
| 93 |
- public String getSearchWrd() {
|
|
| 94 |
- return searchWrd; |
|
| 66 |
+ public String getTrnsmitTelno() {
|
|
| 67 |
+ return trnsmitTelno; |
|
| 95 | 68 |
} |
| 96 | 69 |
|
| 97 |
- /** |
|
| 98 |
- * searchWrd attribute 값을 설정한다. |
|
| 99 |
- * @param searchWrd the searchWrd to set |
|
| 100 |
- */ |
|
| 101 |
- public void setSearchWrd(String searchWrd) {
|
|
| 102 |
- this.searchWrd = searchWrd; |
|
| 70 |
+ public void setTrnsmitTelno(String trnsmitTelno) {
|
|
| 71 |
+ this.trnsmitTelno = trnsmitTelno; |
|
| 103 | 72 |
} |
| 104 | 73 |
|
| 105 |
- /** |
|
| 106 |
- * sortOrdr attribute를 리턴한다. |
|
| 107 |
- * @return the sortOrdr |
|
| 108 |
- */ |
|
| 109 |
- public String getSortOrdr() {
|
|
| 110 |
- return sortOrdr; |
|
| 74 |
+ public String getRecptnTelnoSingle() {
|
|
| 75 |
+ return recptnTelnoSingle; |
|
| 111 | 76 |
} |
| 112 | 77 |
|
| 113 |
- /** |
|
| 114 |
- * sortOrdr attribute 값을 설정한다. |
|
| 115 |
- * @param sortOrdr the sortOrdr to set |
|
| 116 |
- */ |
|
| 117 |
- public void setSortOrdr(String sortOrdr) {
|
|
| 118 |
- this.sortOrdr = sortOrdr; |
|
| 78 |
+ public void setRecptnTelnoSingle(String recptnTelnoSingle) {
|
|
| 79 |
+ this.recptnTelnoSingle = recptnTelnoSingle; |
|
| 119 | 80 |
} |
| 120 | 81 |
|
| 121 |
- /** |
|
| 122 |
- * pageIndex attribute를 리턴한다. |
|
| 123 |
- * @return the pageIndex |
|
| 124 |
- */ |
|
| 125 |
- public int getPageIndex() {
|
|
| 126 |
- return pageIndex; |
|
| 82 |
+ public String getTrnsmitCn() {
|
|
| 83 |
+ return trnsmitCn; |
|
| 127 | 84 |
} |
| 128 | 85 |
|
| 129 |
- /** |
|
| 130 |
- * pageIndex attribute 값을 설정한다. |
|
| 131 |
- * @param pageIndex the pageIndex to set |
|
| 132 |
- */ |
|
| 133 |
- public void setPageIndex(int pageIndex) {
|
|
| 134 |
- this.pageIndex = pageIndex; |
|
| 86 |
+ public void setTrnsmitCn(String trnsmitCn) {
|
|
| 87 |
+ this.trnsmitCn = trnsmitCn; |
|
| 135 | 88 |
} |
| 136 | 89 |
|
| 137 |
- /** |
|
| 138 |
- * pageUnit attribute를 리턴한다. |
|
| 139 |
- * @return the pageUnit |
|
| 140 |
- */ |
|
| 141 |
- public int getPageUnit() {
|
|
| 142 |
- return pageUnit; |
|
| 90 |
+ public int getRecptnCnt() {
|
|
| 91 |
+ return recptnCnt; |
|
| 143 | 92 |
} |
| 144 | 93 |
|
| 145 |
- /** |
|
| 146 |
- * pageUnit attribute 값을 설정한다. |
|
| 147 |
- * @param pageUnit the pageUnit to set |
|
| 148 |
- */ |
|
| 149 |
- public void setPageUnit(int pageUnit) {
|
|
| 150 |
- this.pageUnit = pageUnit; |
|
| 94 |
+ public void setRecptnCnt(int recptnCnt) {
|
|
| 95 |
+ this.recptnCnt = recptnCnt; |
|
| 151 | 96 |
} |
| 152 | 97 |
|
| 153 |
- /** |
|
| 154 |
- * pageSize attribute를 리턴한다. |
|
| 155 |
- * @return the pageSize |
|
| 156 |
- */ |
|
| 157 |
- public int getPageSize() {
|
|
| 158 |
- return pageSize; |
|
| 98 |
+ public List<SmsVO> getRecptn() {
|
|
| 99 |
+ return recptn; |
|
| 159 | 100 |
} |
| 160 | 101 |
|
| 161 |
- /** |
|
| 162 |
- * pageSize attribute 값을 설정한다. |
|
| 163 |
- * @param pageSize the pageSize to set |
|
| 164 |
- */ |
|
| 165 |
- public void setPageSize(int pageSize) {
|
|
| 166 |
- this.pageSize = pageSize; |
|
| 102 |
+ public void setRecptn(List<SmsVO> recptn) {
|
|
| 103 |
+ this.recptn = recptn; |
|
| 167 | 104 |
} |
| 168 | 105 |
|
| 169 |
- /** |
|
| 170 |
- * firstIndex attribute를 리턴한다. |
|
| 171 |
- * @return the firstIndex |
|
| 172 |
- */ |
|
| 173 |
- public int getFirstIndex() {
|
|
| 174 |
- return firstIndex; |
|
| 106 |
+ public String getRecptnTelno() {
|
|
| 107 |
+ return recptnTelno; |
|
| 175 | 108 |
} |
| 176 | 109 |
|
| 177 |
- /** |
|
| 178 |
- * firstIndex attribute 값을 설정한다. |
|
| 179 |
- * @param firstIndex the firstIndex to set |
|
| 180 |
- */ |
|
| 181 |
- public void setFirstIndex(int firstIndex) {
|
|
| 182 |
- this.firstIndex = firstIndex; |
|
| 110 |
+ public void setRecptnTelno(String recptnTelno) {
|
|
| 111 |
+ this.recptnTelno = recptnTelno; |
|
| 183 | 112 |
} |
| 184 | 113 |
|
| 185 |
- /** |
|
| 186 |
- * lastIndex attribute를 리턴한다. |
|
| 187 |
- * @return the lastIndex |
|
| 188 |
- */ |
|
| 189 |
- public int getLastIndex() {
|
|
| 190 |
- return lastIndex; |
|
| 114 |
+ public List<String> getRecptnTelnoList() {
|
|
| 115 |
+ return recptnTelnoList; |
|
| 191 | 116 |
} |
| 192 | 117 |
|
| 193 |
- /** |
|
| 194 |
- * lastIndex attribute 값을 설정한다. |
|
| 195 |
- * @param lastIndex the lastIndex to set |
|
| 196 |
- */ |
|
| 197 |
- public void setLastIndex(int lastIndex) {
|
|
| 198 |
- this.lastIndex = lastIndex; |
|
| 118 |
+ public void setRecptnTelnoList(List<String> recptnTelnoList) {
|
|
| 119 |
+ this.recptnTelnoList = recptnTelnoList; |
|
| 199 | 120 |
} |
| 200 | 121 |
|
| 201 |
- /** |
|
| 202 |
- * recordCountPerPage attribute를 리턴한다. |
|
| 203 |
- * @return the recordCountPerPage |
|
| 204 |
- */ |
|
| 205 |
- public int getRecordCountPerPage() {
|
|
| 206 |
- return recordCountPerPage; |
|
| 122 |
+ public String getReservationAt() {
|
|
| 123 |
+ return reservationAt; |
|
| 207 | 124 |
} |
| 208 | 125 |
|
| 209 |
- /** |
|
| 210 |
- * recordCountPerPage attribute 값을 설정한다. |
|
| 211 |
- * @param recordCountPerPage the recordCountPerPage to set |
|
| 212 |
- */ |
|
| 213 |
- public void setRecordCountPerPage(int recordCountPerPage) {
|
|
| 214 |
- this.recordCountPerPage = recordCountPerPage; |
|
| 126 |
+ public void setReservationAt(String reservationAt) {
|
|
| 127 |
+ this.reservationAt = reservationAt; |
|
| 215 | 128 |
} |
| 216 | 129 |
|
| 217 |
- /** |
|
| 218 |
- * rowNo attribute를 리턴한다. |
|
| 219 |
- * @return the rowNo |
|
| 220 |
- */ |
|
| 130 |
+ public String getSubject() {
|
|
| 131 |
+ return subject; |
|
| 132 |
+ } |
|
| 133 |
+ |
|
| 134 |
+ public void setSubject(String subject) {
|
|
| 135 |
+ this.subject = subject; |
|
| 136 |
+ } |
|
| 137 |
+ |
|
| 138 |
+ public int getFileCnt() {
|
|
| 139 |
+ return fileCnt; |
|
| 140 |
+ } |
|
| 141 |
+ |
|
| 142 |
+ public void setFileCnt(int fileCnt) {
|
|
| 143 |
+ this.fileCnt = fileCnt; |
|
| 144 |
+ } |
|
| 145 |
+ |
|
| 146 |
+ public String getFilePath() {
|
|
| 147 |
+ return filePath; |
|
| 148 |
+ } |
|
| 149 |
+ |
|
| 150 |
+ public void setFilePath(String filePath) {
|
|
| 151 |
+ this.filePath = filePath; |
|
| 152 |
+ } |
|
| 153 |
+ |
|
| 154 |
+ public String getReservationDateString() {
|
|
| 155 |
+ return reservationDateString; |
|
| 156 |
+ } |
|
| 157 |
+ |
|
| 158 |
+ public void setReservationDateString(String reservationDateString) {
|
|
| 159 |
+ this.reservationDateString = reservationDateString; |
|
| 160 |
+ } |
|
| 161 |
+ |
|
| 221 | 162 |
public int getRowNo() {
|
| 222 | 163 |
return rowNo; |
| 223 | 164 |
} |
| 224 | 165 |
|
| 225 |
- /** |
|
| 226 |
- * rowNo attribute 값을 설정한다. |
|
| 227 |
- * @param rowNo the rowNo to set |
|
| 228 |
- */ |
|
| 229 | 166 |
public void setRowNo(int rowNo) {
|
| 230 | 167 |
this.rowNo = rowNo; |
| 231 | 168 |
} |
| 232 |
- |
|
| 233 |
- /** |
|
| 234 |
- * toString 메소드를 대치한다. |
|
| 235 |
- */ |
|
| 236 |
- public String toString() {
|
|
| 237 |
- return ToStringBuilder.reflectionToString(this); |
|
| 169 |
+ |
|
| 170 |
+ public String getResultCode() {
|
|
| 171 |
+ return resultCode; |
|
| 172 |
+ } |
|
| 173 |
+ |
|
| 174 |
+ public void setResultCode(String resultCode) {
|
|
| 175 |
+ this.resultCode = resultCode; |
|
| 176 |
+ } |
|
| 177 |
+ |
|
| 178 |
+ public String getResultMssage() {
|
|
| 179 |
+ return resultMssage; |
|
| 180 |
+ } |
|
| 181 |
+ |
|
| 182 |
+ public void setResultMssage(String resultMssage) {
|
|
| 183 |
+ this.resultMssage = resultMssage; |
|
| 238 | 184 |
} |
| 239 | 185 |
} |
--- base/src/main/java/egovframework/com/cop/sms/service/impl/EgovSmsInfoServiceImpl.java
... | ... | @@ -1,108 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service.impl; | |
| 2 | - | |
| 3 | -import java.util.HashMap; | |
| 4 | -import java.util.List; | |
| 5 | -import java.util.Map; | |
| 6 | - | |
| 7 | -import javax.annotation.Resource; | |
| 8 | - | |
| 9 | -import org.springframework.stereotype.Service; | |
| 10 | - | |
| 11 | -import egovframework.com.cop.sms.service.EgovSmsInfoService; | |
| 12 | -import egovframework.com.cop.sms.service.Sms; | |
| 13 | -import egovframework.com.cop.sms.service.SmsVO; | |
| 14 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 15 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 16 | - | |
| 17 | -/** | |
| 18 | - * 문자메시지를 위한 서비스 구현 클래스 | |
| 19 | - * @author 공통컴포넌트개발팀 한성곤 | |
| 20 | - * @since 2009.06.18 | |
| 21 | - * @version 1.0 | |
| 22 | - * @see | |
| 23 | - * | |
| 24 | - * <pre> | |
| 25 | - * << 개정이력(Modification Information) >> | |
| 26 | - * | |
| 27 | - * 수정일 수정자 수정내용 | |
| 28 | - * ------- -------- --------------------------- | |
| 29 | - * 2009.06.18 한성곤 최초 생성 | |
| 30 | - * | |
| 31 | - * </pre> | |
| 32 | - */ | |
| 33 | -@Service("EgovSmsInfoService")
| |
| 34 | -public class EgovSmsInfoServiceImpl extends EgovAbstractServiceImpl implements EgovSmsInfoService {
| |
| 35 | - | |
| 36 | - @Resource(name="SmsDAO") | |
| 37 | - private SmsDAO smsDao; | |
| 38 | - | |
| 39 | - /** | |
| 40 | - * 문자메시지 목록을 조회 한다. | |
| 41 | - */ | |
| 42 | - public Map<String, Object> selectSmsInfs(SmsVO searchVO) throws Exception {
| |
| 43 | - List<SmsVO> result = smsDao.selectSmsInfs(searchVO); | |
| 44 | - int cnt = smsDao.selectSmsInfsCnt(searchVO); | |
| 45 | - | |
| 46 | - // 전화번호 포맷 처리 | |
| 47 | - for (int i = 0; i < result.size(); i++) {
| |
| 48 | - String phone = result.get(i).getTrnsmitTelno(); | |
| 49 | - result.get(i).setTrnsmitTelno(EgovStringUtil.formatPhoneNumber(phone)); | |
| 50 | - } | |
| 51 | - | |
| 52 | - Map<String, Object> map = new HashMap<String, Object>(); | |
| 53 | - | |
| 54 | - map.put("resultList", result);
| |
| 55 | - map.put("resultCnt", Integer.toString(cnt));
| |
| 56 | - | |
| 57 | - return map; | |
| 58 | - } | |
| 59 | - | |
| 60 | - /** | |
| 61 | - * 문자메시지를 전송(등록)한다. | |
| 62 | - */ | |
| 63 | - public void insertSmsInf(Sms sms) throws Exception {
| |
| 64 | - | |
| 65 | - smsDao.insertSmsInf(sms); | |
| 66 | - } | |
| 67 | - | |
| 68 | - /** | |
| 69 | - * MMS 메시지를 전송(등록)한다. | |
| 70 | - */ | |
| 71 | - public void insertMmsInf(Sms sms) throws Exception {
| |
| 72 | - | |
| 73 | - smsDao.insertMmsInf(sms); | |
| 74 | - } | |
| 75 | - | |
| 76 | - /** | |
| 77 | - * 사용자 sms발송서비스.. 사용자 정보를 받아 sms 발송 처리 한다. | |
| 78 | - * @param userId 수신자ID | |
| 79 | - * @param sms 발송정보VO | |
| 80 | - */ | |
| 81 | - public int sendUserSms(String userId, Sms sms) throws Exception {
| |
| 82 | - | |
| 83 | - int sendCount = 0; | |
| 84 | - if(sms.getRecptnTelno() != null && sms.getRecptnTelno().size()> 0) {
| |
| 85 | - List<String> list = sms.getRecptnTelno(); | |
| 86 | - if(list != null && list.size() > 0) {
| |
| 87 | - | |
| 88 | - Sms smsVO = null; | |
| 89 | - String recptnTelnoSingle = null; | |
| 90 | - for(int i=0; i<list.size(); i++) {
| |
| 91 | - recptnTelnoSingle = list.get(i); | |
| 92 | - | |
| 93 | - smsVO = new Sms(); | |
| 94 | - smsVO.setRecptnTelnoSingle(recptnTelnoSingle); | |
| 95 | - smsVO.setTrnsmitTelno(sms.getTrnsmitTelno()); | |
| 96 | - smsVO.setTrnsmitCn(sms.getTrnsmitCn()); | |
| 97 | - smsVO.setReservationAt(sms.getReservationAt()); | |
| 98 | - smsVO.setReservationDateString(sms.getReservationDateString()); | |
| 99 | - this.insertSmsInf(smsVO); | |
| 100 | - | |
| 101 | - sendCount++; | |
| 102 | - } | |
| 103 | - } | |
| 104 | - } | |
| 105 | - | |
| 106 | - return sendCount; | |
| 107 | - } | |
| 108 | -} |
--- base/src/main/java/egovframework/com/cop/sms/service/impl/SmsDAO.java
... | ... | @@ -1,168 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service.impl; | |
| 2 | - | |
| 3 | -import java.sql.SQLException; | |
| 4 | -import java.util.List; | |
| 5 | - | |
| 6 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | -import org.springframework.stereotype.Repository; | |
| 8 | - | |
| 9 | -import com.ibatis.sqlmap.client.SqlMapClient; | |
| 10 | -import com.ibatis.sqlmap.client.SqlMapExecutor; | |
| 11 | - | |
| 12 | -import egovframework.com.cop.sms.service.Sms; | |
| 13 | -import egovframework.com.cop.sms.service.SmsRecptn; | |
| 14 | -import egovframework.com.cop.sms.service.SmsVO; | |
| 15 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 16 | -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; | |
| 17 | - | |
| 18 | -/** | |
| 19 | - * 문자메시지를 위한 데이터 접근 클래스 | |
| 20 | - * @author 공통컴포넌트개발팀 한성곤 | |
| 21 | - * @since 2009.06.18 | |
| 22 | - * @version 1.0 | |
| 23 | - * @see | |
| 24 | - * | |
| 25 | - * <pre> | |
| 26 | - * << 개정이력(Modification Information) >> | |
| 27 | - * | |
| 28 | - * 수정일 수정자 수정내용 | |
| 29 | - * ------- -------- --------------------------- | |
| 30 | - * 2009.06.18 한성곤 최초 생성 | |
| 31 | - * | |
| 32 | - * </pre> | |
| 33 | - */ | |
| 34 | -@Repository("SmsDAO")
| |
| 35 | -public class SmsDAO extends EgovAbstractDAO {
| |
| 36 | - | |
| 37 | - @Autowired | |
| 38 | - SqlMapClient sqlMapClient; | |
| 39 | - | |
| 40 | - /** | |
| 41 | - * 문자메시지 목록을 조회한다. | |
| 42 | - * | |
| 43 | - * @param SmsVO | |
| 44 | - */ | |
| 45 | - @SuppressWarnings("unchecked")
| |
| 46 | - public List<SmsVO> selectSmsInfs(SmsVO vo) throws Exception {
| |
| 47 | - return (List<SmsVO>)list("SmsDAO.selectSmsInfs", vo);
| |
| 48 | - } | |
| 49 | - | |
| 50 | - /** | |
| 51 | - * 문자메시지 목록 숫자를 조회한다 | |
| 52 | - * | |
| 53 | - * @param SmsVO | |
| 54 | - * @return | |
| 55 | - * @throws Exception | |
| 56 | - */ | |
| 57 | - public int selectSmsInfsCnt(SmsVO vo) throws Exception {
| |
| 58 | - return (Integer)select("SmsDAO.selectSmsInfsCnt", vo);
| |
| 59 | - } | |
| 60 | - | |
| 61 | - /** | |
| 62 | - * 문자메시지 정보를 등록한다. | |
| 63 | - * | |
| 64 | - * @param notification | |
| 65 | - * @return | |
| 66 | - * @throws Exception | |
| 67 | - */ | |
| 68 | - public Object insertSmsInf(final Sms sms) throws Exception {
| |
| 69 | - | |
| 70 | - Exception error = null; | |
| 71 | - | |
| 72 | - if(sms.getRecptnTelno() != null && sms.getRecptnTelno().size()> 0) {
| |
| 73 | - try {
| |
| 74 | - sqlMapClient.startTransaction(); | |
| 75 | - sqlMapClient.startBatch(); | |
| 76 | - | |
| 77 | - Sms sendSmsInfo = null; | |
| 78 | - String recptn = null; | |
| 79 | - List<String> list = sms.getRecptnTelno(); | |
| 80 | - for(int i=0; i<list.size(); i++) {
| |
| 81 | - recptn = list.get(i); | |
| 82 | - | |
| 83 | - sendSmsInfo = new Sms(); | |
| 84 | - sendSmsInfo.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); | |
| 85 | - sendSmsInfo.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(recptn)); | |
| 86 | - sendSmsInfo.setTrnsmitCn(sms.getTrnsmitCn()); | |
| 87 | - sendSmsInfo.setReservationAt(sms.getReservationAt()); | |
| 88 | - sendSmsInfo.setReservationDateString(sms.getReservationDateString()); | |
| 89 | - insert("SmsDAO.insertSmsInf", sendSmsInfo);
| |
| 90 | - } | |
| 91 | - } | |
| 92 | - catch (SQLException e){
| |
| 93 | - error = e; | |
| 94 | - } | |
| 95 | - catch (Exception e){
| |
| 96 | - error = e; | |
| 97 | - } | |
| 98 | - finally{
| |
| 99 | - sqlMapClient.endTransaction(); | |
| 100 | - } | |
| 101 | - | |
| 102 | - if (error != null){
| |
| 103 | - throw error; | |
| 104 | - } | |
| 105 | - } else {
| |
| 106 | - sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(sms.getRecptnTelnoSingle())); | |
| 107 | - sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); | |
| 108 | - return insert("SmsDAO.insertSmsInf", sms);
| |
| 109 | - } | |
| 110 | - return null; | |
| 111 | - } | |
| 112 | - | |
| 113 | - /** | |
| 114 | - * MMS메시지 정보를 등록한다. | |
| 115 | - * | |
| 116 | - * @param notification | |
| 117 | - * @return | |
| 118 | - * @throws Exception | |
| 119 | - */ | |
| 120 | - public Object insertMmsInf(final Sms sms) throws Exception {
| |
| 121 | - | |
| 122 | - Exception error = null; | |
| 123 | - | |
| 124 | - if(sms.getRecptn() != null && sms.getRecptn().size()> 0) {
| |
| 125 | - try {
| |
| 126 | - sqlMapClient.startTransaction(); | |
| 127 | - sqlMapClient.startBatch(); | |
| 128 | - | |
| 129 | - Sms sendSmsInfo = null; | |
| 130 | - SmsRecptn recptn = null; | |
| 131 | - List<SmsRecptn> list = sms.getRecptn(); | |
| 132 | - for(int i=0; i<list.size(); i++) {
| |
| 133 | - recptn = (SmsRecptn)list.get(i); | |
| 134 | - | |
| 135 | - sendSmsInfo = new Sms(); | |
| 136 | - sendSmsInfo.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); | |
| 137 | - sendSmsInfo.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(recptn.getRecptnTelno())); | |
| 138 | - sendSmsInfo.setTrnsmitCn(sms.getTrnsmitCn()); | |
| 139 | - sendSmsInfo.setReservationAt(sms.getReservationAt()); | |
| 140 | - | |
| 141 | - sendSmsInfo.setSubject(sms.getSubject()); | |
| 142 | - sendSmsInfo.setFileCnt(sms.getFileCnt()); | |
| 143 | - sendSmsInfo.setFilePath(sms.getFilePath()); | |
| 144 | - | |
| 145 | - insert("SmsDAO.insertMmsInf", sendSmsInfo);
| |
| 146 | - } | |
| 147 | - } | |
| 148 | - catch (SQLException e){
| |
| 149 | - error = e; | |
| 150 | - } | |
| 151 | - catch (Exception e){
| |
| 152 | - error = e; | |
| 153 | - } | |
| 154 | - finally{
| |
| 155 | - sqlMapClient.endTransaction(); | |
| 156 | - } | |
| 157 | - | |
| 158 | - if (error != null){
| |
| 159 | - throw error; | |
| 160 | - } | |
| 161 | - } else {
| |
| 162 | - sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(sms.getRecptnTelnoSingle())); | |
| 163 | - sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); | |
| 164 | - return insert("SmsDAO.insertMmsInf", sms);
| |
| 165 | - } | |
| 166 | - return null; | |
| 167 | - } | |
| 168 | -} |
+++ base/src/main/java/egovframework/com/cop/sms/service/impl/SmsInfoServiceImpl.java
... | ... | @@ -0,0 +1,80 @@ |
| 1 | +package egovframework.com.cop.sms.service.impl; | |
| 2 | + | |
| 3 | +import java.util.HashMap; | |
| 4 | +import java.util.List; | |
| 5 | +import java.util.Map; | |
| 6 | + | |
| 7 | +import javax.annotation.Resource; | |
| 8 | + | |
| 9 | +import org.springframework.stereotype.Service; | |
| 10 | + | |
| 11 | +import egovframework.com.cop.sms.service.SmsInfoService; | |
| 12 | +import egovframework.com.cop.sms.service.SmsVO; | |
| 13 | +import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 14 | +import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 15 | + | |
| 16 | +//문자메시지를 위한 서비스 구현 클래스 | |
| 17 | +@Service("smsInfoService") | |
| 18 | +public class SmsInfoServiceImpl extends EgovAbstractServiceImpl implements SmsInfoService { | |
| 19 | + | |
| 20 | + @Resource(name="smsMapper") | |
| 21 | + private SmsMapper smsMapper; | |
| 22 | + | |
| 23 | + //문자메시지 목록을 조회 한다. | |
| 24 | + public Map<String, Object> selectSmsInfs(SmsVO searchVO) throws Exception { | |
| 25 | + List<SmsVO> result = smsMapper.selectSmsInfs(searchVO); | |
| 26 | + int cnt = smsMapper.selectSmsInfsCnt(searchVO); | |
| 27 | + | |
| 28 | + // 전화번호 포맷 처리 | |
| 29 | + for (int i = 0; i < result.size(); i++) { | |
| 30 | + String phone = result.get(i).getTrnsmitTelno(); | |
| 31 | + result.get(i).setTrnsmitTelno(EgovStringUtil.formatPhoneNumber(phone)); | |
| 32 | + } | |
| 33 | + | |
| 34 | + Map<String, Object> map = new HashMap<String, Object>(); | |
| 35 | + | |
| 36 | + map.put("resultList", result); | |
| 37 | + map.put("resultCnt", Integer.toString(cnt)); | |
| 38 | + | |
| 39 | + return map; | |
| 40 | + } | |
| 41 | + | |
| 42 | + //문자메시지를 전송(등록)한다. | |
| 43 | + public void insertSmsInf(SmsVO sms) throws Exception { | |
| 44 | + smsMapper.insertSmsInf(sms); | |
| 45 | + } | |
| 46 | + | |
| 47 | + //MMS 메시지를 전송(등록)한다. | |
| 48 | + public void insertMmsInf(SmsVO sms) throws Exception { | |
| 49 | + smsMapper.insertMmsInf(sms); | |
| 50 | + } | |
| 51 | + | |
| 52 | + //사용자 sms발송서비스.. 사용자 정보를 받아 sms 발송 처리 한다. | |
| 53 | + public int sendUserSms(String userId, SmsVO sms) throws Exception { | |
| 54 | + | |
| 55 | + int sendCount = 0; | |
| 56 | + if(sms.getRecptnTelnoList() != null && sms.getRecptnTelnoList().size()> 0) { | |
| 57 | + List<String> list = sms.getRecptnTelnoList(); | |
| 58 | + if(list != null && list.size() > 0) { | |
| 59 | + | |
| 60 | + SmsVO smsVO = null; | |
| 61 | + String recptnTelnoSingle = null; | |
| 62 | + for(int i=0; i<list.size(); i++) { | |
| 63 | + recptnTelnoSingle = list.get(i); | |
| 64 | + | |
| 65 | + smsVO = new SmsVO(); | |
| 66 | + smsVO.setRecptnTelnoSingle(recptnTelnoSingle); | |
| 67 | + smsVO.setTrnsmitTelno(sms.getTrnsmitTelno()); | |
| 68 | + smsVO.setTrnsmitCn(sms.getTrnsmitCn()); | |
| 69 | + smsVO.setReservationAt(sms.getReservationAt()); | |
| 70 | + smsVO.setReservationDateString(sms.getReservationDateString()); | |
| 71 | + this.insertSmsInf(smsVO); | |
| 72 | + | |
| 73 | + sendCount++; | |
| 74 | + } | |
| 75 | + } | |
| 76 | + } | |
| 77 | + | |
| 78 | + return sendCount; | |
| 79 | + } | |
| 80 | +} |
+++ base/src/main/java/egovframework/com/cop/sms/service/impl/SmsMapper.java
... | ... | @@ -0,0 +1,24 @@ |
| 1 | +package egovframework.com.cop.sms.service.impl; | |
| 2 | + | |
| 3 | +import egovframework.com.cop.sms.service.SmsVO; | |
| 4 | +import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 5 | + | |
| 6 | +import java.util.List; | |
| 7 | + | |
| 8 | +//문자메시지를 위한 데이터 접근 클래스 | |
| 9 | +@Mapper("smsMapper") | |
| 10 | +public interface SmsMapper { | |
| 11 | + | |
| 12 | + //문자메시지 목록을 조회한다. | |
| 13 | + public List<SmsVO> selectSmsInfs(SmsVO vo) throws Exception; | |
| 14 | + | |
| 15 | + //문자메시지 목록 숫자를 조회한다 | |
| 16 | + public int selectSmsInfsCnt(SmsVO vo) throws Exception; | |
| 17 | + | |
| 18 | + //문자메시지 정보를 등록한다. | |
| 19 | + public Object insertSmsInf(SmsVO sms) throws Exception; | |
| 20 | + | |
| 21 | + //MMS메시지 정보를 등록한다. | |
| 22 | + public Object insertMmsInf(SmsVO sms) throws Exception; | |
| 23 | + | |
| 24 | +} |
--- base/src/main/java/egovframework/com/cop/sms/service/impl/SmsSenderServiceImpl.java
+++ base/src/main/java/egovframework/com/cop/sms/service/impl/SmsSenderServiceImpl.java
... | ... | @@ -2,77 +2,93 @@ |
| 2 | 2 |
|
| 3 | 3 |
import javax.annotation.Resource; |
| 4 | 4 |
|
| 5 |
+import egovframework.com.cop.sms.service.SmsVO; |
|
| 5 | 6 |
import org.apache.log4j.Logger; |
| 6 | 7 |
import org.springframework.stereotype.Service; |
| 7 | 8 |
|
| 8 | 9 |
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
| 9 |
-import egovframework.com.cop.sms.service.Sms; |
|
| 10 | 10 |
import egovframework.com.cop.sms.service.SmsSenderService; |
| 11 |
-import egovframework.com.cop.sms.service.impl.SmsDAO; |
|
| 12 | 11 |
import egovframework.com.cmm.service.Globals; |
| 13 | 12 |
import egovframework.com.utl.fcc.service.EgovStringUtil; |
| 14 | 13 |
|
| 15 |
-/****************************************************** |
|
| 16 |
- * @Class Name : SmsSenderServiceImpl.java |
|
| 17 |
- * @Program name : egovframework.com.cop.sms.service.impl |
|
| 18 |
- * @Descriptopn : |
|
| 19 |
- * @version : 1.0.0 |
|
| 20 |
- * @author : 이호영 |
|
| 21 |
- * @created date : 2011. 9. 27. |
|
| 22 |
- * Modification log |
|
| 23 |
- * ===================================================== |
|
| 24 |
- * date name description |
|
| 25 |
- * ----------------------------------------------------- |
|
| 26 |
- * 2011. 9. 27. 이호영 first generated |
|
| 27 |
-*********************************************************/ |
|
| 14 |
+import java.util.List; |
|
| 28 | 15 |
|
| 29 |
-@Service("SmsSenderService")
|
|
| 16 |
+ |
|
| 17 |
+@Service("smsSenderService")
|
|
| 30 | 18 |
public class SmsSenderServiceImpl extends EgovAbstractServiceImpl implements SmsSenderService {
|
| 31 | 19 |
|
| 32 |
- /** |
|
| 33 |
- * SmsDAO |
|
| 34 |
- * @uml.property name="SmsDAO" |
|
| 35 |
- * @uml.associationEnd readOnly="true" |
|
| 36 |
- */ |
|
| 37 |
- @Resource(name="SmsDAO") |
|
| 38 |
- private SmsDAO SmsDAO; |
|
| 20 |
+ @Resource(name="smsMapper") |
|
| 21 |
+ private SmsMapper smsMapper; |
|
| 39 | 22 |
|
| 40 | 23 |
Logger log = Logger.getLogger(this.getClass()); |
| 41 | 24 |
|
| 42 |
- /** |
|
| 43 |
- * 사용자 정보를 받아 sms 발송 처리 한다. |
|
| 44 |
- * SMS수신여부 관계없이 무조건 전송한다 |
|
| 45 |
- * @param strMsg 메세지본문 |
|
| 46 |
- * @param userId 수신자ID |
|
| 47 |
- */ |
|
| 25 |
+ //사용자 정보를 받아 sms 발송 처리 한다. |
|
| 48 | 26 |
public boolean sendSmsSender(String userId, String moblphonNo, String strMsg) throws Exception {
|
| 49 | 27 |
|
| 50 |
- Sms sms = new Sms(); |
|
| 28 |
+ SmsVO sms = new SmsVO(); |
|
| 51 | 29 |
sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(moblphonNo)); |
| 52 | 30 |
sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(Globals.PHONE)); |
| 53 | 31 |
sms.setTrnsmitCn(strMsg); |
| 54 |
- |
|
| 55 |
- SmsDAO.insertSmsInf(sms); |
|
| 32 |
+ |
|
| 33 |
+ if(sms.getRecptnTelnoList() != null && sms.getRecptnTelnoList().size()> 0) {
|
|
| 34 |
+ SmsVO sendSmsInfo = null; |
|
| 35 |
+ String recptn = null; |
|
| 36 |
+ List<String> list = sms.getRecptnTelnoList(); |
|
| 37 |
+ for(int i=0; i<list.size(); i++) {
|
|
| 38 |
+ recptn = list.get(i); |
|
| 39 |
+ |
|
| 40 |
+ sendSmsInfo = new SmsVO(); |
|
| 41 |
+ sendSmsInfo.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); |
|
| 42 |
+ sendSmsInfo.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(recptn)); |
|
| 43 |
+ sendSmsInfo.setTrnsmitCn(sms.getTrnsmitCn()); |
|
| 44 |
+ sendSmsInfo.setReservationAt(sms.getReservationAt()); |
|
| 45 |
+ sendSmsInfo.setReservationDateString(sms.getReservationDateString()); |
|
| 46 |
+ smsMapper.insertSmsInf(sendSmsInfo); |
|
| 47 |
+ |
|
| 48 |
+ } |
|
| 49 |
+ } else {
|
|
| 50 |
+ sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(sms.getRecptnTelnoSingle())); |
|
| 51 |
+ sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); |
|
| 52 |
+ smsMapper.insertSmsInf(sms); |
|
| 53 |
+ } |
|
| 56 | 54 |
|
| 57 | 55 |
return true; |
| 58 | 56 |
} |
| 59 | 57 |
|
| 60 |
- /** |
|
| 61 |
- * 사용자 정보를 받아 MMS정보를 처리 한다. |
|
| 62 |
- * SMS수신여부 관계없이 무조건 전송한다 |
|
| 63 |
- * @param strMsg 메세지본문 |
|
| 64 |
- * @param userId 수신자ID |
|
| 65 |
- */ |
|
| 58 |
+ //사용자 정보를 받아 MMS정보를 처리 한다. |
|
| 66 | 59 |
public boolean sendMmsSender(String userId, String moblphonNo, String strMsg, int fileCnt, String filePath) throws Exception {
|
| 67 | 60 |
|
| 68 |
- Sms sms = new Sms(); |
|
| 61 |
+ SmsVO sms = new SmsVO(); |
|
| 69 | 62 |
sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(moblphonNo)); |
| 70 | 63 |
sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(Globals.PHONE)); |
| 71 | 64 |
sms.setTrnsmitCn(strMsg); |
| 72 | 65 |
sms.setFileCnt(fileCnt); |
| 73 | 66 |
sms.setFilePath(filePath); |
| 74 |
- |
|
| 75 |
- SmsDAO.insertMmsInf(sms); |
|
| 67 |
+ |
|
| 68 |
+ if(sms.getRecptn() != null && sms.getRecptn().size()> 0) {
|
|
| 69 |
+ SmsVO sendSmsInfo = null; |
|
| 70 |
+ SmsVO recptn = null; |
|
| 71 |
+ List<SmsVO> list = sms.getRecptn(); |
|
| 72 |
+ for(int i=0; i<list.size(); i++) {
|
|
| 73 |
+ recptn = (SmsVO)list.get(i); |
|
| 74 |
+ |
|
| 75 |
+ sendSmsInfo = new SmsVO(); |
|
| 76 |
+ sendSmsInfo.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); |
|
| 77 |
+ //sendSmsInfo.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(recptn.getRecptnTelno())); |
|
| 78 |
+ sendSmsInfo.setTrnsmitCn(sms.getTrnsmitCn()); |
|
| 79 |
+ sendSmsInfo.setReservationAt(sms.getReservationAt()); |
|
| 80 |
+ |
|
| 81 |
+ sendSmsInfo.setSubject(sms.getSubject()); |
|
| 82 |
+ sendSmsInfo.setFileCnt(sms.getFileCnt()); |
|
| 83 |
+ sendSmsInfo.setFilePath(sms.getFilePath()); |
|
| 84 |
+ |
|
| 85 |
+ smsMapper.insertMmsInf(sendSmsInfo); |
|
| 86 |
+ } |
|
| 87 |
+ } else {
|
|
| 88 |
+ sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(sms.getRecptnTelnoSingle())); |
|
| 89 |
+ sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(sms.getTrnsmitTelno())); |
|
| 90 |
+ smsMapper.insertMmsInf(sms); |
|
| 91 |
+ } |
|
| 76 | 92 |
|
| 77 | 93 |
return true; |
| 78 | 94 |
} |
--- base/src/main/java/egovframework/com/cop/sms/web/UserSmsController.java
... | ... | @@ -1,94 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.web; | |
| 2 | - | |
| 3 | - | |
| 4 | -import javax.annotation.Resource; | |
| 5 | -import javax.servlet.http.HttpServletRequest; | |
| 6 | -import javax.servlet.http.HttpServletResponse; | |
| 7 | - | |
| 8 | -import org.slf4j.Logger; | |
| 9 | -import org.slf4j.LoggerFactory; | |
| 10 | -import org.springframework.stereotype.Controller; | |
| 11 | -import org.springframework.ui.ModelMap; | |
| 12 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 13 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 14 | -import org.springframework.web.bind.annotation.RequestParam; | |
| 15 | - | |
| 16 | -import egovframework.com.cmm.EgovMessageSource; | |
| 17 | -import egovframework.com.cop.sms.service.EgovSmsInfoService; | |
| 18 | -import egovframework.com.cop.sms.service.SmsVO; | |
| 19 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 20 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 21 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 22 | - | |
| 23 | -/** | |
| 24 | - * SmsController 컨트롤러 클래스 | |
| 25 | - * | |
| 26 | - */ | |
| 27 | -@Controller | |
| 28 | -public class UserSmsController {
| |
| 29 | - Logger logger = LoggerFactory.getLogger(this.getClass()); | |
| 30 | - | |
| 31 | - @Resource(name = "EgovSmsInfoService") | |
| 32 | - private EgovSmsInfoService egovSmsInfoService; | |
| 33 | - | |
| 34 | - @Resource(name = "propertiesService") | |
| 35 | - protected EgovPropertyService propertyService; | |
| 36 | - | |
| 37 | - @Resource(name = "egovMessageSource") | |
| 38 | - EgovMessageSource egovMessageSource; | |
| 39 | - | |
| 40 | - @RequestMapping(value = "/hpg/sms/addSms.do") | |
| 41 | - public String addSms(@ModelAttribute("searchVO") SmsVO smsVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 42 | - | |
| 43 | - if(EgovUserDetailsHelper.isAuthenticated(request, response)) {
| |
| 44 | - | |
| 45 | - request.getSession().setAttribute("sessionVO", smsVO);
| |
| 46 | - } | |
| 47 | - | |
| 48 | - return "cop/sms/addSms"; | |
| 49 | - } | |
| 50 | - | |
| 51 | - @RequestMapping(value = "/hpg/sms/insertSms.do") | |
| 52 | - public String insertSms(@ModelAttribute("searchVO") SmsVO smsVO, @RequestParam("returnUrl") String returnUrl, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 53 | - | |
| 54 | - String smsMessage = ""; | |
| 55 | - | |
| 56 | - if(EgovUserDetailsHelper.isAuthenticated(request, response)) {
| |
| 57 | - if(request.getSession().getAttribute("sessionVO") == null) {
| |
| 58 | - return "redirect:" + returnUrl; | |
| 59 | - } | |
| 60 | - | |
| 61 | - if(smsVO.getRecptnTelno() == null) {
| |
| 62 | - smsMessage = "cop.sms.recptnTelno.msg"; | |
| 63 | - //model.addAttribute("smsMessage", "cop.sms.recptnTelno.msg");
| |
| 64 | - } else {
| |
| 65 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 66 | - | |
| 67 | - int iRet = egovSmsInfoService.sendUserSms(user.getId(), smsVO); | |
| 68 | - | |
| 69 | - //성공 | |
| 70 | - if(smsVO.getRecptnTelno().size() == iRet) {
| |
| 71 | - smsMessage = "cop.sms.success"; | |
| 72 | - //model.addAttribute("smsMessage", "cop.sms.success");
| |
| 73 | - } else {
| |
| 74 | - if(iRet == 0) { //모두 실패
| |
| 75 | - smsMessage = "cop.sms.fail.mlg"; | |
| 76 | - //model.addAttribute("smsMessage", "cop.sms.fail.mlg");
| |
| 77 | - } else { //일부 실패
| |
| 78 | - smsMessage = "cop.sms.fail.mlg.some"; | |
| 79 | - //model.addAttribute("smsMessage", "cop.sms.fail.mlg.some");
| |
| 80 | - } | |
| 81 | - } | |
| 82 | - } | |
| 83 | - | |
| 84 | - request.getSession().removeAttribute("sessionVO");
| |
| 85 | - } else {
| |
| 86 | - | |
| 87 | - smsMessage = "fail.common.msg"; | |
| 88 | - //model.addAttribute("smsMessage", "fail.common.login");
| |
| 89 | - } | |
| 90 | - | |
| 91 | - | |
| 92 | - return "redirect:" + returnUrl +"&smsMessage="+smsMessage; | |
| 93 | - } | |
| 94 | -} |
--- base/src/main/java/egovframework/com/cop/sns/web/SnsServiceController.java
... | ... | @@ -1,60 +0,0 @@ |
| 1 | -package egovframework.com.cop.sns.web; | |
| 2 | - | |
| 3 | -import javax.servlet.http.HttpServletRequest; | |
| 4 | -import javax.servlet.http.HttpServletResponse; | |
| 5 | - | |
| 6 | -import org.springframework.stereotype.Controller; | |
| 7 | -import org.springframework.ui.Model; | |
| 8 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 9 | - | |
| 10 | -@Controller | |
| 11 | -public class SnsServiceController {
| |
| 12 | - | |
| 13 | - @RequestMapping("/cop/sns/SendFacebook.do")
| |
| 14 | - public String SendFacebook(HttpServletRequest request, HttpServletResponse response, Model model) {
| |
| 15 | - /* | |
| 16 | - String currentUrl = request.getParameter("currentUrl");
| |
| 17 | - String contents = request.getParameter("contents");
| |
| 18 | - | |
| 19 | - String shortUrl = egovHttpUtil.getShortUrl(currentUrl); | |
| 20 | - String facebook = egovHttpUtil.getFaceBookSendUrl(contents, shortUrl); | |
| 21 | - | |
| 22 | - model.addAttribute("targetUrl", facebook);
| |
| 23 | - model.addAttribute("snsTitle","페이스북");
| |
| 24 | - */ | |
| 25 | - model.addAttribute("snsTitle","페이스북");
| |
| 26 | - return "cop/sns/SendSns"; | |
| 27 | - } | |
| 28 | - | |
| 29 | - @RequestMapping("/cop/sns/SendTwitter.do")
| |
| 30 | - public String SendTwitter(HttpServletRequest request, HttpServletResponse response, Model model) {
| |
| 31 | - /* | |
| 32 | - String currentUrl = request.getParameter("currentUrl");
| |
| 33 | - String contents = request.getParameter("contents");
| |
| 34 | - | |
| 35 | - String shortUrl = egovHttpUtil.getShortUrl(currentUrl); | |
| 36 | - String twitter = egovHttpUtil.getTwitterSendUrl(contents, shortUrl); | |
| 37 | - | |
| 38 | - model.addAttribute("targetUrl", twitter);
| |
| 39 | - model.addAttribute("snsTitle","트위터");
| |
| 40 | - */ | |
| 41 | - model.addAttribute("snsTitle","트위터");
| |
| 42 | - return "cop/sns/SendSns"; | |
| 43 | - } | |
| 44 | - | |
| 45 | - @RequestMapping("/cop/sns/SendM2day.do")
| |
| 46 | - public String SendMe2day(HttpServletRequest request, HttpServletResponse response, Model model) {
| |
| 47 | - /* | |
| 48 | - String currentUrl = request.getParameter("currentUrl");
| |
| 49 | - String contents = request.getParameter("contents");
| |
| 50 | - | |
| 51 | - String shortUrl = egovHttpUtil.getShortUrl(currentUrl); | |
| 52 | - String me2day = egovHttpUtil.getMe2DaySendUrl(contents, shortUrl); | |
| 53 | - | |
| 54 | - model.addAttribute("targetUrl", me2day);
| |
| 55 | - model.addAttribute("snsTitle","미투데이");
| |
| 56 | - */ | |
| 57 | - model.addAttribute("snsTitle","미투데이");
| |
| 58 | - return "cop/sns/SendSns"; | |
| 59 | - } | |
| 60 | -} |
--- base/src/main/java/egovframework/com/cop/svc/web/EgovCopServiceController.java
... | ... | @@ -1,44 +0,0 @@ |
| 1 | -package egovframework.com.cop.svc.web; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | -import javax.servlet.http.HttpServletRequest; | |
| 7 | -import javax.servlet.http.HttpServletResponse; | |
| 8 | - | |
| 9 | -import org.springframework.stereotype.Controller; | |
| 10 | -import org.springframework.ui.ModelMap; | |
| 11 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 12 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 13 | - | |
| 14 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 15 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 16 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 17 | - | |
| 18 | -@Controller | |
| 19 | -public class EgovCopServiceController {
| |
| 20 | - | |
| 21 | - @Resource(name = "EgovCommunityManageService") | |
| 22 | - private EgovCommunityManageService cmmntyService; | |
| 23 | - | |
| 24 | - @RequestMapping("/cop/svc/notifyArticleService.do")
| |
| 25 | - public String notifyArticleService(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 26 | - | |
| 27 | - //param : trgetId (사용자ID) | |
| 28 | - if("Y".equals(boardVO.getSearchUseYn())) {
| |
| 29 | - List<BoardVO> resultList = cmmntyService.selectSearchCommunityNotifyArticleList(boardVO); | |
| 30 | - BoardVO resetVO = null; | |
| 31 | - for(int i = 0; i < resultList.size(); i++) {
| |
| 32 | - resetVO = resultList.get(i); | |
| 33 | - resetVO.setNttCn(EgovStringUtil.getNoneHtml(resetVO.getNttCn())); | |
| 34 | - } | |
| 35 | - model.addAttribute("resultCount", resultList != null ? resultList.size() : 0);
| |
| 36 | - model.addAttribute("resultList", resultList);
| |
| 37 | - } else {
| |
| 38 | - model.addAttribute("resultCount", cmmntyService.selectSearchCommunityNotifyArticleListCnt(boardVO));
| |
| 39 | - } | |
| 40 | - | |
| 41 | - return "/cop/svc/EgovNotifyArticleXml"; | |
| 42 | - } | |
| 43 | - | |
| 44 | -} |
--- base/src/main/java/egovframework/com/ems/service/impl/DirectMailDAO.java
... | ... | @@ -1,42 +0,0 @@ |
| 1 | -package egovframework.com.ems.service.impl; | |
| 2 | - | |
| 3 | -import org.apache.commons.logging.Log; | |
| 4 | -import org.apache.commons.logging.LogFactory; | |
| 5 | -import org.springframework.stereotype.Repository; | |
| 6 | - | |
| 7 | -import java.util.List; | |
| 8 | - | |
| 9 | -import egovframework.com.ems.service.MailMessageVO; | |
| 10 | -import egovframework.rte.psl.dataaccess.EgovAbstractDAO; | |
| 11 | - | |
| 12 | -/****************************************************** | |
| 13 | - * @Class Name : DirectMailDAO.java | |
| 14 | - * @Program name : egovframework.com.ems.service.impl | |
| 15 | - * @Descriptopn : 메일발송 DAO | |
| 16 | - * @version : 1.0.0 | |
| 17 | - * @author : 비상을꿈꾸며 | |
| 18 | - * @created date : 2011. 12. 8. | |
| 19 | - * Modification log | |
| 20 | - * ===================================================== | |
| 21 | - * date name description | |
| 22 | - * ----------------------------------------------------- | |
| 23 | - * 2011. 12. 8. 비상을꿈꾸며 first generated | |
| 24 | -*********************************************************/ | |
| 25 | - | |
| 26 | - | |
| 27 | -@Repository("directMailDAO")
| |
| 28 | -public class DirectMailDAO extends EgovAbstractDAO{
| |
| 29 | - | |
| 30 | - protected Log log = LogFactory.getLog(this.getClass()); | |
| 31 | - | |
| 32 | - /** | |
| 33 | - * MMS발송 회원 목록 | |
| 34 | - * @param userSearchVO 검색조건 | |
| 35 | - * @return List 사용자 목록정보 | |
| 36 | - */ | |
| 37 | - @SuppressWarnings("unchecked")
| |
| 38 | - public List<MailMessageVO> selectEmsMberList(MailMessageVO mailMessageVO){
| |
| 39 | - return (List<MailMessageVO>)list("EmsDAO.selectEmsMberList", mailMessageVO);
| |
| 40 | - } | |
| 41 | - | |
| 42 | -}(파일 끝에 줄바꿈 문자 없음) |
+++ base/src/main/java/egovframework/com/ems/service/impl/DirectMailMapper.java
... | ... | @@ -0,0 +1,15 @@ |
| 1 | +package egovframework.com.ems.service.impl; | |
| 2 | + | |
| 3 | +import egovframework.com.cop.sms.service.SmsVO; | |
| 4 | +import egovframework.com.ems.service.MailMessageVO; | |
| 5 | +import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 6 | + | |
| 7 | +import java.util.List; | |
| 8 | + | |
| 9 | +@Mapper("directMailMapper") | |
| 10 | +public interface DirectMailMapper { | |
| 11 | + | |
| 12 | + //MMS발송 회원 목록 | |
| 13 | + public List<MailMessageVO> selectEmsMberList(MailMessageVO mailMessageVO); | |
| 14 | + | |
| 15 | +} |
--- base/src/main/java/egovframework/com/ems/service/impl/DirectMailServiceImpl.java
+++ base/src/main/java/egovframework/com/ems/service/impl/DirectMailServiceImpl.java
... | ... | @@ -28,8 +28,8 @@ |
| 28 | 28 |
@Service("directMailService")
|
| 29 | 29 |
public class DirectMailServiceImpl extends EgovAbstractServiceImpl implements DirectMailService {
|
| 30 | 30 |
|
| 31 |
- @Resource(name="directMailDAO") |
|
| 32 |
- private DirectMailDAO directMailDAO; |
|
| 31 |
+ @Resource(name="directMailMapper") |
|
| 32 |
+ private DirectMailMapper directMailMapper; |
|
| 33 | 33 |
|
| 34 | 34 |
@Resource(name = "propertiesService") |
| 35 | 35 |
protected EgovPropertyService propertiesService; |
... | ... | @@ -54,7 +54,7 @@ |
| 54 | 54 |
//메일발송 회원 목록을 가져온다. |
| 55 | 55 |
public String sendManageMail(MailMessageVO mailMessageVO) {
|
| 56 | 56 |
|
| 57 |
- List<MailMessageVO> mailList = directMailDAO.selectEmsMberList(mailMessageVO); |
|
| 57 |
+ List<MailMessageVO> mailList = directMailMapper.selectEmsMberList(mailMessageVO); |
|
| 58 | 58 |
MailMessageVO mailVO = null; |
| 59 | 59 |
|
| 60 | 60 |
//메일이벤트 발송 |
--- base/src/main/java/egovframework/com/evt/service/ComtneventadhrncDefaultVO.java
... | ... | @@ -1,137 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -/****************************************************** | |
| 7 | - * @Class Name : ComtneventadhrncDefaultVO.java | |
| 8 | - * @Program name : egovframework.com.evt.service | |
| 9 | - * @Descriptopn : | |
| 10 | - * @version : 1.0.0 | |
| 11 | - * @author : 이호영 | |
| 12 | - * @created date : 2011. 8. 29. | |
| 13 | - * Modification log | |
| 14 | - * ===================================================== | |
| 15 | - * date name description | |
| 16 | - * ----------------------------------------------------- | |
| 17 | - * 2011. 8. 29. 이호영 first generated | |
| 18 | -*********************************************************/ | |
| 19 | -@SuppressWarnings("serial")
| |
| 20 | -public class ComtneventadhrncDefaultVO implements Serializable {
| |
| 21 | - | |
| 22 | - /** SCHDUL_ID */ | |
| 23 | - private String schdulId; | |
| 24 | - | |
| 25 | - /** 검색조건 */ | |
| 26 | - private String searchCondition = ""; | |
| 27 | - | |
| 28 | - /** 검색Keyword */ | |
| 29 | - private String searchKeyword = ""; | |
| 30 | - | |
| 31 | - /** 검색사용여부 */ | |
| 32 | - private String searchUseYn = ""; | |
| 33 | - | |
| 34 | - /** 현재페이지 */ | |
| 35 | - private int pageIndex = 1; | |
| 36 | - | |
| 37 | - /** 페이지갯수 */ | |
| 38 | - private int pageUnit = 10; | |
| 39 | - | |
| 40 | - /** 페이지사이즈 */ | |
| 41 | - private int pageSize = 10; | |
| 42 | - | |
| 43 | - /** firstIndex */ | |
| 44 | - private int firstIndex = 1; | |
| 45 | - | |
| 46 | - /** lastIndex */ | |
| 47 | - private int lastIndex = 1; | |
| 48 | - | |
| 49 | - /** recordCountPerPage */ | |
| 50 | - private int recordCountPerPage = 10; | |
| 51 | - | |
| 52 | - | |
| 53 | - public int getFirstIndex() {
| |
| 54 | - return firstIndex; | |
| 55 | - } | |
| 56 | - | |
| 57 | - public void setFirstIndex(int firstIndex) {
| |
| 58 | - this.firstIndex = firstIndex; | |
| 59 | - } | |
| 60 | - | |
| 61 | - public int getLastIndex() {
| |
| 62 | - return lastIndex; | |
| 63 | - } | |
| 64 | - | |
| 65 | - public void setLastIndex(int lastIndex) {
| |
| 66 | - this.lastIndex = lastIndex; | |
| 67 | - } | |
| 68 | - | |
| 69 | - public int getRecordCountPerPage() {
| |
| 70 | - return recordCountPerPage; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public void setRecordCountPerPage(int recordCountPerPage) {
| |
| 74 | - this.recordCountPerPage = recordCountPerPage; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public String getSearchCondition() {
| |
| 78 | - return searchCondition; | |
| 79 | - } | |
| 80 | - | |
| 81 | - public void setSearchCondition(String searchCondition) {
| |
| 82 | - this.searchCondition = searchCondition; | |
| 83 | - } | |
| 84 | - | |
| 85 | - public String getSearchKeyword() {
| |
| 86 | - return searchKeyword; | |
| 87 | - } | |
| 88 | - | |
| 89 | - public void setSearchKeyword(String searchKeyword) {
| |
| 90 | - this.searchKeyword = searchKeyword; | |
| 91 | - } | |
| 92 | - | |
| 93 | - public String getSearchUseYn() {
| |
| 94 | - return searchUseYn; | |
| 95 | - } | |
| 96 | - | |
| 97 | - public void setSearchUseYn(String searchUseYn) {
| |
| 98 | - this.searchUseYn = searchUseYn; | |
| 99 | - } | |
| 100 | - | |
| 101 | - public int getPageIndex() {
| |
| 102 | - return pageIndex; | |
| 103 | - } | |
| 104 | - | |
| 105 | - public void setPageIndex(int pageIndex) {
| |
| 106 | - this.pageIndex = pageIndex; | |
| 107 | - } | |
| 108 | - | |
| 109 | - public int getPageUnit() {
| |
| 110 | - return pageUnit; | |
| 111 | - } | |
| 112 | - | |
| 113 | - public void setPageUnit(int pageUnit) {
| |
| 114 | - this.pageUnit = pageUnit; | |
| 115 | - } | |
| 116 | - | |
| 117 | - public int getPageSize() {
| |
| 118 | - return pageSize; | |
| 119 | - } | |
| 120 | - | |
| 121 | - public void setPageSize(int pageSize) {
| |
| 122 | - this.pageSize = pageSize; | |
| 123 | - } | |
| 124 | - | |
| 125 | - public String toString() {
| |
| 126 | - return ToStringBuilder.reflectionToString(this); | |
| 127 | - } | |
| 128 | - | |
| 129 | - public String getSchdulId() {
| |
| 130 | - return this.schdulId; | |
| 131 | - } | |
| 132 | - | |
| 133 | - public void setSchdulId(String schdulId) {
| |
| 134 | - this.schdulId = schdulId; | |
| 135 | - } | |
| 136 | - | |
| 137 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventadhrncVO.java
... | ... | @@ -1,215 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.util.ArrayList; | |
| 4 | -import java.util.List; | |
| 5 | -import org.apache.commons.collections.Factory; | |
| 6 | -import org.apache.commons.collections.ListUtils; | |
| 7 | -/****************************************************** | |
| 8 | - * @Class Name : ComtneventadhrncVO.java | |
| 9 | - * @Program name : egovframework.com.evt.service | |
| 10 | - * @Descriptopn : | |
| 11 | - * @version : 1.0.0 | |
| 12 | - * @author : 이호영 | |
| 13 | - * @created date : 2011. 8. 29. | |
| 14 | - * Modification log | |
| 15 | - * ===================================================== | |
| 16 | - * date name description | |
| 17 | - * ----------------------------------------------------- | |
| 18 | - * 2011. 8. 29. 이호영 first generated | |
| 19 | -*********************************************************/ | |
| 20 | - | |
| 21 | -@SuppressWarnings("serial")
| |
| 22 | -public class ComtneventadhrncVO extends ComtneventadhrncDefaultVO{
| |
| 23 | - | |
| 24 | - /** 사이트ID */ | |
| 25 | - private String siteId = ""; | |
| 26 | - | |
| 27 | - /** 시스템구분 */ | |
| 28 | - private String sysTyCode = ""; | |
| 29 | - | |
| 30 | - /** USER_ID */ | |
| 31 | - private java.lang.String userId; | |
| 32 | - | |
| 33 | - /** ADHRNC_NM */ | |
| 34 | - private java.lang.String adhrncNm; | |
| 35 | - | |
| 36 | - /** ADHRNC_CTTPC */ | |
| 37 | - private java.lang.String adhrncCttpc; | |
| 38 | - | |
| 39 | - /** ADHRNC_ADRES */ | |
| 40 | - private java.lang.String adhrncAdres; | |
| 41 | - | |
| 42 | - /** ADHRNC_ZIP */ | |
| 43 | - private java.lang.String adhrncZip; | |
| 44 | - | |
| 45 | - /** ADHRNC_EMAIL */ | |
| 46 | - private java.lang.String adhrncEmail; | |
| 47 | - | |
| 48 | - /** FRST_REGIST_IP */ | |
| 49 | - private java.lang.String frstRegisterIp; | |
| 50 | - | |
| 51 | - /** FRST_REGIST_PNTTM */ | |
| 52 | - private java.sql.Date frstRegisterPnttm; | |
| 53 | - | |
| 54 | - /** LAST_UPDUSR_PNTTM */ | |
| 55 | - private java.sql.Date lastUpdusrPnttm; | |
| 56 | - | |
| 57 | - /** LAST_UPDUSR_ID */ | |
| 58 | - private java.lang.String lastUpdusrId; | |
| 59 | - | |
| 60 | - /** USE_AT */ | |
| 61 | - private java.lang.String useAt; | |
| 62 | - | |
| 63 | - /** WNER_AT */ | |
| 64 | - private java.lang.String wnerAt; | |
| 65 | - | |
| 66 | - /** SCHDUL_ID */ | |
| 67 | - private java.lang.String schdulId; | |
| 68 | - | |
| 69 | - private java.lang.String userTy; | |
| 70 | - | |
| 71 | - @SuppressWarnings({ "unchecked", "rawtypes" })
| |
| 72 | - private List<ComtneventadhrncVO> userAnswerList = ListUtils.lazyList(new ArrayList(), new Factory() {
| |
| 73 | - public Object create() {
| |
| 74 | - return new ComtneventadhrncVO(); | |
| 75 | - } | |
| 76 | - }); | |
| 77 | - | |
| 78 | - public List<ComtneventadhrncVO> getUserAnswerList() {
| |
| 79 | - return userAnswerList; | |
| 80 | - } | |
| 81 | - | |
| 82 | - public void setUserAnswerList(List<ComtneventadhrncVO> userAnswerList) {
| |
| 83 | - this.userAnswerList = userAnswerList; | |
| 84 | - } | |
| 85 | - | |
| 86 | - public String getSiteId() {
| |
| 87 | - return siteId; | |
| 88 | - } | |
| 89 | - | |
| 90 | - public void setSiteId(String siteId) {
| |
| 91 | - this.siteId = siteId; | |
| 92 | - } | |
| 93 | - | |
| 94 | - public String getSysTyCode() {
| |
| 95 | - return sysTyCode; | |
| 96 | - } | |
| 97 | - | |
| 98 | - public void setSysTyCode(String sysTyCode) {
| |
| 99 | - this.sysTyCode = sysTyCode; | |
| 100 | - } | |
| 101 | - | |
| 102 | - public java.lang.String getUserId() {
| |
| 103 | - return this.userId; | |
| 104 | - } | |
| 105 | - | |
| 106 | - public void setUserId(java.lang.String userId) {
| |
| 107 | - this.userId = userId; | |
| 108 | - } | |
| 109 | - | |
| 110 | - public java.lang.String getAdhrncNm() {
| |
| 111 | - return this.adhrncNm; | |
| 112 | - } | |
| 113 | - | |
| 114 | - public void setAdhrncNm(java.lang.String adhrncNm) {
| |
| 115 | - this.adhrncNm = adhrncNm; | |
| 116 | - } | |
| 117 | - | |
| 118 | - public java.lang.String getAdhrncCttpc() {
| |
| 119 | - return this.adhrncCttpc; | |
| 120 | - } | |
| 121 | - | |
| 122 | - public void setAdhrncCttpc(java.lang.String adhrncCttpc) {
| |
| 123 | - this.adhrncCttpc = adhrncCttpc; | |
| 124 | - } | |
| 125 | - | |
| 126 | - public java.lang.String getAdhrncAdres() {
| |
| 127 | - return this.adhrncAdres; | |
| 128 | - } | |
| 129 | - | |
| 130 | - public void setAdhrncAdres(java.lang.String adhrncAdres) {
| |
| 131 | - this.adhrncAdres = adhrncAdres; | |
| 132 | - } | |
| 133 | - | |
| 134 | - public java.lang.String getAdhrncZip() {
| |
| 135 | - return this.adhrncZip; | |
| 136 | - } | |
| 137 | - | |
| 138 | - public void setAdhrncZip(java.lang.String adhrncZip) {
| |
| 139 | - this.adhrncZip = adhrncZip; | |
| 140 | - } | |
| 141 | - | |
| 142 | - public java.lang.String getAdhrncEmail() {
| |
| 143 | - return this.adhrncEmail; | |
| 144 | - } | |
| 145 | - | |
| 146 | - public void setAdhrncEmail(java.lang.String adhrncEmail) {
| |
| 147 | - this.adhrncEmail = adhrncEmail; | |
| 148 | - } | |
| 149 | - | |
| 150 | - public java.lang.String getFrstRegistIp() {
| |
| 151 | - return this.frstRegisterIp; | |
| 152 | - } | |
| 153 | - | |
| 154 | - public void setFrstRegistIp(java.lang.String frstRegisterIp) {
| |
| 155 | - this.frstRegisterIp = frstRegisterIp; | |
| 156 | - } | |
| 157 | - | |
| 158 | - public java.sql.Date getFrstRegisterPnttm() {
| |
| 159 | - return this.frstRegisterPnttm; | |
| 160 | - } | |
| 161 | - | |
| 162 | - public void setFrstRegisterPnttm(java.sql.Date frstRegisterPnttm) {
| |
| 163 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 164 | - } | |
| 165 | - | |
| 166 | - public java.sql.Date getLastUpdusrPnttm() {
| |
| 167 | - return this.lastUpdusrPnttm; | |
| 168 | - } | |
| 169 | - | |
| 170 | - public void setLastUpdusrPnttm(java.sql.Date lastUpdusrPnttm) {
| |
| 171 | - this.lastUpdusrPnttm = lastUpdusrPnttm; | |
| 172 | - } | |
| 173 | - | |
| 174 | - public java.lang.String getLastUpdusrId() {
| |
| 175 | - return this.lastUpdusrId; | |
| 176 | - } | |
| 177 | - | |
| 178 | - public void setLastUpdusrId(java.lang.String lastUpdusrId) {
| |
| 179 | - this.lastUpdusrId = lastUpdusrId; | |
| 180 | - } | |
| 181 | - | |
| 182 | - public java.lang.String getUseAt() {
| |
| 183 | - return this.useAt; | |
| 184 | - } | |
| 185 | - | |
| 186 | - public void setUseAt(java.lang.String useAt) {
| |
| 187 | - this.useAt = useAt; | |
| 188 | - } | |
| 189 | - | |
| 190 | - public java.lang.String getWnerAt() {
| |
| 191 | - return this.wnerAt; | |
| 192 | - } | |
| 193 | - | |
| 194 | - public void setWnerAt(java.lang.String wnerAt) {
| |
| 195 | - this.wnerAt = wnerAt; | |
| 196 | - } | |
| 197 | - | |
| 198 | - public java.lang.String getSchdulId() {
| |
| 199 | - return this.schdulId; | |
| 200 | - } | |
| 201 | - | |
| 202 | - public void setSchdulId(java.lang.String schdulId) {
| |
| 203 | - this.schdulId = schdulId; | |
| 204 | - } | |
| 205 | - | |
| 206 | - public java.lang.String getUserTy() {
| |
| 207 | - return userTy; | |
| 208 | - } | |
| 209 | - | |
| 210 | - public void setUserTy(java.lang.String userTy) {
| |
| 211 | - this.userTy = userTy; | |
| 212 | - } | |
| 213 | - | |
| 214 | - | |
| 215 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventaswperVO.java
... | ... | @@ -1,99 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | - | |
| 6 | -/****************************************************** | |
| 7 | - * @Class Name : ComtneventaswperVO.java | |
| 8 | - * @Program name : egovframework.com.evt.service | |
| 9 | - * @Descriptopn : 이벤트 참여자 VO | |
| 10 | - * @version : 1.0.0 | |
| 11 | - * @author : 이호영 | |
| 12 | - * @created date : 2011. 8. 30. | |
| 13 | - * Modification log | |
| 14 | - * ===================================================== | |
| 15 | - * date name description | |
| 16 | - * ----------------------------------------------------- | |
| 17 | - * 2011. 8. 30. 이호영 first generated | |
| 18 | -*********************************************************/ | |
| 19 | -@SuppressWarnings("serial")
| |
| 20 | -public class ComtneventaswperVO implements Serializable {
| |
| 21 | - | |
| 22 | - /** ASWPER_ID */ | |
| 23 | - private String aswperId; | |
| 24 | - | |
| 25 | - /** QESITM_ID */ | |
| 26 | - private String qesitmId; | |
| 27 | - | |
| 28 | - /** ASWPER_SN */ | |
| 29 | - private Integer aswperSn; | |
| 30 | - | |
| 31 | - /** CHOICE_CNSR */ | |
| 32 | - private Integer choiceCnsr; | |
| 33 | - | |
| 34 | - /** ESSAY_CNSR */ | |
| 35 | - private String essayCnsr; | |
| 36 | - | |
| 37 | - /** USER_ID */ | |
| 38 | - private String userId; | |
| 39 | - | |
| 40 | - /** SCHDUL_ID */ | |
| 41 | - private String schdulId; | |
| 42 | - | |
| 43 | - public String getAswperId() {
| |
| 44 | - return this.aswperId; | |
| 45 | - } | |
| 46 | - | |
| 47 | - public void setAswperId(String aswperId) {
| |
| 48 | - this.aswperId = aswperId; | |
| 49 | - } | |
| 50 | - | |
| 51 | - public String getQesitmId() {
| |
| 52 | - return this.qesitmId; | |
| 53 | - } | |
| 54 | - | |
| 55 | - public void setQesitmId(String qesitmId) {
| |
| 56 | - this.qesitmId = qesitmId; | |
| 57 | - } | |
| 58 | - | |
| 59 | - public Integer getAswperSn() {
| |
| 60 | - return this.aswperSn; | |
| 61 | - } | |
| 62 | - | |
| 63 | - public void setAswperSn(Integer aswperSn) {
| |
| 64 | - this.aswperSn = aswperSn; | |
| 65 | - } | |
| 66 | - | |
| 67 | - public Integer getChoiceCnsr() {
| |
| 68 | - return this.choiceCnsr; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public void setChoiceCnsr(Integer choiceCnsr) {
| |
| 72 | - this.choiceCnsr = choiceCnsr; | |
| 73 | - } | |
| 74 | - | |
| 75 | - public String getEssayCnsr() {
| |
| 76 | - return this.essayCnsr; | |
| 77 | - } | |
| 78 | - | |
| 79 | - public void setEssayCnsr(String essayCnsr) {
| |
| 80 | - this.essayCnsr = essayCnsr; | |
| 81 | - } | |
| 82 | - | |
| 83 | - public String getUserId() {
| |
| 84 | - return this.userId; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public void setUserId(String userId) {
| |
| 88 | - this.userId = userId; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public String getSchdulId() {
| |
| 92 | - return this.schdulId; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public void setSchdulId(String schdulId) {
| |
| 96 | - this.schdulId = schdulId; | |
| 97 | - } | |
| 98 | - | |
| 99 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventcnsrVO.java
... | ... | @@ -1,77 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -/****************************************************** | |
| 6 | - * @Class Name : ComtneventcnsrVO.java | |
| 7 | - * @Program name : egovframework.com.evt.service | |
| 8 | - * @Descriptopn : 이벤트 정답VO | |
| 9 | - * @version : 1.0.0 | |
| 10 | - * @author : 이호영 | |
| 11 | - * @created date : 2011. 8. 25. | |
| 12 | - * Modification log | |
| 13 | - * ===================================================== | |
| 14 | - * date name description | |
| 15 | - * ----------------------------------------------------- | |
| 16 | - * 2011. 8. 25. 이호영 first generated | |
| 17 | -*********************************************************/ | |
| 18 | - | |
| 19 | -@SuppressWarnings("serial")
| |
| 20 | -public class ComtneventcnsrVO implements Serializable {
| |
| 21 | - | |
| 22 | - /** CNSR_ID */ | |
| 23 | - private java.lang.String cnsrId; | |
| 24 | - | |
| 25 | - /** QESITM_ID */ | |
| 26 | - private java.lang.String qesitmId; | |
| 27 | - | |
| 28 | - /** CNSR_SN */ | |
| 29 | - private Integer cnsrSn; | |
| 30 | - | |
| 31 | - /** CHOISE_CNSR */ | |
| 32 | - private Integer choiseCnsr; | |
| 33 | - | |
| 34 | - /** SBJCT_CNSR */ | |
| 35 | - private java.lang.String sbjctCnsr; | |
| 36 | - | |
| 37 | - public java.lang.String getCnsrId() {
| |
| 38 | - return this.cnsrId; | |
| 39 | - } | |
| 40 | - | |
| 41 | - public void setCnsrId(java.lang.String cnsrId) {
| |
| 42 | - this.cnsrId = cnsrId; | |
| 43 | - } | |
| 44 | - | |
| 45 | - public java.lang.String getQesitmId() {
| |
| 46 | - return this.qesitmId; | |
| 47 | - } | |
| 48 | - | |
| 49 | - public void setQesitmId(java.lang.String qesitmId) {
| |
| 50 | - this.qesitmId = qesitmId; | |
| 51 | - } | |
| 52 | - | |
| 53 | - public Integer getCnsrSn() {
| |
| 54 | - return this.cnsrSn; | |
| 55 | - } | |
| 56 | - | |
| 57 | - public void setCnsrSn(Integer cnsrSn) {
| |
| 58 | - this.cnsrSn = cnsrSn; | |
| 59 | - } | |
| 60 | - | |
| 61 | - public Integer getChoiseCnsr() {
| |
| 62 | - return this.choiseCnsr; | |
| 63 | - } | |
| 64 | - | |
| 65 | - public void setChoiseCnsr(Integer choiseCnsr) {
| |
| 66 | - this.choiseCnsr = choiseCnsr; | |
| 67 | - } | |
| 68 | - | |
| 69 | - public java.lang.String getSbjctCnsr() {
| |
| 70 | - return this.sbjctCnsr; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public void setSbjctCnsr(java.lang.String sbjctCnsr) {
| |
| 74 | - this.sbjctCnsr = sbjctCnsr; | |
| 75 | - } | |
| 76 | - | |
| 77 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventformVO.java
... | ... | @@ -1,57 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | - | |
| 6 | -/****************************************************** | |
| 7 | - * @Class Name : ComtneventformVO.java | |
| 8 | - * @Program name : egovframework.com.evt.service | |
| 9 | - * @Descriptopn : | |
| 10 | - * @version : 1.0.0 | |
| 11 | - * @author : 이호영 | |
| 12 | - * @created date : 2011. 8. 31. | |
| 13 | - * Modification log | |
| 14 | - * ===================================================== | |
| 15 | - * date name description | |
| 16 | - * ----------------------------------------------------- | |
| 17 | - * 2011. 8. 31. 이호영 first generated | |
| 18 | -*********************************************************/ | |
| 19 | - | |
| 20 | - | |
| 21 | -@SuppressWarnings("serial")
| |
| 22 | -public class ComtneventformVO implements Serializable {
| |
| 23 | - | |
| 24 | - /** REQST_ID */ | |
| 25 | - private java.lang.String reqstId; | |
| 26 | - | |
| 27 | - /** REQST_FORM */ | |
| 28 | - private String reqstForm; | |
| 29 | - | |
| 30 | - /** SCHDUL_ID */ | |
| 31 | - private java.lang.String schdulId; | |
| 32 | - | |
| 33 | - public java.lang.String getReqstId() {
| |
| 34 | - return this.reqstId; | |
| 35 | - } | |
| 36 | - | |
| 37 | - public void setReqstId(java.lang.String reqstId) {
| |
| 38 | - this.reqstId = reqstId; | |
| 39 | - } | |
| 40 | - | |
| 41 | - public String getReqstForm() {
| |
| 42 | - return this.reqstForm; | |
| 43 | - } | |
| 44 | - | |
| 45 | - public void setReqstForm(String reqstForm) {
| |
| 46 | - this.reqstForm = reqstForm; | |
| 47 | - } | |
| 48 | - | |
| 49 | - public java.lang.String getSchdulId() {
| |
| 50 | - return this.schdulId; | |
| 51 | - } | |
| 52 | - | |
| 53 | - public void setSchdulId(java.lang.String schdulId) {
| |
| 54 | - this.schdulId = schdulId; | |
| 55 | - } | |
| 56 | - | |
| 57 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventformaswperVO.java
... | ... | @@ -1,75 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -/** | |
| 6 | - * @Class Name : ComtneventformaswperVO.java | |
| 7 | - * @Description : Comtneventformaswper VO class | |
| 8 | - * @Modification Information | |
| 9 | - * | |
| 10 | - * @author 이호영 | |
| 11 | - * @since 2011.08.30 | |
| 12 | - * @version 1.0 | |
| 13 | - * @see | |
| 14 | - * | |
| 15 | - * Copyright (C) All right reserved. | |
| 16 | - */ | |
| 17 | -@SuppressWarnings("serial")
| |
| 18 | -public class ComtneventformaswperVO implements Serializable {
| |
| 19 | - | |
| 20 | - /** ASWPER_ID */ | |
| 21 | - private String aswperId; | |
| 22 | - | |
| 23 | - /** REQST_CN */ | |
| 24 | - private String reqstCn; | |
| 25 | - | |
| 26 | - /** REQST_ID */ | |
| 27 | - private String reqstId; | |
| 28 | - | |
| 29 | - /** SCHDUL_ID */ | |
| 30 | - private String schdulId; | |
| 31 | - | |
| 32 | - /** USER_ID */ | |
| 33 | - private String userId; | |
| 34 | - | |
| 35 | - public String getAswperId() {
| |
| 36 | - return this.aswperId; | |
| 37 | - } | |
| 38 | - | |
| 39 | - public void setAswperId(String aswperId) {
| |
| 40 | - this.aswperId = aswperId; | |
| 41 | - } | |
| 42 | - | |
| 43 | - public String getReqstCn() {
| |
| 44 | - return this.reqstCn; | |
| 45 | - } | |
| 46 | - | |
| 47 | - public void setReqstCn(String reqstCn) {
| |
| 48 | - this.reqstCn = reqstCn; | |
| 49 | - } | |
| 50 | - | |
| 51 | - public String getReqstId() {
| |
| 52 | - return this.reqstId; | |
| 53 | - } | |
| 54 | - | |
| 55 | - public void setReqstId(String reqstId) {
| |
| 56 | - this.reqstId = reqstId; | |
| 57 | - } | |
| 58 | - | |
| 59 | - public String getSchdulId() {
| |
| 60 | - return this.schdulId; | |
| 61 | - } | |
| 62 | - | |
| 63 | - public void setSchdulId(String schdulId) {
| |
| 64 | - this.schdulId = schdulId; | |
| 65 | - } | |
| 66 | - | |
| 67 | - public String getUserId() {
| |
| 68 | - return this.userId; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public void setUserId(String userId) {
| |
| 72 | - this.userId = userId; | |
| 73 | - } | |
| 74 | - | |
| 75 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventprzwnerDefaultVO.java
... | ... | @@ -1,191 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -/** | |
| 7 | - * @Class Name : ComtneventprzwnerDefaultVO.java | |
| 8 | - * @Description : Comtneventprzwner Default VO class | |
| 9 | - * @Modification Information | |
| 10 | - * | |
| 11 | - * @author 이호영 | |
| 12 | - * @since 2011.09.01 | |
| 13 | - * @version 1.0 | |
| 14 | - * @see | |
| 15 | - * | |
| 16 | - * Copyright (C) All right reserved. | |
| 17 | - */ | |
| 18 | -@SuppressWarnings("serial")
| |
| 19 | -public class ComtneventprzwnerDefaultVO implements Serializable {
| |
| 20 | - | |
| 21 | - /** 사이트ID */ | |
| 22 | - private String siteId = ""; | |
| 23 | - | |
| 24 | - /** SCHDUL_ID */ | |
| 25 | - private String schdulId; | |
| 26 | - | |
| 27 | - /** PRZWNER_NMPR */ | |
| 28 | - private Integer przwnerNmpr; | |
| 29 | - | |
| 30 | - /** USER_ID */ | |
| 31 | - private String userId; | |
| 32 | - | |
| 33 | - /** 검색조건 */ | |
| 34 | - private String searchCondition = ""; | |
| 35 | - | |
| 36 | - /** 검색Keyword */ | |
| 37 | - private String searchKeyword = ""; | |
| 38 | - | |
| 39 | - /** 검색사용여부 */ | |
| 40 | - private String searchUseYn = ""; | |
| 41 | - | |
| 42 | - /** 검색조건 (일정종류) */ | |
| 43 | - private String searchSe; | |
| 44 | - | |
| 45 | - /** 화면 모드(달력/목록) */ | |
| 46 | - private String mode; | |
| 47 | - | |
| 48 | - /** 현재페이지 */ | |
| 49 | - private int pageIndex = 1; | |
| 50 | - | |
| 51 | - /** 페이지갯수 */ | |
| 52 | - private int pageUnit = 10; | |
| 53 | - | |
| 54 | - /** 페이지사이즈 */ | |
| 55 | - private int pageSize = 10; | |
| 56 | - | |
| 57 | - /** firstIndex */ | |
| 58 | - private int firstIndex = 1; | |
| 59 | - | |
| 60 | - /** lastIndex */ | |
| 61 | - private int lastIndex = 1; | |
| 62 | - | |
| 63 | - /** recordCountPerPage */ | |
| 64 | - private int recordCountPerPage = 10; | |
| 65 | - | |
| 66 | - | |
| 67 | - public int getFirstIndex() {
| |
| 68 | - return firstIndex; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public void setFirstIndex(int firstIndex) {
| |
| 72 | - this.firstIndex = firstIndex; | |
| 73 | - } | |
| 74 | - | |
| 75 | - public int getLastIndex() {
| |
| 76 | - return lastIndex; | |
| 77 | - } | |
| 78 | - | |
| 79 | - public void setLastIndex(int lastIndex) {
| |
| 80 | - this.lastIndex = lastIndex; | |
| 81 | - } | |
| 82 | - | |
| 83 | - public int getRecordCountPerPage() {
| |
| 84 | - return recordCountPerPage; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public void setRecordCountPerPage(int recordCountPerPage) {
| |
| 88 | - this.recordCountPerPage = recordCountPerPage; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public String getSearchCondition() {
| |
| 92 | - return searchCondition; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public void setSearchCondition(String searchCondition) {
| |
| 96 | - this.searchCondition = searchCondition; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public String getSearchKeyword() {
| |
| 100 | - return searchKeyword; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public void setSearchKeyword(String searchKeyword) {
| |
| 104 | - this.searchKeyword = searchKeyword; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public String getSearchUseYn() {
| |
| 108 | - return searchUseYn; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public void setSearchUseYn(String searchUseYn) {
| |
| 112 | - this.searchUseYn = searchUseYn; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public String getSearchSe() {
| |
| 116 | - return searchSe; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public void setSearchSe(String searchSe) {
| |
| 120 | - this.searchSe = searchSe; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public String getMode() {
| |
| 124 | - return mode; | |
| 125 | - } | |
| 126 | - | |
| 127 | - public void setMode(String mode) {
| |
| 128 | - this.mode = mode; | |
| 129 | - } | |
| 130 | - | |
| 131 | - public int getPageIndex() {
| |
| 132 | - return pageIndex; | |
| 133 | - } | |
| 134 | - | |
| 135 | - public void setPageIndex(int pageIndex) {
| |
| 136 | - this.pageIndex = pageIndex; | |
| 137 | - } | |
| 138 | - | |
| 139 | - public int getPageUnit() {
| |
| 140 | - return pageUnit; | |
| 141 | - } | |
| 142 | - | |
| 143 | - public void setPageUnit(int pageUnit) {
| |
| 144 | - this.pageUnit = pageUnit; | |
| 145 | - } | |
| 146 | - | |
| 147 | - public int getPageSize() {
| |
| 148 | - return pageSize; | |
| 149 | - } | |
| 150 | - | |
| 151 | - public void setPageSize(int pageSize) {
| |
| 152 | - this.pageSize = pageSize; | |
| 153 | - } | |
| 154 | - | |
| 155 | - public String toString() {
| |
| 156 | - return ToStringBuilder.reflectionToString(this); | |
| 157 | - } | |
| 158 | - | |
| 159 | - public String getSchdulId() {
| |
| 160 | - return this.schdulId; | |
| 161 | - } | |
| 162 | - | |
| 163 | - public void setSchdulId(String schdulId) {
| |
| 164 | - this.schdulId = schdulId; | |
| 165 | - } | |
| 166 | - | |
| 167 | - public String getUserId() {
| |
| 168 | - return this.userId; | |
| 169 | - } | |
| 170 | - | |
| 171 | - public void setUserId(String userId) {
| |
| 172 | - this.userId = userId; | |
| 173 | - } | |
| 174 | - | |
| 175 | - public Integer getPrzwnerNmpr() {
| |
| 176 | - return this.przwnerNmpr; | |
| 177 | - } | |
| 178 | - | |
| 179 | - public void setPrzwnerNmpr(Integer przwnerNmpr) {
| |
| 180 | - this.przwnerNmpr = przwnerNmpr; | |
| 181 | - } | |
| 182 | - | |
| 183 | - public String getSiteId() {
| |
| 184 | - return siteId; | |
| 185 | - } | |
| 186 | - | |
| 187 | - public void setSiteId(String siteId) {
| |
| 188 | - this.siteId = siteId; | |
| 189 | - } | |
| 190 | - | |
| 191 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventprzwnerVO.java
... | ... | @@ -1,74 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -/****************************************************** | |
| 6 | - * @Class Name : ComtneventprzwnerVO.java | |
| 7 | - * @Program name : egovframework.com.evt.service | |
| 8 | - * @Descriptopn : 충청남도교육연구정보원 스마트충남 기능 개선 구축 | |
| 9 | - * @version : 1.0.0 | |
| 10 | - * @author : 이호영 | |
| 11 | - * @created date : 2012. 2. 17. | |
| 12 | - * Modification log | |
| 13 | - * ===================================================== | |
| 14 | - * date name description | |
| 15 | - * ----------------------------------------------------- | |
| 16 | - * 2012. 02. 07. 이호영 first generated | |
| 17 | -*********************************************************/ | |
| 18 | - | |
| 19 | -@SuppressWarnings("serial")
| |
| 20 | -public class ComtneventprzwnerVO extends ComtneventprzwnerDefaultVO implements Serializable {
| |
| 21 | - | |
| 22 | - /** FRST_REGIST_PNTTM */ | |
| 23 | - private String frstRegisterPnttm; | |
| 24 | - | |
| 25 | - /** USER_ID */ | |
| 26 | - private String userId; | |
| 27 | - | |
| 28 | - /** USE_AT */ | |
| 29 | - private String useAt; | |
| 30 | - | |
| 31 | - /** SCHDUL_ID */ | |
| 32 | - private String schdulId; | |
| 33 | - | |
| 34 | - private String wner; | |
| 35 | - | |
| 36 | - public String getFrstRegisterPnttm() {
| |
| 37 | - return this.frstRegisterPnttm; | |
| 38 | - } | |
| 39 | - | |
| 40 | - public void setFrstRegisterPnttm(String frstRegisterPnttm) {
| |
| 41 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 42 | - } | |
| 43 | - | |
| 44 | - public String getUserId() {
| |
| 45 | - return this.userId; | |
| 46 | - } | |
| 47 | - | |
| 48 | - public void setUserId(String userId) {
| |
| 49 | - this.userId = userId; | |
| 50 | - } | |
| 51 | - | |
| 52 | - public String getUseAt() {
| |
| 53 | - return this.useAt; | |
| 54 | - } | |
| 55 | - | |
| 56 | - public void setUseAt(String useAt) {
| |
| 57 | - this.useAt = useAt; | |
| 58 | - } | |
| 59 | - | |
| 60 | - public String getSchdulId() {
| |
| 61 | - return this.schdulId; | |
| 62 | - } | |
| 63 | - | |
| 64 | - public void setSchdulId(String schdulId) {
| |
| 65 | - this.schdulId = schdulId; | |
| 66 | - } | |
| 67 | - public String getWner() {
| |
| 68 | - return wner; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public void setWner(String wner) {
| |
| 72 | - this.wner = wner; | |
| 73 | - } | |
| 74 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventqesitmVO.java
... | ... | @@ -1,167 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | - | |
| 4 | -import java.io.Serializable; | |
| 5 | -import java.util.ArrayList; | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -import egovframework.com.evt.service.ComtneventqesitmexVO; | |
| 9 | -import egovframework.com.evt.service.ComtneventcnsrVO; | |
| 10 | - | |
| 11 | -import org.apache.commons.collections.Factory; | |
| 12 | -import org.apache.commons.collections.ListUtils; | |
| 13 | - | |
| 14 | -/****************************************************** | |
| 15 | - * @Class Name : ComtneventqesitmVO.java | |
| 16 | - * @Program name : egovframework.com.evt.service | |
| 17 | - * @Descriptopn : 이벤트 문항VO | |
| 18 | - * @version : 1.0.0 | |
| 19 | - * @author : 이호영 | |
| 20 | - * @created date : 2011. 8. 25. | |
| 21 | - * Modification log | |
| 22 | - * ===================================================== | |
| 23 | - * date name description | |
| 24 | - * ----------------------------------------------------- | |
| 25 | - * 2011. 8. 25. 이호영 first generated | |
| 26 | -*********************************************************/ | |
| 27 | -@SuppressWarnings("serial")
| |
| 28 | -public class ComtneventqesitmVO implements Serializable {
| |
| 29 | - | |
| 30 | - /** QESITM_ID */ | |
| 31 | - private java.lang.String qesitmId; | |
| 32 | - | |
| 33 | - /** QESITM_SN */ | |
| 34 | - private Integer qesitmSn; | |
| 35 | - | |
| 36 | - /** QESITM_TY_CODE */ | |
| 37 | - private java.lang.String qesitmTyCode; | |
| 38 | - | |
| 39 | - /** QESITM_SJ */ | |
| 40 | - private java.lang.String qesitmSj; | |
| 41 | - | |
| 42 | - /** QESITM_CN */ | |
| 43 | - private java.lang.String qesitmCn; | |
| 44 | - | |
| 45 | - /** MXMM_ANSWER_CO */ | |
| 46 | - private Integer mxmmAnswerCo; | |
| 47 | - | |
| 48 | - /** USER_CNSR */ | |
| 49 | - private java.lang.String userCnsr; | |
| 50 | - | |
| 51 | - /** USER_SCORE */ | |
| 52 | - private java.lang.String userScore; | |
| 53 | - | |
| 54 | - /** SCHDUL_ID */ | |
| 55 | - private java.lang.String schdulId; | |
| 56 | - | |
| 57 | - /** 보기 */ | |
| 58 | - private List exampleList = ListUtils.lazyList(new ArrayList(), new Factory() {
| |
| 59 | - public Object create() {
| |
| 60 | - return new ComtneventqesitmexVO(); | |
| 61 | - } | |
| 62 | - }); | |
| 63 | - | |
| 64 | - public List getExampleList() {
| |
| 65 | - return exampleList; | |
| 66 | - } | |
| 67 | - | |
| 68 | - public void setExampleList(List exampleList) {
| |
| 69 | - this.exampleList = exampleList; | |
| 70 | - } | |
| 71 | - | |
| 72 | - public void addExample(ComtneventqesitmexVO example) {
| |
| 73 | - this.exampleList.add(example); | |
| 74 | - } | |
| 75 | - | |
| 76 | - /** 정답 */ | |
| 77 | - private List answerList = ListUtils.lazyList(new ArrayList(), new Factory() {
| |
| 78 | - public Object create() {
| |
| 79 | - return new ComtneventcnsrVO(); | |
| 80 | - } | |
| 81 | - }); | |
| 82 | - | |
| 83 | - public List getAnswerList() {
| |
| 84 | - return answerList; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public void setAnswerList(List answerList) {
| |
| 88 | - this.answerList = answerList; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public void addAnswer(ComtneventcnsrVO answer) {
| |
| 92 | - this.answerList.add(answer); | |
| 93 | - } | |
| 94 | - | |
| 95 | - public java.lang.String getQesitmId() {
| |
| 96 | - return this.qesitmId; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public void setQesitmId(java.lang.String qesitmId) {
| |
| 100 | - this.qesitmId = qesitmId; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public Integer getQesitmSn() {
| |
| 104 | - return this.qesitmSn; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public void setQesitmSn(Integer qesitmSn) {
| |
| 108 | - this.qesitmSn = qesitmSn; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public java.lang.String getQesitmTyCode() {
| |
| 112 | - return this.qesitmTyCode; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public void setQesitmTyCode(java.lang.String qesitmTyCode) {
| |
| 116 | - this.qesitmTyCode = qesitmTyCode; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public java.lang.String getQesitmSj() {
| |
| 120 | - return this.qesitmSj; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public void setQesitmSj(java.lang.String qesitmSj) {
| |
| 124 | - this.qesitmSj = qesitmSj; | |
| 125 | - } | |
| 126 | - | |
| 127 | - public java.lang.String getQesitmCn() {
| |
| 128 | - return this.qesitmCn; | |
| 129 | - } | |
| 130 | - | |
| 131 | - public void setQesitmCn(java.lang.String qesitmCn) {
| |
| 132 | - this.qesitmCn = qesitmCn; | |
| 133 | - } | |
| 134 | - | |
| 135 | - public Integer getMxmmAnswerCo() {
| |
| 136 | - return this.mxmmAnswerCo; | |
| 137 | - } | |
| 138 | - | |
| 139 | - public void setMxmmAnswerCo(Integer mxmmAnswerCo) {
| |
| 140 | - this.mxmmAnswerCo = mxmmAnswerCo; | |
| 141 | - } | |
| 142 | - | |
| 143 | - public java.lang.String getUserScore() {
| |
| 144 | - return this.userScore; | |
| 145 | - } | |
| 146 | - | |
| 147 | - public void setCserScore(java.lang.String userScore) {
| |
| 148 | - this.userScore = userScore; | |
| 149 | - } | |
| 150 | - | |
| 151 | - public java.lang.String getUserCnsr() {
| |
| 152 | - return this.userCnsr; | |
| 153 | - } | |
| 154 | - | |
| 155 | - public void setCserCnsr(java.lang.String userCnsr) {
| |
| 156 | - this.userCnsr = userCnsr; | |
| 157 | - } | |
| 158 | - | |
| 159 | - public java.lang.String getSchdulId() {
| |
| 160 | - return this.schdulId; | |
| 161 | - } | |
| 162 | - | |
| 163 | - public void setSchdulId(java.lang.String schdulId) {
| |
| 164 | - this.schdulId = schdulId; | |
| 165 | - } | |
| 166 | - | |
| 167 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtneventqesitmexVO.java
... | ... | @@ -1,89 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | - | |
| 6 | -/****************************************************** | |
| 7 | - * @Class Name : ComtneventqesitmexVO.java | |
| 8 | - * @Program name : egovframework.com.evt.service | |
| 9 | - * @Descriptopn : 이벤트 문항보기VO | |
| 10 | - * @version : 1.0.0 | |
| 11 | - * @author : 이호영 | |
| 12 | - * @created date : 2011. 8. 25. | |
| 13 | - * Modification log | |
| 14 | - * ===================================================== | |
| 15 | - * date name description | |
| 16 | - * ----------------------------------------------------- | |
| 17 | - * 2011. 8. 25. 이호영 first generated | |
| 18 | -*********************************************************/ | |
| 19 | -@SuppressWarnings("serial")
| |
| 20 | -public class ComtneventqesitmexVO implements Serializable {
| |
| 21 | - | |
| 22 | - /** EX_ID */ | |
| 23 | - private String exId; | |
| 24 | - | |
| 25 | - /** EX_SN */ | |
| 26 | - private Integer exSn; | |
| 27 | - | |
| 28 | - /** EX_CN */ | |
| 29 | - private String exCn; | |
| 30 | - | |
| 31 | - /** QESITM_ID */ | |
| 32 | - private String qesitmId; | |
| 33 | - | |
| 34 | - /** qesitUserCo */ | |
| 35 | - private double qesitUserCo = 0; | |
| 36 | - | |
| 37 | - | |
| 38 | - private String userSta; | |
| 39 | - | |
| 40 | - public String getExId() {
| |
| 41 | - return this.exId; | |
| 42 | - } | |
| 43 | - | |
| 44 | - public void setExId(String exId) {
| |
| 45 | - this.exId = exId; | |
| 46 | - } | |
| 47 | - | |
| 48 | - public Integer getExSn() {
| |
| 49 | - return this.exSn; | |
| 50 | - } | |
| 51 | - | |
| 52 | - public void setExSn(Integer exSn) {
| |
| 53 | - this.exSn = exSn; | |
| 54 | - } | |
| 55 | - | |
| 56 | - public String getExCn() {
| |
| 57 | - return this.exCn; | |
| 58 | - } | |
| 59 | - | |
| 60 | - public void setExCn(String exCn) {
| |
| 61 | - this.exCn = exCn; | |
| 62 | - } | |
| 63 | - | |
| 64 | - public String getQesitmId() {
| |
| 65 | - return this.qesitmId; | |
| 66 | - } | |
| 67 | - | |
| 68 | - public void setQesitmId(String qesitmId) {
| |
| 69 | - this.qesitmId = qesitmId; | |
| 70 | - } | |
| 71 | - | |
| 72 | - public double getQesitUserCo() {
| |
| 73 | - return this.qesitUserCo; | |
| 74 | - } | |
| 75 | - | |
| 76 | - public void setQesitUserCo(double qesitUserCo) {
| |
| 77 | - this.qesitUserCo = qesitUserCo; | |
| 78 | - } | |
| 79 | - | |
| 80 | - public String getUserSta() {
| |
| 81 | - return userSta; | |
| 82 | - } | |
| 83 | - | |
| 84 | - public void setUserSta(String userSta) {
| |
| 85 | - this.userSta = userSta; | |
| 86 | - } | |
| 87 | - | |
| 88 | - | |
| 89 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtnschdulinfoDefaultVO.java
... | ... | @@ -1,268 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -/** | |
| 7 | - * @Class Name : ComtnschdulinfoDefaultVO.java | |
| 8 | - * @Description : Comtnschdulinfo Default VO class | |
| 9 | - * @Modification Information | |
| 10 | - * | |
| 11 | - * @author 이호영 | |
| 12 | - * @since 2011.08.17 | |
| 13 | - * @version 1.0 | |
| 14 | - * @see | |
| 15 | - * | |
| 16 | - * Copyright (C) All right reserved. | |
| 17 | - */ | |
| 18 | -@SuppressWarnings("serial")
| |
| 19 | -public class ComtnschdulinfoDefaultVO implements Serializable {
| |
| 20 | - | |
| 21 | - /** 사이트ID */ | |
| 22 | - private String siteId = ""; | |
| 23 | - | |
| 24 | - /** 메뉴ID */ | |
| 25 | - private String menuId = ""; | |
| 26 | - | |
| 27 | - /** 검색조건(년도) */ | |
| 28 | - private String searchDate; | |
| 29 | - | |
| 30 | - /** 검색조건(년도) */ | |
| 31 | - private int searchYear; | |
| 32 | - | |
| 33 | - /** 검색조건 (일정종류) */ | |
| 34 | - private String searchSe; | |
| 35 | - | |
| 36 | - /** 화면 모드(달력/목록) */ | |
| 37 | - private String mode; | |
| 38 | - | |
| 39 | - /** 검색조건(월) */ | |
| 40 | - private int searchMonth; | |
| 41 | - | |
| 42 | - /** 검색조건(일) */ | |
| 43 | - private int searchDay; | |
| 44 | - | |
| 45 | - /** 검색조건 */ | |
| 46 | - private String searchCondition = ""; | |
| 47 | - | |
| 48 | - /** 검색Keyword */ | |
| 49 | - private String searchKeyword = ""; | |
| 50 | - | |
| 51 | - /** 검색사용여부 */ | |
| 52 | - private String searchUseYn = ""; | |
| 53 | - | |
| 54 | - /** 현재페이지 */ | |
| 55 | - private int pageIndex = 1; | |
| 56 | - | |
| 57 | - /** 페이지갯수 */ | |
| 58 | - private int pageUnit = 10; | |
| 59 | - | |
| 60 | - /** 페이지사이즈 */ | |
| 61 | - private int pageSize = 10; | |
| 62 | - | |
| 63 | - /** firstIndex */ | |
| 64 | - private int firstIndex = 1; | |
| 65 | - | |
| 66 | - /** lastIndex */ | |
| 67 | - private int lastIndex = 1; | |
| 68 | - | |
| 69 | - /** recordCountPerPage */ | |
| 70 | - private int recordCountPerPage = 10; | |
| 71 | - | |
| 72 | - /** 검색시작일 */ | |
| 73 | - private String searchBeginDate = ""; | |
| 74 | - | |
| 75 | - /** 검색종료일 */ | |
| 76 | - private String searchEndDate = ""; | |
| 77 | - | |
| 78 | - /** 검색기간구분 */ | |
| 79 | - private String searchTermTy = ""; | |
| 80 | - | |
| 81 | - /** 검색조건 (일정종류) */ | |
| 82 | - private String adminYn = ""; | |
| 83 | - | |
| 84 | - /** 관리자 유무 */ | |
| 85 | - private String mngrAt = ""; | |
| 86 | - | |
| 87 | - public int getFirstIndex() {
| |
| 88 | - return firstIndex; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public void setFirstIndex(int firstIndex) {
| |
| 92 | - this.firstIndex = firstIndex; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public int getLastIndex() {
| |
| 96 | - return lastIndex; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public void setLastIndex(int lastIndex) {
| |
| 100 | - this.lastIndex = lastIndex; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public int getRecordCountPerPage() {
| |
| 104 | - return recordCountPerPage; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public void setRecordCountPerPage(int recordCountPerPage) {
| |
| 108 | - this.recordCountPerPage = recordCountPerPage; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public String getSearchSe() {
| |
| 112 | - return searchSe; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public void setSearchSe(String searchSe) {
| |
| 116 | - this.searchSe = searchSe; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public String getMode() {
| |
| 120 | - return mode; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public void setMode(String mode) {
| |
| 124 | - this.mode = mode; | |
| 125 | - } | |
| 126 | - | |
| 127 | - public String getSearchDate() {
| |
| 128 | - return searchDate; | |
| 129 | - } | |
| 130 | - | |
| 131 | - public void setSearchDate(String searchDate) {
| |
| 132 | - this.searchDate = searchDate; | |
| 133 | - } | |
| 134 | - | |
| 135 | - public int getSearchYear() {
| |
| 136 | - return searchYear; | |
| 137 | - } | |
| 138 | - | |
| 139 | - public void setSearchYear(int searchYear) {
| |
| 140 | - this.searchYear = searchYear; | |
| 141 | - } | |
| 142 | - | |
| 143 | - public int getSearchMonth() {
| |
| 144 | - return searchMonth; | |
| 145 | - } | |
| 146 | - | |
| 147 | - public void setSearchMonth(int searchMonth) {
| |
| 148 | - this.searchMonth = searchMonth; | |
| 149 | - } | |
| 150 | - | |
| 151 | - public int getSearchDay() {
| |
| 152 | - return searchDay; | |
| 153 | - } | |
| 154 | - | |
| 155 | - public void setSearchDay(int searchDay) {
| |
| 156 | - this.searchDay = searchDay; | |
| 157 | - } | |
| 158 | - | |
| 159 | - public String getSearchCondition() {
| |
| 160 | - return searchCondition; | |
| 161 | - } | |
| 162 | - | |
| 163 | - public void setSearchCondition(String searchCondition) {
| |
| 164 | - this.searchCondition = searchCondition; | |
| 165 | - } | |
| 166 | - | |
| 167 | - public String getSearchKeyword() {
| |
| 168 | - return searchKeyword; | |
| 169 | - } | |
| 170 | - | |
| 171 | - public void setSearchKeyword(String searchKeyword) {
| |
| 172 | - this.searchKeyword = searchKeyword; | |
| 173 | - } | |
| 174 | - | |
| 175 | - public String getSearchUseYn() {
| |
| 176 | - return searchUseYn; | |
| 177 | - } | |
| 178 | - | |
| 179 | - public void setSearchUseYn(String searchUseYn) {
| |
| 180 | - this.searchUseYn = searchUseYn; | |
| 181 | - } | |
| 182 | - | |
| 183 | - public int getPageIndex() {
| |
| 184 | - return pageIndex; | |
| 185 | - } | |
| 186 | - | |
| 187 | - public void setPageIndex(int pageIndex) {
| |
| 188 | - this.pageIndex = pageIndex; | |
| 189 | - } | |
| 190 | - | |
| 191 | - public int getPageUnit() {
| |
| 192 | - return pageUnit; | |
| 193 | - } | |
| 194 | - | |
| 195 | - public void setPageUnit(int pageUnit) {
| |
| 196 | - this.pageUnit = pageUnit; | |
| 197 | - } | |
| 198 | - | |
| 199 | - public int getPageSize() {
| |
| 200 | - return pageSize; | |
| 201 | - } | |
| 202 | - | |
| 203 | - public void setPageSize(int pageSize) {
| |
| 204 | - this.pageSize = pageSize; | |
| 205 | - } | |
| 206 | - | |
| 207 | - public String toString() {
| |
| 208 | - return ToStringBuilder.reflectionToString(this); | |
| 209 | - } | |
| 210 | - | |
| 211 | - public String getSearchBeginDate() {
| |
| 212 | - return searchBeginDate; | |
| 213 | - } | |
| 214 | - | |
| 215 | - public void setSearchBeginDate(String searchBeginDate) {
| |
| 216 | - this.searchBeginDate = searchBeginDate; | |
| 217 | - } | |
| 218 | - | |
| 219 | - public String getSearchEndDate() {
| |
| 220 | - return searchEndDate; | |
| 221 | - } | |
| 222 | - | |
| 223 | - public void setSearchEndDate(String searchEndDate) {
| |
| 224 | - this.searchEndDate = searchEndDate; | |
| 225 | - } | |
| 226 | - | |
| 227 | - public String getSearchTermTy() {
| |
| 228 | - return searchTermTy; | |
| 229 | - } | |
| 230 | - | |
| 231 | - public void setSearchTermTy(String searchTermTy) {
| |
| 232 | - this.searchTermTy = searchTermTy; | |
| 233 | - } | |
| 234 | - | |
| 235 | - public String getAdminYn() {
| |
| 236 | - return adminYn; | |
| 237 | - } | |
| 238 | - | |
| 239 | - public void setAdminYn(String adminYn) {
| |
| 240 | - this.adminYn = adminYn; | |
| 241 | - } | |
| 242 | - | |
| 243 | - public String getMngrAt() {
| |
| 244 | - return mngrAt; | |
| 245 | - } | |
| 246 | - | |
| 247 | - public void setMngrAt(String mngrAt) {
| |
| 248 | - this.mngrAt = mngrAt; | |
| 249 | - } | |
| 250 | - | |
| 251 | - public String getSiteId() {
| |
| 252 | - return siteId; | |
| 253 | - } | |
| 254 | - | |
| 255 | - public void setSiteId(String siteId) {
| |
| 256 | - this.siteId = siteId; | |
| 257 | - } | |
| 258 | - | |
| 259 | - public String getMenuId() {
| |
| 260 | - return menuId; | |
| 261 | - } | |
| 262 | - | |
| 263 | - public void setMenuId(String menuId) {
| |
| 264 | - this.menuId = menuId; | |
| 265 | - } | |
| 266 | - | |
| 267 | - | |
| 268 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtnschdulinfoService.java
+++ base/src/main/java/egovframework/com/evt/service/ComtnschdulinfoService.java
... | ... | @@ -3,279 +3,14 @@ |
| 3 | 3 |
import java.util.List; |
| 4 | 4 |
import java.util.Map; |
| 5 | 5 |
|
| 6 |
-import egovframework.com.evt.service.ComtnschdulinfoDefaultVO; |
|
| 7 |
-import egovframework.com.evt.service.ComtnschdulinfoVO; |
|
| 8 |
-import egovframework.com.evt.service.ComtneventadhrncVO; |
|
| 9 | 6 |
|
| 10 |
-/** |
|
| 11 |
- * @Class Name : ComtnschdulinfoService.java |
|
| 12 |
- * @Description : Comtnschdulinfo Business class |
|
| 13 |
- * @Modification Information |
|
| 14 |
- * |
|
| 15 |
- * @author 이호영 |
|
| 16 |
- * @since 2011.08.17 |
|
| 17 |
- * @version 1.0 |
|
| 18 |
- * @see |
|
| 19 |
- * |
|
| 20 |
- * Copyright (C) All right reserved. |
|
| 21 |
- */ |
|
| 22 | 7 |
public interface ComtnschdulinfoService {
|
| 23 | 8 |
|
| 24 |
- /** |
|
| 25 |
- * COMTNSCHDULINFO을 등록한다. |
|
| 26 |
- * @param vo - 등록할 정보가 담긴 ComtnschdulinfoVO |
|
| 27 |
- * @return 등록 결과 |
|
| 28 |
- * @exception Exception |
|
| 29 |
- */ |
|
| 30 |
- void insertComtnschdulinfo(ComtnschdulinfoVO vo) throws Exception; |
|
| 9 |
+ //COMTNSCHDULINFO 목록을 월별로 조회한다. |
|
| 10 |
+ List selectComtnschdulinfoList_S(ComtnschdulinfoVO searchVO) throws Exception; |
|
| 31 | 11 |
|
| 32 |
- /** |
|
| 33 |
- * COMTNSCHDULINFO을 수정한다. |
|
| 34 |
- * @param vo - 수정할 정보가 담긴 ComtnschdulinfoVO |
|
| 35 |
- * @return void형 |
|
| 36 |
- * @exception Exception |
|
| 37 |
- */ |
|
| 38 |
- void updateComtnschdulinfo(ComtnschdulinfoVO vo) throws Exception; |
|
| 39 |
- |
|
| 40 |
- /** |
|
| 41 |
- * COMTNSCHDULINFO을 삭제한다. |
|
| 42 |
- * @param vo - 삭제할 정보가 담긴 ComtnschdulinfoVO |
|
| 43 |
- * @return void형 |
|
| 44 |
- * @exception Exception |
|
| 45 |
- */ |
|
| 46 |
- void deleteComtnschdulinfo(ComtnschdulinfoVO vo) throws Exception; |
|
| 47 |
- |
|
| 48 |
- /** |
|
| 49 |
- * COMTNEVENTADHRNC을 삭제한다. |
|
| 50 |
- * @param vo - 삭제할 정보가 담긴 ComtnschdulinfoVO |
|
| 51 |
- * @return void형 |
|
| 52 |
- * @exception Exception |
|
| 53 |
- */ |
|
| 54 |
- void deleteComtneventadhrnc(ComtnschdulinfoVO vo) throws Exception; |
|
| 55 |
- |
|
| 56 |
- /** |
|
| 57 |
- * COMTNSCHDULINFO을 조회한다. |
|
| 58 |
- * @param vo - 조회할 정보가 담긴 ComtnschdulinfoVO |
|
| 59 |
- * @return 조회한 COMTNSCHDULINFO |
|
| 60 |
- * @exception Exception |
|
| 61 |
- */ |
|
| 62 |
- ComtnschdulinfoVO selectComtnschdulinfo(ComtnschdulinfoVO vo) throws Exception; |
|
| 12 |
+ //COMTNSCHDULINFO 목록을 조회한다. |
|
| 13 |
+ List selectComtnschdulinfoList_D(ComtnschdulinfoVO searchVO) throws Exception; |
|
| 63 | 14 |
|
| 64 |
- /** |
|
| 65 |
- * 객관식 주관식 이벤트 조회. |
|
| 66 |
- * @param vo - 조회할 정보가 담긴 ComtnschdulinfoVO |
|
| 67 |
- * @return 조회한 ComtnschdulinfoVO |
|
| 68 |
- * @exception Exception |
|
| 69 |
- */ |
|
| 70 |
- ComtnschdulinfoVO selectComtnschduInfo(ComtnschdulinfoVO vo) throws Exception; |
|
| 71 |
- |
|
| 72 |
- /** |
|
| 73 |
- * 객관식 주관식 이벤트 결과 조회. |
|
| 74 |
- * @param vo - 조회할 정보가 담긴 ComtnschdulinfoVO |
|
| 75 |
- * @return 조회한 ComtnschdulinfoVO |
|
| 76 |
- * @exception Exception |
|
| 77 |
- */ |
|
| 78 |
- ComtnschdulinfoVO selectComtnschduInfoResult(ComtnschdulinfoVO vo) throws Exception; |
|
| 79 |
- |
|
| 80 |
- /** |
|
| 81 |
- * 참여 이벤트 조회 |
|
| 82 |
- * @param vo - 조회할 정보가 담긴 ComtnschdulinfoVO |
|
| 83 |
- * @return 조회한 ComtnschdulinfoVO |
|
| 84 |
- * @exception Exception |
|
| 85 |
- */ |
|
| 86 |
- ComtnschdulinfoVO selectComtnschdulForm(ComtnschdulinfoVO vo) throws Exception; |
|
| 87 |
- |
|
| 88 |
- /** |
|
| 89 |
- * COMTNSCHDULINFO 목록을 월별로 조회한다. |
|
| 90 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 91 |
- * @return COMTNSCHDULINFO 목록 |
|
| 92 |
- * @exception Exception |
|
| 93 |
- */ |
|
| 94 |
- List selectComtnschdulinfoList_S(ComtnschdulinfoDefaultVO searchVO) throws Exception; |
|
| 95 |
- |
|
| 96 |
- /** |
|
| 97 |
- * COMTNSCHDULINFO 목록을 조회한다. |
|
| 98 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 99 |
- * @return COMTNSCHDULINFO 목록 |
|
| 100 |
- * @exception Exception |
|
| 101 |
- */ |
|
| 102 |
- List selectComtnschdulinfoList_D(ComtnschdulinfoDefaultVO searchVO) throws Exception; |
|
| 103 |
- /** |
|
| 104 |
- * COMTNSCHDULINFO 총 갯수를 조회한다. |
|
| 105 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 106 |
- * @return COMTNSCHDULINFO 총 갯수 |
|
| 107 |
- * @exception |
|
| 108 |
- */ |
|
| 109 |
- int selectComtnschdulinfoListTotCnt(ComtnschdulinfoDefaultVO searchVO); |
|
| 110 |
- |
|
| 111 |
- /** |
|
| 112 |
- * COMTNSCHDULINFO 목록을 조회한다. |
|
| 113 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 114 |
- * @return COMTNSCHDULINFO 목록 |
|
| 115 |
- * @exception Exception |
|
| 116 |
- */ |
|
| 117 |
- List selectUserEventList(ComtnschdulinfoDefaultVO searchVO) throws Exception; |
|
| 118 |
- |
|
| 119 |
- /** |
|
| 120 |
- * COMTNSCHDULINFO 메인 목록을 조회한다. |
|
| 121 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 122 |
- * @return COMTNSCHDULINFO 목록 |
|
| 123 |
- * @exception Exception |
|
| 124 |
- */ |
|
| 125 |
- List selectUserEventMain(ComtnschdulinfoVO comtnschdulinfoVO) throws Exception; |
|
| 126 |
- |
|
| 127 |
- /** |
|
| 128 |
- * COMTNSCHDULINFO 총 갯수를 조회한다. |
|
| 129 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 130 |
- * @return COMTNSCHDULINFO 총 갯수 |
|
| 131 |
- * @exception |
|
| 132 |
- */ |
|
| 133 |
- int selectUserEventListTotCnt(ComtnschdulinfoDefaultVO searchVO); |
|
| 134 |
- |
|
| 135 |
- /** |
|
| 136 |
- * 이벤트 중복 사용자 조회 |
|
| 137 |
- * @exception |
|
| 138 |
- */ |
|
| 139 |
- boolean isRegDuplicate(ComtneventadhrncVO comtneventadhrncVO); |
|
| 140 |
- |
|
| 141 |
- /** |
|
| 142 |
- * 이벤트 중복 참여자 조회 |
|
| 143 |
- * @exception |
|
| 144 |
- */ |
|
| 145 |
- boolean isAnswerDuplicate(ComtnschdulinfoVO user); |
|
| 146 |
- |
|
| 147 |
- /** |
|
| 148 |
- * @param ComtneventadhrncVO 이벤트 사용자 등록 |
|
| 149 |
- * @return result 등록결과 |
|
| 150 |
- * @throws Exception |
|
| 151 |
- */ |
|
| 152 |
- public String insertEventUser(ComtneventadhrncVO comtneventadhrncVO) throws Exception; |
|
| 153 |
- |
|
| 154 |
- /** |
|
| 155 |
- * @param 이벤트 참여자 답안 ComtneventaswperVO |
|
| 156 |
- * @return void형 |
|
| 157 |
- * @exception Exception |
|
| 158 |
- */ |
|
| 159 |
- void addUserAnswerByBatch(ComtneventadhrncVO comtneventadhrncVO, List<ComtneventaswperVO> ary) throws Exception; |
|
| 160 |
- |
|
| 161 |
- /** |
|
| 162 |
- * @param 신청 이벤트 참여자 답안 ComtneventaswperVO |
|
| 163 |
- */ |
|
| 164 |
- public String insertEventFormAswper(ComtneventformaswperVO vo) throws Exception; |
|
| 165 |
- |
|
| 166 |
- /** |
|
| 167 |
- * @param 신청 이벤트 참여자 수정답안 ComtneventaswperVO |
|
| 168 |
- */ |
|
| 169 |
- public void updateEventFormAswper(ComtneventformaswperVO vo) throws Exception; |
|
| 170 |
- |
|
| 171 |
- /** |
|
| 172 |
- * COMTNEVENTADHRNC 목록을 조회한다. |
|
| 173 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 174 |
- * @return COMTNEVENTADHRNC 목록 |
|
| 175 |
- * @exception Exception |
|
| 176 |
- */ |
|
| 177 |
- List<ComtneventadhrncVO> selectComtneventadhrncList(ComtneventadhrncVO searchVO) throws Exception; |
|
| 178 |
- |
|
| 179 |
- /** |
|
| 180 |
- * COMTNEVENTADHRNC 총 갯수를 조회한다. |
|
| 181 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 182 |
- * @return COMTNEVENTADHRNC 총 갯수 |
|
| 183 |
- * @exception |
|
| 184 |
- */ |
|
| 185 |
- int selectComtneventadhrncListTotCnt(ComtneventadhrncVO searchVO); |
|
| 186 | 15 |
|
| 187 |
- /** |
|
| 188 |
- * COMTNEVENTPRZWNER을 등록한다. |
|
| 189 |
- * @param vo - 등록할 정보가 담긴 ComtneventprzwnerVO |
|
| 190 |
- * @return 등록 결과 |
|
| 191 |
- * @exception Exception |
|
| 192 |
- */ |
|
| 193 |
- void insertComtneventprzwner(ComtneventprzwnerVO vo) throws Exception; |
|
| 194 |
- |
|
| 195 |
- /** |
|
| 196 |
- * COMTNEVENTPRZWNER을 등록한다. |
|
| 197 |
- * @param vo - 등록할 정보가 담긴 ComtneventprzwnerVO |
|
| 198 |
- * @return 등록 결과 |
|
| 199 |
- * @exception Exception |
|
| 200 |
- */ |
|
| 201 |
- void insertComtneventprzwnerhopr(ComtneventprzwnerVO vo) throws Exception; |
|
| 202 |
- |
|
| 203 |
- |
|
| 204 |
- /** |
|
| 205 |
- * @param 이벤트 신청자를 취소시킨다 ComtneventprzwnerVO |
|
| 206 |
- */ |
|
| 207 |
- public void delComtneventprzwner(ComtneventprzwnerVO vo) throws Exception; |
|
| 208 |
- |
|
| 209 |
- /** |
|
| 210 |
- * COMTNEVENTPRZWNER 목록을 조회한다. |
|
| 211 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 212 |
- * @return COMTNEVENTPRZWNER 목록 |
|
| 213 |
- * @exception Exception |
|
| 214 |
- */ |
|
| 215 |
- List selectComtneventprzwnerList(ComtneventprzwnerDefaultVO searchVO) throws Exception; |
|
| 216 |
- |
|
| 217 |
- /** |
|
| 218 |
- * COMTNEVENTPRZWNER 총 갯수를 조회한다. |
|
| 219 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 220 |
- * @return COMTNEVENTADHRNC 총 갯수 |
|
| 221 |
- * @exception |
|
| 222 |
- */ |
|
| 223 |
- int selectComtneventprzwnerCnt(ComtneventprzwnerDefaultVO searchVO); |
|
| 224 |
- |
|
| 225 |
- /** |
|
| 226 |
- * COMTNEVENTPRZWNER 총 갯수를 조회한다. |
|
| 227 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 228 |
- * @return COMTNEVENTPRZWNER 총 갯수 |
|
| 229 |
- * @exception |
|
| 230 |
- */ |
|
| 231 |
- int selectComtneventprzwnerListTotCnt(ComtneventprzwnerDefaultVO searchVO); |
|
| 232 |
- |
|
| 233 |
- /** |
|
| 234 |
- * COMTNEVENTFORMASWPER을 조회한다. |
|
| 235 |
- * @param vo - 조회할 정보가 담긴 ComtneventformaswperVO |
|
| 236 |
- * @return 조회한 COMTNEVENTFORMASWPER |
|
| 237 |
- * @exception Exception |
|
| 238 |
- */ |
|
| 239 |
- ComtneventformaswperVO selectComtneventformaswper(ComtneventformaswperVO vo) throws Exception; |
|
| 240 |
- |
|
| 241 |
- /** |
|
| 242 |
- * 사용자별 당첨목록을 조회한다. |
|
| 243 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 244 |
- * @return COMTNEVENTPRZWNER 목록 |
|
| 245 |
- * @exception Exception |
|
| 246 |
- */ |
|
| 247 |
- List selectComtneventprzwnerUserList(ComtneventprzwnerDefaultVO searchVO) throws Exception; |
|
| 248 |
- |
|
| 249 |
- /** |
|
| 250 |
- * 사용자별 당첨자 갯수를 조회한다. |
|
| 251 |
- * @param searchVO - 조회할 정보가 담긴 VO |
|
| 252 |
- * @return COMTNEVENTPRZWNER 총 갯수 |
|
| 253 |
- * @exception |
|
| 254 |
- */ |
|
| 255 |
- int selectComtneventprzwnerUserListCnt(ComtneventprzwnerDefaultVO searchVO); |
|
| 256 |
- |
|
| 257 |
- /** |
|
| 258 |
- * 주관식 결과 화면목록을 조회한다. |
|
| 259 |
- * @exception |
|
| 260 |
- */ |
|
| 261 |
- public Map<String, Object> selectCommunitySbjctList(ComtneventaswperVO comtneventaswperVO) throws Exception; |
|
| 262 |
- |
|
| 263 |
- /** |
|
| 264 |
- * 이벤트 사용자별 참여내역을 조회한다 |
|
| 265 |
- * @exception |
|
| 266 |
- */ |
|
| 267 |
- List selectCommunityAswper(ComtneventaswperVO comtneventaswperVO) throws Exception; |
|
| 268 |
- |
|
| 269 |
- /** |
|
| 270 |
- * 이벤트 참여횟수를 조회한다. |
|
| 271 |
- * @exception |
|
| 272 |
- */ |
|
| 273 |
- public int selectComtneventadhrncCnt(ComtnschdulinfoVO vo) throws Exception; |
|
| 274 |
- |
|
| 275 |
- /** |
|
| 276 |
- * COMTNSCHDULINFO 팝업목록을 조회한다. |
|
| 277 |
- * @return COMTNSCHDULINFO 목록 |
|
| 278 |
- * @exception Exception |
|
| 279 |
- */ |
|
| 280 |
- public List selectComtnschdulinfoByPopupList() throws Exception; |
|
| 281 | 16 |
} |
--- base/src/main/java/egovframework/com/evt/service/ComtnschdulinfoVO.java
+++ base/src/main/java/egovframework/com/evt/service/ComtnschdulinfoVO.java
... | ... | @@ -7,622 +7,389 @@ |
| 7 | 7 |
|
| 8 | 8 |
import javax.annotation.Resource; |
| 9 | 9 |
|
| 10 |
+import egovframework.com.cmm.ComDefaultVO; |
|
| 10 | 11 |
import org.apache.commons.collections.Factory; |
| 11 | 12 |
import org.apache.commons.collections.ListUtils; |
| 12 | 13 |
import egovframework.com.cmm.service.FileVO; |
| 13 | 14 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 14 | 15 |
|
| 15 | 16 |
|
| 16 |
-/****************************************************** |
|
| 17 |
- * @Class Name : ComtnschdulinfoVO.java |
|
| 18 |
- * @Program name : egovframework.com.evt.service |
|
| 19 |
- * @Descriptopn : 스케쥴 기본정보VO |
|
| 20 |
- * @version : 1.0.0 |
|
| 21 |
- * @author : 이호영 |
|
| 22 |
- * @created date : 2011. 8. 17. |
|
| 23 |
- * Modification log |
|
| 24 |
- * ===================================================== |
|
| 25 |
- * date name description |
|
| 26 |
- * ----------------------------------------------------- |
|
| 27 |
- * 2011. 8. 17. 이호영 first generated |
|
| 28 |
-*********************************************************/ |
|
| 29 | 17 |
|
| 30 |
-@SuppressWarnings("serial")
|
|
| 31 |
-public class ComtnschdulinfoVO extends ComtnschdulinfoDefaultVO implements Serializable {
|
|
| 32 |
- |
|
| 33 |
- @Resource(name = "propertiesService") |
|
| 34 |
- protected EgovPropertyService propertyService; |
|
| 35 |
- |
|
| 36 |
- /** 사이트ID */ |
|
| 37 |
- private String siteId = ""; |
|
| 38 |
- |
|
| 39 |
- /** 시스템구분 */ |
|
| 40 |
- private String sysTyCode = ""; |
|
| 18 |
+public class ComtnschdulinfoVO extends ComDefaultVO {
|
|
| 41 | 19 |
|
| 42 |
- /** 스케쥴 Web 파일경로 */ |
|
| 20 |
+ //검색조건(년도) |
|
| 21 |
+ private String searchDate; |
|
| 22 |
+ |
|
| 23 |
+ //검색조건(년도) |
|
| 24 |
+ private int searchYear; |
|
| 25 |
+ |
|
| 26 |
+ //검색조건 (일정종류) |
|
| 27 |
+ private String searchSe; |
|
| 28 |
+ |
|
| 29 |
+ //화면 모드(달력/목록) |
|
| 30 |
+ private String mode; |
|
| 31 |
+ |
|
| 32 |
+ //검색조건(월) |
|
| 33 |
+ private int searchMonth; |
|
| 34 |
+ |
|
| 35 |
+ //검색조건(일) |
|
| 36 |
+ private int searchDay; |
|
| 37 |
+ |
|
| 38 |
+ //검색시작일 |
|
| 39 |
+ private String searchBeginDate = ""; |
|
| 40 |
+ |
|
| 41 |
+ //검색종료일 |
|
| 42 |
+ private String searchEndDate = ""; |
|
| 43 |
+ |
|
| 44 |
+ //검색기간구분 |
|
| 45 |
+ private String searchTermTy = ""; |
|
| 46 |
+ |
|
| 47 |
+ //검색조건 (일정종류) |
|
| 48 |
+ private String adminYn = ""; |
|
| 49 |
+ |
|
| 50 |
+ //스케쥴 Web 파일경로 |
|
| 43 | 51 |
private String storeWebPath = "/attachfiles/event/"; |
| 44 | 52 |
|
| 45 |
- /** SCHDUL_ID */ |
|
| 53 |
+ //SCHDUL_ID |
|
| 46 | 54 |
private java.lang.String schdulId; |
| 47 | 55 |
|
| 48 |
- /** SCHDUL_CL_CODE */ |
|
| 56 |
+ //SCHDUL_CL_CODE |
|
| 49 | 57 |
private java.lang.String schdulClCode; |
| 50 | 58 |
|
| 51 |
- /** SCHDUL_BGNDE */ |
|
| 59 |
+ //SCHDUL_BGNDE |
|
| 52 | 60 |
private java.lang.String schdulBgnde; |
| 53 | 61 |
|
| 54 |
- /** SCHDUL_ENDDE */ |
|
| 62 |
+ //SCHDUL_ENDDE |
|
| 55 | 63 |
private java.lang.String schdulEndde; |
| 56 | 64 |
|
| 57 |
- /** SCHDUL_NM */ |
|
| 65 |
+ //SCHDUL_NM |
|
| 58 | 66 |
private java.lang.String schdulNm; |
| 59 | 67 |
|
| 60 |
- /** SCHDUL_STRE_FILE_NM */ |
|
| 68 |
+ //SCHDUL_STRE_FILE_NM |
|
| 61 | 69 |
private java.lang.String schdulStreFileNm; |
| 62 | 70 |
|
| 63 |
- /** SCHDUL_CN */ |
|
| 71 |
+ //SCHDUL_CN |
|
| 64 | 72 |
private java.lang.String schdulCn; |
| 65 | 73 |
|
| 66 |
- /** SCHDUL_CHARGER_ID */ |
|
| 74 |
+ //SCHDUL_CHARGER_ID |
|
| 67 | 75 |
private java.lang.String schdulChargerId; |
| 68 | 76 |
|
| 69 |
- /** ATCH_FILE_ID */ |
|
| 70 |
- private java.lang.String atchFileId; |
|
| 71 |
- |
|
| 72 |
- /** FRST_REGISTER_PNTTM */ |
|
| 73 |
- private java.sql.Date frstRegisterPnttm; |
|
| 74 |
- |
|
| 75 |
- /** FRST_REGISTER_ID */ |
|
| 76 |
- private java.lang.String frstRegisterId; |
|
| 77 |
- |
|
| 78 |
- /** LAST_UPDUSR_PNTTM */ |
|
| 79 |
- private java.sql.Date lastUpdusrPnttm; |
|
| 80 |
- |
|
| 81 |
- /** LAST_UPDUSR_ID */ |
|
| 82 |
- private java.lang.String lastUpdusrId; |
|
| 83 |
- |
|
| 84 |
- /** REPTIT_AT */ |
|
| 77 |
+ //REPTIT_AT |
|
| 85 | 78 |
private java.lang.String reptitAt; |
| 86 | 79 |
|
| 87 |
- /** INQIRE_CO */ |
|
| 80 |
+ //INQIRE_CO |
|
| 88 | 81 |
private java.math.BigDecimal inqireCo = BigDecimal.ZERO; |
| 89 | 82 |
|
| 90 |
- /** TOTAL_CO */ |
|
| 83 |
+ //TOTAL_CO |
|
| 91 | 84 |
private double totalCo = 0; |
| 92 | 85 |
|
| 93 |
- /** USE_AT */ |
|
| 94 |
- private java.lang.String useAt; |
|
| 95 |
- |
|
| 96 |
- /** PRESNATN_DE */ |
|
| 86 |
+ //PRESNATN_DE |
|
| 97 | 87 |
private java.lang.String presnatnDe; |
| 98 | 88 |
|
| 99 |
- /** UPEND_STRE_FILE_NM */ |
|
| 89 |
+ //UPEND_STRE_FILE_NM |
|
| 100 | 90 |
private java.lang.String upendStreFileNm; |
| 101 | 91 |
|
| 102 |
- /** MIDDLE_STRE_FILE_NM */ |
|
| 92 |
+ //MIDDLE_STRE_FILE_NM |
|
| 103 | 93 |
private java.lang.String middleStreFileNm; |
| 104 | 94 |
|
| 105 |
- /** LPT_STRE_FILE_NM */ |
|
| 95 |
+ //LPT_STRE_FILE_NM |
|
| 106 | 96 |
private java.lang.String lptStreFileNm; |
| 107 | 97 |
|
| 108 |
- /** REQST_ID */ |
|
| 98 |
+ //REQST_ID |
|
| 109 | 99 |
private java.lang.String reqstId; |
| 110 | 100 |
|
| 111 |
- /** REQST_FORM */ |
|
| 101 |
+ //REQST_FORM |
|
| 112 | 102 |
private String reqstForm; |
| 113 | 103 |
|
| 114 |
- /** PRZWNER_NMPR */ |
|
| 104 |
+ //PRZWNER_NMPR |
|
| 115 | 105 |
private Integer przwnerNmpr; |
| 116 | 106 |
|
| 117 |
- /** TRGT_URL */ |
|
| 107 |
+ //TRGT_URL |
|
| 118 | 108 |
private String trgtUrl; |
| 119 |
- |
|
| 120 |
- |
|
| 121 |
- private java.lang.String userId; |
|
| 122 | 109 |
private Boolean isError; |
| 123 | 110 |
private String errorMessage; |
| 124 | 111 |
private Boolean state; |
| 125 | 112 |
private String wner; |
| 126 | 113 |
|
| 127 | 114 |
private String fileGroupId; |
| 128 |
- |
|
| 129 |
- |
|
| 130 | 115 |
|
| 131 |
- |
|
| 132 |
- |
|
| 133 |
- public String getFileGroupId() {
|
|
| 134 |
- return fileGroupId; |
|
| 135 |
- } |
|
| 136 |
- |
|
| 137 |
- public void setFileGroupId(String fileGroupId) {
|
|
| 138 |
- this.fileGroupId = fileGroupId; |
|
| 139 |
- } |
|
| 140 |
- |
|
| 141 |
- private java.lang.String popupAt = "N"; |
|
| 142 |
- |
|
| 143 |
- public String getSiteId() {
|
|
| 144 |
- return siteId; |
|
| 145 |
- } |
|
| 146 |
- |
|
| 147 |
- public void setSiteId(String siteId) {
|
|
| 148 |
- this.siteId = siteId; |
|
| 149 |
- } |
|
| 150 |
- |
|
| 151 |
- public String getSysTyCode() {
|
|
| 152 |
- return sysTyCode; |
|
| 153 |
- } |
|
| 154 |
- |
|
| 155 |
- public void setSysTyCode(String sysTyCode) {
|
|
| 156 |
- this.sysTyCode = sysTyCode; |
|
| 157 |
- } |
|
| 158 |
- |
|
| 159 |
- public java.lang.String getStoreWebPath() {
|
|
| 160 |
- return propertyService.getString("Event.fileStoreWebPath");
|
|
| 116 |
+ public String getSearchDate() {
|
|
| 117 |
+ return searchDate; |
|
| 161 | 118 |
} |
| 162 |
- |
|
| 163 |
- public void setStoreWebPath(java.lang.String storeWebPath) {
|
|
| 119 |
+ |
|
| 120 |
+ public void setSearchDate(String searchDate) {
|
|
| 121 |
+ this.searchDate = searchDate; |
|
| 122 |
+ } |
|
| 123 |
+ |
|
| 124 |
+ public int getSearchYear() {
|
|
| 125 |
+ return searchYear; |
|
| 126 |
+ } |
|
| 127 |
+ |
|
| 128 |
+ public void setSearchYear(int searchYear) {
|
|
| 129 |
+ this.searchYear = searchYear; |
|
| 130 |
+ } |
|
| 131 |
+ |
|
| 132 |
+ public String getSearchSe() {
|
|
| 133 |
+ return searchSe; |
|
| 134 |
+ } |
|
| 135 |
+ |
|
| 136 |
+ public void setSearchSe(String searchSe) {
|
|
| 137 |
+ this.searchSe = searchSe; |
|
| 138 |
+ } |
|
| 139 |
+ |
|
| 140 |
+ public String getMode() {
|
|
| 141 |
+ return mode; |
|
| 142 |
+ } |
|
| 143 |
+ |
|
| 144 |
+ public void setMode(String mode) {
|
|
| 145 |
+ this.mode = mode; |
|
| 146 |
+ } |
|
| 147 |
+ |
|
| 148 |
+ public int getSearchMonth() {
|
|
| 149 |
+ return searchMonth; |
|
| 150 |
+ } |
|
| 151 |
+ |
|
| 152 |
+ public void setSearchMonth(int searchMonth) {
|
|
| 153 |
+ this.searchMonth = searchMonth; |
|
| 154 |
+ } |
|
| 155 |
+ |
|
| 156 |
+ public int getSearchDay() {
|
|
| 157 |
+ return searchDay; |
|
| 158 |
+ } |
|
| 159 |
+ |
|
| 160 |
+ public void setSearchDay(int searchDay) {
|
|
| 161 |
+ this.searchDay = searchDay; |
|
| 162 |
+ } |
|
| 163 |
+ |
|
| 164 |
+ public String getSearchBeginDate() {
|
|
| 165 |
+ return searchBeginDate; |
|
| 166 |
+ } |
|
| 167 |
+ |
|
| 168 |
+ public void setSearchBeginDate(String searchBeginDate) {
|
|
| 169 |
+ this.searchBeginDate = searchBeginDate; |
|
| 170 |
+ } |
|
| 171 |
+ |
|
| 172 |
+ public String getSearchEndDate() {
|
|
| 173 |
+ return searchEndDate; |
|
| 174 |
+ } |
|
| 175 |
+ |
|
| 176 |
+ public void setSearchEndDate(String searchEndDate) {
|
|
| 177 |
+ this.searchEndDate = searchEndDate; |
|
| 178 |
+ } |
|
| 179 |
+ |
|
| 180 |
+ public String getSearchTermTy() {
|
|
| 181 |
+ return searchTermTy; |
|
| 182 |
+ } |
|
| 183 |
+ |
|
| 184 |
+ public void setSearchTermTy(String searchTermTy) {
|
|
| 185 |
+ this.searchTermTy = searchTermTy; |
|
| 186 |
+ } |
|
| 187 |
+ |
|
| 188 |
+ public String getAdminYn() {
|
|
| 189 |
+ return adminYn; |
|
| 190 |
+ } |
|
| 191 |
+ |
|
| 192 |
+ public void setAdminYn(String adminYn) {
|
|
| 193 |
+ this.adminYn = adminYn; |
|
| 194 |
+ } |
|
| 195 |
+ |
|
| 196 |
+ public String getStoreWebPath() {
|
|
| 197 |
+ return storeWebPath; |
|
| 198 |
+ } |
|
| 199 |
+ |
|
| 200 |
+ public void setStoreWebPath(String storeWebPath) {
|
|
| 164 | 201 |
this.storeWebPath = storeWebPath; |
| 165 | 202 |
} |
| 166 |
- |
|
| 167 |
- public java.lang.String getSchdulId() {
|
|
| 168 |
- return this.schdulId; |
|
| 203 |
+ |
|
| 204 |
+ public String getSchdulId() {
|
|
| 205 |
+ return schdulId; |
|
| 169 | 206 |
} |
| 170 |
- |
|
| 171 |
- public void setSchdulId(java.lang.String schdulId) {
|
|
| 207 |
+ |
|
| 208 |
+ public void setSchdulId(String schdulId) {
|
|
| 172 | 209 |
this.schdulId = schdulId; |
| 173 | 210 |
} |
| 174 |
- |
|
| 175 |
- public java.lang.String getSchdulClCode() {
|
|
| 176 |
- return this.schdulClCode; |
|
| 211 |
+ |
|
| 212 |
+ public String getSchdulClCode() {
|
|
| 213 |
+ return schdulClCode; |
|
| 177 | 214 |
} |
| 178 |
- |
|
| 179 |
- public void setSchdulClCode(java.lang.String schdulClCode) {
|
|
| 215 |
+ |
|
| 216 |
+ public void setSchdulClCode(String schdulClCode) {
|
|
| 180 | 217 |
this.schdulClCode = schdulClCode; |
| 181 | 218 |
} |
| 182 |
- |
|
| 183 |
- public java.lang.String getSchdulBgnde() {
|
|
| 184 |
- return this.schdulBgnde; |
|
| 219 |
+ |
|
| 220 |
+ public String getSchdulBgnde() {
|
|
| 221 |
+ return schdulBgnde; |
|
| 185 | 222 |
} |
| 186 |
- |
|
| 187 |
- public void setSchdulBgnde(java.lang.String schdulBgnde) {
|
|
| 223 |
+ |
|
| 224 |
+ public void setSchdulBgnde(String schdulBgnde) {
|
|
| 188 | 225 |
this.schdulBgnde = schdulBgnde; |
| 189 | 226 |
} |
| 190 |
- |
|
| 191 |
- public java.lang.String getSchdulEndde() {
|
|
| 192 |
- return this.schdulEndde; |
|
| 227 |
+ |
|
| 228 |
+ public String getSchdulEndde() {
|
|
| 229 |
+ return schdulEndde; |
|
| 193 | 230 |
} |
| 194 |
- |
|
| 195 |
- public void setSchdulEndde(java.lang.String schdulEndde) {
|
|
| 231 |
+ |
|
| 232 |
+ public void setSchdulEndde(String schdulEndde) {
|
|
| 196 | 233 |
this.schdulEndde = schdulEndde; |
| 197 | 234 |
} |
| 198 |
- |
|
| 199 |
- public java.lang.String getSchdulNm() {
|
|
| 200 |
- return this.schdulNm; |
|
| 235 |
+ |
|
| 236 |
+ public String getSchdulNm() {
|
|
| 237 |
+ return schdulNm; |
|
| 201 | 238 |
} |
| 202 |
- |
|
| 203 |
- public void setSchdulNm(java.lang.String schdulNm) {
|
|
| 239 |
+ |
|
| 240 |
+ public void setSchdulNm(String schdulNm) {
|
|
| 204 | 241 |
this.schdulNm = schdulNm; |
| 205 | 242 |
} |
| 206 |
- |
|
| 207 |
- public java.lang.String getSchdulCn() {
|
|
| 208 |
- return this.schdulCn; |
|
| 243 |
+ |
|
| 244 |
+ public String getSchdulStreFileNm() {
|
|
| 245 |
+ return schdulStreFileNm; |
|
| 209 | 246 |
} |
| 210 |
- |
|
| 211 |
- public void setSchdulCn(java.lang.String schdulCn) {
|
|
| 247 |
+ |
|
| 248 |
+ public void setSchdulStreFileNm(String schdulStreFileNm) {
|
|
| 249 |
+ this.schdulStreFileNm = schdulStreFileNm; |
|
| 250 |
+ } |
|
| 251 |
+ |
|
| 252 |
+ public String getSchdulCn() {
|
|
| 253 |
+ return schdulCn; |
|
| 254 |
+ } |
|
| 255 |
+ |
|
| 256 |
+ public void setSchdulCn(String schdulCn) {
|
|
| 212 | 257 |
this.schdulCn = schdulCn; |
| 213 | 258 |
} |
| 214 |
- |
|
| 215 |
- public java.lang.String getSchdulChargerId() {
|
|
| 216 |
- return this.schdulChargerId; |
|
| 259 |
+ |
|
| 260 |
+ public String getSchdulChargerId() {
|
|
| 261 |
+ return schdulChargerId; |
|
| 217 | 262 |
} |
| 218 |
- |
|
| 219 |
- public void setSchdulChargerId(java.lang.String schdulChargerId) {
|
|
| 263 |
+ |
|
| 264 |
+ public void setSchdulChargerId(String schdulChargerId) {
|
|
| 220 | 265 |
this.schdulChargerId = schdulChargerId; |
| 221 | 266 |
} |
| 222 |
- |
|
| 223 |
- public java.lang.String getAtchFileId() {
|
|
| 224 |
- return this.atchFileId; |
|
| 267 |
+ |
|
| 268 |
+ public String getReptitAt() {
|
|
| 269 |
+ return reptitAt; |
|
| 225 | 270 |
} |
| 226 |
- |
|
| 227 |
- public void setAtchFileId(java.lang.String atchFileId) {
|
|
| 228 |
- this.atchFileId = atchFileId; |
|
| 229 |
- } |
|
| 230 |
- |
|
| 231 |
- public java.sql.Date getFrstRegisterPnttm() {
|
|
| 232 |
- return this.frstRegisterPnttm; |
|
| 233 |
- } |
|
| 234 |
- |
|
| 235 |
- public void setFrstRegisterPnttm(java.sql.Date frstRegisterPnttm) {
|
|
| 236 |
- this.frstRegisterPnttm = frstRegisterPnttm; |
|
| 237 |
- } |
|
| 238 |
- |
|
| 239 |
- public java.lang.String getFrstRegisterId() {
|
|
| 240 |
- return this.frstRegisterId; |
|
| 241 |
- } |
|
| 242 |
- |
|
| 243 |
- public void setFrstRegisterId(java.lang.String frstRegisterId) {
|
|
| 244 |
- this.frstRegisterId = frstRegisterId; |
|
| 245 |
- } |
|
| 246 |
- |
|
| 247 |
- public java.sql.Date getLastUpdusrPnttm() {
|
|
| 248 |
- return this.lastUpdusrPnttm; |
|
| 249 |
- } |
|
| 250 |
- |
|
| 251 |
- public void setLastUpdusrPnttm(java.sql.Date lastUpdusrPnttm) {
|
|
| 252 |
- this.lastUpdusrPnttm = lastUpdusrPnttm; |
|
| 253 |
- } |
|
| 254 |
- |
|
| 255 |
- public java.lang.String getLastUpdusrId() {
|
|
| 256 |
- return this.lastUpdusrId; |
|
| 257 |
- } |
|
| 258 |
- |
|
| 259 |
- public void setLastUpdusrId(java.lang.String lastUpdusrId) {
|
|
| 260 |
- this.lastUpdusrId = lastUpdusrId; |
|
| 261 |
- } |
|
| 262 |
- |
|
| 263 |
- public java.lang.String getReptitAt() {
|
|
| 264 |
- return this.reptitAt; |
|
| 265 |
- } |
|
| 266 |
- |
|
| 267 |
- public void setReptitAt(java.lang.String reptitAt) {
|
|
| 271 |
+ |
|
| 272 |
+ public void setReptitAt(String reptitAt) {
|
|
| 268 | 273 |
this.reptitAt = reptitAt; |
| 269 | 274 |
} |
| 270 |
- |
|
| 271 |
- public java.math.BigDecimal getInqireCo() {
|
|
| 272 |
- return this.inqireCo; |
|
| 275 |
+ |
|
| 276 |
+ public BigDecimal getInqireCo() {
|
|
| 277 |
+ return inqireCo; |
|
| 273 | 278 |
} |
| 274 |
- |
|
| 275 |
- public void setInqireCo(java.math.BigDecimal inqireCo) {
|
|
| 279 |
+ |
|
| 280 |
+ public void setInqireCo(BigDecimal inqireCo) {
|
|
| 276 | 281 |
this.inqireCo = inqireCo; |
| 277 | 282 |
} |
| 278 |
- |
|
| 283 |
+ |
|
| 279 | 284 |
public double getTotalCo() {
|
| 280 |
- return this.totalCo; |
|
| 285 |
+ return totalCo; |
|
| 281 | 286 |
} |
| 282 |
- |
|
| 287 |
+ |
|
| 283 | 288 |
public void setTotalCo(double totalCo) {
|
| 284 | 289 |
this.totalCo = totalCo; |
| 285 | 290 |
} |
| 286 |
- |
|
| 287 |
- public java.lang.String getUseAt() {
|
|
| 288 |
- return this.useAt; |
|
| 291 |
+ |
|
| 292 |
+ public String getPresnatnDe() {
|
|
| 293 |
+ return presnatnDe; |
|
| 289 | 294 |
} |
| 290 |
- |
|
| 291 |
- public void setUseAt(java.lang.String useAt) {
|
|
| 292 |
- this.useAt = useAt; |
|
| 293 |
- } |
|
| 294 |
- |
|
| 295 |
- public java.lang.String getPresnatnDe() {
|
|
| 296 |
- return this.presnatnDe; |
|
| 297 |
- } |
|
| 298 |
- |
|
| 299 |
- public void setPresnatnDe(java.lang.String presnatnDe) {
|
|
| 295 |
+ |
|
| 296 |
+ public void setPresnatnDe(String presnatnDe) {
|
|
| 300 | 297 |
this.presnatnDe = presnatnDe; |
| 301 | 298 |
} |
| 302 |
- |
|
| 303 |
- public java.lang.String getUpendStreFileNm() {
|
|
| 304 |
- return this.upendStreFileNm; |
|
| 299 |
+ |
|
| 300 |
+ public String getUpendStreFileNm() {
|
|
| 301 |
+ return upendStreFileNm; |
|
| 305 | 302 |
} |
| 306 |
- |
|
| 307 |
- public void setUpendStreFileNm(java.lang.String upendStreFileNm) {
|
|
| 303 |
+ |
|
| 304 |
+ public void setUpendStreFileNm(String upendStreFileNm) {
|
|
| 308 | 305 |
this.upendStreFileNm = upendStreFileNm; |
| 309 | 306 |
} |
| 310 |
- |
|
| 311 |
- public java.lang.String getSchdulStreFileNm() {
|
|
| 312 |
- return this.schdulStreFileNm; |
|
| 307 |
+ |
|
| 308 |
+ public String getMiddleStreFileNm() {
|
|
| 309 |
+ return middleStreFileNm; |
|
| 313 | 310 |
} |
| 314 |
- |
|
| 315 |
- public void setSchdulStreFileNm(java.lang.String schdulStreFileNm) {
|
|
| 316 |
- this.schdulStreFileNm = schdulStreFileNm; |
|
| 317 |
- } |
|
| 318 |
- |
|
| 319 |
- public java.lang.String getMiddleStreFileNm() {
|
|
| 320 |
- return this.middleStreFileNm; |
|
| 321 |
- } |
|
| 322 |
- |
|
| 323 |
- public void setMiddleStreFileNm(java.lang.String middleStreFileNm) {
|
|
| 311 |
+ |
|
| 312 |
+ public void setMiddleStreFileNm(String middleStreFileNm) {
|
|
| 324 | 313 |
this.middleStreFileNm = middleStreFileNm; |
| 325 | 314 |
} |
| 326 |
- |
|
| 327 |
- public java.lang.String getLptStreFileNm() {
|
|
| 328 |
- return this.lptStreFileNm; |
|
| 315 |
+ |
|
| 316 |
+ public String getLptStreFileNm() {
|
|
| 317 |
+ return lptStreFileNm; |
|
| 329 | 318 |
} |
| 330 |
- |
|
| 331 |
- public void setLptStreFileNm(java.lang.String lptStreFileNm) {
|
|
| 319 |
+ |
|
| 320 |
+ public void setLptStreFileNm(String lptStreFileNm) {
|
|
| 332 | 321 |
this.lptStreFileNm = lptStreFileNm; |
| 333 | 322 |
} |
| 334 |
- |
|
| 335 |
- public void setFileValue(List<FileVO> files) {
|
|
| 336 |
- if(files != null) {
|
|
| 337 |
- for(int index=0; index < files.size(); index++) {
|
|
| 338 |
- FileVO file = files.get(index); |
|
| 339 |
- if(file.getFormNm().startsWith("schdul")) {
|
|
| 340 |
- this.schdulStreFileNm = file.getStreFileNm(); |
|
| 341 |
- } else if(file.getFormNm().startsWith("upend")) {
|
|
| 342 |
- this.upendStreFileNm = file.getStreFileNm(); |
|
| 343 |
- } else if(file.getFormNm().startsWith("middle")) {
|
|
| 344 |
- this.middleStreFileNm = file.getStreFileNm(); |
|
| 345 |
- } else if(file.getFormNm().startsWith("lpt")) {
|
|
| 346 |
- this.lptStreFileNm = file.getStreFileNm(); |
|
| 347 |
- } |
|
| 348 |
- } |
|
| 349 |
- } |
|
| 350 |
- } |
|
| 351 |
- |
|
| 352 |
- public String getSchdulStreFileNmByWebPath() {
|
|
| 353 |
- return this.storeWebPath + this.schdulStreFileNm; |
|
| 354 |
- } |
|
| 355 |
- |
|
| 356 |
- public String getUpendFileNmByWebPath() {
|
|
| 357 |
- return this.storeWebPath + this.upendStreFileNm; |
|
| 358 |
- } |
|
| 359 |
- |
|
| 360 |
- public String getMiddleFileNmByWebPath() {
|
|
| 361 |
- return this.storeWebPath + this.middleStreFileNm; |
|
| 362 |
- } |
|
| 363 |
- |
|
| 364 |
- public String getLptFileNmByWebPath() {
|
|
| 365 |
- return this.storeWebPath + this.lptStreFileNm; |
|
| 323 |
+ |
|
| 324 |
+ public String getReqstId() {
|
|
| 325 |
+ return reqstId; |
|
| 366 | 326 |
} |
| 367 | 327 |
|
| 368 |
- private List questionTitleList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 369 |
- |
|
| 370 |
- public Object create() {
|
|
| 371 |
- return new String(); |
|
| 372 |
- } |
|
| 373 |
- }); |
|
| 374 |
- |
|
| 375 |
- public List getQuestionTitleList() {
|
|
| 376 |
- return questionTitleList; |
|
| 377 |
- } |
|
| 378 |
- |
|
| 379 |
- public void setQuestionTitleList(List questionTitleList) {
|
|
| 380 |
- this.questionTitleList = questionTitleList; |
|
| 381 |
- } |
|
| 382 |
- |
|
| 383 |
- private List typeList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 384 |
- |
|
| 385 |
- public Object create() {
|
|
| 386 |
- return new String(); |
|
| 387 |
- } |
|
| 388 |
- }); |
|
| 389 |
- |
|
| 390 |
- public List getTypeList() {
|
|
| 391 |
- return typeList; |
|
| 392 |
- } |
|
| 393 |
- |
|
| 394 |
- public void setTypeList(List typeList) {
|
|
| 395 |
- this.typeList = typeList; |
|
| 396 |
- } |
|
| 397 |
- |
|
| 398 |
- private List maximumList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 399 |
- |
|
| 400 |
- public Object create() {
|
|
| 401 |
- return new String(); |
|
| 402 |
- } |
|
| 403 |
- }); |
|
| 404 |
- |
|
| 405 |
- public List getMaximumList() {
|
|
| 406 |
- return maximumList; |
|
| 407 |
- } |
|
| 408 |
- |
|
| 409 |
- public void setMaximumList(List maximumList) {
|
|
| 410 |
- this.maximumList = maximumList; |
|
| 411 |
- } |
|
| 412 |
- |
|
| 413 |
- private List exampleList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 414 |
- |
|
| 415 |
- public Object create() {
|
|
| 416 |
- return new String(); |
|
| 417 |
- } |
|
| 418 |
- }); |
|
| 419 |
- |
|
| 420 |
- public List getExampleList() {
|
|
| 421 |
- return exampleList; |
|
| 422 |
- } |
|
| 423 |
- |
|
| 424 |
- public void setExampleList(List exampleList) {
|
|
| 425 |
- this.exampleList = exampleList; |
|
| 426 |
- } |
|
| 427 |
- |
|
| 428 |
- private List exampleIdList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 429 |
- |
|
| 430 |
- public Object create() {
|
|
| 431 |
- return new String(); |
|
| 432 |
- } |
|
| 433 |
- }); |
|
| 434 |
- |
|
| 435 |
- public List getExampleIdList() {
|
|
| 436 |
- return exampleIdList; |
|
| 437 |
- } |
|
| 438 |
- |
|
| 439 |
- public void setExampleIdList(List exampleIdList) {
|
|
| 440 |
- this.exampleIdList = exampleIdList; |
|
| 441 |
- } |
|
| 442 |
- |
|
| 443 |
- private List questionIdList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 444 |
- |
|
| 445 |
- public Object create() {
|
|
| 446 |
- return new String(); |
|
| 447 |
- } |
|
| 448 |
- }); |
|
| 449 |
- |
|
| 450 |
- public List getQuestionIdList() {
|
|
| 451 |
- return questionIdList; |
|
| 452 |
- } |
|
| 453 |
- |
|
| 454 |
- public void setQuestionIdList(List questionIdList) {
|
|
| 455 |
- this.questionIdList = questionIdList; |
|
| 456 |
- } |
|
| 457 |
- |
|
| 458 |
- private List questionContentsList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 459 |
- |
|
| 460 |
- public Object create() {
|
|
| 461 |
- return new String(); |
|
| 462 |
- } |
|
| 463 |
- }); |
|
| 464 |
- |
|
| 465 |
- public List getQuestionContentsList() {
|
|
| 466 |
- return questionContentsList; |
|
| 467 |
- } |
|
| 468 |
- |
|
| 469 |
- public void setQuestionContentsList(List questionContentsList) {
|
|
| 470 |
- this.questionContentsList = questionContentsList; |
|
| 471 |
- } |
|
| 472 |
- |
|
| 473 |
- private List answerIdList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 474 |
- |
|
| 475 |
- public Object create() {
|
|
| 476 |
- return new String(); |
|
| 477 |
- } |
|
| 478 |
- }); |
|
| 479 |
- |
|
| 480 |
- public List getAnswerIdList() {
|
|
| 481 |
- return answerIdList; |
|
| 482 |
- } |
|
| 483 |
- |
|
| 484 |
- public void setAnswerIdList(List answerIdList) {
|
|
| 485 |
- this.answerIdList = answerIdList; |
|
| 486 |
- } |
|
| 487 |
- |
|
| 488 |
- private List answerList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 489 |
- |
|
| 490 |
- public Object create() {
|
|
| 491 |
- return new String(); |
|
| 492 |
- } |
|
| 493 |
- }); |
|
| 494 |
- |
|
| 495 |
- public List getAnswerList() {
|
|
| 496 |
- return answerList; |
|
| 497 |
- } |
|
| 498 |
- |
|
| 499 |
- public void setAnswerList(List answerList) {
|
|
| 500 |
- this.answerList = answerList; |
|
| 501 |
- } |
|
| 502 |
- |
|
| 503 |
- private List questionList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 504 |
- public Object create() {
|
|
| 505 |
- return new ComtneventqesitmVO(); |
|
| 506 |
- } |
|
| 507 |
- }); |
|
| 508 |
- |
|
| 509 |
- public List<ComtneventqesitmVO> getQuestionList() {
|
|
| 510 |
- return questionList; |
|
| 511 |
- } |
|
| 512 |
- |
|
| 513 |
- public void setQuestionList(List<ComtneventqesitmVO> questionList) {
|
|
| 514 |
- this.questionList = questionList; |
|
| 515 |
- } |
|
| 516 |
- |
|
| 517 |
- public String getUserId() {
|
|
| 518 |
- return userId; |
|
| 519 |
- } |
|
| 520 |
- |
|
| 521 |
- public void setUserId(String userId) {
|
|
| 522 |
- this.userId = userId; |
|
| 523 |
- } |
|
| 524 |
- |
|
| 525 |
- public Boolean getIsError() {
|
|
| 526 |
- return isError; |
|
| 527 |
- } |
|
| 528 |
- |
|
| 529 |
- public void setIsError(Boolean isError) {
|
|
| 530 |
- this.isError = isError; |
|
| 531 |
- } |
|
| 532 |
- |
|
| 533 |
- public String getErrorMessage() {
|
|
| 534 |
- return errorMessage; |
|
| 535 |
- } |
|
| 536 |
- |
|
| 537 |
- public void setErrorMessage(String errorMessage) {
|
|
| 538 |
- this.errorMessage = errorMessage; |
|
| 539 |
- } |
|
| 540 |
- |
|
| 541 |
- public Boolean getState() {
|
|
| 542 |
- return state; |
|
| 543 |
- } |
|
| 544 |
- |
|
| 545 |
- public void setState(Boolean state) {
|
|
| 546 |
- this.state = state; |
|
| 547 |
- } |
|
| 548 |
- |
|
| 549 |
- public String getWner() {
|
|
| 550 |
- return wner; |
|
| 551 |
- } |
|
| 552 |
- |
|
| 553 |
- public void setWner(String wner) {
|
|
| 554 |
- this.wner = wner; |
|
| 555 |
- } |
|
| 556 |
- |
|
| 557 |
- private List choiceAnswerList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 558 |
- |
|
| 559 |
- public Object create() {
|
|
| 560 |
- return new String(); |
|
| 561 |
- } |
|
| 562 |
- }); |
|
| 563 |
- |
|
| 564 |
- |
|
| 565 |
- public List getChoiceAnswerList() {
|
|
| 566 |
- return choiceAnswerList; |
|
| 567 |
- } |
|
| 568 |
- |
|
| 569 |
- public void setChoiceAnswerList(List choiceAnswerList) {
|
|
| 570 |
- this.choiceAnswerList = choiceAnswerList; |
|
| 571 |
- } |
|
| 572 |
- |
|
| 573 |
- private List essayAnswerList = ListUtils.lazyList(new ArrayList(), new Factory() {
|
|
| 574 |
- |
|
| 575 |
- public Object create() {
|
|
| 576 |
- return new String(); |
|
| 577 |
- } |
|
| 578 |
- }); |
|
| 579 |
- |
|
| 580 |
- public List getEssayAnswerList() {
|
|
| 581 |
- return essayAnswerList; |
|
| 582 |
- } |
|
| 583 |
- |
|
| 584 |
- public void setEssayAnswerList(List essayAnswerList) {
|
|
| 585 |
- this.essayAnswerList = essayAnswerList; |
|
| 586 |
- } |
|
| 587 |
- |
|
| 588 |
- public java.lang.String getReqstId() {
|
|
| 589 |
- return this.reqstId; |
|
| 590 |
- } |
|
| 591 |
- |
|
| 592 |
- public void setReqstId(java.lang.String reqstId) {
|
|
| 328 |
+ public void setReqstId(String reqstId) {
|
|
| 593 | 329 |
this.reqstId = reqstId; |
| 594 | 330 |
} |
| 595 |
- |
|
| 331 |
+ |
|
| 596 | 332 |
public String getReqstForm() {
|
| 597 |
- return this.reqstForm; |
|
| 333 |
+ return reqstForm; |
|
| 598 | 334 |
} |
| 599 |
- |
|
| 335 |
+ |
|
| 600 | 336 |
public void setReqstForm(String reqstForm) {
|
| 601 | 337 |
this.reqstForm = reqstForm; |
| 338 |
+ } |
|
| 339 |
+ |
|
| 340 |
+ public Integer getPrzwnerNmpr() {
|
|
| 341 |
+ return przwnerNmpr; |
|
| 602 | 342 |
} |
| 603 | 343 |
|
| 604 | 344 |
public void setPrzwnerNmpr(Integer przwnerNmpr) {
|
| 605 | 345 |
this.przwnerNmpr = przwnerNmpr; |
| 606 | 346 |
} |
| 607 |
- |
|
| 608 |
- public Integer getPrzwnerNmpr() {
|
|
| 609 |
- return this.przwnerNmpr; |
|
| 347 |
+ |
|
| 348 |
+ public String getTrgtUrl() {
|
|
| 349 |
+ return trgtUrl; |
|
| 610 | 350 |
} |
| 611 |
- |
|
| 351 |
+ |
|
| 612 | 352 |
public void setTrgtUrl(String trgtUrl) {
|
| 613 | 353 |
this.trgtUrl = trgtUrl; |
| 614 | 354 |
} |
| 615 |
- |
|
| 616 |
- public String getTrgtUrl() {
|
|
| 617 |
- return this.trgtUrl; |
|
| 355 |
+ |
|
| 356 |
+ public Boolean getError() {
|
|
| 357 |
+ return isError; |
|
| 618 | 358 |
} |
| 619 | 359 |
|
| 620 |
- public java.lang.String getPopupAt() {
|
|
| 621 |
- return popupAt; |
|
| 622 |
- } |
|
| 360 |
+ public void setError(Boolean error) {
|
|
| 361 |
+ isError = error; |
|
| 362 |
+ } |
|
| 623 | 363 |
|
| 624 |
- public void setPopupAt(java.lang.String popupAt) {
|
|
| 625 |
- this.popupAt = popupAt; |
|
| 626 |
- } |
|
| 364 |
+ public String getErrorMessage() {
|
|
| 365 |
+ return errorMessage; |
|
| 366 |
+ } |
|
| 627 | 367 |
|
| 368 |
+ public void setErrorMessage(String errorMessage) {
|
|
| 369 |
+ this.errorMessage = errorMessage; |
|
| 370 |
+ } |
|
| 371 |
+ |
|
| 372 |
+ public Boolean getState() {
|
|
| 373 |
+ return state; |
|
| 374 |
+ } |
|
| 375 |
+ |
|
| 376 |
+ public void setState(Boolean state) {
|
|
| 377 |
+ this.state = state; |
|
| 378 |
+ } |
|
| 379 |
+ |
|
| 380 |
+ public String getWner() {
|
|
| 381 |
+ return wner; |
|
| 382 |
+ } |
|
| 383 |
+ |
|
| 384 |
+ public void setWner(String wner) {
|
|
| 385 |
+ this.wner = wner; |
|
| 386 |
+ } |
|
| 387 |
+ |
|
| 388 |
+ public String getFileGroupId() {
|
|
| 389 |
+ return fileGroupId; |
|
| 390 |
+ } |
|
| 391 |
+ |
|
| 392 |
+ public void setFileGroupId(String fileGroupId) {
|
|
| 393 |
+ this.fileGroupId = fileGroupId; |
|
| 394 |
+ } |
|
| 628 | 395 |
} |
--- base/src/main/java/egovframework/com/evt/service/impl/ComtnschdulinfoDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/evt/service/impl/ComtnschdulinfoMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/evt/service/impl/ComtnschdulinfoServiceImpl.java
+++ base/src/main/java/egovframework/com/evt/service/impl/ComtnschdulinfoServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/evt/web/ComtnschdulinfoController.java
+++ base/src/main/java/egovframework/com/evt/web/ComtnschdulinfoController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSAttributeManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSAttributeManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/cmy/web/EgovCommunityManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/cmy/web/EgovCommunityManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/com/web/BbsSourcManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/com/web/BbsSourcManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/com/web/BbsTmplatManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/com/web/BbsTmplatManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/com/web/LytSourcManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/com/web/LytSourcManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/com/web/LytTmplatManageController.java
+++ base/src/main/java/egovframework/com/mng/cop/com/web/LytTmplatManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/evt/ComtnschdulinfoMngController.java
+++ base/src/main/java/egovframework/com/mng/evt/ComtnschdulinfoMngController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovBbsStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/EgovBbsStatsController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovEvtStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/EgovEvtStatsController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovScrinStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/EgovScrinStatsController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sts/web/EgovStatsController.java
+++ base/src/main/java/egovframework/com/mng/sts/web/EgovStatsController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sym/mpm/web/MpmController.java
+++ base/src/main/java/egovframework/com/mng/sym/mpm/web/MpmController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sym/sit/web/SiteManageController.java
+++ base/src/main/java/egovframework/com/mng/sym/sit/web/SiteManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/uss/ion/bnr/web/BannerManageController.java
+++ base/src/main/java/egovframework/com/mng/uss/ion/bnr/web/BannerManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/uss/ion/sit/web/EgovLinkSiteManageController.java
+++ base/src/main/java/egovframework/com/mng/uss/ion/sit/web/LinkSiteManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/uss/umt/web/EgovUserManageController.java
+++ base/src/main/java/egovframework/com/mng/uss/umt/web/EgovUserManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/msi/web/ContentsServiceController.java
+++ base/src/main/java/egovframework/com/msi/web/ContentsServiceController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/security/userdetails/util/EgovUserDetailsHelper.java
+++ base/src/main/java/egovframework/com/sec/ram/security/userdetails/util/EgovUserDetailsHelper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/AuthorGroup.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/AuthorGroupService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/AuthorGroupVO.java
+++ base/src/main/java/egovframework/com/sec/ram/service/AuthorGroupVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/AuthorManage.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/AuthorManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/AuthorManageVO.java
+++ base/src/main/java/egovframework/com/sec/ram/service/AuthorManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/AuthorRoleManage.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/AuthorRoleManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/AuthorRoleManageVO.java
+++ base/src/main/java/egovframework/com/sec/ram/service/AuthorRoleManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/DeptAuthor.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/DeptAuthorService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/DeptAuthorVO.java
+++ base/src/main/java/egovframework/com/sec/ram/service/DeptAuthorVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/EgovAuthorGroupService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/EgovAuthorManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/EgovAuthorRoleManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/EgovDeptAuthorService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/EgovGroupManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/EgovRoleManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/GroupManage.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/GroupManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/GroupManageVO.java
+++ base/src/main/java/egovframework/com/sec/ram/service/GroupManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/RoleManage.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/RoleManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/RoleManageVO.java
+++ base/src/main/java/egovframework/com/sec/ram/service/RoleManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorGroupDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorGroupMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorGroupServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorManageDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorRoleManageDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorRoleManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/AuthorRoleManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/DeptAuthorDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/DeptAuthorMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/DeptAuthorServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/EgovAuthorGroupServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/EgovAuthorManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/EgovAuthorRoleManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/EgovDeptAuthorServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/EgovGroupManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/EgovRoleManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/GroupManageDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/GroupManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/GroupManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/service/impl/RoleManageDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/RoleManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sec/ram/service/impl/RoleManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/web/EgovAuthorManageController.java
+++ base/src/main/java/egovframework/com/sec/ram/web/EgovAuthorManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/rnc/web/EgovRlnmManageController.java
+++ base/src/main/java/egovframework/com/sec/rnc/web/EgovRlnmManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sts/service/EgovScrinStatsService.java
+++ base/src/main/java/egovframework/com/sts/service/ScrinStatsService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sts/service/StatsVO.java
+++ base/src/main/java/egovframework/com/sts/service/StatsVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sts/service/WebLogSummary.java
+++ base/src/main/java/egovframework/com/sts/service/WebLogSummary.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sts/service/impl/EgovScrinStatsServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sts/service/impl/ScrinStatsDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sts/service/impl/ScrinStatsMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sts/service/impl/ScrinStatsServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/adc/service/AdministCode.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/adc/service/AdministCodeVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/adc/service/EgovCcmAdministCodeManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/adc/service/impl/AdministCodeManageDAO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/adc/service/impl/EgovCcmAdministCodeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/EgovLogManageAspect.java
+++ base/src/main/java/egovframework/com/sym/log/service/EgovLogManageAspect.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/EgovLogManageScheduling.java
+++ base/src/main/java/egovframework/com/sym/log/service/EgovLogManageScheduling.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/EgovLogManageService.java
+++ base/src/main/java/egovframework/com/sym/log/service/LogManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/EgovLoginInfoService.java
+++ base/src/main/java/egovframework/com/sym/log/service/LoginInfoService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/LoginLog.java
+++ base/src/main/java/egovframework/com/sym/log/service/LoginLog.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/impl/EgovLogManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/impl/EgovLoginInfoDAO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/impl/EgovLoginInfoServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/impl/LogManageDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sym/log/service/impl/LogManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sym/log/service/impl/LogManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sym/log/service/impl/LoginInfoMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/sym/log/service/impl/LoginInfoServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/web/EgovLogManageController.java
+++ base/src/main/java/egovframework/com/sym/log/web/EgovLogManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/web/EgovWebLogInterceptor.java
+++ base/src/main/java/egovframework/com/sym/log/web/EgovWebLogInterceptor.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/mpm/service/impl/MpmServiceImpl.java
+++ base/src/main/java/egovframework/com/sym/mpm/service/impl/MpmServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/sso/filter/EgovSSOFilter.java
+++ base/src/main/java/egovframework/com/uat/sso/filter/EgovSSOFilter.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/uia/service/EgovLogininfoScannerScanner.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/uia/service/EgovLoginService.java
+++ base/src/main/java/egovframework/com/uat/uia/service/LoginService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/uia/service/EgovLogoutService.java
+++ base/src/main/java/egovframework/com/uat/uia/service/LogoutService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/uia/service/impl/LoginDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uat/uia/service/impl/LoginMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/uia/service/impl/EgovLoginServiceImpl.java
+++ base/src/main/java/egovframework/com/uat/uia/service/impl/LoginServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/uia/web/EgovLoginController.java
+++ base/src/main/java/egovframework/com/uat/uia/web/EgovLoginController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/pwm/service/impl/PopupManageServiceImpl.java
+++ base/src/main/java/egovframework/com/uss/ion/pwm/service/impl/PopupManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/sit/service/EgovLinkSiteManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/sit/service/LinkSiteManageDefaultVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/ion/sit/service/LinkSiteManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/sit/service/LinkSiteManageVO.java
+++ base/src/main/java/egovframework/com/uss/ion/sit/service/LinkSiteManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/sit/service/impl/EgovLinkSiteManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/sit/service/impl/LinkSiteManageDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/ion/sit/service/impl/LinkSiteManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/ion/sit/service/impl/LinkSiteManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ivp/service/EgovIndvdlestbsService.java
+++ base/src/main/java/egovframework/com/uss/ivp/service/IndvdlestbsService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ivp/service/IndvdlestbsVO.java
+++ base/src/main/java/egovframework/com/uss/ivp/service/IndvdlestbsVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ivp/service/impl/EgovIndvdlestbsServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ivp/service/impl/IndvdlestbsDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/ivp/service/impl/IndvdlestbsMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/ivp/service/impl/IndvdlestbsServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ivp/web/EgovIndvdlestbsController.java
+++ base/src/main/java/egovframework/com/uss/ivp/web/EgovIndvdlestbsController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/umt/service/EgovUserManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/umt/service/UserManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/umt/service/UserManageVO.java
+++ base/src/main/java/egovframework/com/uss/umt/service/UserManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/umt/service/impl/EgovUserManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/umt/service/impl/UserManageDAO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/umt/service/impl/UserManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/uss/umt/service/impl/UserManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/umt/web/EgovUserInfoController.java
+++ base/src/main/java/egovframework/com/uss/umt/web/EgovUserInfoController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/cmm/fms/File_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/Confirm_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/UserInf_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/evt/Comtnschdulinfo_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sec/AuthorGroup_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sec/AuthorManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sec/AuthorRoleManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sec/DeptAuthor_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sec/GroupManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sec/RoleManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sms/Sms_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sts/ScrinStats_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sym/log/LoginInfo_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/sym/log/SysLog_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/uat/uia/Login_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/uss/ion/sit/LinkSiteManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/uss/ivp/Indvdlestbs_SQL.xml
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/resources/egovframework/mapper/mysql/uss/umt/UserManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/spring/context-idgen.xml
+++ base/src/main/resources/egovframework/spring/context-idgen.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/spring/context-sqlMap.xml
+++ base/src/main/resources/egovframework/spring/context-sqlMap.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql.xml
+++ base/src/main/resources/egovframework/sqlmap/config/mysql/sql-map-config-mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/cmm/fms/EgovFile_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/cmm/sym/ccm/EgovAdministCodeManage_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/cop/com/EgovConfirm_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/cop/com/EgovUserInf_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/cop/sms/EgovSms_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/evt/Comtnschdulinfo_SQL_Mysql.xml
+++ base/src/main/resources/egovframework/sqlmap/mysql/evt/Comtnschdulinfo_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sec/EgovAuthorGroup_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sec/EgovAuthorManage_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sec/EgovAuthorRoleManage_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sec/EgovDeptAuthor_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sec/EgovGroupManage_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sec/EgovRoleManage_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sts/EgovScrinStats_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sym/log/EgovLoginInfo_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/sym/log/EgovSysLog_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/uat/uia/EgovLoginUsr_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/uss/ion/sit/EgovLinkSiteManage_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/uss/ivp/EgovIndvdlestbs_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/sqlmap/mysql/uss/umt/EgovUserManage_SQL_Mysql.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-stsaop.xml
+++ base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-stsaop.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/EgovNoticeInqire.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/cop/bbs/default/EgovNoticeInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sts/EgovScrinStats.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/sts/EgovScrinStats.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/template/top.jsp
| This diff is skipped because there are too many other diffs. |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?