--- base/Documents/BaseForMySql_v1.0.erwin
+++ base/Documents/BaseForMySql_v1.0.erwin
| Binary file is not shown |
--- base/pom.xml
+++ base/pom.xml
... | ... | @@ -294,7 +294,7 @@ |
| 294 | 294 |
<version>1.5</version> |
| 295 | 295 |
</dependency> |
| 296 | 296 |
<dependency> |
| 297 |
- <groupId>egovframework.com.ems</groupId> |
|
| 297 |
+ <groupId>egovframework.module.ems</groupId> |
|
| 298 | 298 |
<artifactId>sndng-mail</artifactId> |
| 299 | 299 |
<version>1.0</version> |
| 300 | 300 |
</dependency> --> |
--- base/src/main/java/egovframework/com/cmm/service/CmmUseService.java
+++ base/src/main/java/egovframework/com/cmm/service/CmmUseService.java
... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 |
import java.util.List; |
| 4 | 4 |
import java.util.Map; |
| 5 | 5 |
|
| 6 |
-import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
|
| 6 |
+import egovframework.module.sym.ccm.cde.service.CmmnDetailCodeVO; |
|
| 7 | 7 |
|
| 8 | 8 |
//공통코드등 전체 업무에서 공용해서 사용해야 하는 서비스를 정의하기 위한 서비스 인터페이스 |
| 9 | 9 |
public interface CmmUseService {
|
--- base/src/main/java/egovframework/com/cmm/service/FileMngService.java
+++ base/src/main/java/egovframework/com/cmm/service/FileMngService.java
... | ... | @@ -6,8 +6,7 @@ |
| 6 | 6 |
import javax.servlet.http.HttpServletRequest; |
| 7 | 7 |
import javax.servlet.http.HttpServletResponse; |
| 8 | 8 |
|
| 9 |
-import egovframework.com.cop.bbs.service.BoardVO; |
|
| 10 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 9 |
+import egovframework.module.cop.bbs.service.BoardVO; |
|
| 11 | 10 |
|
| 12 | 11 |
//파일정보의 관리를 위한 서비스 인터페이스 |
| 13 | 12 |
public interface FileMngService {
|
--- base/src/main/java/egovframework/com/cmm/service/FileMngUtil.java
+++ base/src/main/java/egovframework/com/cmm/service/FileMngUtil.java
... | ... | @@ -20,8 +20,8 @@ |
| 20 | 20 |
import org.springframework.stereotype.Component; |
| 21 | 21 |
import org.springframework.web.multipart.MultipartFile; |
| 22 | 22 |
|
| 23 |
-import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; |
|
| 24 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 23 |
+import egovframework.module.utl.fcc.service.EgovFormBasedFileUtil; |
|
| 24 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 25 | 25 |
import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
| 26 | 26 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 27 | 27 |
|
--- base/src/main/java/egovframework/com/cmm/service/FileVO.java
+++ base/src/main/java/egovframework/com/cmm/service/FileVO.java
... | ... | @@ -1,14 +1,10 @@ |
| 1 | 1 |
package egovframework.com.cmm.service; |
| 2 | 2 |
|
| 3 |
-import java.io.Serializable; |
|
| 4 | 3 |
import java.math.BigDecimal; |
| 5 | 4 |
import java.util.Date; |
| 6 | 5 |
import java.util.List; |
| 7 | 6 |
|
| 8 |
-import org.apache.commons.lang.builder.ToStringBuilder; |
|
| 9 |
- |
|
| 10 | 7 |
import egovframework.com.cmm.ComDefaultVO; |
| 11 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 12 | 8 |
|
| 13 | 9 |
//파일정보 처리를 위한 VO 클래스 |
| 14 | 10 |
public class FileVO extends ComDefaultVO {
|
--- base/src/main/java/egovframework/com/cmm/service/Globals.java
+++ base/src/main/java/egovframework/com/cmm/service/Globals.java
... | ... | @@ -1,7 +1,7 @@ |
| 1 | 1 |
package egovframework.com.cmm.service; |
| 2 | 2 |
|
| 3 | 3 |
import javax.servlet.http.HttpServletRequest; |
| 4 |
-import egovframework.com.utl.fcc.service.EgovHttpUtil; |
|
| 4 |
+import egovframework.module.utl.fcc.service.EgovHttpUtil; |
|
| 5 | 5 |
/** |
| 6 | 6 |
* Class Name : Globals.java |
| 7 | 7 |
* Description : 시스템 구동 시 프로퍼티를 통해 사용될 전역변수를 정의한다. |
--- base/src/main/java/egovframework/com/cmm/service/impl/CmmUseMapper.java
+++ base/src/main/java/egovframework/com/cmm/service/impl/CmmUseMapper.java
... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 |
|
| 3 | 3 |
import java.util.List; |
| 4 | 4 |
|
| 5 |
-import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
|
| 5 |
+import egovframework.module.sym.ccm.cde.service.CmmnDetailCodeVO; |
|
| 6 | 6 |
import egovframework.rte.psl.dataaccess.mapper.Mapper; |
| 7 | 7 |
|
| 8 | 8 |
@Mapper("cmmUseMapper")
|
--- base/src/main/java/egovframework/com/cmm/service/impl/CmmUseServiceImpl.java
+++ base/src/main/java/egovframework/com/cmm/service/impl/CmmUseServiceImpl.java
... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 |
import org.springframework.stereotype.Service; |
| 11 | 11 |
|
| 12 | 12 |
import egovframework.com.cmm.service.CmmUseService; |
| 13 |
-import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; |
|
| 13 |
+import egovframework.module.sym.ccm.cde.service.CmmnDetailCodeVO; |
|
| 14 | 14 |
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
| 15 | 15 |
|
| 16 | 16 |
//공통코드등 전체 업무에서 공용해서 사용해야 하는 서비스를 정의하기위한 서비스 구현 클래스 |
--- base/src/main/java/egovframework/com/cmm/service/impl/FileMngServiceImpl.java
+++ base/src/main/java/egovframework/com/cmm/service/impl/FileMngServiceImpl.java
... | ... | @@ -13,14 +13,13 @@ |
| 13 | 13 |
|
| 14 | 14 |
import egovframework.com.cmm.service.FileMngService; |
| 15 | 15 |
import egovframework.com.cmm.service.FileVO; |
| 16 |
-import egovframework.com.cop.bbs.service.BoardVO; |
|
| 16 |
+import egovframework.module.cop.bbs.service.BoardVO; |
|
| 17 | 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; |
|
| 18 |
+import egovframework.module.uat.uia.service.LoginVO; |
|
| 19 |
+import egovframework.module.utl.fcc.service.EgovFormBasedFileUtil; |
|
| 20 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 21 | 21 |
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; |
| 22 | 22 |
import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
| 23 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 24 | 23 |
|
| 25 | 24 |
//파일정보의 관리를 위한 구현 클래스 |
| 26 | 25 |
@Service("fileMngService")
|
--- base/src/main/java/egovframework/com/cmm/web/EgovComUtlController.java
+++ base/src/main/java/egovframework/com/cmm/web/EgovComUtlController.java
... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 |
import org.springframework.web.bind.annotation.RequestMapping; |
| 9 | 9 |
import org.springframework.web.bind.annotation.RequestParam; |
| 10 | 10 |
|
| 11 |
-import egovframework.com.utl.cas.service.EgovSessionCookieUtil; |
|
| 11 |
+import egovframework.module.utl.cas.service.EgovSessionCookieUtil; |
|
| 12 | 12 |
|
| 13 | 13 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 14 | 14 |
|
--- base/src/main/java/egovframework/com/cmm/web/EgovImageProcessController.java
+++ base/src/main/java/egovframework/com/cmm/web/EgovImageProcessController.java
... | ... | @@ -6,7 +6,6 @@ |
| 6 | 6 |
import java.io.FileInputStream; |
| 7 | 7 |
import java.io.FileNotFoundException; |
| 8 | 8 |
import java.io.IOException; |
| 9 |
-import java.util.Map; |
|
| 10 | 9 |
|
| 11 | 10 |
import javax.annotation.Resource; |
| 12 | 11 |
import javax.servlet.http.HttpServletRequest; |
... | ... | @@ -20,8 +19,8 @@ |
| 20 | 19 |
import org.springframework.web.bind.annotation.RequestMapping; |
| 21 | 20 |
|
| 22 | 21 |
import egovframework.com.cmm.util.EgovWebUtil; |
| 23 |
-import egovframework.com.utl.fcc.service.EgovNumberUtil; |
|
| 24 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 22 |
+import egovframework.module.utl.fcc.service.EgovNumberUtil; |
|
| 23 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 25 | 24 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 26 | 25 |
|
| 27 | 26 |
/** |
--- base/src/main/java/egovframework/com/cmm/web/FileDownloadController.java
+++ base/src/main/java/egovframework/com/cmm/web/FileDownloadController.java
... | ... | @@ -32,9 +32,8 @@ |
| 32 | 32 |
|
| 33 | 33 |
import egovframework.com.cmm.service.FileMngService; |
| 34 | 34 |
import egovframework.com.cmm.service.FileVO; |
| 35 |
-import egovframework.com.sym.sit.service.SiteManageService; |
|
| 35 |
+import egovframework.module.sym.sit.service.SiteManageService; |
|
| 36 | 36 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 37 |
-import egovframework.rte.psl.dataaccess.util.EgovMap; |
|
| 38 | 37 |
|
| 39 | 38 |
|
| 40 | 39 |
//파일 다운로드를 위한 컨트롤러 클래스 |
--- base/src/main/java/egovframework/com/cmm/web/FileMngController.java
+++ base/src/main/java/egovframework/com/cmm/web/FileMngController.java
... | ... | @@ -41,9 +41,9 @@ |
| 41 | 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.sym.sit.service.SiteManageService; |
|
| 45 |
-import egovframework.com.sym.sit.service.SiteManageVO; |
|
| 46 |
-import egovframework.com.utl.fcc.service.EgovStringUtil; |
|
| 44 |
+import egovframework.module.sym.sit.service.SiteManageService; |
|
| 45 |
+import egovframework.module.sym.sit.service.SiteManageVO; |
|
| 46 |
+import egovframework.module.utl.fcc.service.EgovStringUtil; |
|
| 47 | 47 |
import egovframework.rte.fdl.idgnr.EgovIdGnrService; |
| 48 | 48 |
import egovframework.rte.fdl.property.EgovPropertyService; |
| 49 | 49 |
|
--- base/src/main/java/egovframework/com/cop/bbs/service/BBSAttributeManageService.java
... | ... | @@ -1,37 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.util.Map; | |
| 5 | - | |
| 6 | - | |
| 7 | -//게시판 속성관리를 위한 서비스 인터페이스 클래스 | |
| 8 | -public interface BBSAttributeManageService { | |
| 9 | - | |
| 10 | - //등록된 게시판 속성정보를 삭제한다. | |
| 11 | - public void deleteBBSMasterInf(BoardMasterVO boardMaster) throws Exception; | |
| 12 | - | |
| 13 | - //신규 게시판 속성정보를 생성한다. | |
| 14 | - public String insertBBSMastetInf(BoardMasterVO boardMaster) throws Exception; | |
| 15 | - | |
| 16 | - //게시판 속성정보 한 건을 상세조회한다. | |
| 17 | - public BoardMasterVO selectBBSMasterInf(BoardMasterVO searchVO) throws Exception; | |
| 18 | - | |
| 19 | - | |
| 20 | - //게시판 속성 정보의 목록을 조회 한다. | |
| 21 | - public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //게시판 속성 정보의 전체 목록을 조회 한다. | |
| 24 | - public List<BoardMasterVO> selectBBSMasterList(BoardMasterVO searchVO) throws Exception; | |
| 25 | - | |
| 26 | - //게시판 속성정보를 수정한다. | |
| 27 | - public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception; | |
| 28 | - | |
| 29 | - //유효한 게시판 마스터 정보를 호출한다. | |
| 30 | - public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception; | |
| 31 | - | |
| 32 | - //사용등록이 된 게시판 목록 전체를 불러온다. | |
| 33 | - public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception ; | |
| 34 | - | |
| 35 | - //사용등록이 된 게시판 목록 숫자를 조회한다 | |
| 36 | - public int selectAllBBSMasterManageInfsCnt(BoardMasterVO vo) throws Exception; | |
| 37 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/BBSCommentService.java
... | ... | @@ -1,39 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.util.Map; | |
| 5 | - | |
| 6 | -//댓글관리를 위한 서비스 인터페이스 클래스 | |
| 7 | -public interface BBSCommentService { | |
| 8 | - | |
| 9 | - | |
| 10 | - //댓글에 대한 목록을 조회 한다. | |
| 11 | - public Map<String, Object> selectCommentList(CommentVO commentVO) throws Exception; | |
| 12 | - | |
| 13 | - //댓글을 등록한다. | |
| 14 | - public void insertComment(CommentVO commentVO) throws Exception; | |
| 15 | - | |
| 16 | - //댓글의 댓글을 등록한다 | |
| 17 | - public void insertReplyComment(CommentVO commentVO) throws Exception; | |
| 18 | - | |
| 19 | - //댓글을 삭제한다. | |
| 20 | - public void deleteComment(CommentVO commentVO) throws Exception; | |
| 21 | - | |
| 22 | - //모든 댓글을 삭제한다. | |
| 23 | - public void deleteAllComment(CommentVO commentVO) throws Exception; | |
| 24 | - | |
| 25 | - //댓글에 대한 내용을 조회한다. | |
| 26 | - public CommentVO selectComment(CommentVO commentVO) throws Exception; | |
| 27 | - | |
| 28 | - //댓글에 대한 내용을 수정한다. | |
| 29 | - public void updateComment(CommentVO commentVO) throws Exception; | |
| 30 | - | |
| 31 | - //댓글 패스워드를 가져온다. | |
| 32 | - public String getCommentPassword(CommentVO commentVO) throws Exception; | |
| 33 | - | |
| 34 | - //내가 작성한 댓글에 대한 목록 건수를 조회 한다. | |
| 35 | - public int selectMyCommentListCnt(CommentVO commentVO) throws Exception; | |
| 36 | - | |
| 37 | - //관리용 댓글을 복사한다. | |
| 38 | - public void updateCommentManageCopy(List<String> nttNoArr, List<BoardVO> articleList) throws Exception; | |
| 39 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/BBSCtgryMasterService.java
... | ... | @@ -1,30 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -//카테고리마스터 Service | |
| 6 | -public interface BBSCtgryMasterService { | |
| 7 | - | |
| 8 | - //COMTNBBSCTGRYMASTER을 등록한다. | |
| 9 | - String insertComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 10 | - | |
| 11 | - //COMTNBBSCTGRYMASTER을 수정한다. | |
| 12 | - void updateComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 15 | - void deleteComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSCTGRYMASTER을 조회한다. | |
| 18 | - CtgryMasterVO selectComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //카테고리마스터Id검색 | |
| 21 | - CtgryMasterVO selectCtgrymasterId(CtgryMasterVO vo) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 24 | - List<CtgryMasterVO> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 25 | - | |
| 26 | - //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 27 | - int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO); | |
| 28 | - | |
| 29 | - List<CtgryMasterVO> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 30 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/BBSCtgryService.java
... | ... | @@ -1,32 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -//카테고리 | |
| 6 | -public interface BBSCtgryService { | |
| 7 | - | |
| 8 | - //COMTNBBSCTGRY을 등록한다. | |
| 9 | - String insertComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 10 | - | |
| 11 | - //COMTNBBSCTGRY을 수정한다. | |
| 12 | - void updateComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSCTGRY을 삭제한다. | |
| 15 | - void deleteComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSCTGRY을 조회한다. | |
| 18 | - CtgryVO selectComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSCTGRY 목록을 조회한다. | |
| 21 | - List<CtgryVO> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNBBSCTGRY 총 갯수를 조회한다. | |
| 24 | - int selectComtnbbsctgryListTotCnt(CtgryVO searchVO); | |
| 25 | - | |
| 26 | - //COMTNBBSCTGRY DEPTH를 조회한다. | |
| 27 | - public int selectComtnbbsctgryLevel(CtgryVO searchVO); | |
| 28 | - | |
| 29 | - //정렬순서를 수정한다. | |
| 30 | - public void updateSortOrdr(CtgryVO vo) throws Exception; | |
| 31 | - | |
| 32 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/BBSManageService.java
... | ... | @@ -1,51 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | - | |
| 6 | -//게시물 관리를 위한 서비스 인터페이스 클래스 | |
| 7 | -public interface BBSManageService { | |
| 8 | - | |
| 9 | - //게시물 한 건을 삭제 한다. | |
| 10 | - public void deleteBoardArticle(BoardVO Board, BoardMasterVO master) throws Exception; | |
| 11 | - | |
| 12 | - //게시판에 게시물을 등록 한다. | |
| 13 | - public void insertBoardArticle(BoardVO board, BoardMasterVO master) throws Exception ; | |
| 14 | - | |
| 15 | - //게시판에 답변 게시물을 등록 한다. | |
| 16 | - public void replyBoardArticle(BoardVO board, BoardMasterVO master) throws Exception ; | |
| 17 | - | |
| 18 | - //게시물 대하여 상세 내용을 조회 한다. | |
| 19 | - public BoardVO selectBoardArticle(BoardVO boardVO) throws Exception; | |
| 20 | - | |
| 21 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 22 | - public List<BoardVO> selectBoardArticles(BoardVO boardVO) throws Exception; | |
| 23 | - | |
| 24 | - //조건에 맞는 게시물 목록건수를 조회 한다. | |
| 25 | - public int selectBoardArticlesCnt(BoardVO boardVO) throws Exception; | |
| 26 | - | |
| 27 | - //게시물 한 건의 내용을 수정 한다. | |
| 28 | - public void updateBoardArticle(BoardVO Board, BoardMasterVO master, boolean isEstn) throws Exception; | |
| 29 | - | |
| 30 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 31 | - public List<BoardVO> selectSearchBoardArticleList(BoardVO boardVO) throws Exception ; | |
| 32 | - | |
| 33 | - //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. | |
| 34 | - public int selectSearchBoardArticleListCnt(BoardVO boardVO) throws Exception ; | |
| 35 | - | |
| 36 | - //관리용 게시물을 이동시킨다. | |
| 37 | - public void updateBoardArticlesManageMove(BoardVO board) throws Exception ; | |
| 38 | - | |
| 39 | - //관리용 게시물을 복사한다. | |
| 40 | - public void updateBoardArticlesManageCopy(BoardVO board) throws Exception; | |
| 41 | - | |
| 42 | - //관리용 게시물을 삭제한다. | |
| 43 | - public void updateBoardArticlesManageHide(BoardVO board) throws Exception ; | |
| 44 | - | |
| 45 | - //게시물 한 건을 완전삭제 한다. | |
| 46 | - public void deleteCompleteBoardArticle(BoardVO board) throws Exception ; | |
| 47 | - | |
| 48 | - //게시물 한 건을 복구 한다. | |
| 49 | - public void repairBoardArticle(BoardVO board) throws Exception ; | |
| 50 | - | |
| 51 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/BoardMasterVO.java
... | ... | @@ -1,314 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import java.util.ArrayList; | |
| 5 | -import java.util.List; | |
| 6 | - | |
| 7 | -import egovframework.com.cmm.ComDefaultVO; | |
| 8 | -import org.apache.commons.collections.Factory; | |
| 9 | -import org.apache.commons.collections.ListUtils; | |
| 10 | - | |
| 11 | -//게시판 속성 정보를 관리하기 위한 VO 클래스 | |
| 12 | -public class BoardMasterVO extends ComDefaultVO implements Serializable {
| |
| 13 | - | |
| 14 | - //게시판 속성코드 | |
| 15 | - private String bbsAttrbCode = "BBSA03"; | |
| 16 | - | |
| 17 | - //게시판 아이디 | |
| 18 | - private String bbsId = ""; | |
| 19 | - | |
| 20 | - //게시판 명 | |
| 21 | - private String bbsNm = ""; | |
| 22 | - | |
| 23 | - //게시판 서비스여부 | |
| 24 | - private String svcAt = "Y"; | |
| 25 | - | |
| 26 | - //파일첨부가능여부 | |
| 27 | - private String fileAtchPosblAt = "Y"; | |
| 28 | - | |
| 29 | - //첨부가능파일숫자 | |
| 30 | - private String posblAtchFileNumber = "5"; | |
| 31 | - | |
| 32 | - //첨부가능파일사이즈 | |
| 33 | - private String posblAtchFileSize = "100"; | |
| 34 | - | |
| 35 | - //답장가능여부 | |
| 36 | - private String replyPosblAt = "N"; | |
| 37 | - | |
| 38 | - //소스 아이디 | |
| 39 | - private String sourcId = "BBSSRC_0000000000001"; | |
| 40 | - | |
| 41 | - //템플릿 아이디 | |
| 42 | - private String tmplatId = "BBSTMP_0000000000001"; | |
| 43 | - | |
| 44 | - //사용플래그 | |
| 45 | - private String bbsUseFlag = ""; | |
| 46 | - | |
| 47 | - //대상 아이디 | |
| 48 | - private String trgetId = "SYSTEM_DEFAULT_BOARD"; | |
| 49 | - | |
| 50 | - //등록구분코드 | |
| 51 | - private String registSeCode = "REGC01"; | |
| 52 | - | |
| 53 | - //댓글 여부 | |
| 54 | - private String commentUseAt = "N"; | |
| 55 | - | |
| 56 | - //만족도조사 | |
| 57 | - private String stsfdgAt = ""; | |
| 58 | - | |
| 59 | - //시스템구분 | |
| 60 | - private String sysTyCode = ""; | |
| 61 | - | |
| 62 | - //카테고리마스터 아이디 | |
| 63 | - private String ctgrymasterId = ""; | |
| 64 | - | |
| 65 | - //삭제여부 | |
| 66 | - private String deleteAt= "N"; | |
| 67 | - | |
| 68 | - //공개/비공개 사용여부 | |
| 69 | - private String othbcUseAt= "N"; | |
| 70 | - | |
| 71 | - //보기권한 | |
| 72 | - private String inqireAuthor = "01"; | |
| 73 | - | |
| 74 | - //쓰기권한 | |
| 75 | - private String registAuthor = "02"; | |
| 76 | - | |
| 77 | - //답글권한 | |
| 78 | - private String answerAuthor = "02"; | |
| 79 | - | |
| 80 | - //카테고리리스트 | |
| 81 | - private List<CtgryVO> ctgryList = ListUtils.lazyList(new ArrayList<CtgryVO>(), new Factory() {
| |
| 82 | - public CtgryVO create() {
| |
| 83 | - return new CtgryVO(); | |
| 84 | - } | |
| 85 | - }); | |
| 86 | - | |
| 87 | - //rowNo | |
| 88 | - private int rowNo = 0; | |
| 89 | - | |
| 90 | - //게시판속성 코드명 | |
| 91 | - private String bbsAttrbCodeNm = ""; | |
| 92 | - | |
| 93 | - //템플릿 명 | |
| 94 | - private String tmplatNm = ""; | |
| 95 | - | |
| 96 | - //게시물 목록 | |
| 97 | - private List<BoardVO> nttList = null; | |
| 98 | - | |
| 99 | - public String getBbsAttrbCode() {
| |
| 100 | - return bbsAttrbCode; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public void setBbsAttrbCode(String bbsAttrbCode) {
| |
| 104 | - this.bbsAttrbCode = bbsAttrbCode; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public String getBbsId() {
| |
| 108 | - return bbsId; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public void setBbsId(String bbsId) {
| |
| 112 | - this.bbsId = bbsId; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public String getBbsNm() {
| |
| 116 | - return bbsNm; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public void setBbsNm(String bbsNm) {
| |
| 120 | - this.bbsNm = bbsNm; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public String getSvcAt() {
| |
| 124 | - return svcAt; | |
| 125 | - } | |
| 126 | - | |
| 127 | - public void setSvcAt(String svcAt) {
| |
| 128 | - this.svcAt = svcAt; | |
| 129 | - } | |
| 130 | - | |
| 131 | - public String getFileAtchPosblAt() {
| |
| 132 | - return fileAtchPosblAt; | |
| 133 | - } | |
| 134 | - | |
| 135 | - public void setFileAtchPosblAt(String fileAtchPosblAt) {
| |
| 136 | - this.fileAtchPosblAt = fileAtchPosblAt; | |
| 137 | - } | |
| 138 | - | |
| 139 | - public String getPosblAtchFileNumber() {
| |
| 140 | - return posblAtchFileNumber; | |
| 141 | - } | |
| 142 | - | |
| 143 | - public void setPosblAtchFileNumber(String posblAtchFileNumber) {
| |
| 144 | - this.posblAtchFileNumber = posblAtchFileNumber; | |
| 145 | - } | |
| 146 | - | |
| 147 | - public String getPosblAtchFileSize() {
| |
| 148 | - return posblAtchFileSize; | |
| 149 | - } | |
| 150 | - | |
| 151 | - public void setPosblAtchFileSize(String posblAtchFileSize) {
| |
| 152 | - this.posblAtchFileSize = posblAtchFileSize; | |
| 153 | - } | |
| 154 | - | |
| 155 | - public String getReplyPosblAt() {
| |
| 156 | - return replyPosblAt; | |
| 157 | - } | |
| 158 | - | |
| 159 | - public void setReplyPosblAt(String replyPosblAt) {
| |
| 160 | - this.replyPosblAt = replyPosblAt; | |
| 161 | - } | |
| 162 | - | |
| 163 | - public String getSourcId() {
| |
| 164 | - return sourcId; | |
| 165 | - } | |
| 166 | - | |
| 167 | - public void setSourcId(String sourcId) {
| |
| 168 | - this.sourcId = sourcId; | |
| 169 | - } | |
| 170 | - | |
| 171 | - public String getTmplatId() {
| |
| 172 | - return tmplatId; | |
| 173 | - } | |
| 174 | - | |
| 175 | - public void setTmplatId(String tmplatId) {
| |
| 176 | - this.tmplatId = tmplatId; | |
| 177 | - } | |
| 178 | - | |
| 179 | - public String getBbsUseFlag() {
| |
| 180 | - return bbsUseFlag; | |
| 181 | - } | |
| 182 | - | |
| 183 | - public void setBbsUseFlag(String bbsUseFlag) {
| |
| 184 | - this.bbsUseFlag = bbsUseFlag; | |
| 185 | - } | |
| 186 | - | |
| 187 | - public String getTrgetId() {
| |
| 188 | - return trgetId; | |
| 189 | - } | |
| 190 | - | |
| 191 | - public void setTrgetId(String trgetId) {
| |
| 192 | - this.trgetId = trgetId; | |
| 193 | - } | |
| 194 | - | |
| 195 | - public String getRegistSeCode() {
| |
| 196 | - return registSeCode; | |
| 197 | - } | |
| 198 | - | |
| 199 | - public void setRegistSeCode(String registSeCode) {
| |
| 200 | - this.registSeCode = registSeCode; | |
| 201 | - } | |
| 202 | - | |
| 203 | - public String getCommentUseAt() {
| |
| 204 | - return commentUseAt; | |
| 205 | - } | |
| 206 | - | |
| 207 | - public void setCommentUseAt(String commentUseAt) {
| |
| 208 | - this.commentUseAt = commentUseAt; | |
| 209 | - } | |
| 210 | - | |
| 211 | - public String getStsfdgAt() {
| |
| 212 | - return stsfdgAt; | |
| 213 | - } | |
| 214 | - | |
| 215 | - public void setStsfdgAt(String stsfdgAt) {
| |
| 216 | - this.stsfdgAt = stsfdgAt; | |
| 217 | - } | |
| 218 | - | |
| 219 | - public String getSysTyCode() {
| |
| 220 | - return sysTyCode; | |
| 221 | - } | |
| 222 | - | |
| 223 | - public void setSysTyCode(String sysTyCode) {
| |
| 224 | - this.sysTyCode = sysTyCode; | |
| 225 | - } | |
| 226 | - | |
| 227 | - public String getCtgrymasterId() {
| |
| 228 | - return ctgrymasterId; | |
| 229 | - } | |
| 230 | - | |
| 231 | - public void setCtgrymasterId(String ctgrymasterId) {
| |
| 232 | - this.ctgrymasterId = ctgrymasterId; | |
| 233 | - } | |
| 234 | - | |
| 235 | - public String getDeleteAt() {
| |
| 236 | - return deleteAt; | |
| 237 | - } | |
| 238 | - | |
| 239 | - public void setDeleteAt(String deleteAt) {
| |
| 240 | - this.deleteAt = deleteAt; | |
| 241 | - } | |
| 242 | - | |
| 243 | - public String getOthbcUseAt() {
| |
| 244 | - return othbcUseAt; | |
| 245 | - } | |
| 246 | - | |
| 247 | - public void setOthbcUseAt(String othbcUseAt) {
| |
| 248 | - this.othbcUseAt = othbcUseAt; | |
| 249 | - } | |
| 250 | - | |
| 251 | - public String getInqireAuthor() {
| |
| 252 | - return inqireAuthor; | |
| 253 | - } | |
| 254 | - | |
| 255 | - public void setInqireAuthor(String inqireAuthor) {
| |
| 256 | - this.inqireAuthor = inqireAuthor; | |
| 257 | - } | |
| 258 | - | |
| 259 | - public String getRegistAuthor() {
| |
| 260 | - return registAuthor; | |
| 261 | - } | |
| 262 | - | |
| 263 | - public void setRegistAuthor(String registAuthor) {
| |
| 264 | - this.registAuthor = registAuthor; | |
| 265 | - } | |
| 266 | - | |
| 267 | - public String getAnswerAuthor() {
| |
| 268 | - return answerAuthor; | |
| 269 | - } | |
| 270 | - | |
| 271 | - public void setAnswerAuthor(String answerAuthor) {
| |
| 272 | - this.answerAuthor = answerAuthor; | |
| 273 | - } | |
| 274 | - | |
| 275 | - public List<CtgryVO> getCtgryList() {
| |
| 276 | - return ctgryList; | |
| 277 | - } | |
| 278 | - | |
| 279 | - public void setCtgryList(List<CtgryVO> ctgryList) {
| |
| 280 | - this.ctgryList = ctgryList; | |
| 281 | - } | |
| 282 | - | |
| 283 | - public int getRowNo() {
| |
| 284 | - return rowNo; | |
| 285 | - } | |
| 286 | - | |
| 287 | - public void setRowNo(int rowNo) {
| |
| 288 | - this.rowNo = rowNo; | |
| 289 | - } | |
| 290 | - | |
| 291 | - public String getBbsAttrbCodeNm() {
| |
| 292 | - return bbsAttrbCodeNm; | |
| 293 | - } | |
| 294 | - | |
| 295 | - public void setBbsAttrbCodeNm(String bbsAttrbCodeNm) {
| |
| 296 | - this.bbsAttrbCodeNm = bbsAttrbCodeNm; | |
| 297 | - } | |
| 298 | - | |
| 299 | - public String getTmplatNm() {
| |
| 300 | - return tmplatNm; | |
| 301 | - } | |
| 302 | - | |
| 303 | - public void setTmplatNm(String tmplatNm) {
| |
| 304 | - this.tmplatNm = tmplatNm; | |
| 305 | - } | |
| 306 | - | |
| 307 | - public List<BoardVO> getNttList() {
| |
| 308 | - return nttList; | |
| 309 | - } | |
| 310 | - | |
| 311 | - public void setNttList(List<BoardVO> nttList) {
| |
| 312 | - this.nttList = nttList; | |
| 313 | - } | |
| 314 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/BoardVO.java
... | ... | @@ -1,755 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import java.math.BigDecimal; | |
| 5 | -import java.util.ArrayList; | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -import egovframework.com.cmm.ComDefaultVO; | |
| 9 | -import net.sf.json.JSONObject; | |
| 10 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 11 | - | |
| 12 | -import egovframework.com.cmm.service.FileVO; | |
| 13 | -import egovframework.rte.fdl.string.EgovStringUtil; | |
| 14 | - | |
| 15 | -//게시물 관리를 위한 VO 클래스 | |
| 16 | -@SuppressWarnings("serial")
| |
| 17 | -public class BoardVO extends ComDefaultVO implements Serializable {
| |
| 18 | - | |
| 19 | - //게시물번호 | |
| 20 | - private java.math.BigDecimal nttNo; | |
| 21 | - | |
| 22 | - //게시물번호리스트 | |
| 23 | - private List<String> nttNoArr; | |
| 24 | - | |
| 25 | - //상위게시글번호 | |
| 26 | - private java.lang.Integer upperNttNo = 0; | |
| 27 | - | |
| 28 | - //게시판ID | |
| 29 | - private java.lang.String bbsId; | |
| 30 | - | |
| 31 | - //카테고리ID | |
| 32 | - private java.lang.String ctgryId; | |
| 33 | - | |
| 34 | - ///카테고리명 | |
| 35 | - private java.lang.String ctgryNm; | |
| 36 | - | |
| 37 | - //게시물 명 | |
| 38 | - private java.lang.String nttSj; | |
| 39 | - | |
| 40 | - //게시물 내용 | |
| 41 | - private java.lang.String nttCn; | |
| 42 | - | |
| 43 | - ///작성자 | |
| 44 | - private java.lang.String ntcrNm; | |
| 45 | - | |
| 46 | - //조회수 | |
| 47 | - private java.math.BigDecimal inqireCo = BigDecimal.ZERO; | |
| 48 | - | |
| 49 | - //추천수 | |
| 50 | - private java.math.BigDecimal recomendCo = BigDecimal.ZERO; | |
| 51 | - | |
| 52 | - //생성IP | |
| 53 | - private java.lang.String creatIp; | |
| 54 | - | |
| 55 | - //공지글여부 | |
| 56 | - private java.lang.String noticeAt = "N"; | |
| 57 | - | |
| 58 | - //공개여부 | |
| 59 | - private java.lang.String othbcAt = "Y"; | |
| 60 | - | |
| 61 | - //순서 | |
| 62 | - private java.lang.String genOrdrCode; | |
| 63 | - | |
| 64 | - //카테고리경로 - ID | |
| 65 | - private java.lang.String ctgryPathById; | |
| 66 | - | |
| 67 | - //처리상태코드 | |
| 68 | - private java.lang.String processSttusCode; | |
| 69 | - | |
| 70 | - //처리상태명 | |
| 71 | - private java.lang.String processSttusNm; | |
| 72 | - | |
| 73 | - //확장첨부파일 - ID | |
| 74 | - private java.lang.String estnAtchFileId; | |
| 75 | - | |
| 76 | - //확장데이터 | |
| 77 | - private java.lang.String estnData; | |
| 78 | - | |
| 79 | - //확장파싱데이터 | |
| 80 | - private JSONObject estnParseData; | |
| 81 | - | |
| 82 | - //파일명 | |
| 83 | - private String atchFileNm; | |
| 84 | - | |
| 85 | - //정렬뎁스 | |
| 86 | - private int ordrCodeDp = 0; | |
| 87 | - | |
| 88 | - //위도 | |
| 89 | - private String la; | |
| 90 | - | |
| 91 | - //경도 | |
| 92 | - private String lo; | |
| 93 | - | |
| 94 | - //임시필드01 | |
| 95 | - private String tmp01; | |
| 96 | - | |
| 97 | - //임시필드02 | |
| 98 | - private String tmp02; | |
| 99 | - | |
| 100 | - //임시필드03 | |
| 101 | - private String tmp03; | |
| 102 | - | |
| 103 | - //임시필드04 | |
| 104 | - private String tmp04; | |
| 105 | - | |
| 106 | - //임시필드05 | |
| 107 | - private String tmp05; | |
| 108 | - | |
| 109 | - //뷰 타입 | |
| 110 | - private java.lang.String viewType; | |
| 111 | - | |
| 112 | - //레코드 번호 | |
| 113 | - private int rowNo = 0; | |
| 114 | - | |
| 115 | - //조회 수 증가 여부 | |
| 116 | - private boolean plusCount = false; | |
| 117 | - | |
| 118 | - //SITE URL | |
| 119 | - private String siteUrl = ""; | |
| 120 | - | |
| 121 | - //커뮤니티 주소 | |
| 122 | - private String cmmntyAdres = ""; | |
| 123 | - | |
| 124 | - //커뮤니티 명 | |
| 125 | - private String cmmntyNm = ""; | |
| 126 | - | |
| 127 | - //관리자여부 | |
| 128 | - private String adminAt = "N"; | |
| 129 | - | |
| 130 | - //기간종료 | |
| 131 | - private String isExpired = ""; | |
| 132 | - | |
| 133 | - //코멘트갯수 | |
| 134 | - private String commentCount = ""; | |
| 135 | - | |
| 136 | - //첨부파일 리스트 | |
| 137 | - private List<FileVO> fileList = null; | |
| 138 | - | |
| 139 | - //코멘트사용여부 | |
| 140 | - private String commentUseAt = ""; | |
| 141 | - | |
| 142 | - //게시판 템플릿 아이디 | |
| 143 | - private String tmplatId = ""; | |
| 144 | - | |
| 145 | - //게시판속성코드 | |
| 146 | - private String bbsAttrbCode = ""; | |
| 147 | - | |
| 148 | - //게시판 명 | |
| 149 | - private String bbsNm = ""; | |
| 150 | - | |
| 151 | - //모바일검색여부 | |
| 152 | - private String isMobile = ""; | |
| 153 | - | |
| 154 | - //공지여부 | |
| 155 | - private String searchNoticeAt = "N"; | |
| 156 | - | |
| 157 | - //기존 첨부땜에 임시로 쓴다. | |
| 158 | - private String storeImagePath = ""; | |
| 159 | - | |
| 160 | - //카테고리마스터 아이디 | |
| 161 | - private String ctgrymasterId = ""; | |
| 162 | - | |
| 163 | - //평가점수 | |
| 164 | - private int scoreSum = 0; | |
| 165 | - | |
| 166 | - //대상 아이디 | |
| 167 | - private String trgetId = ""; | |
| 168 | - | |
| 169 | - //검색 처리상태 | |
| 170 | - private String searchSttus = ""; | |
| 171 | - | |
| 172 | - //등록-액션 | |
| 173 | - private String registAction = ""; | |
| 174 | - | |
| 175 | - //임시첨부파일 그룹아이디 | |
| 176 | - private String fileGroupId = ""; | |
| 177 | - | |
| 178 | - //이전 게시물번호 | |
| 179 | - private java.math.BigDecimal oldNttNo; | |
| 180 | - | |
| 181 | - //템플릿 import여부 | |
| 182 | - private String tmplatImportAt = ""; | |
| 183 | - | |
| 184 | - private String searchMemType = ""; | |
| 185 | - | |
| 186 | - private String searchType = ""; | |
| 187 | - | |
| 188 | - private String sortType = ""; | |
| 189 | - | |
| 190 | - private String cntType = ""; | |
| 191 | - | |
| 192 | - private String classCnt = ""; | |
| 193 | - | |
| 194 | - private String groupCnt = ""; | |
| 195 | - | |
| 196 | - private String searchClass = "0"; | |
| 197 | - | |
| 198 | - private String searchGroup = "0"; | |
| 199 | - | |
| 200 | - private String userSeCode = ""; | |
| 201 | - | |
| 202 | - private String isMainFlag = ""; | |
| 203 | - | |
| 204 | - //마지막 답변자ID | |
| 205 | - private String lastAnswrrId; | |
| 206 | - | |
| 207 | - //마지막 답변자명 | |
| 208 | - private String lastAnswrrNm; | |
| 209 | - | |
| 210 | - public BigDecimal getNttNo() {
| |
| 211 | - return nttNo; | |
| 212 | - } | |
| 213 | - | |
| 214 | - public void setNttNo(BigDecimal nttNo) {
| |
| 215 | - this.nttNo = nttNo; | |
| 216 | - } | |
| 217 | - | |
| 218 | - public List<String> getNttNoArr() {
| |
| 219 | - return nttNoArr; | |
| 220 | - } | |
| 221 | - | |
| 222 | - public void setNttNoArr(List<String> nttNoArr) {
| |
| 223 | - this.nttNoArr = nttNoArr; | |
| 224 | - } | |
| 225 | - | |
| 226 | - public Integer getUpperNttNo() {
| |
| 227 | - return upperNttNo; | |
| 228 | - } | |
| 229 | - | |
| 230 | - public void setUpperNttNo(Integer upperNttNo) {
| |
| 231 | - this.upperNttNo = upperNttNo; | |
| 232 | - } | |
| 233 | - | |
| 234 | - public String getBbsId() {
| |
| 235 | - return bbsId; | |
| 236 | - } | |
| 237 | - | |
| 238 | - public void setBbsId(String bbsId) {
| |
| 239 | - this.bbsId = bbsId; | |
| 240 | - } | |
| 241 | - | |
| 242 | - public String getCtgryId() {
| |
| 243 | - return ctgryId; | |
| 244 | - } | |
| 245 | - | |
| 246 | - public void setCtgryId(String ctgryId) {
| |
| 247 | - this.ctgryId = ctgryId; | |
| 248 | - } | |
| 249 | - | |
| 250 | - public String getCtgryNm() {
| |
| 251 | - return ctgryNm; | |
| 252 | - } | |
| 253 | - | |
| 254 | - public void setCtgryNm(String ctgryNm) {
| |
| 255 | - this.ctgryNm = ctgryNm; | |
| 256 | - } | |
| 257 | - | |
| 258 | - public String getNttSj() {
| |
| 259 | - return nttSj; | |
| 260 | - } | |
| 261 | - | |
| 262 | - public void setNttSj(String nttSj) {
| |
| 263 | - this.nttSj = nttSj; | |
| 264 | - } | |
| 265 | - | |
| 266 | - public String getNttCn() {
| |
| 267 | - return nttCn; | |
| 268 | - } | |
| 269 | - | |
| 270 | - public void setNttCn(String nttCn) {
| |
| 271 | - this.nttCn = nttCn; | |
| 272 | - } | |
| 273 | - | |
| 274 | - public String getNtcrNm() {
| |
| 275 | - return ntcrNm; | |
| 276 | - } | |
| 277 | - | |
| 278 | - public void setNtcrNm(String ntcrNm) {
| |
| 279 | - this.ntcrNm = ntcrNm; | |
| 280 | - } | |
| 281 | - | |
| 282 | - public BigDecimal getInqireCo() {
| |
| 283 | - return inqireCo; | |
| 284 | - } | |
| 285 | - | |
| 286 | - public void setInqireCo(BigDecimal inqireCo) {
| |
| 287 | - this.inqireCo = inqireCo; | |
| 288 | - } | |
| 289 | - | |
| 290 | - public BigDecimal getRecomendCo() {
| |
| 291 | - return recomendCo; | |
| 292 | - } | |
| 293 | - | |
| 294 | - public void setRecomendCo(BigDecimal recomendCo) {
| |
| 295 | - this.recomendCo = recomendCo; | |
| 296 | - } | |
| 297 | - | |
| 298 | - public String getCreatIp() {
| |
| 299 | - return creatIp; | |
| 300 | - } | |
| 301 | - | |
| 302 | - public void setCreatIp(String creatIp) {
| |
| 303 | - this.creatIp = creatIp; | |
| 304 | - } | |
| 305 | - | |
| 306 | - public String getNoticeAt() {
| |
| 307 | - return noticeAt; | |
| 308 | - } | |
| 309 | - | |
| 310 | - public void setNoticeAt(String noticeAt) {
| |
| 311 | - this.noticeAt = noticeAt; | |
| 312 | - } | |
| 313 | - | |
| 314 | - public String getOthbcAt() {
| |
| 315 | - return othbcAt; | |
| 316 | - } | |
| 317 | - | |
| 318 | - public void setOthbcAt(String othbcAt) {
| |
| 319 | - this.othbcAt = othbcAt; | |
| 320 | - } | |
| 321 | - | |
| 322 | - public String getGenOrdrCode() {
| |
| 323 | - return genOrdrCode; | |
| 324 | - } | |
| 325 | - | |
| 326 | - public void setGenOrdrCode(String genOrdrCode) {
| |
| 327 | - this.genOrdrCode = genOrdrCode; | |
| 328 | - } | |
| 329 | - | |
| 330 | - public String getCtgryPathById() {
| |
| 331 | - return ctgryPathById; | |
| 332 | - } | |
| 333 | - | |
| 334 | - public void setCtgryPathById(String ctgryPathById) {
| |
| 335 | - this.ctgryPathById = ctgryPathById; | |
| 336 | - } | |
| 337 | - | |
| 338 | - public String getProcessSttusCode() {
| |
| 339 | - return processSttusCode; | |
| 340 | - } | |
| 341 | - | |
| 342 | - public void setProcessSttusCode(String processSttusCode) {
| |
| 343 | - this.processSttusCode = processSttusCode; | |
| 344 | - } | |
| 345 | - | |
| 346 | - public String getProcessSttusNm() {
| |
| 347 | - return processSttusNm; | |
| 348 | - } | |
| 349 | - | |
| 350 | - public void setProcessSttusNm(String processSttusNm) {
| |
| 351 | - this.processSttusNm = processSttusNm; | |
| 352 | - } | |
| 353 | - | |
| 354 | - public String getEstnAtchFileId() {
| |
| 355 | - return estnAtchFileId; | |
| 356 | - } | |
| 357 | - | |
| 358 | - public void setEstnAtchFileId(String estnAtchFileId) {
| |
| 359 | - this.estnAtchFileId = estnAtchFileId; | |
| 360 | - } | |
| 361 | - | |
| 362 | - public String getEstnData() {
| |
| 363 | - return estnData; | |
| 364 | - } | |
| 365 | - | |
| 366 | - public void setEstnData(String estnData) {
| |
| 367 | - this.estnData = estnData; | |
| 368 | - } | |
| 369 | - | |
| 370 | - public JSONObject getEstnParseData() {
| |
| 371 | - return estnParseData; | |
| 372 | - } | |
| 373 | - | |
| 374 | - public void setEstnParseData(JSONObject estnParseData) {
| |
| 375 | - this.estnParseData = estnParseData; | |
| 376 | - } | |
| 377 | - | |
| 378 | - public String getAtchFileNm() {
| |
| 379 | - return atchFileNm; | |
| 380 | - } | |
| 381 | - | |
| 382 | - public void setAtchFileNm(String atchFileNm) {
| |
| 383 | - this.atchFileNm = atchFileNm; | |
| 384 | - } | |
| 385 | - | |
| 386 | - public int getOrdrCodeDp() {
| |
| 387 | - return ordrCodeDp; | |
| 388 | - } | |
| 389 | - | |
| 390 | - public void setOrdrCodeDp(int ordrCodeDp) {
| |
| 391 | - this.ordrCodeDp = ordrCodeDp; | |
| 392 | - } | |
| 393 | - | |
| 394 | - public String getLa() {
| |
| 395 | - return la; | |
| 396 | - } | |
| 397 | - | |
| 398 | - public void setLa(String la) {
| |
| 399 | - this.la = la; | |
| 400 | - } | |
| 401 | - | |
| 402 | - public String getLo() {
| |
| 403 | - return lo; | |
| 404 | - } | |
| 405 | - | |
| 406 | - public void setLo(String lo) {
| |
| 407 | - this.lo = lo; | |
| 408 | - } | |
| 409 | - | |
| 410 | - public String getViewType() {
| |
| 411 | - return viewType; | |
| 412 | - } | |
| 413 | - | |
| 414 | - public void setViewType(String viewType) {
| |
| 415 | - this.viewType = viewType; | |
| 416 | - } | |
| 417 | - | |
| 418 | - public int getRowNo() {
| |
| 419 | - return rowNo; | |
| 420 | - } | |
| 421 | - | |
| 422 | - public void setRowNo(int rowNo) {
| |
| 423 | - this.rowNo = rowNo; | |
| 424 | - } | |
| 425 | - | |
| 426 | - public boolean isPlusCount() {
| |
| 427 | - return plusCount; | |
| 428 | - } | |
| 429 | - | |
| 430 | - public void setPlusCount(boolean plusCount) {
| |
| 431 | - this.plusCount = plusCount; | |
| 432 | - } | |
| 433 | - | |
| 434 | - public String getSiteUrl() {
| |
| 435 | - return siteUrl; | |
| 436 | - } | |
| 437 | - | |
| 438 | - public void setSiteUrl(String siteUrl) {
| |
| 439 | - this.siteUrl = siteUrl; | |
| 440 | - } | |
| 441 | - | |
| 442 | - public String getCmmntyAdres() {
| |
| 443 | - return cmmntyAdres; | |
| 444 | - } | |
| 445 | - | |
| 446 | - public void setCmmntyAdres(String cmmntyAdres) {
| |
| 447 | - this.cmmntyAdres = cmmntyAdres; | |
| 448 | - } | |
| 449 | - | |
| 450 | - public String getCmmntyNm() {
| |
| 451 | - return cmmntyNm; | |
| 452 | - } | |
| 453 | - | |
| 454 | - public void setCmmntyNm(String cmmntyNm) {
| |
| 455 | - this.cmmntyNm = cmmntyNm; | |
| 456 | - } | |
| 457 | - | |
| 458 | - @Override | |
| 459 | - public String getAdminAt() {
| |
| 460 | - return adminAt; | |
| 461 | - } | |
| 462 | - | |
| 463 | - @Override | |
| 464 | - public void setAdminAt(String adminAt) {
| |
| 465 | - this.adminAt = adminAt; | |
| 466 | - } | |
| 467 | - | |
| 468 | - public String getIsExpired() {
| |
| 469 | - return isExpired; | |
| 470 | - } | |
| 471 | - | |
| 472 | - public void setIsExpired(String isExpired) {
| |
| 473 | - this.isExpired = isExpired; | |
| 474 | - } | |
| 475 | - | |
| 476 | - public String getCommentCount() {
| |
| 477 | - return commentCount; | |
| 478 | - } | |
| 479 | - | |
| 480 | - public void setCommentCount(String commentCount) {
| |
| 481 | - this.commentCount = commentCount; | |
| 482 | - } | |
| 483 | - | |
| 484 | - public List<FileVO> getFileList() {
| |
| 485 | - return fileList; | |
| 486 | - } | |
| 487 | - | |
| 488 | - public void setFileList(List<FileVO> fileList) {
| |
| 489 | - this.fileList = fileList; | |
| 490 | - } | |
| 491 | - | |
| 492 | - public String getCommentUseAt() {
| |
| 493 | - return commentUseAt; | |
| 494 | - } | |
| 495 | - | |
| 496 | - public void setCommentUseAt(String commentUseAt) {
| |
| 497 | - this.commentUseAt = commentUseAt; | |
| 498 | - } | |
| 499 | - | |
| 500 | - public String getTmplatId() {
| |
| 501 | - return tmplatId; | |
| 502 | - } | |
| 503 | - | |
| 504 | - public void setTmplatId(String tmplatId) {
| |
| 505 | - this.tmplatId = tmplatId; | |
| 506 | - } | |
| 507 | - | |
| 508 | - public String getBbsAttrbCode() {
| |
| 509 | - return bbsAttrbCode; | |
| 510 | - } | |
| 511 | - | |
| 512 | - public void setBbsAttrbCode(String bbsAttrbCode) {
| |
| 513 | - this.bbsAttrbCode = bbsAttrbCode; | |
| 514 | - } | |
| 515 | - | |
| 516 | - public String getBbsNm() {
| |
| 517 | - return bbsNm; | |
| 518 | - } | |
| 519 | - | |
| 520 | - public void setBbsNm(String bbsNm) {
| |
| 521 | - this.bbsNm = bbsNm; | |
| 522 | - } | |
| 523 | - | |
| 524 | - public String getIsMobile() {
| |
| 525 | - return isMobile; | |
| 526 | - } | |
| 527 | - | |
| 528 | - public void setIsMobile(String isMobile) {
| |
| 529 | - this.isMobile = isMobile; | |
| 530 | - } | |
| 531 | - | |
| 532 | - public String getSearchNoticeAt() {
| |
| 533 | - return searchNoticeAt; | |
| 534 | - } | |
| 535 | - | |
| 536 | - public void setSearchNoticeAt(String searchNoticeAt) {
| |
| 537 | - this.searchNoticeAt = searchNoticeAt; | |
| 538 | - } | |
| 539 | - | |
| 540 | - public String getStoreImagePath() {
| |
| 541 | - return storeImagePath; | |
| 542 | - } | |
| 543 | - | |
| 544 | - public void setStoreImagePath(String storeImagePath) {
| |
| 545 | - this.storeImagePath = storeImagePath; | |
| 546 | - } | |
| 547 | - | |
| 548 | - public String getCtgrymasterId() {
| |
| 549 | - return ctgrymasterId; | |
| 550 | - } | |
| 551 | - | |
| 552 | - public void setCtgrymasterId(String ctgrymasterId) {
| |
| 553 | - this.ctgrymasterId = ctgrymasterId; | |
| 554 | - } | |
| 555 | - | |
| 556 | - public int getScoreSum() {
| |
| 557 | - return scoreSum; | |
| 558 | - } | |
| 559 | - | |
| 560 | - public void setScoreSum(int scoreSum) {
| |
| 561 | - this.scoreSum = scoreSum; | |
| 562 | - } | |
| 563 | - | |
| 564 | - public String getTrgetId() {
| |
| 565 | - return trgetId; | |
| 566 | - } | |
| 567 | - | |
| 568 | - public void setTrgetId(String trgetId) {
| |
| 569 | - this.trgetId = trgetId; | |
| 570 | - } | |
| 571 | - | |
| 572 | - public String getSearchSttus() {
| |
| 573 | - return searchSttus; | |
| 574 | - } | |
| 575 | - | |
| 576 | - public void setSearchSttus(String searchSttus) {
| |
| 577 | - this.searchSttus = searchSttus; | |
| 578 | - } | |
| 579 | - | |
| 580 | - public String getRegistAction() {
| |
| 581 | - return registAction; | |
| 582 | - } | |
| 583 | - | |
| 584 | - public void setRegistAction(String registAction) {
| |
| 585 | - this.registAction = registAction; | |
| 586 | - } | |
| 587 | - | |
| 588 | - public String getFileGroupId() {
| |
| 589 | - return fileGroupId; | |
| 590 | - } | |
| 591 | - | |
| 592 | - public void setFileGroupId(String fileGroupId) {
| |
| 593 | - this.fileGroupId = fileGroupId; | |
| 594 | - } | |
| 595 | - | |
| 596 | - public BigDecimal getOldNttNo() {
| |
| 597 | - return oldNttNo; | |
| 598 | - } | |
| 599 | - | |
| 600 | - public void setOldNttNo(BigDecimal oldNttNo) {
| |
| 601 | - this.oldNttNo = oldNttNo; | |
| 602 | - } | |
| 603 | - | |
| 604 | - public String getTmplatImportAt() {
| |
| 605 | - return tmplatImportAt; | |
| 606 | - } | |
| 607 | - | |
| 608 | - public void setTmplatImportAt(String tmplatImportAt) {
| |
| 609 | - this.tmplatImportAt = tmplatImportAt; | |
| 610 | - } | |
| 611 | - | |
| 612 | - public String getSearchMemType() {
| |
| 613 | - return searchMemType; | |
| 614 | - } | |
| 615 | - | |
| 616 | - public void setSearchMemType(String searchMemType) {
| |
| 617 | - this.searchMemType = searchMemType; | |
| 618 | - } | |
| 619 | - | |
| 620 | - public String getSearchType() {
| |
| 621 | - return searchType; | |
| 622 | - } | |
| 623 | - | |
| 624 | - public void setSearchType(String searchType) {
| |
| 625 | - this.searchType = searchType; | |
| 626 | - } | |
| 627 | - | |
| 628 | - public String getSortType() {
| |
| 629 | - return sortType; | |
| 630 | - } | |
| 631 | - | |
| 632 | - public void setSortType(String sortType) {
| |
| 633 | - this.sortType = sortType; | |
| 634 | - } | |
| 635 | - | |
| 636 | - public String getCntType() {
| |
| 637 | - return cntType; | |
| 638 | - } | |
| 639 | - | |
| 640 | - public void setCntType(String cntType) {
| |
| 641 | - this.cntType = cntType; | |
| 642 | - } | |
| 643 | - | |
| 644 | - public String getClassCnt() {
| |
| 645 | - return classCnt; | |
| 646 | - } | |
| 647 | - | |
| 648 | - public void setClassCnt(String classCnt) {
| |
| 649 | - this.classCnt = classCnt; | |
| 650 | - } | |
| 651 | - | |
| 652 | - public String getGroupCnt() {
| |
| 653 | - return groupCnt; | |
| 654 | - } | |
| 655 | - | |
| 656 | - public void setGroupCnt(String groupCnt) {
| |
| 657 | - this.groupCnt = groupCnt; | |
| 658 | - } | |
| 659 | - | |
| 660 | - public String getSearchClass() {
| |
| 661 | - return searchClass; | |
| 662 | - } | |
| 663 | - | |
| 664 | - public void setSearchClass(String searchClass) {
| |
| 665 | - this.searchClass = searchClass; | |
| 666 | - } | |
| 667 | - | |
| 668 | - public String getSearchGroup() {
| |
| 669 | - return searchGroup; | |
| 670 | - } | |
| 671 | - | |
| 672 | - public void setSearchGroup(String searchGroup) {
| |
| 673 | - this.searchGroup = searchGroup; | |
| 674 | - } | |
| 675 | - | |
| 676 | - public String getUserSeCode() {
| |
| 677 | - return userSeCode; | |
| 678 | - } | |
| 679 | - | |
| 680 | - public void setUserSeCode(String userSeCode) {
| |
| 681 | - this.userSeCode = userSeCode; | |
| 682 | - } | |
| 683 | - | |
| 684 | - public String getIsMainFlag() {
| |
| 685 | - return isMainFlag; | |
| 686 | - } | |
| 687 | - | |
| 688 | - public void setIsMainFlag(String isMainFlag) {
| |
| 689 | - this.isMainFlag = isMainFlag; | |
| 690 | - } | |
| 691 | - | |
| 692 | - public String getLastAnswrrId() {
| |
| 693 | - return lastAnswrrId; | |
| 694 | - } | |
| 695 | - | |
| 696 | - public void setLastAnswrrId(String lastAnswrrId) {
| |
| 697 | - this.lastAnswrrId = lastAnswrrId; | |
| 698 | - } | |
| 699 | - | |
| 700 | - public String getLastAnswrrNm() {
| |
| 701 | - return lastAnswrrNm; | |
| 702 | - } | |
| 703 | - | |
| 704 | - public void setLastAnswrrNm(String lastAnswrrNm) {
| |
| 705 | - this.lastAnswrrNm = lastAnswrrNm; | |
| 706 | - } | |
| 707 | - | |
| 708 | - public String getTmp01() {
| |
| 709 | - return tmp01; | |
| 710 | - } | |
| 711 | - | |
| 712 | - public void setTmp01(String tmp01) {
| |
| 713 | - this.tmp01 = tmp01; | |
| 714 | - } | |
| 715 | - | |
| 716 | - public String getTmp02() {
| |
| 717 | - return tmp02; | |
| 718 | - } | |
| 719 | - | |
| 720 | - public void setTmp02(String tmp02) {
| |
| 721 | - this.tmp02 = tmp02; | |
| 722 | - } | |
| 723 | - | |
| 724 | - public String getTmp03() {
| |
| 725 | - return tmp03; | |
| 726 | - } | |
| 727 | - | |
| 728 | - public void setTmp03(String tmp03) {
| |
| 729 | - this.tmp03 = tmp03; | |
| 730 | - } | |
| 731 | - | |
| 732 | - public String getTmp04() {
| |
| 733 | - return tmp04; | |
| 734 | - } | |
| 735 | - | |
| 736 | - public void setTmp04(String tmp04) {
| |
| 737 | - this.tmp04 = tmp04; | |
| 738 | - } | |
| 739 | - | |
| 740 | - public String getTmp05() {
| |
| 741 | - return tmp05; | |
| 742 | - } | |
| 743 | - | |
| 744 | - public void setTmp05(String tmp05) {
| |
| 745 | - this.tmp05 = tmp05; | |
| 746 | - } | |
| 747 | - | |
| 748 | - /** | |
| 749 | - * toString 메소드를 대치한다. | |
| 750 | - */ | |
| 751 | - public String toString() {
| |
| 752 | - return ToStringBuilder.reflectionToString(this); | |
| 753 | - } | |
| 754 | - | |
| 755 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/CommentVO.java
... | ... | @@ -1,271 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.math.BigDecimal; | |
| 4 | -import java.util.ArrayList; | |
| 5 | -import java.util.List; | |
| 6 | - | |
| 7 | -import egovframework.com.cmm.ComDefaultVO; | |
| 8 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 9 | - | |
| 10 | -import egovframework.rte.fdl.string.EgovStringUtil; | |
| 11 | - | |
| 12 | -//댓글관리 서비스를 위한 VO 클래스 | |
| 13 | -public class CommentVO extends ComDefaultVO {
| |
| 14 | - | |
| 15 | - //댓글번호 | |
| 16 | - private java.math.BigDecimal commentNo; | |
| 17 | - | |
| 18 | - //게시물 번호 | |
| 19 | - private BigDecimal nttNo = BigDecimal.ZERO; | |
| 20 | - | |
| 21 | - //작성자명 | |
| 22 | - private String wrterNm = ""; | |
| 23 | - | |
| 24 | - //댓글 내용 | |
| 25 | - private String commentCn = ""; | |
| 26 | - | |
| 27 | - //현재페이지 | |
| 28 | - private int subPageIndex = 1; | |
| 29 | - | |
| 30 | - //페이지갯수 | |
| 31 | - private int subPageUnit = 10; | |
| 32 | - | |
| 33 | - //페이지사이즈 | |
| 34 | - private int subPageSize = 10; | |
| 35 | - | |
| 36 | - //첫페이지 인덱스 | |
| 37 | - private int subFirstIndex = 1; | |
| 38 | - | |
| 39 | - //마지막페이지 인덱스 | |
| 40 | - private int subLastIndex = 1; | |
| 41 | - | |
| 42 | - //페이지당 레코드 개수 | |
| 43 | - private int subRecordCountPerPage = 10; | |
| 44 | - | |
| 45 | - //레코드 번호 | |
| 46 | - private int subRowNo = 0; | |
| 47 | - | |
| 48 | - //호출 TYPE (head or body) | |
| 49 | - private String type = ""; | |
| 50 | - | |
| 51 | - //수정 처리 여부 | |
| 52 | - private boolean isModified = false; | |
| 53 | - | |
| 54 | - //게시판 소스 아이디 | |
| 55 | - private String sourcId = ""; | |
| 56 | - | |
| 57 | - //게시판 템플릿 아이디 | |
| 58 | - private String tmplatId = ""; | |
| 59 | - | |
| 60 | - private String prntOrdrCode = ""; | |
| 61 | - | |
| 62 | - //검색 카테고리리스트 | |
| 63 | - private List<String> searchCateList; | |
| 64 | - | |
| 65 | - //게시물번호리스트 | |
| 66 | - private List<String> nttNoArr; | |
| 67 | - | |
| 68 | - //대상 아이디 | |
| 69 | - private String trgetId = ""; | |
| 70 | - | |
| 71 | - private String ordrCode = ""; | |
| 72 | - | |
| 73 | - private int ordrCodeDp = 0; | |
| 74 | - | |
| 75 | - private int score = 0; | |
| 76 | - | |
| 77 | - private java.lang.String genOrdrCode = ""; | |
| 78 | - | |
| 79 | - public int getSubPageIndex() {
| |
| 80 | - return subPageIndex; | |
| 81 | - } | |
| 82 | - | |
| 83 | - public void setSubPageIndex(int subPageIndex) {
| |
| 84 | - this.subPageIndex = subPageIndex; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public int getSubPageUnit() {
| |
| 88 | - return subPageUnit; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public void setSubPageUnit(int subPageUnit) {
| |
| 92 | - this.subPageUnit = subPageUnit; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public int getSubPageSize() {
| |
| 96 | - return subPageSize; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public void setSubPageSize(int subPageSize) {
| |
| 100 | - this.subPageSize = subPageSize; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public int getSubFirstIndex() {
| |
| 104 | - return subFirstIndex; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public void setSubFirstIndex(int subFirstIndex) {
| |
| 108 | - this.subFirstIndex = subFirstIndex; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public int getSubLastIndex() {
| |
| 112 | - return subLastIndex; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public void setSubLastIndex(int subLastIndex) {
| |
| 116 | - this.subLastIndex = subLastIndex; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public int getSubRecordCountPerPage() {
| |
| 120 | - return subRecordCountPerPage; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public void setSubRecordCountPerPage(int subRecordCountPerPage) {
| |
| 124 | - this.subRecordCountPerPage = subRecordCountPerPage; | |
| 125 | - } | |
| 126 | - | |
| 127 | - public int getSubRowNo() {
| |
| 128 | - return subRowNo; | |
| 129 | - } | |
| 130 | - | |
| 131 | - public void setSubRowNo(int subRowNo) {
| |
| 132 | - this.subRowNo = subRowNo; | |
| 133 | - } | |
| 134 | - | |
| 135 | - public String getType() {
| |
| 136 | - return type; | |
| 137 | - } | |
| 138 | - | |
| 139 | - public void setType(String type) {
| |
| 140 | - this.type = type; | |
| 141 | - } | |
| 142 | - | |
| 143 | - public boolean isModified() {
| |
| 144 | - return isModified; | |
| 145 | - } | |
| 146 | - | |
| 147 | - public void setModified(boolean modified) {
| |
| 148 | - isModified = modified; | |
| 149 | - } | |
| 150 | - | |
| 151 | - public String getSourcId() {
| |
| 152 | - return sourcId; | |
| 153 | - } | |
| 154 | - | |
| 155 | - public void setSourcId(String sourcId) {
| |
| 156 | - this.sourcId = sourcId; | |
| 157 | - } | |
| 158 | - | |
| 159 | - public String getTmplatId() {
| |
| 160 | - return tmplatId; | |
| 161 | - } | |
| 162 | - | |
| 163 | - public void setTmplatId(String tmplatId) {
| |
| 164 | - this.tmplatId = tmplatId; | |
| 165 | - } | |
| 166 | - | |
| 167 | - public String getPrntOrdrCode() {
| |
| 168 | - return prntOrdrCode; | |
| 169 | - } | |
| 170 | - | |
| 171 | - public void setPrntOrdrCode(String prntOrdrCode) {
| |
| 172 | - this.prntOrdrCode = prntOrdrCode; | |
| 173 | - } | |
| 174 | - | |
| 175 | - public List<String> getNttNoArr() {
| |
| 176 | - return nttNoArr; | |
| 177 | - } | |
| 178 | - | |
| 179 | - public void setNttNoArr(List<String> nttNoArr) {
| |
| 180 | - this.nttNoArr = nttNoArr; | |
| 181 | - } | |
| 182 | - | |
| 183 | - public String getTrgetId() {
| |
| 184 | - return trgetId; | |
| 185 | - } | |
| 186 | - | |
| 187 | - public void setTrgetId(String trgetId) {
| |
| 188 | - this.trgetId = trgetId; | |
| 189 | - } | |
| 190 | - | |
| 191 | - public String getOrdrCode() {
| |
| 192 | - return ordrCode; | |
| 193 | - } | |
| 194 | - | |
| 195 | - public void setOrdrCode(String ordrCode) {
| |
| 196 | - this.ordrCode = ordrCode; | |
| 197 | - } | |
| 198 | - | |
| 199 | - public int getOrdrCodeDp() {
| |
| 200 | - return ordrCodeDp; | |
| 201 | - } | |
| 202 | - | |
| 203 | - public void setOrdrCodeDp(int ordrCodeDp) {
| |
| 204 | - this.ordrCodeDp = ordrCodeDp; | |
| 205 | - } | |
| 206 | - | |
| 207 | - public int getScore() {
| |
| 208 | - return score; | |
| 209 | - } | |
| 210 | - | |
| 211 | - public void setScore(int score) {
| |
| 212 | - this.score = score; | |
| 213 | - } | |
| 214 | - | |
| 215 | - public String getGenOrdrCode() {
| |
| 216 | - return genOrdrCode; | |
| 217 | - } | |
| 218 | - | |
| 219 | - public void setGenOrdrCode(String genOrdrCode) {
| |
| 220 | - this.genOrdrCode = genOrdrCode; | |
| 221 | - } | |
| 222 | - | |
| 223 | - public List<String> getSearchCateList() {
| |
| 224 | - return searchCateList; | |
| 225 | - } | |
| 226 | - | |
| 227 | - public BigDecimal getCommentNo() {
| |
| 228 | - return commentNo; | |
| 229 | - } | |
| 230 | - | |
| 231 | - public void setCommentNo(BigDecimal commentNo) {
| |
| 232 | - this.commentNo = commentNo; | |
| 233 | - } | |
| 234 | - | |
| 235 | - public BigDecimal getNttNo() {
| |
| 236 | - return nttNo; | |
| 237 | - } | |
| 238 | - | |
| 239 | - public void setNttNo(BigDecimal nttNo) {
| |
| 240 | - this.nttNo = nttNo; | |
| 241 | - } | |
| 242 | - | |
| 243 | - public String getWrterNm() {
| |
| 244 | - return wrterNm; | |
| 245 | - } | |
| 246 | - | |
| 247 | - public void setWrterNm(String wrterNm) {
| |
| 248 | - this.wrterNm = wrterNm; | |
| 249 | - } | |
| 250 | - | |
| 251 | - public String getCommentCn() {
| |
| 252 | - return commentCn; | |
| 253 | - } | |
| 254 | - | |
| 255 | - public void setCommentCn(String commentCn) {
| |
| 256 | - this.commentCn = commentCn; | |
| 257 | - } | |
| 258 | - | |
| 259 | - public void setSearchCateList(List<String> searchCateList) {
| |
| 260 | - if(searchCateList != null) {
| |
| 261 | - List<String> list = new ArrayList<String>(); | |
| 262 | - for(int i=0; i < searchCateList.size(); i++) {
| |
| 263 | - if(!EgovStringUtil.isEmpty(searchCateList.get(i))) {
| |
| 264 | - list.add(searchCateList.get(i)); | |
| 265 | - } | |
| 266 | - } | |
| 267 | - this.searchCateList = list; | |
| 268 | - } | |
| 269 | - } | |
| 270 | - | |
| 271 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/CtgryMasterVO.java
... | ... | @@ -1,56 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import java.sql.Date; | |
| 5 | - | |
| 6 | -import egovframework.com.cmm.ComDefaultVO; | |
| 7 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 8 | - | |
| 9 | - | |
| 10 | -@SuppressWarnings("serial")
| |
| 11 | -public class CtgryMasterVO extends ComDefaultVO {
| |
| 12 | - | |
| 13 | - //시스템구분코드 | |
| 14 | - private String sysTyCode = ""; | |
| 15 | - | |
| 16 | - //CTGRYMASTER_ID | |
| 17 | - private java.lang.String ctgrymasterId; | |
| 18 | - | |
| 19 | - //CTGRYMASTER_NM | |
| 20 | - private java.lang.String ctgrymasterNm; | |
| 21 | - | |
| 22 | - // CREAT_DT | |
| 23 | - private java.sql.Date creatDt; | |
| 24 | - | |
| 25 | - public String getSysTyCode() {
| |
| 26 | - return sysTyCode; | |
| 27 | - } | |
| 28 | - | |
| 29 | - public void setSysTyCode(String sysTyCode) {
| |
| 30 | - this.sysTyCode = sysTyCode; | |
| 31 | - } | |
| 32 | - | |
| 33 | - public String getCtgrymasterId() {
| |
| 34 | - return ctgrymasterId; | |
| 35 | - } | |
| 36 | - | |
| 37 | - public void setCtgrymasterId(String ctgrymasterId) {
| |
| 38 | - this.ctgrymasterId = ctgrymasterId; | |
| 39 | - } | |
| 40 | - | |
| 41 | - public String getCtgrymasterNm() {
| |
| 42 | - return ctgrymasterNm; | |
| 43 | - } | |
| 44 | - | |
| 45 | - public void setCtgrymasterNm(String ctgrymasterNm) {
| |
| 46 | - this.ctgrymasterNm = ctgrymasterNm; | |
| 47 | - } | |
| 48 | - | |
| 49 | - public Date getCreatDt() {
| |
| 50 | - return creatDt; | |
| 51 | - } | |
| 52 | - | |
| 53 | - public void setCreatDt(Date creatDt) {
| |
| 54 | - this.creatDt = creatDt; | |
| 55 | - } | |
| 56 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/CtgryVO.java
... | ... | @@ -1,136 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import egovframework.com.cmm.ComDefaultVO; | |
| 6 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 7 | - | |
| 8 | -@SuppressWarnings("serial")
| |
| 9 | -public class CtgryVO extends ComDefaultVO {
| |
| 10 | - | |
| 11 | - //카테고리ID | |
| 12 | - private java.lang.String ctgryId; | |
| 13 | - | |
| 14 | - //카테고리마스터ID | |
| 15 | - private java.lang.String ctgrymasterId; | |
| 16 | - | |
| 17 | - //상위카테고리ID | |
| 18 | - private java.lang.String upperCtgryId; | |
| 19 | - | |
| 20 | - //카테고리명 | |
| 21 | - private java.lang.String ctgryNm; | |
| 22 | - | |
| 23 | - //카테고리 설명 | |
| 24 | - private java.lang.String ctgryCn; | |
| 25 | - | |
| 26 | - //카테고리 값 | |
| 27 | - private java.lang.String ctgryVal; | |
| 28 | - | |
| 29 | - //SORT_ORDR | |
| 30 | - private int sortOrdr = 0; | |
| 31 | - | |
| 32 | - //경로 - 명 | |
| 33 | - private String ctgryPathByName = ""; | |
| 34 | - | |
| 35 | - //경로 - ID | |
| 36 | - private String ctgryPathById = ""; | |
| 37 | - | |
| 38 | - //레벨 | |
| 39 | - private int ctgryLevel = 1; | |
| 40 | - | |
| 41 | - //정렬순서코드 - U:위로, D:아래로 | |
| 42 | - private String sortTyCode = ""; | |
| 43 | - | |
| 44 | - | |
| 45 | - public String getCtgryId() {
| |
| 46 | - return ctgryId; | |
| 47 | - } | |
| 48 | - | |
| 49 | - public void setCtgryId(String ctgryId) {
| |
| 50 | - this.ctgryId = ctgryId; | |
| 51 | - } | |
| 52 | - | |
| 53 | - public String getCtgrymasterId() {
| |
| 54 | - return ctgrymasterId; | |
| 55 | - } | |
| 56 | - | |
| 57 | - public void setCtgrymasterId(String ctgrymasterId) {
| |
| 58 | - this.ctgrymasterId = ctgrymasterId; | |
| 59 | - } | |
| 60 | - | |
| 61 | - public String getUpperCtgryId() {
| |
| 62 | - return upperCtgryId; | |
| 63 | - } | |
| 64 | - | |
| 65 | - public void setUpperCtgryId(String upperCtgryId) {
| |
| 66 | - this.upperCtgryId = upperCtgryId; | |
| 67 | - } | |
| 68 | - | |
| 69 | - public String getCtgryNm() {
| |
| 70 | - return ctgryNm; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public void setCtgryNm(String ctgryNm) {
| |
| 74 | - this.ctgryNm = ctgryNm; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public String getCtgryCn() {
| |
| 78 | - return ctgryCn; | |
| 79 | - } | |
| 80 | - | |
| 81 | - public void setCtgryCn(String ctgryCn) {
| |
| 82 | - this.ctgryCn = ctgryCn; | |
| 83 | - } | |
| 84 | - | |
| 85 | - public String getCtgryVal() {
| |
| 86 | - return ctgryVal; | |
| 87 | - } | |
| 88 | - | |
| 89 | - public void setCtgryVal(String ctgryVal) {
| |
| 90 | - this.ctgryVal = ctgryVal; | |
| 91 | - } | |
| 92 | - | |
| 93 | - @Override | |
| 94 | - public int getSortOrdr() {
| |
| 95 | - return sortOrdr; | |
| 96 | - } | |
| 97 | - | |
| 98 | - @Override | |
| 99 | - public void setSortOrdr(int sortOrdr) {
| |
| 100 | - this.sortOrdr = sortOrdr; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public String getCtgryPathByName() {
| |
| 104 | - return ctgryPathByName; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public void setCtgryPathByName(String ctgryPathByName) {
| |
| 108 | - this.ctgryPathByName = ctgryPathByName; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public String getCtgryPathById() {
| |
| 112 | - return ctgryPathById; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public void setCtgryPathById(String ctgryPathById) {
| |
| 116 | - this.ctgryPathById = ctgryPathById; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public int getCtgryLevel() {
| |
| 120 | - return ctgryLevel; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public void setCtgryLevel(int ctgryLevel) {
| |
| 124 | - this.ctgryLevel = ctgryLevel; | |
| 125 | - } | |
| 126 | - | |
| 127 | - @Override | |
| 128 | - public String getSortTyCode() {
| |
| 129 | - return sortTyCode; | |
| 130 | - } | |
| 131 | - | |
| 132 | - @Override | |
| 133 | - public void setSortTyCode(String sortTyCode) {
| |
| 134 | - this.sortTyCode = sortTyCode; | |
| 135 | - } | |
| 136 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSAttributeManageMapper.java
... | ... | @@ -1,39 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 4 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -//게시판 속성정보 관리를 위한 데이터 접근 클래스 | |
| 9 | -@Mapper("bbsAttributeManageMapper") | |
| 10 | -public interface BBSAttributeManageMapper { | |
| 11 | - | |
| 12 | - //등록된 게시판 속성정보를 삭제한다. | |
| 13 | - public void deleteBBSMasterInf(BoardMasterVO boardMaster) throws Exception; | |
| 14 | - | |
| 15 | - //신규 게시판 속성정보를 등록한다. | |
| 16 | - public void insertBBSMasterInf(BoardMasterVO boardMaster) throws Exception; | |
| 17 | - | |
| 18 | - //게시판 속성정보 한 건을 상세조회 한다. | |
| 19 | - public BoardMasterVO selectBBSMasterInf(BoardMasterVO vo) throws Exception; | |
| 20 | - | |
| 21 | - //게시판 속성정보 목록을 조회한다. | |
| 22 | - public List<BoardMasterVO> selectBBSMasterInfs(BoardMasterVO vo) throws Exception; | |
| 23 | - | |
| 24 | - //게시판 속성정보 목록 숫자를 조회한다 | |
| 25 | - public int selectBBSMasterInfsCnt(BoardMasterVO vo) throws Exception; | |
| 26 | - | |
| 27 | - //게시판 속성정보를 수정한다. | |
| 28 | - public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception; | |
| 29 | - | |
| 30 | - //유효한 게시판 목록을 불러온다.(커뮤니티, 동호회의 게시판이 나오지 않도록 COMTNBBSUSE 테이블과 Join 필요) | |
| 31 | - public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception; | |
| 32 | - | |
| 33 | - //사용등록이 된 게시판 목록 전체를 불러온다. | |
| 34 | - public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception; | |
| 35 | - | |
| 36 | - //사용등록이 된 게시판 목록 숫자를 조회한다 | |
| 37 | - public int selectAllBBSMasterManageInfsCnt(BoardMasterVO vo) throws Exception; | |
| 38 | - | |
| 39 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSAttributeManageServiceImpl.java
... | ... | @@ -1,108 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.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 egovframework.com.cop.com.service.BoardUseInfVO; | |
| 10 | -import egovframework.com.cop.com.service.impl.BBSUseInfoManageMapper; | |
| 11 | -import org.springframework.stereotype.Service; | |
| 12 | - | |
| 13 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 14 | -import egovframework.com.cop.bbs.service.BBSAttributeManageService; | |
| 15 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 16 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 17 | - | |
| 18 | -//게시판 속성관리를 위한 서비스 구현 클래스 | |
| 19 | -@Service("bbsAttributeManageService") | |
| 20 | -public class BBSAttributeManageServiceImpl extends EgovAbstractServiceImpl implements BBSAttributeManageService { | |
| 21 | - | |
| 22 | - | |
| 23 | - @Resource(name = "bbsAttributeManageMapper") | |
| 24 | - private BBSAttributeManageMapper bbsAttributeManageMapper; | |
| 25 | - | |
| 26 | - @Resource(name = "bbsUseInfoManageMapper") | |
| 27 | - private BBSUseInfoManageMapper bbsUseInfoManageMapper; | |
| 28 | - | |
| 29 | - @Resource(name = "egovBBSMstrIdGnrService") | |
| 30 | - private EgovIdGnrService idgenService; | |
| 31 | - | |
| 32 | - | |
| 33 | - //등록된 게시판 속성정보를 삭제한다. | |
| 34 | - public void deleteBBSMasterInf(BoardMasterVO boardMaster) throws Exception { | |
| 35 | - bbsAttributeManageMapper.deleteBBSMasterInf(boardMaster); | |
| 36 | - | |
| 37 | - BoardUseInfVO bdUseInf = new BoardUseInfVO(); | |
| 38 | - bdUseInf.setBbsId(boardMaster.getBbsId()); | |
| 39 | - bdUseInf.setLastUpdusrId(boardMaster.getLastUpdusrId()); | |
| 40 | - bbsUseInfoManageMapper.deleteBBSUseInfByBoardId(bdUseInf); | |
| 41 | - } | |
| 42 | - | |
| 43 | - //신규 게시판 속성정보를 생성한다. | |
| 44 | - public String insertBBSMastetInf(BoardMasterVO boardMaster) throws Exception { | |
| 45 | - String bbsId = idgenService.getNextStringId(); | |
| 46 | - | |
| 47 | - boardMaster.setBbsId(bbsId); | |
| 48 | - bbsAttributeManageMapper.insertBBSMasterInf(boardMaster); | |
| 49 | - | |
| 50 | - BoardUseInfVO bdUseInf = new BoardUseInfVO(); | |
| 51 | - bdUseInf.setBbsId(bbsId); | |
| 52 | - bdUseInf.setTrgetId(boardMaster.getTrgetId()); | |
| 53 | - bdUseInf.setRegistSeCode(boardMaster.getRegistSeCode()); | |
| 54 | - bdUseInf.setFrstRegisterId(boardMaster.getFrstRegisterId()); | |
| 55 | - bdUseInf.setUseAt("Y"); | |
| 56 | - bbsUseInfoManageMapper.insertBBSUseInf(bdUseInf); | |
| 57 | - | |
| 58 | - return bbsId; | |
| 59 | - } | |
| 60 | - | |
| 61 | - //게시판 속성 정보의 목록을 조회 한다. | |
| 62 | - public List<BoardMasterVO> selectAllBBSMasteInf(BoardMasterVO vo) throws Exception { | |
| 63 | - return bbsAttributeManageMapper.selectAllBBSMasteInf(vo); | |
| 64 | - } | |
| 65 | - | |
| 66 | - //게시판 속성정보 한 건을 상세조회한다. | |
| 67 | - public BoardMasterVO selectBBSMasterInf(BoardMasterVO searchVO) throws Exception { | |
| 68 | - | |
| 69 | - BoardMasterVO result = bbsAttributeManageMapper.selectBBSMasterInf(searchVO); | |
| 70 | - | |
| 71 | - return result; | |
| 72 | - } | |
| 73 | - | |
| 74 | - | |
| 75 | - //게시판 속성 정보의 목록을 조회 한다. | |
| 76 | - public Map<String, Object> selectBBSMasterInfs(BoardMasterVO searchVO) throws Exception { | |
| 77 | - List<BoardMasterVO> result = bbsAttributeManageMapper.selectBBSMasterInfs(searchVO); | |
| 78 | - int cnt = bbsAttributeManageMapper.selectBBSMasterInfsCnt(searchVO); | |
| 79 | - | |
| 80 | - Map<String, Object> map = new HashMap<String, Object>(); | |
| 81 | - | |
| 82 | - map.put("resultList", result); | |
| 83 | - map.put("resultCnt", Integer.toString(cnt)); | |
| 84 | - | |
| 85 | - return map; | |
| 86 | - } | |
| 87 | - | |
| 88 | - //게시판 속성 정보의 전체 목록을 조회 한다. | |
| 89 | - public List<BoardMasterVO> selectBBSMasterList(BoardMasterVO searchVO) throws Exception { | |
| 90 | - return bbsAttributeManageMapper.selectBBSMasterInfs(searchVO); | |
| 91 | - } | |
| 92 | - | |
| 93 | - //게시판 속성정보를 수정한다. | |
| 94 | - public void updateBBSMasterInf(BoardMasterVO boardMaster) throws Exception { | |
| 95 | - bbsAttributeManageMapper.updateBBSMasterInf(boardMaster); | |
| 96 | - } | |
| 97 | - | |
| 98 | - //사용등록이 된 게시판 목록 전체를 불러온다. | |
| 99 | - public List<BoardMasterVO> selectAllBBSMasterManageInfs(BoardMasterVO vo) throws Exception { | |
| 100 | - return bbsAttributeManageMapper.selectAllBBSMasterManageInfs(vo); | |
| 101 | - } | |
| 102 | - | |
| 103 | - //사용등록이 된 게시판 목록 숫자를 조회한다 | |
| 104 | - public int selectAllBBSMasterManageInfsCnt(BoardMasterVO vo) throws Exception { | |
| 105 | - return bbsAttributeManageMapper.selectAllBBSMasterManageInfsCnt(vo); | |
| 106 | - } | |
| 107 | - | |
| 108 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCommentMapper.java
... | ... | @@ -1,56 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.cop.bbs.service.CommentVO; | |
| 4 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -//댓글관리를 위한 데이터 접근 클래스 | |
| 9 | -@Mapper("bbsCommentMapper") | |
| 10 | -public interface BBSCommentMapper { | |
| 11 | - //댓글에 대한 목록을 조회 한다. | |
| 12 | - public List<CommentVO> selectCommentList(CommentVO commentVO) throws Exception; | |
| 13 | - | |
| 14 | - //댓글에 대한 목록 건수를 조회 한다. | |
| 15 | - public int selectCommentListCnt(CommentVO commentVO) throws Exception; | |
| 16 | - | |
| 17 | - //댓글을 등록한다. | |
| 18 | - public void insertComment(CommentVO commentVO) throws Exception; | |
| 19 | - | |
| 20 | - //댓글의 댓글을 등록한다 | |
| 21 | - public void insertReplyComment(CommentVO commentVO) throws Exception; | |
| 22 | - | |
| 23 | - //댓글을 삭제한다. | |
| 24 | - public void deleteComment(CommentVO commentVO) throws Exception; | |
| 25 | - | |
| 26 | - //모든 댓글을 삭제한다. | |
| 27 | - public void deleteAllComment(CommentVO commentVO) throws Exception; | |
| 28 | - | |
| 29 | - //댓글에 대한 내용을 조회한다. | |
| 30 | - public CommentVO selectComment(CommentVO commenVO) throws Exception; | |
| 31 | - | |
| 32 | - //댓글에 대한 내용을 수정한다. | |
| 33 | - public void updateComment(CommentVO commentVO) throws Exception; | |
| 34 | - | |
| 35 | - //댓글에 대한 패스워드를 조회 한다. | |
| 36 | - public String getCommentPassword(CommentVO commentVO) throws Exception; | |
| 37 | - | |
| 38 | - //내가 작성한 댓글에 대한 목록 건수를 조회 한다. | |
| 39 | - public int selectMyCommentListCnt(CommentVO commentVO) throws Exception; | |
| 40 | - | |
| 41 | - //관리용 댓글의 이동을 위한 모든정보를 조회 한다. | |
| 42 | - public List<CommentVO> selectCommentManageCopyList(CommentVO commentVO) throws Exception; | |
| 43 | - | |
| 44 | - //관리용 댓글을일괄등록한다. | |
| 45 | - /* | |
| 46 | - public void insertCommentBatch(final List<CommentVO> commentList) throws Exception { | |
| 47 | - | |
| 48 | - if(commentList != null && commentList.size() > 0) { | |
| 49 | - for(int i = 0; i < commentList.size(); i++) { | |
| 50 | - insert("BBSCommentDAO.insertComment", commentList.get(i)); | |
| 51 | - } | |
| 52 | - } | |
| 53 | - } | |
| 54 | - */ | |
| 55 | - | |
| 56 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCommentServiceImpl.java
... | ... | @@ -1,152 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.math.BigDecimal; | |
| 4 | -import java.util.HashMap; | |
| 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.bbs.service.BoardVO; | |
| 13 | -import egovframework.com.cop.bbs.service.CommentVO; | |
| 14 | -import egovframework.com.cop.bbs.service.BBSCommentService; | |
| 15 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 16 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 17 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 18 | - | |
| 19 | -//댓글관리를 위한 서비스 구현 클래스 | |
| 20 | -@Service("bbsCommentService") | |
| 21 | -public class BBSCommentServiceImpl extends EgovAbstractServiceImpl implements BBSCommentService { | |
| 22 | - | |
| 23 | - @Resource(name = "bbsCommentMapper") | |
| 24 | - private BBSCommentMapper bbsCommentMapper; | |
| 25 | - | |
| 26 | - @Resource(name = "egovBbsCommentNoGnrService") | |
| 27 | - private EgovIdGnrService idgenService; | |
| 28 | - | |
| 29 | - //댓글에 대한 목록을 조회 한다. | |
| 30 | - public Map<String, Object> selectCommentList(CommentVO commentVO) throws Exception { | |
| 31 | - List<CommentVO> result = bbsCommentMapper.selectCommentList(commentVO); | |
| 32 | - int cnt = bbsCommentMapper.selectCommentListCnt(commentVO); | |
| 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 insertComment(CommentVO commentVO) throws Exception { | |
| 44 | - commentVO.setCommentNo(idgenService.getNextBigDecimalId()); | |
| 45 | - bbsCommentMapper.insertComment(commentVO); | |
| 46 | - | |
| 47 | - } | |
| 48 | - | |
| 49 | - //댓글의 댓글을 등록한다 | |
| 50 | - public void insertReplyComment(CommentVO commentVO) throws Exception { | |
| 51 | - commentVO.setCommentNo(idgenService.getNextBigDecimalId()); | |
| 52 | - commentVO.setPrntOrdrCode(commentVO.getOrdrCode()); | |
| 53 | - commentVO.setOrdrCodeDp(commentVO.getOrdrCodeDp() + 1); | |
| 54 | - bbsCommentMapper.insertReplyComment(commentVO); | |
| 55 | - } | |
| 56 | - | |
| 57 | - //댓글을 삭제한다. | |
| 58 | - public void deleteComment(CommentVO commentVO) throws Exception { | |
| 59 | - bbsCommentMapper.deleteComment(commentVO); | |
| 60 | - } | |
| 61 | - | |
| 62 | - //모든 댓글을 삭제한다. | |
| 63 | - public void deleteAllComment(CommentVO commentVO) throws Exception { | |
| 64 | - bbsCommentMapper.deleteAllComment(commentVO); | |
| 65 | - } | |
| 66 | - | |
| 67 | - //댓글에 대한 내용을 조회한다. | |
| 68 | - public CommentVO selectComment(CommentVO commentVO) throws Exception { | |
| 69 | - return bbsCommentMapper.selectComment(commentVO); | |
| 70 | - } | |
| 71 | - | |
| 72 | - //댓글에 대한 내용을 수정한다. | |
| 73 | - public void updateComment(CommentVO commentVO) throws Exception { | |
| 74 | - bbsCommentMapper.updateComment(commentVO); | |
| 75 | - } | |
| 76 | - | |
| 77 | - //댓글 패스워드를 가져온다. | |
| 78 | - public String getCommentPassword(CommentVO commentVO) throws Exception { | |
| 79 | - return bbsCommentMapper.getCommentPassword(commentVO); | |
| 80 | - } | |
| 81 | - | |
| 82 | - //내가 작성한 댓글에 대한 목록 건수를 조회 한다. | |
| 83 | - public int selectMyCommentListCnt(CommentVO commentVO) throws Exception { | |
| 84 | - return bbsCommentMapper.selectMyCommentListCnt(commentVO); | |
| 85 | - } | |
| 86 | - | |
| 87 | - //관리용 댓글을 복사한다. | |
| 88 | - public void updateCommentManageCopy(List<String> nttNoArr, List<BoardVO> articleList) throws Exception { | |
| 89 | - | |
| 90 | - CommentVO commentVO = new CommentVO(); | |
| 91 | - commentVO.setNttNoArr(nttNoArr); | |
| 92 | - | |
| 93 | - List<CommentVO> commentList = bbsCommentMapper.selectCommentManageCopyList(commentVO); | |
| 94 | - if(commentList != null && commentList.size() > 0) { | |
| 95 | - commentList = updateNewCommentNoGen(commentList); | |
| 96 | - commentList = updateNewNttNo(commentList, articleList); | |
| 97 | - | |
| 98 | - //bbsCommentMapper.insertCommentBatch(commentList); | |
| 99 | - for(int i = 0; i < commentList.size(); i++) { | |
| 100 | - bbsCommentMapper.insertComment(commentList.get(i)); | |
| 101 | - } | |
| 102 | - } | |
| 103 | - } | |
| 104 | - | |
| 105 | - //게시물번호를 재배치한다. | |
| 106 | - public List<CommentVO> updateNewNttNo(List<CommentVO> commentList, List<BoardVO> articleList) throws Exception { | |
| 107 | - | |
| 108 | - for(int i = 0; i < articleList.size(); i++) { | |
| 109 | - updateNewNttNo(commentList, articleList.get(i).getOldNttNo(), articleList.get(i).getNttNo()); | |
| 110 | - } | |
| 111 | - | |
| 112 | - return commentList; | |
| 113 | - } | |
| 114 | - | |
| 115 | - //게시물번호를 재배치한다. | |
| 116 | - public void updateNewNttNo(List<CommentVO> commentList, BigDecimal oldNttNo, BigDecimal newNttNo) throws Exception { | |
| 117 | - | |
| 118 | - CommentVO comment = null; | |
| 119 | - for(int i = 0; i < commentList.size(); i++) { | |
| 120 | - comment = commentList.get(i); | |
| 121 | - if(oldNttNo.equals(comment.getNttNo())) { | |
| 122 | - comment.setNttNo(newNttNo); | |
| 123 | - } | |
| 124 | - } | |
| 125 | - } | |
| 126 | - | |
| 127 | - //댓글번호를 재배치한다. | |
| 128 | - public List<CommentVO> updateNewCommentNoGen(List<CommentVO> commentList) throws Exception { | |
| 129 | - | |
| 130 | - for(int i = 0; i < commentList.size(); i++) { | |
| 131 | - updateNewCommentNoGen(commentList, commentList.get(i).getCommentNo(), idgenService.getNextBigDecimalId()); | |
| 132 | - } | |
| 133 | - | |
| 134 | - return commentList; | |
| 135 | - } | |
| 136 | - | |
| 137 | - //댓글번호를 재배치한다. | |
| 138 | - public void updateNewCommentNoGen(List<CommentVO> commentList, BigDecimal oldCommentNo, BigDecimal newCommentNo) throws Exception { | |
| 139 | - | |
| 140 | - CommentVO comment = null; | |
| 141 | - String ordrCode = EgovStringUtil.lpad(oldCommentNo.toString(), 15, "0"); | |
| 142 | - for(int i = 0; i < commentList.size(); i++) { | |
| 143 | - comment = commentList.get(i); | |
| 144 | - if(ordrCode.equals(comment.getOrdrCode().substring(0, 15))) { | |
| 145 | - comment.setOrdrCode(EgovStringUtil.lpad(newCommentNo.toString(), 15, "0") + comment.getOrdrCode().substring(15)); | |
| 146 | - } | |
| 147 | - if(oldCommentNo.equals(comment.getCommentNo())) { | |
| 148 | - comment.setCommentNo(newCommentNo); | |
| 149 | - } | |
| 150 | - } | |
| 151 | - } | |
| 152 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryMapper.java
... | ... | @@ -1,46 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 4 | -import egovframework.com.cop.bbs.service.CtgryVO; | |
| 5 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 6 | - | |
| 7 | -import java.util.List; | |
| 8 | - | |
| 9 | -//카테고리 | |
| 10 | -@Mapper("bbsCtgryMapper") | |
| 11 | -public interface BBSCtgryMapper { | |
| 12 | - | |
| 13 | - //COMTNBBSCTGRY을 등록한다. 1 | |
| 14 | - public int insertComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 15 | - | |
| 16 | - //COMTNBBSCTGRY을 수정한다. 1 | |
| 17 | - public void updateComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 18 | - | |
| 19 | - //COMTNBBSCTGRY을 삭제한다. 1 | |
| 20 | - public void deleteComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 21 | - | |
| 22 | - //COMTNBBSCTGRY을 조회한다. 1 | |
| 23 | - public CtgryVO selectComtnbbsctgry(CtgryVO vo) throws Exception; | |
| 24 | - | |
| 25 | - //COMTNBBSCTGRY 목록을 조회한다. 1 | |
| 26 | - public List<CtgryVO> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception; | |
| 27 | - | |
| 28 | - //COMTNBBSCTGRY 총 갯수를 조회한다. 1 | |
| 29 | - public int selectComtnbbsctgryListTotCnt(CtgryVO searchVO); | |
| 30 | - | |
| 31 | - //COMTNBBSCTGRY DEPTH를 조회한다. 1 | |
| 32 | - public int selectComtnbbsctgryLevel(CtgryVO searchVO); | |
| 33 | - | |
| 34 | - //이동할 대상카테고리 정보를 조회 한다. 1 | |
| 35 | - public CtgryVO selectTargetSortOrdr(CtgryVO searchVO) throws Exception; | |
| 36 | - | |
| 37 | - //정렬순서를 수정한다. 1 | |
| 38 | - public void updateSortOrdr(CtgryVO searchVO) throws Exception; | |
| 39 | - | |
| 40 | - //정렬순서(다음&이전)를 수정한다. 1 | |
| 41 | - public void updateSiblingsSortOrdr(CtgryVO searchVO) throws Exception; | |
| 42 | - | |
| 43 | - //카테고리 다음 레벨 값 1 | |
| 44 | - public int selectComtnbbsctgryNextLevel(CtgryVO searchVO); | |
| 45 | - | |
| 46 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryMasterMapper.java
... | ... | @@ -1,36 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 4 | -import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 5 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 6 | - | |
| 7 | -import java.util.List; | |
| 8 | - | |
| 9 | -//게시판 속성정보 관리를 위한 데이터 접근 클래스 | |
| 10 | -@Mapper("bbsCtgryMasterMapper") | |
| 11 | -public interface BBSCtgryMasterMapper { | |
| 12 | - | |
| 13 | - //COMTNBBSCTGRYMASTER을 등록한다. | |
| 14 | - public void insertComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 15 | - | |
| 16 | - //COMTNBBSCTGRYMASTER을 수정한다. | |
| 17 | - public void updateComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 18 | - | |
| 19 | - //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 20 | - public void deleteComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 21 | - | |
| 22 | - //COMTNBBSCTGRYMASTER을 조회한다. | |
| 23 | - public CtgryMasterVO selectComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception; | |
| 24 | - | |
| 25 | - //카테고리 마스터 Id검색 | |
| 26 | - public CtgryMasterVO selectCtgrymasterId(CtgryMasterVO vo) throws Exception; | |
| 27 | - | |
| 28 | - //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 29 | - public List<CtgryMasterVO> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 30 | - | |
| 31 | - //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 32 | - public int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO); | |
| 33 | - | |
| 34 | - public List<CtgryMasterVO> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception; | |
| 35 | - | |
| 36 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryMasterServiceImpl.java
... | ... | @@ -1,79 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import egovframework.com.cop.bbs.service.*; | |
| 8 | -import org.springframework.stereotype.Service; | |
| 9 | - | |
| 10 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 11 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 12 | - | |
| 13 | - | |
| 14 | -@Service("bbsCtgryMasterService") | |
| 15 | -public class BBSCtgryMasterServiceImpl extends EgovAbstractServiceImpl implements BBSCtgryMasterService { | |
| 16 | - | |
| 17 | - @Resource(name="bbsCtgryMasterMapper") | |
| 18 | - private BBSCtgryMasterMapper bbsCtgryMasterMapper; | |
| 19 | - | |
| 20 | - @Resource(name = "bbsCtgryService") | |
| 21 | - private BBSCtgryService bbsCtgryService; | |
| 22 | - | |
| 23 | - /** ID Generation */ | |
| 24 | - @Resource(name="bbsCtgryMstrIdGnrService") | |
| 25 | - private EgovIdGnrService egovIdGnrService; | |
| 26 | - | |
| 27 | - //COMTNBBSCTGRYMASTER을 등록한다. | |
| 28 | - public String insertComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 29 | - /** ID Generation Service */ | |
| 30 | - String id = egovIdGnrService.getNextStringId(); | |
| 31 | - vo.setCtgrymasterId(id); | |
| 32 | - | |
| 33 | - bbsCtgryMasterMapper.insertComtnbbsctgrymaster(vo); | |
| 34 | - | |
| 35 | - CtgryVO ctgry = new CtgryVO(); | |
| 36 | - ctgry.setCtgrymasterId(id); | |
| 37 | - ctgry.setCtgryNm("대분류"); | |
| 38 | - bbsCtgryService.insertComtnbbsctgry(ctgry); | |
| 39 | - | |
| 40 | - return id; | |
| 41 | - } | |
| 42 | - | |
| 43 | - //COMTNBBSCTGRYMASTER을 수정한다. | |
| 44 | - public void updateComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 45 | - bbsCtgryMasterMapper.updateComtnbbsctgrymaster(vo); | |
| 46 | - } | |
| 47 | - | |
| 48 | - //COMTNBBSCTGRYMASTER을 삭제한다. | |
| 49 | - public void deleteComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 50 | - bbsCtgryMasterMapper.deleteComtnbbsctgrymaster(vo); | |
| 51 | - } | |
| 52 | - | |
| 53 | - //COMTNBBSCTGRYMASTER을 조회한다. | |
| 54 | - public CtgryMasterVO selectComtnbbsctgrymaster(CtgryMasterVO vo) throws Exception { | |
| 55 | - CtgryMasterVO resultVO = bbsCtgryMasterMapper.selectComtnbbsctgrymaster(vo); | |
| 56 | - return resultVO; | |
| 57 | - } | |
| 58 | - | |
| 59 | - //카테고리마스터Id검색 | |
| 60 | - public CtgryMasterVO selectCtgrymasterId(CtgryMasterVO vo) throws Exception { | |
| 61 | - CtgryMasterVO resultVO = bbsCtgryMasterMapper.selectCtgrymasterId(vo); | |
| 62 | - return resultVO; | |
| 63 | - } | |
| 64 | - | |
| 65 | - //COMTNBBSCTGRYMASTER 목록을 조회한다. | |
| 66 | - public List<CtgryMasterVO> selectComtnbbsctgrymasterList(CtgryMasterVO searchVO) throws Exception { | |
| 67 | - return bbsCtgryMasterMapper.selectComtnbbsctgrymasterList(searchVO); | |
| 68 | - } | |
| 69 | - | |
| 70 | - //COMTNBBSCTGRYMASTER 총 갯수를 조회한다. | |
| 71 | - public int selectComtnbbsctgrymasterListTotCnt(CtgryMasterVO searchVO) { | |
| 72 | - return bbsCtgryMasterMapper.selectComtnbbsctgrymasterListTotCnt(searchVO); | |
| 73 | - } | |
| 74 | - | |
| 75 | - | |
| 76 | - public List<CtgryMasterVO> selectCtgrymasterList(CtgryMasterVO searchVO) throws Exception { | |
| 77 | - return bbsCtgryMasterMapper.selectCtgrymasterList(searchVO); | |
| 78 | - } | |
| 79 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSCtgryServiceImpl.java
... | ... | @@ -1,99 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cop.bbs.service.BBSCtgryService; | |
| 12 | -import egovframework.com.cop.bbs.service.CtgryVO; | |
| 13 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 14 | - | |
| 15 | -//카테고리 | |
| 16 | -@Service("bbsCtgryService") | |
| 17 | -public class BBSCtgryServiceImpl extends EgovAbstractServiceImpl implements BBSCtgryService { | |
| 18 | - | |
| 19 | - @Resource(name="bbsCtgryMapper") | |
| 20 | - private BBSCtgryMapper bbsCtgryMapper; | |
| 21 | - | |
| 22 | - /** ID Generation */ | |
| 23 | - @Resource(name="egovBbsCtgryIdGnrService") | |
| 24 | - private EgovIdGnrService egovIdGnrService; | |
| 25 | - | |
| 26 | - //COMTNBBSCTGRY을 등록한다. | |
| 27 | - public String insertComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 28 | - | |
| 29 | - /** ID Generation Service */ | |
| 30 | - String id = egovIdGnrService.getNextStringId(); | |
| 31 | - vo.setCtgryId(id); | |
| 32 | - | |
| 33 | - int ctgryLevel = 0; | |
| 34 | - if(!EgovStringUtil.isEmpty(vo.getUpperCtgryId())){ | |
| 35 | - ctgryLevel = bbsCtgryMapper.selectComtnbbsctgryNextLevel(vo); | |
| 36 | - } | |
| 37 | - | |
| 38 | - vo.setCtgryLevel(ctgryLevel); | |
| 39 | - bbsCtgryMapper.insertComtnbbsctgry(vo); | |
| 40 | - return null; | |
| 41 | - } | |
| 42 | - | |
| 43 | - //COMTNBBSCTGRY을 수정한다. | |
| 44 | - public void updateComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 45 | - bbsCtgryMapper.updateComtnbbsctgry(vo); | |
| 46 | - } | |
| 47 | - | |
| 48 | - //COMTNBBSCTGRY을 삭제한다. | |
| 49 | - public void deleteComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 50 | - bbsCtgryMapper.deleteComtnbbsctgry(vo); | |
| 51 | - } | |
| 52 | - | |
| 53 | - //COMTNBBSCTGRY을 조회한다. | |
| 54 | - public CtgryVO selectComtnbbsctgry(CtgryVO vo) throws Exception { | |
| 55 | - CtgryVO resultVO = bbsCtgryMapper.selectComtnbbsctgry(vo); | |
| 56 | - return resultVO; | |
| 57 | - } | |
| 58 | - | |
| 59 | - //COMTNBBSCTGRY 목록을 조회한다. | |
| 60 | - public List<CtgryVO> selectComtnbbsctgryList(CtgryVO searchVO) throws Exception { | |
| 61 | - return bbsCtgryMapper.selectComtnbbsctgryList(searchVO); | |
| 62 | - } | |
| 63 | - | |
| 64 | - //COMTNBBSCTGRY 총 갯수를 조회한다. | |
| 65 | - public int selectComtnbbsctgryListTotCnt(CtgryVO searchVO) { | |
| 66 | - return bbsCtgryMapper.selectComtnbbsctgryListTotCnt(searchVO); | |
| 67 | - } | |
| 68 | - | |
| 69 | - //COMTNBBSCTGRY DEPTH를 조회한다. | |
| 70 | - public int selectComtnbbsctgryLevel(CtgryVO searchVO) { | |
| 71 | - return bbsCtgryMapper.selectComtnbbsctgryLevel(searchVO); | |
| 72 | - } | |
| 73 | - | |
| 74 | - //정렬순서를 수정한다. | |
| 75 | - public void updateSortOrdr(CtgryVO vo) throws Exception { | |
| 76 | - //변경되야될 것 | |
| 77 | - bbsCtgryMapper.updateSortOrdr(vo); | |
| 78 | - | |
| 79 | - //다음 & 이전 꺼 | |
| 80 | - bbsCtgryMapper.updateSiblingsSortOrdr(vo); | |
| 81 | - /* | |
| 82 | - int sourceSortOrdr = vo.getSortOrdr(); | |
| 83 | - Ctgry targetCtgry = comtnbbsctgryDAO.selectTargetSortOrdr(vo); | |
| 84 | - | |
| 85 | - if(targetCtgry != null) { | |
| 86 | - vo.setSortOrdr(targetCtgry.getSortOrdr()); | |
| 87 | - comtnbbsctgryDAO.updateSortOrdr(vo); | |
| 88 | - | |
| 89 | - vo.setCtgryId(targetCtgry.getCtgryId()); | |
| 90 | - vo.setSortOrdr(sourceSortOrdr); | |
| 91 | - comtnbbsctgryDAO.updateSortOrdr(vo); | |
| 92 | - } | |
| 93 | - */ | |
| 94 | - } | |
| 95 | - | |
| 96 | - | |
| 97 | - | |
| 98 | - | |
| 99 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSManageMapper.java
... | ... | @@ -1,101 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 4 | -import egovframework.com.cop.bbs.service.CommentVO; | |
| 5 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 6 | -import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 7 | - | |
| 8 | -import java.sql.SQLException; | |
| 9 | -import java.util.List; | |
| 10 | - | |
| 11 | -//게시물 관리를 위한 데이터 접근 클래스 | |
| 12 | -@Mapper("bbsManageMapper") | |
| 13 | -public interface BBSManageMapper { | |
| 14 | - | |
| 15 | - //게시판에 게시물을 등록 한다. | |
| 16 | - public void insertBoardArticle(BoardVO board) throws Exception; | |
| 17 | - | |
| 18 | - //게시판에 답변 게시물을 등록 한다. | |
| 19 | - public void replyBoardArticle(BoardVO board) throws Exception; | |
| 20 | - | |
| 21 | - //게시물 한 건에 대하여 상세 내용을 조회 한다. | |
| 22 | - public BoardVO selectBoardArticle(BoardVO boardVO) throws Exception; | |
| 23 | - | |
| 24 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 25 | - public List<BoardVO> selectBoardArticleList(BoardVO boardVO) throws Exception; | |
| 26 | - | |
| 27 | - //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. | |
| 28 | - public int selectBoardArticleListCnt(BoardVO boardVO) throws Exception; | |
| 29 | - | |
| 30 | - //게시물 한 건의 내용을 수정 한다. | |
| 31 | - public void updateBoardArticle(BoardVO board) throws Exception; | |
| 32 | - | |
| 33 | - //게시물 한 건을 삭제 한다. | |
| 34 | - public void deleteBoardArticle(BoardVO board) throws Exception; | |
| 35 | - | |
| 36 | - //게시물에 대한 조회 건수를 수정 한다. | |
| 37 | - public void updateInqireCo(BoardVO boardVO) throws Exception; | |
| 38 | - | |
| 39 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 40 | - public List<BoardVO> selectSearchBoardArticleList(BoardVO boardVO) throws Exception; | |
| 41 | - | |
| 42 | - //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. | |
| 43 | - public int selectSearchBoardArticleListCnt(BoardVO boardVO) throws Exception; | |
| 44 | - | |
| 45 | - //관리용 게시물을 이동시킨다. | |
| 46 | - public void updateBoardArticlesManageMove(BoardVO board) throws Exception; | |
| 47 | - | |
| 48 | - //관리용 게시물을 삭제시킨다. | |
| 49 | - public void updateBoardArticlesManageHide(BoardVO board) throws Exception; | |
| 50 | - | |
| 51 | - //게시물 한 건을 완전삭제 한다. | |
| 52 | - public void deleteCompleteBoardArticle(BoardVO board) throws Exception; | |
| 53 | - | |
| 54 | - //게시물 한 건을 복구 한다. | |
| 55 | - public void repairBoardArticle(BoardVO board) throws Exception; | |
| 56 | - | |
| 57 | - //관리용 게시물의 최소정보를 조회 한다. | |
| 58 | - public List<BoardVO> selectBoardArticlesManageSimpleList(BoardVO boardVO) throws Exception; | |
| 59 | - | |
| 60 | - //관리용 게시물의 이동을 위한 모든정보를 조회 한다. | |
| 61 | - public List<BoardVO> selectBoardArticlesManageCopyList(BoardVO boardVO) throws Exception; | |
| 62 | - | |
| 63 | - //관리용 게시물을 일괄등록한다. | |
| 64 | - /* | |
| 65 | - public void insertBoardArticleBatch(final List<BoardVO> articleList) throws Exception { | |
| 66 | - if(articleList != null && articleList.size() > 0) { | |
| 67 | - for(int i = 0; i < articleList.size(); i++) { | |
| 68 | - insert("BBSManageDAO.insertBoardArticle", articleList.get(i)); | |
| 69 | - } | |
| 70 | - } | |
| 71 | - } | |
| 72 | - */ | |
| 73 | - | |
| 74 | - //게시물 한 건의 내용을 수정 한다. | |
| 75 | - public void updateBoardArticleByNormal(BoardVO board) throws Exception; | |
| 76 | - | |
| 77 | - //게시물 한 건의 내용을 수정 한다. | |
| 78 | - public void updateBoardArticleByEmptyProcessSttusCode(BoardVO board) throws Exception; | |
| 79 | - | |
| 80 | - //게시물 한 건의 내용을 수정 한다. | |
| 81 | - public void updateBoardArticleByProcessSttusCode(BoardVO board) throws Exception; | |
| 82 | - | |
| 83 | - public List<EgovMap> selectBoardStatisticsPie(BoardVO boardVO) throws Exception; | |
| 84 | - | |
| 85 | - public EgovMap selectBoardStatisticsBar(BoardVO boardVO) throws Exception; | |
| 86 | - | |
| 87 | - public List<EgovMap> selectBoardStatisticsBarMemberList(BoardVO boardVO) throws Exception; | |
| 88 | - | |
| 89 | - public List<EgovMap> selectStatisticsList(BoardVO boardVO) throws Exception; | |
| 90 | - | |
| 91 | - public int selectStatisticsListCnt(BoardVO boardVO) throws Exception; | |
| 92 | - | |
| 93 | - public EgovMap selectAttendCollectCnt(BoardVO boardVO) throws Exception; | |
| 94 | - | |
| 95 | - public List<EgovMap> selectMemBoardList(BoardVO boardVO) throws Exception; | |
| 96 | - | |
| 97 | - public int selectMemBoardListCnt(BoardVO boardVO) throws Exception; | |
| 98 | - | |
| 99 | - public List<EgovMap> selectStaffMemBoardList(BoardVO boardVO) throws Exception; | |
| 100 | - | |
| 101 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/service/impl/BBSManageServiceImpl.java
... | ... | @@ -1,285 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.service.impl; | |
| 2 | - | |
| 3 | -import java.math.BigDecimal; | |
| 4 | -import java.util.List; | |
| 5 | - | |
| 6 | -import javax.annotation.Resource; | |
| 7 | - | |
| 8 | -import egovframework.com.cop.bbs.service.*; | |
| 9 | -import org.apache.log4j.Logger; | |
| 10 | -import org.springframework.stereotype.Service; | |
| 11 | - | |
| 12 | -import egovframework.com.cmm.service.FileMngService; | |
| 13 | -import egovframework.com.cmm.service.FileVO; | |
| 14 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 15 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 16 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 17 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 18 | -import egovframework.rte.psl.dataaccess.util.EgovMap; | |
| 19 | - | |
| 20 | -//게시물 관리를 위한 서비스 구현 클래스 | |
| 21 | -@Service("bbsManageService") | |
| 22 | -public class BBSManageServiceImpl extends EgovAbstractServiceImpl implements BBSManageService { | |
| 23 | - | |
| 24 | - @Resource(name = "bbsManageMapper") | |
| 25 | - private BBSManageMapper bbsManageMapper; | |
| 26 | - | |
| 27 | - @Resource(name = "bbsCommentService") | |
| 28 | - protected BBSCommentService bbsCommentService; | |
| 29 | - | |
| 30 | - @Resource(name = "fileMngService") | |
| 31 | - private FileMngService fileMngService; | |
| 32 | - | |
| 33 | - @Resource(name = "bbsNttNoGnrService") | |
| 34 | - private EgovIdGnrService idgenService; | |
| 35 | - | |
| 36 | - @Resource(name = "propertiesService") | |
| 37 | - protected EgovPropertyService propertyService; | |
| 38 | - | |
| 39 | - Logger log = Logger.getLogger(this.getClass()); | |
| 40 | - | |
| 41 | - //게시물 한 건을 삭제 한다. | |
| 42 | - public void deleteBoardArticle(BoardVO board, BoardMasterVO master) throws Exception { | |
| 43 | - | |
| 44 | - if(master != null) { | |
| 45 | - board.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 46 | - } | |
| 47 | - | |
| 48 | - FileVO fvo = new FileVO(); | |
| 49 | - | |
| 50 | - fvo.setAtchFileId(board.getAtchFileId()); | |
| 51 | - | |
| 52 | - //board.setNttSj("이 글은 작성자에 의해서 삭제되었습니다."); | |
| 53 | - | |
| 54 | - bbsManageMapper.deleteBoardArticle(board); | |
| 55 | - | |
| 56 | - //if(!"".equals(fvo.getAtchFileId()) || fvo.getAtchFileId() != null) { | |
| 57 | - // fileService.deleteAllFileInf(fvo); | |
| 58 | - //} | |
| 59 | - } | |
| 60 | - | |
| 61 | - //임시첨부파일을 정식으로 등록 한다. | |
| 62 | - public String insertFileInfsByTemp(BoardVO board) throws Exception { | |
| 63 | - FileVO fvo = new FileVO(); | |
| 64 | - fvo.setAtchFileId(board.getAtchFileId()); | |
| 65 | - fvo.setFileGroupId(board.getFileGroupId()); | |
| 66 | - return fileMngService.insertFileInfsByTemp(fvo).getAtchFileId(); | |
| 67 | - } | |
| 68 | - | |
| 69 | - //게시판에 게시물을 등록 한다. | |
| 70 | - public void insertBoardArticle(BoardVO board, BoardMasterVO master) throws Exception { | |
| 71 | - if(board.getNttNo() == null) { | |
| 72 | - board.setNttNo(idgenService.getNextBigDecimalId()); | |
| 73 | - } | |
| 74 | - | |
| 75 | - if(master != null) { | |
| 76 | - board.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 77 | - } | |
| 78 | - | |
| 79 | - board.setAtchFileId(this.insertFileInfsByTemp(board)); | |
| 80 | - | |
| 81 | - bbsManageMapper.insertBoardArticle(board); | |
| 82 | - | |
| 83 | - } | |
| 84 | - | |
| 85 | - //게시판에 답변 게시물을 등록 한다. | |
| 86 | - public void replyBoardArticle(BoardVO board, BoardMasterVO master) throws Exception { | |
| 87 | - if(board.getNttNo() == null) { | |
| 88 | - board.setNttNo(idgenService.getNextBigDecimalId()); | |
| 89 | - } | |
| 90 | - | |
| 91 | - if(master != null) { | |
| 92 | - board.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 93 | - } | |
| 94 | - | |
| 95 | - board.setAtchFileId(this.insertFileInfsByTemp(board)); | |
| 96 | - | |
| 97 | - bbsManageMapper.replyBoardArticle(board); | |
| 98 | - | |
| 99 | - } | |
| 100 | - | |
| 101 | - //게시물 대하여 상세 내용을 조회 한다. | |
| 102 | - public BoardVO selectBoardArticle(BoardVO boardVO) throws Exception { | |
| 103 | - if(boardVO.isPlusCount()) { | |
| 104 | - bbsManageMapper.updateInqireCo(boardVO); | |
| 105 | - } | |
| 106 | - | |
| 107 | - BoardVO resultVO = bbsManageMapper.selectBoardArticle(boardVO); | |
| 108 | - | |
| 109 | - if (resultVO == null) | |
| 110 | - throw processException("info.nodata.msg"); | |
| 111 | - | |
| 112 | - | |
| 113 | - return resultVO; | |
| 114 | - } | |
| 115 | - | |
| 116 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 117 | - public List<BoardVO> selectBoardArticles(BoardVO boardVO) throws Exception { | |
| 118 | - return bbsManageMapper.selectBoardArticleList(boardVO); | |
| 119 | - } | |
| 120 | - | |
| 121 | - //조건에 맞는 게시물 목록건수를 조회 한다. | |
| 122 | - public int selectBoardArticlesCnt(BoardVO boardVO) throws Exception { | |
| 123 | - return bbsManageMapper.selectBoardArticleListCnt(boardVO); | |
| 124 | - } | |
| 125 | - | |
| 126 | - //게시물 한 건의 내용을 수정 한다. | |
| 127 | - public void updateBoardArticle(BoardVO board, BoardMasterVO master, boolean isEstn) throws Exception { | |
| 128 | - if(master != null) { | |
| 129 | - board.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 130 | - } | |
| 131 | - | |
| 132 | - String atchFileId = this.insertFileInfsByTemp(board); | |
| 133 | - if(isEstn) { | |
| 134 | - board.setEstnAtchFileId(atchFileId); | |
| 135 | - } else { | |
| 136 | - board.setAtchFileId(atchFileId); | |
| 137 | - } | |
| 138 | - | |
| 139 | - //bbsMngDAO.updateBoardArticle(board); | |
| 140 | - if(!"BBSA11".equals(board.getBbsAttrbCode())) { | |
| 141 | - bbsManageMapper.updateBoardArticleByNormal(board); | |
| 142 | - } else { | |
| 143 | - if(EgovStringUtil.isEmpty(board.getProcessSttusCode())) { | |
| 144 | - bbsManageMapper.updateBoardArticleByEmptyProcessSttusCode(board); | |
| 145 | - } else { | |
| 146 | - bbsManageMapper.updateBoardArticleByProcessSttusCode(board); | |
| 147 | - } | |
| 148 | - } | |
| 149 | - } | |
| 150 | - | |
| 151 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 152 | - public List<BoardVO> selectSearchBoardArticleList(BoardVO boardVO) throws Exception { | |
| 153 | - return bbsManageMapper.selectSearchBoardArticleList(boardVO); | |
| 154 | - } | |
| 155 | - | |
| 156 | - //조건에 맞는 게시물 목록에 대한 전체 건수를 조회 한다. | |
| 157 | - public int selectSearchBoardArticleListCnt(BoardVO boardVO) throws Exception { | |
| 158 | - return bbsManageMapper.selectSearchBoardArticleListCnt(boardVO); | |
| 159 | - } | |
| 160 | - | |
| 161 | - //관리용 게시물을 이동시킨다. | |
| 162 | - public void updateBoardArticlesManageMove(BoardVO board) throws Exception { | |
| 163 | - bbsManageMapper.updateBoardArticlesManageMove(board); | |
| 164 | - } | |
| 165 | - | |
| 166 | - //관리용 게시물을 복사한다. | |
| 167 | - public void updateBoardArticlesManageCopy(BoardVO board) throws Exception { | |
| 168 | - /* | |
| 169 | - List<BoardVO> articleList = bbsMngDAO.selectBoardArticlesManageCopyList(board); | |
| 170 | - if(articleList != null && articleList.size() > 0) { | |
| 171 | - articleList = updateNewNttNoGen(articleList); | |
| 172 | - for(int i = 0; i < articleList.size(); i++) { | |
| 173 | - articleList.get(i).setBbsId(board.getTrgetId()); | |
| 174 | - articleList.get(i).setCtgryId(board.getCtgryId()); | |
| 175 | - } | |
| 176 | - | |
| 177 | - articleList = fileMngService.updateFileManageCopy(articleList); | |
| 178 | - bbsMngDAO.insertBoardArticleBatch(articleList); | |
| 179 | - | |
| 180 | - bbsCommentService.updateCommentManageCopy(board.getNttNoArr(), articleList); | |
| 181 | - } | |
| 182 | - */ | |
| 183 | - } | |
| 184 | - | |
| 185 | - //게시물번호를 재배치한다. | |
| 186 | - public List<BoardVO> updateNewNttNoGen(List<BoardVO> articleList) throws Exception { | |
| 187 | - /* | |
| 188 | - BoardVO article = null; | |
| 189 | - for(int i = 0; i < articleList.size(); i++) { | |
| 190 | - article = articleList.get(i); | |
| 191 | - updateNewNttNoGen(articleList, article.getNttNo(), idgenService.getNextBigDecimalId()); | |
| 192 | - } | |
| 193 | - */ | |
| 194 | - return articleList; | |
| 195 | - | |
| 196 | - } | |
| 197 | - | |
| 198 | - //게시물번호를 재배치한다. | |
| 199 | - public void updateNewNttNoGen(List<BoardVO> articleList, BigDecimal oldNttNo, BigDecimal newNttNo) throws Exception { | |
| 200 | - /* | |
| 201 | - BoardVO article = null; | |
| 202 | - String ordrCode = EgovStringUtil.lpad(oldNttNo.toString(), 15, "0"); | |
| 203 | - for(int i = 0; i < articleList.size(); i++) { | |
| 204 | - article = articleList.get(i); | |
| 205 | - if(ordrCode.equals(article.getOrdrCode().substring(0, 15))) { | |
| 206 | - article.setOrdrCode(EgovStringUtil.lpad(newNttNo.toString(), 15, "0") + article.getOrdrCode().substring(15)); | |
| 207 | - } | |
| 208 | - if(oldNttNo.equals(article.getNttNo())) { | |
| 209 | - article.setNttNo(newNttNo); | |
| 210 | - article.setOldNttNo(oldNttNo); | |
| 211 | - } | |
| 212 | - } | |
| 213 | - */ | |
| 214 | - } | |
| 215 | - | |
| 216 | - //관리용 게시물을 삭제한다. | |
| 217 | - public void updateBoardArticlesManageHide(BoardVO board) throws Exception { | |
| 218 | - bbsManageMapper.updateBoardArticlesManageHide(board); | |
| 219 | - } | |
| 220 | - | |
| 221 | - //게시물 한 건을 완전삭제 한다. | |
| 222 | - public void deleteCompleteBoardArticle(BoardVO board) throws Exception { | |
| 223 | - List<BoardVO> articleList = bbsManageMapper.selectBoardArticlesManageSimpleList(board); | |
| 224 | - if(articleList != null && articleList.size() > 0) { | |
| 225 | - //코멘트먼저 삭제 | |
| 226 | - CommentVO commentVO = new CommentVO(); | |
| 227 | - commentVO.setNttNoArr(board.getNttNoArr()); | |
| 228 | - bbsCommentService.deleteAllComment(commentVO); | |
| 229 | - //게시물삭제 | |
| 230 | - bbsManageMapper.deleteCompleteBoardArticle(board); | |
| 231 | - //파일 삭제 | |
| 232 | - BoardVO article = null; | |
| 233 | - for(int i = 0; i < articleList.size(); i++) { | |
| 234 | - article = articleList.get(i); | |
| 235 | - if(!EgovStringUtil.isEmpty(article.getAtchFileId())) { | |
| 236 | - fileMngService.deleteFileInfs(article.getAtchFileId()); | |
| 237 | - } | |
| 238 | - } | |
| 239 | - } | |
| 240 | - } | |
| 241 | - | |
| 242 | - //게시물 한 건을 복구 한다. | |
| 243 | - public void repairBoardArticle(BoardVO board) throws Exception { | |
| 244 | - bbsManageMapper.repairBoardArticle(board); | |
| 245 | - } | |
| 246 | - | |
| 247 | - public List<EgovMap> selectBoardStatisticsPie(BoardVO boardVO) throws Exception { | |
| 248 | - return this.bbsManageMapper.selectBoardStatisticsPie(boardVO); | |
| 249 | - } | |
| 250 | - | |
| 251 | - public EgovMap selectBoardStatisticsBar(BoardVO boardVO) throws Exception { | |
| 252 | - return this.bbsManageMapper.selectBoardStatisticsBar(boardVO); | |
| 253 | - } | |
| 254 | - | |
| 255 | - public List<EgovMap> selectBoardStatisticsBarMemberList(BoardVO boardVO) throws Exception { | |
| 256 | - return this.bbsManageMapper.selectBoardStatisticsBarMemberList(boardVO); | |
| 257 | - } | |
| 258 | - | |
| 259 | - public EgovMap selectStatistics(BoardVO boardVO) throws Exception { | |
| 260 | - EgovMap resultMap = new EgovMap(); | |
| 261 | - List<?> StatisticsList = this.bbsManageMapper.selectStatisticsList(boardVO); | |
| 262 | - int StatisticsListCnt = this.bbsManageMapper.selectStatisticsListCnt(boardVO); | |
| 263 | - resultMap.put("resultList", StatisticsList); | |
| 264 | - resultMap.put("resultCnt", StatisticsListCnt); | |
| 265 | - return resultMap; | |
| 266 | - } | |
| 267 | - | |
| 268 | - public EgovMap selectAttendCollectCnt(BoardVO boardVO) throws Exception{ | |
| 269 | - return this.bbsManageMapper.selectAttendCollectCnt(boardVO); | |
| 270 | - } | |
| 271 | - | |
| 272 | - public EgovMap selectMemBoard(BoardVO boardVO) throws Exception { | |
| 273 | - EgovMap resultMap = new EgovMap(); | |
| 274 | - List<?> resultList = this.bbsManageMapper.selectMemBoardList(boardVO); | |
| 275 | - int resultCnt = this.bbsManageMapper.selectMemBoardListCnt(boardVO); | |
| 276 | - resultMap.put("resultList", resultList); | |
| 277 | - resultMap.put("resultCnt", resultCnt); | |
| 278 | - return resultMap; | |
| 279 | - } | |
| 280 | - | |
| 281 | - public List<EgovMap> selectStaffMemBoardList(BoardVO boardVO) throws Exception { | |
| 282 | - return this.bbsManageMapper.selectStaffMemBoardList(boardVO); | |
| 283 | - } | |
| 284 | - | |
| 285 | -} |
--- base/src/main/java/egovframework/com/cop/bbs/web/BBSCommentController.java
... | ... | @@ -1,293 +0,0 @@ |
| 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/BBSManageController.java
... | ... | @@ -1,796 +0,0 @@ |
| 1 | -package egovframework.com.cop.bbs.web; | |
| 2 | - | |
| 3 | -import java.io.PrintWriter; | |
| 4 | -import java.util.List; | |
| 5 | -import java.util.Map; | |
| 6 | - | |
| 7 | -import javax.annotation.Resource; | |
| 8 | - | |
| 9 | -import egovframework.com.cop.bbs.service.*; | |
| 10 | -import net.sf.json.JSONObject; | |
| 11 | - | |
| 12 | -import org.apache.log4j.Logger; | |
| 13 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 14 | -import org.springframework.stereotype.Controller; | |
| 15 | -import org.springframework.ui.ModelMap; | |
| 16 | -import org.springframework.validation.BindingResult; | |
| 17 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 18 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 19 | -import org.springframework.web.multipart.MultipartFile; | |
| 20 | -import org.springframework.web.multipart.MultipartHttpServletRequest; | |
| 21 | -import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 22 | - | |
| 23 | -import egovframework.com.cmm.EgovMessageSource; | |
| 24 | -import egovframework.com.cmm.service.CmmUseService; | |
| 25 | -import egovframework.com.cmm.service.FileMngService; | |
| 26 | -import egovframework.com.cmm.service.FileMngUtil; | |
| 27 | -import egovframework.com.cmm.service.FileVO; | |
| 28 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 29 | -import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 30 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 31 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 32 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 33 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 34 | -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 35 | -import egovframework.com.uss.ivp.service.IndvdlestbsService; | |
| 36 | -import egovframework.com.uss.ivp.service.IndvdlestbsVO; | |
| 37 | -import egovframework.com.utl.fcc.service.EgovHttpUtil; | |
| 38 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 39 | -import egovframework.com.utl.sim.service.EgovClntInfo; | |
| 40 | - | |
| 41 | -import javax.servlet.http.HttpServletRequest; | |
| 42 | -import javax.servlet.http.HttpServletResponse; | |
| 43 | - | |
| 44 | - | |
| 45 | -//게시물 관리를 위한 컨트롤러 클래스 | |
| 46 | -@Controller("EgovBBSManageController") | |
| 47 | -public class BBSManageController { | |
| 48 | - | |
| 49 | - @Resource(name = "bbsManageService") | |
| 50 | - private BBSManageService bbsMngService; | |
| 51 | - | |
| 52 | - @Resource(name = "bbsAttributeManageService") | |
| 53 | - private BBSAttributeManageService bbsAttrbService; | |
| 54 | - | |
| 55 | - @Resource(name = "bbsCtgryService") | |
| 56 | - private BBSCtgryService ctgryService; | |
| 57 | - | |
| 58 | - @Resource(name = "siteManageService") | |
| 59 | - SiteManageService siteManageService; | |
| 60 | - | |
| 61 | - @Resource(name = "fileMngService") | |
| 62 | - private FileMngService fileMngService; | |
| 63 | - | |
| 64 | - @Resource(name = "fileMngUtil") | |
| 65 | - private FileMngUtil fileUtil; | |
| 66 | - | |
| 67 | - @Resource(name = "propertiesService") | |
| 68 | - protected EgovPropertyService propertyService; | |
| 69 | - | |
| 70 | - @Resource(name = "egovMessageSource") | |
| 71 | - EgovMessageSource egovMessageSource; | |
| 72 | - | |
| 73 | - @Resource(name = "cmmUseService") | |
| 74 | - private CmmUseService cmmUseService; | |
| 75 | - | |
| 76 | - @Resource(name = "indvdlestbsService") | |
| 77 | - private IndvdlestbsService indvdlestbsService; | |
| 78 | - | |
| 79 | - @Resource(name = "bbsCtgryMasterService") | |
| 80 | - private BBSCtgryMasterService bbsCtgryMasterService; | |
| 81 | - | |
| 82 | - /** EgovPropertyService */ | |
| 83 | - @Resource(name = "propertiesService") | |
| 84 | - protected EgovPropertyService propertiesService; | |
| 85 | - | |
| 86 | - @Autowired | |
| 87 | - private DefaultBeanValidator beanValidator; | |
| 88 | - | |
| 89 | - Logger log = Logger.getLogger(this.getClass()); | |
| 90 | - | |
| 91 | - //XSS 방지 처리. | |
| 92 | - protected String unscript(String data) { | |
| 93 | - if(data == null || data.trim().equals("")) { | |
| 94 | - return ""; | |
| 95 | - } | |
| 96 | - | |
| 97 | - String ret = data; | |
| 98 | - | |
| 99 | - ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script"); | |
| 100 | - ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script"); | |
| 101 | - | |
| 102 | - ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object"); | |
| 103 | - ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object"); | |
| 104 | - | |
| 105 | - ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet"); | |
| 106 | - ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet"); | |
| 107 | - | |
| 108 | - ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 109 | - ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 110 | - | |
| 111 | - ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 112 | - ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 113 | - | |
| 114 | - return ret; | |
| 115 | - } | |
| 116 | - | |
| 117 | - | |
| 118 | - //게시물에 대한 목록을 조회한다. | |
| 119 | - @RequestMapping(value = "/cop/bbs/selectBoardList.do") | |
| 120 | - public String selectBoardArticles(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 121 | - | |
| 122 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 123 | - model.addAttribute("siteInfo", siteVO); | |
| 124 | - | |
| 125 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 126 | - | |
| 127 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 128 | - vo.setBbsId(boardVO.getBbsId()); | |
| 129 | - vo.setSiteId(siteVO.getSiteId()); | |
| 130 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 131 | - | |
| 132 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 133 | - | |
| 134 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 135 | - if(master != null) { | |
| 136 | - int SE_CODE = 1; | |
| 137 | - if(user != null) { | |
| 138 | - SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 139 | - model.addAttribute("USER_INFO", user); | |
| 140 | - | |
| 141 | - //교재&사전 | |
| 142 | - if("BBSMSTR_000000000005".equals(boardVO.getBbsId())){ | |
| 143 | - //좋아요 목록 | |
| 144 | - IndvdlestbsVO indvdlestbsVO = new IndvdlestbsVO(); | |
| 145 | - indvdlestbsVO.setUserId(user.getId()); | |
| 146 | - indvdlestbsVO.setSiteId(siteVO.getSiteId()); | |
| 147 | - indvdlestbsVO.setTrgetTyCode("BOOK_LIKE"); | |
| 148 | - model.addAttribute("wishList", indvdlestbsService.selectIvpList(indvdlestbsVO)); | |
| 149 | - } | |
| 150 | - } | |
| 151 | - | |
| 152 | - if(SE_CODE >= 10) { | |
| 153 | - //boardVO.setAdminAt("Y"); | |
| 154 | - } | |
| 155 | - | |
| 156 | - // 페이징 정보 설정 | |
| 157 | - boardVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 158 | - boardVO.setPageSize(propertyService.getInt("pageSize")); | |
| 159 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 160 | - | |
| 161 | - if("BBSA02".equals(master.getBbsAttrbCode())) { | |
| 162 | - if(EgovStringUtil.isEmpty(boardVO.getViewType())){ | |
| 163 | - boardVO.setViewType("photo"); | |
| 164 | - } | |
| 165 | - | |
| 166 | - if("photo".equals(boardVO.getViewType())){ | |
| 167 | - // 페이징 정보 설정 | |
| 168 | - boardVO.setPageUnit(propertyService.getInt("photoPageUnit")); | |
| 169 | - boardVO.setPageSize(propertyService.getInt("photoPageSize")); | |
| 170 | - } | |
| 171 | - } | |
| 172 | - | |
| 173 | - //공지게시물 가져오기 | |
| 174 | - BoardVO noticeVO = new BoardVO(); | |
| 175 | - noticeVO.setBbsId(boardVO.getBbsId()); | |
| 176 | - noticeVO.setCommentUseAt(master.getCommentUseAt()); | |
| 177 | - noticeVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 178 | - noticeVO.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 179 | - noticeVO.setSearchNoticeAt("Y"); | |
| 180 | - noticeVO.setFirstIndex(0); | |
| 181 | - | |
| 182 | - model.addAttribute("noticeList", bbsMngService.selectBoardArticles(noticeVO)); | |
| 183 | - | |
| 184 | - paginationInfo.setCurrentPageNo(boardVO.getPageIndex()); | |
| 185 | - paginationInfo.setRecordCountPerPage(boardVO.getPageUnit()); | |
| 186 | - paginationInfo.setPageSize(boardVO.getPageSize()); | |
| 187 | - | |
| 188 | - boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 189 | - boardVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 190 | - boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 191 | - | |
| 192 | - boardVO.setCommentUseAt(master.getCommentUseAt()); | |
| 193 | - boardVO.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 194 | - | |
| 195 | - List<BoardVO> resultList = bbsMngService.selectBoardArticles(boardVO); | |
| 196 | - int totCnt = bbsMngService.selectBoardArticlesCnt(boardVO); | |
| 197 | - | |
| 198 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 199 | - | |
| 200 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 201 | - CtgryVO ctgry = new CtgryVO(); | |
| 202 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 203 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 204 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 205 | - } | |
| 206 | - | |
| 207 | - model.addAttribute("resultList", resultList); | |
| 208 | - model.addAttribute("resultCnt", totCnt); | |
| 209 | - model.addAttribute("brdMstrVO", master); | |
| 210 | - model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 211 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 212 | - request.getSession().removeAttribute("sessionCommentVO"); | |
| 213 | - | |
| 214 | - return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeList"; | |
| 215 | - } | |
| 216 | - | |
| 217 | - return null; | |
| 218 | - } | |
| 219 | - | |
| 220 | - //게시물에 대한 상세 정보를 조회한다. | |
| 221 | - @RequestMapping(value = "/cop/bbs/selectBoardArticle.do") | |
| 222 | - public String selectBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 223 | - | |
| 224 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 225 | - model.addAttribute("siteInfo", siteVO); | |
| 226 | - | |
| 227 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 228 | - vo.setBbsId(boardVO.getBbsId()); | |
| 229 | - vo.setSiteId(siteVO.getSiteId()); | |
| 230 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 231 | - | |
| 232 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 233 | - | |
| 234 | - if(master != null) { | |
| 235 | - int SE_CODE = 1; | |
| 236 | - model.addAttribute("brdMstrVO", master); | |
| 237 | - | |
| 238 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 239 | - if(user != null) { | |
| 240 | - SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 241 | - boardVO.setFrstRegisterId(user.getId()); | |
| 242 | - model.addAttribute("USER_INFO", user); | |
| 243 | - | |
| 244 | - //교재&사전 | |
| 245 | - if("BBSMSTR_000000000005".equals(boardVO.getBbsId())){ | |
| 246 | - //좋아요 목록 | |
| 247 | - IndvdlestbsVO indvdlestbsVO = new IndvdlestbsVO(); | |
| 248 | - indvdlestbsVO.setUserId(user.getId()); | |
| 249 | - indvdlestbsVO.setSiteId(siteVO.getSiteId()); | |
| 250 | - indvdlestbsVO.setTrgetTyCode("BOOK_LIKE"); | |
| 251 | - indvdlestbsVO.setTrgetId(boardVO.getNttNo().toString()); | |
| 252 | - model.addAttribute("wishList", indvdlestbsService.selectIvpList(indvdlestbsVO)); | |
| 253 | - } | |
| 254 | - } | |
| 255 | - | |
| 256 | - if(SE_CODE >= 10) { | |
| 257 | - boardVO.setAdminAt("Y"); | |
| 258 | - } | |
| 259 | - | |
| 260 | - if(SE_CODE >= Integer.parseInt(master.getInqireAuthor())){ | |
| 261 | - // 조회수 증가 여부 지정 | |
| 262 | - boardVO.setPlusCount(true); | |
| 263 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 264 | - boardVO.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 265 | - BoardVO dbVO = bbsMngService.selectBoardArticle(boardVO); | |
| 266 | - model.addAttribute("board", dbVO); | |
| 267 | - | |
| 268 | - model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 269 | - return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeInqire"; | |
| 270 | - } else { | |
| 271 | - model.addAttribute("message", egovMessageSource.getMessage("fail.common.select")); | |
| 272 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 273 | - } | |
| 274 | - } | |
| 275 | - | |
| 276 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 277 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 278 | - } | |
| 279 | - | |
| 280 | - //게시물 등록을 위한 등록페이지로 이동한다. | |
| 281 | - @RequestMapping(value = "/cop/bbs/addBoardArticle.do") | |
| 282 | - public String addBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 283 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 284 | - if(user == null) { | |
| 285 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 286 | - } | |
| 287 | - /* | |
| 288 | - LoginVO user = new LoginVO(); | |
| 289 | - user.setUserSe("10"); | |
| 290 | - user.setId("admin"); | |
| 291 | - user.setName("관리자"); | |
| 292 | - */ | |
| 293 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 294 | - model.addAttribute("siteInfo", siteVO); | |
| 295 | - | |
| 296 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 297 | - vo.setBbsId(boardVO.getBbsId()); | |
| 298 | - vo.setSiteId(siteVO.getSiteId()); | |
| 299 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 300 | - | |
| 301 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 302 | - | |
| 303 | - if(master != null) { | |
| 304 | - int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 305 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 306 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 307 | - CtgryVO ctgry = new CtgryVO(); | |
| 308 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 309 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 310 | - | |
| 311 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 312 | - } | |
| 313 | - | |
| 314 | - model.addAttribute("brdMstrVO", master); | |
| 315 | - | |
| 316 | - BoardVO board = new BoardVO(); | |
| 317 | - model.addAttribute("board", board); | |
| 318 | - | |
| 319 | - request.getSession().setAttribute("sessionVO", boardVO); | |
| 320 | - | |
| 321 | - /*user.setUserSe("10"); | |
| 322 | - user.setId("admin"); | |
| 323 | - user.setName("관리자");*/ | |
| 324 | - model.addAttribute("USER_INFO", user); | |
| 325 | - model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 326 | - return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 327 | - } else { | |
| 328 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 329 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 330 | - } | |
| 331 | - } | |
| 332 | - | |
| 333 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 334 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 335 | - } | |
| 336 | - | |
| 337 | - //게시물을 등록한다. | |
| 338 | - @RequestMapping(value = "/cop/bbs/insertBoardArticle.do") | |
| 339 | - public String insertBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 340 | - | |
| 341 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 342 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 343 | - } | |
| 344 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 345 | - | |
| 346 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 347 | - vo.setBbsId(boardVO.getBbsId()); | |
| 348 | - | |
| 349 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 350 | - vo.setSiteId(siteVO.getSiteId()); | |
| 351 | - | |
| 352 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 353 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 354 | - | |
| 355 | - if(master != null) { | |
| 356 | - int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 357 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())) { | |
| 358 | - String atchFileId = ""; | |
| 359 | - | |
| 360 | - List<FileVO> result = null; | |
| 361 | - | |
| 362 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 363 | - if(!files.isEmpty()) { | |
| 364 | - result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, "", | |
| 365 | - siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 366 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 367 | - } | |
| 368 | - | |
| 369 | - | |
| 370 | - boardVO.setAtchFileId(atchFileId); | |
| 371 | - boardVO.setFrstRegisterId(user.getId()); | |
| 372 | - boardVO.setNtcrNm(user.getName()); | |
| 373 | - boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 374 | - boardVO.setCreatIp(EgovClntInfo.getClntIP(request)); | |
| 375 | - boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 376 | - /*boardVO.setUseAt("Y"); | |
| 377 | - boardVO.setOthbcAt("Y"); | |
| 378 | - boardVO.setNoticeAt("N");*/ | |
| 379 | - | |
| 380 | - bbsMngService.insertBoardArticle(boardVO, master); | |
| 381 | - } | |
| 382 | - } | |
| 383 | - | |
| 384 | - request.getSession().removeAttribute("sessionVO"); | |
| 385 | - | |
| 386 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 387 | - } | |
| 388 | - | |
| 389 | - //게시물에 대한 답변 등록을 위한 등록페이지로 이동한다. | |
| 390 | - @RequestMapping(value = "/cop/bbs/addReplyBoardArticle.do") | |
| 391 | - public String addReplyBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 392 | - | |
| 393 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 394 | - if(user == null) { | |
| 395 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 396 | - } | |
| 397 | - | |
| 398 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 399 | - model.addAttribute("siteInfo", siteVO); | |
| 400 | - | |
| 401 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 402 | - vo.setBbsId(boardVO.getBbsId()); | |
| 403 | - vo.setSiteId(siteVO.getSiteId()); | |
| 404 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 405 | - | |
| 406 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 407 | - | |
| 408 | - if(master != null) { | |
| 409 | - int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 410 | - if(SE_CODE >= Integer.parseInt(master.getAnswerAuthor())){ | |
| 411 | - model.addAttribute("brdMstrVO", master); | |
| 412 | - | |
| 413 | - BoardVO selectVO = new BoardVO(); | |
| 414 | - selectVO.setBbsId(master.getBbsId()); | |
| 415 | - selectVO.setNttNo(boardVO.getNttNo()); | |
| 416 | - selectVO.setAdminAt("Y"); | |
| 417 | - | |
| 418 | - selectVO = bbsMngService.selectBoardArticle(selectVO); | |
| 419 | - | |
| 420 | - BoardVO board = new BoardVO(); | |
| 421 | - board.setCtgryId(selectVO.getCtgryId()); | |
| 422 | - //board.setOrdrCode(selectVO.getOrdrCode()); | |
| 423 | - //board.setOrdrCodeDp(BigDecimal.valueOf(selectVO.getOrdrCodeDp().longValue() + 1)); | |
| 424 | - | |
| 425 | - if("BBSA11".equals(master.getBbsAttrbCode())) { | |
| 426 | - | |
| 427 | - board.setNttNo(selectVO.getNttNo()); | |
| 428 | - board.setNttSj(selectVO.getNttSj()); | |
| 429 | - board.setNttCn(selectVO.getNttCn()); | |
| 430 | - board.setEstnData(selectVO.getEstnData()); | |
| 431 | - /* | |
| 432 | - if(!EgovStringUtil.isEmpty(selectVO.getEstnData())) { | |
| 433 | - board.setNttCn(selectVO.getEstnParseData().getString("cn")); | |
| 434 | - } | |
| 435 | - */ | |
| 436 | - board.setAtchFileId(selectVO.getEstnAtchFileId()); | |
| 437 | - board.setProcessSttusCode(selectVO.getProcessSttusCode()); | |
| 438 | - | |
| 439 | - CmmnDetailCodeVO codeVO = new CmmnDetailCodeVO(); | |
| 440 | - codeVO.setCodeId("COM108"); | |
| 441 | - model.addAttribute("qaCodeList", cmmUseService.selectCmmCodeDetail(codeVO)); | |
| 442 | - } | |
| 443 | - | |
| 444 | - model.addAttribute("board", board); | |
| 445 | - | |
| 446 | - request.getSession().setAttribute("sessionVO", boardVO); | |
| 447 | - | |
| 448 | - model.addAttribute("USER_INFO", user); | |
| 449 | - model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 450 | - return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 451 | - } else { | |
| 452 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 453 | - return "forward:/cop//bbs/selectBoardList.do"; | |
| 454 | - } | |
| 455 | - } | |
| 456 | - | |
| 457 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 458 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 459 | - } | |
| 460 | - | |
| 461 | - //게시물에 대한 답변을 등록한다. | |
| 462 | - @RequestMapping(value = "/cop/bbs/replyBoardArticle.do") | |
| 463 | - public String replyBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 464 | - | |
| 465 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 466 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 467 | - } | |
| 468 | - | |
| 469 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 470 | - | |
| 471 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 472 | - vo.setBbsId(boardVO.getBbsId()); | |
| 473 | - | |
| 474 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 475 | - vo.setSiteId(siteVO.getSiteId()); | |
| 476 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 477 | - | |
| 478 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 479 | - | |
| 480 | - if(master != null) { | |
| 481 | - int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 482 | - if(SE_CODE >= Integer.parseInt(master.getAnswerAuthor())){ | |
| 483 | - if(SE_CODE >= 10) { | |
| 484 | - boardVO.setAdminAt("Y"); | |
| 485 | - } | |
| 486 | - | |
| 487 | - String atchFileId = boardVO.getAtchFileId();; | |
| 488 | - | |
| 489 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 490 | - | |
| 491 | - | |
| 492 | - if("BBSA11".equals(master.getBbsAttrbCode())) { | |
| 493 | - if(!files.isEmpty()) { | |
| 494 | - if(EgovStringUtil.isEmpty(atchFileId)) { | |
| 495 | - List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, | |
| 496 | - siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 497 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 498 | - } else { | |
| 499 | - FileVO fvo = new FileVO(); | |
| 500 | - fvo.setAtchFileId(atchFileId); | |
| 501 | - int cnt = fileMngService.getMaxFileSN(fvo); | |
| 502 | - List<FileVO> _result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, cnt, atchFileId, | |
| 503 | - siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 504 | - fileMngService.updateFileInfs(_result); | |
| 505 | - } | |
| 506 | - boardVO.setEstnAtchFileId(atchFileId); | |
| 507 | - } | |
| 508 | - | |
| 509 | - boardVO.setLastAnswrrId(user.getId()); | |
| 510 | - boardVO.setLastAnswrrNm(user.getName()); | |
| 511 | - | |
| 512 | - JSONObject jObj = new JSONObject(); | |
| 513 | - //jObj.put("cn", boardVO.getNttCn()); | |
| 514 | - jObj.put("cn", boardVO.getEstnData()); | |
| 515 | - boardVO.setEstnData(jObj.toString()); | |
| 516 | - | |
| 517 | - bbsMngService.updateBoardArticle(boardVO, master, true); | |
| 518 | - } else { | |
| 519 | - if(!files.isEmpty()) { | |
| 520 | - List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, "", | |
| 521 | - siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 522 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 523 | - } | |
| 524 | - | |
| 525 | - boardVO.setAtchFileId(atchFileId); | |
| 526 | - boardVO.setFrstRegisterId(user.getId()); | |
| 527 | - boardVO.setNtcrNm(user.getName()); | |
| 528 | - boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 529 | - boardVO.setCreatIp(EgovClntInfo.getClntIP(request)); | |
| 530 | - | |
| 531 | - boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 532 | - bbsMngService.replyBoardArticle(boardVO, master); | |
| 533 | - } | |
| 534 | - } | |
| 535 | - } | |
| 536 | - | |
| 537 | - request.getSession().removeAttribute("sessionVO"); | |
| 538 | - | |
| 539 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 540 | - } | |
| 541 | - | |
| 542 | - //게시물 수정을 위한 수정페이지로 이동한다. | |
| 543 | - @RequestMapping(value = "/cop/bbs/forUpdateBoardArticle.do") | |
| 544 | - public String selectBoardArticleForUpdt(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 545 | - | |
| 546 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 547 | - if(user == null) { | |
| 548 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 549 | - } | |
| 550 | - | |
| 551 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 552 | - model.addAttribute("siteInfo", siteVO); | |
| 553 | - | |
| 554 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 555 | - vo.setBbsId(boardVO.getBbsId()); | |
| 556 | - vo.setSiteId(siteVO.getSiteId()); | |
| 557 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 558 | - | |
| 559 | - boardVO.setFrstRegisterId(user.getId()); | |
| 560 | - | |
| 561 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 562 | - | |
| 563 | - if(master != null) { | |
| 564 | - int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 565 | - if(SE_CODE >= 10) { | |
| 566 | - boardVO.setAdminAt("Y"); | |
| 567 | - } | |
| 568 | - | |
| 569 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 570 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 571 | - CtgryVO ctgry = new CtgryVO(); | |
| 572 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 573 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 574 | - | |
| 575 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 576 | - } | |
| 577 | - | |
| 578 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 579 | - BoardVO dataVO = bbsMngService.selectBoardArticle(boardVO); | |
| 580 | - | |
| 581 | - model.addAttribute("brdMstrVO", master); | |
| 582 | - model.addAttribute("board", dataVO); | |
| 583 | - | |
| 584 | - request.getSession().setAttribute("sessionVO", boardVO); | |
| 585 | - | |
| 586 | - model.addAttribute("USER_INFO", user); | |
| 587 | - model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 588 | - return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 589 | - } else { | |
| 590 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 591 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 592 | - } | |
| 593 | - } | |
| 594 | - | |
| 595 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 596 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 597 | - } | |
| 598 | - | |
| 599 | - //게시물에 대한 내용을 수정한다. | |
| 600 | - @RequestMapping(value = "/cop/bbs/updateBoardArticle.do") | |
| 601 | - public String updateBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 602 | - | |
| 603 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 604 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 605 | - } | |
| 606 | - | |
| 607 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 608 | - String atchFileId = boardVO.getAtchFileId(); | |
| 609 | - | |
| 610 | - beanValidator.validate(board, bindingResult); | |
| 611 | - | |
| 612 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 613 | - vo.setBbsId(boardVO.getBbsId()); | |
| 614 | - | |
| 615 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 616 | - vo.setSiteId(siteVO.getSiteId()); | |
| 617 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 618 | - | |
| 619 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 620 | - | |
| 621 | - if(bindingResult.hasErrors()) { | |
| 622 | - | |
| 623 | - if(master != null) { | |
| 624 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 625 | - CtgryVO ctgry = new CtgryVO(); | |
| 626 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 627 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 628 | - | |
| 629 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 630 | - } | |
| 631 | - | |
| 632 | - model.addAttribute("siteInfo", siteVO); | |
| 633 | - | |
| 634 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 635 | - BoardVO dataVO = bbsMngService.selectBoardArticle(boardVO); | |
| 636 | - | |
| 637 | - model.addAttribute("brdMstrVO", master); | |
| 638 | - model.addAttribute("board", dataVO); | |
| 639 | - | |
| 640 | - model.addAttribute("USER_INFO", user); | |
| 641 | - model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 642 | - return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 643 | - } | |
| 644 | - | |
| 645 | - } | |
| 646 | - | |
| 647 | - if(master != null) { | |
| 648 | - int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 649 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())) { | |
| 650 | - | |
| 651 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 652 | - if(!files.isEmpty()) { | |
| 653 | - if(EgovStringUtil.isEmpty(atchFileId)) { | |
| 654 | - List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, | |
| 655 | - siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 656 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 657 | - boardVO.setAtchFileId(atchFileId); | |
| 658 | - } else { | |
| 659 | - FileVO fvo = new FileVO(); | |
| 660 | - fvo.setAtchFileId(atchFileId); | |
| 661 | - int cnt = fileMngService.getMaxFileSN(fvo); | |
| 662 | - List<FileVO> _result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, | |
| 663 | - siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 664 | - fileMngService.updateFileInfs(_result); | |
| 665 | - } | |
| 666 | - } | |
| 667 | - | |
| 668 | - if(!"".equals(atchFileId)) { | |
| 669 | - FileVO fvo = new FileVO(); | |
| 670 | - fvo.setAtchFileId(atchFileId); | |
| 671 | - List<FileVO> dbFiles = fileMngService.selectFileInfs(fvo); | |
| 672 | - if(dbFiles == null || dbFiles.size() == 0) { | |
| 673 | - boardVO.setAtchFileId(""); | |
| 674 | - boardVO.setFileGroupId(""); | |
| 675 | - } | |
| 676 | - } | |
| 677 | - | |
| 678 | - if(SE_CODE >= 10) { | |
| 679 | - boardVO.setAdminAt("Y"); | |
| 680 | - } | |
| 681 | - boardVO.setLastUpdusrId(user.getId()); | |
| 682 | - boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 683 | - boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 684 | - | |
| 685 | - bbsMngService.updateBoardArticle(boardVO, master, false); | |
| 686 | - } | |
| 687 | - } | |
| 688 | - | |
| 689 | - request.getSession().removeAttribute("sessionVO"); | |
| 690 | - | |
| 691 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 692 | - } | |
| 693 | - | |
| 694 | - //게시물에 대한 내용을 삭제한다. | |
| 695 | - @RequestMapping(value = "/cop/bbs/deleteBoardArticle.do") | |
| 696 | - public String deleteBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 697 | - | |
| 698 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 699 | - if(user == null) { | |
| 700 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 701 | - } | |
| 702 | - | |
| 703 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 704 | - vo.setBbsId(boardVO.getBbsId()); | |
| 705 | - | |
| 706 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 707 | - vo.setSiteId(siteVO.getSiteId()); | |
| 708 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 709 | - | |
| 710 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 711 | - | |
| 712 | - if(master != null) { | |
| 713 | - int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 714 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 715 | - if(SE_CODE >= 10) { | |
| 716 | - boardVO.setAdminAt("Y"); | |
| 717 | - } | |
| 718 | - | |
| 719 | - board.setLastUpdusrId(user.getId()); | |
| 720 | - bbsMngService.deleteBoardArticle(board, master); | |
| 721 | - } | |
| 722 | - } | |
| 723 | - | |
| 724 | - return "forward:/cop/bbs/selectBoardList.do"; | |
| 725 | - } | |
| 726 | - | |
| 727 | - | |
| 728 | - //[관리용-공통] 게시판 마스터 목록을 조회한다. | |
| 729 | - @RequestMapping("/cop/com/selectAllBBSMasterManageInfs.do") | |
| 730 | - public String selectAllBBSMasterManageInfs(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 731 | - | |
| 732 | - LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 733 | - if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) { | |
| 734 | - boardMasterVO.setSiteId(loginVO.getSiteId()); | |
| 735 | - } | |
| 736 | - | |
| 737 | - boardMasterVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 738 | - boardMasterVO.setPageSize(propertyService.getInt("pageSize")); | |
| 739 | - | |
| 740 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 741 | - | |
| 742 | - paginationInfo.setCurrentPageNo(boardMasterVO.getPageIndex()); | |
| 743 | - paginationInfo.setRecordCountPerPage(boardMasterVO.getPageUnit()); | |
| 744 | - paginationInfo.setPageSize(boardMasterVO.getPageSize()); | |
| 745 | - | |
| 746 | - boardMasterVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 747 | - boardMasterVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 748 | - boardMasterVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 749 | - | |
| 750 | - if(!EgovStringUtil.isEmpty(boardMasterVO.getSiteId())) { | |
| 751 | - List<BoardMasterVO> list = bbsAttrbService.selectAllBBSMasterManageInfs(boardMasterVO); | |
| 752 | - int totCnt = bbsAttrbService.selectAllBBSMasterManageInfsCnt(boardMasterVO); | |
| 753 | - | |
| 754 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 755 | - | |
| 756 | - model.addAttribute("resultList", list); | |
| 757 | - model.addAttribute("resultCnt", totCnt); | |
| 758 | - } | |
| 759 | - | |
| 760 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 761 | - | |
| 762 | - return "cop/com/selectAllBBSMasterManageInfs"; | |
| 763 | - } | |
| 764 | - | |
| 765 | - //게시물을 관리한다. | |
| 766 | - @RequestMapping(value = "/cop/bbs/manageArticle.do") | |
| 767 | - public void manageArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 768 | - | |
| 769 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 770 | - boardVO.setLastUpdusrId(user.getId()); | |
| 771 | - | |
| 772 | - if("Move".equals(boardVO.getRegistAction())) { | |
| 773 | - bbsMngService.updateBoardArticlesManageMove(boardVO); | |
| 774 | - } else if("Copy".equals(boardVO.getRegistAction())) { | |
| 775 | - bbsMngService.updateBoardArticlesManageCopy(boardVO); | |
| 776 | - } else if("Hide".equals(boardVO.getRegistAction())) { | |
| 777 | - bbsMngService.updateBoardArticlesManageHide(boardVO); | |
| 778 | - } else if("Remove".equals(boardVO.getRegistAction())) { | |
| 779 | - bbsMngService.deleteCompleteBoardArticle(boardVO); | |
| 780 | - } else if("Repair".equals(boardVO.getRegistAction())) { | |
| 781 | - bbsMngService.repairBoardArticle(boardVO); | |
| 782 | - } | |
| 783 | - | |
| 784 | - | |
| 785 | - JSONObject jo = new JSONObject(); | |
| 786 | - jo.put("message", egovMessageSource.getMessage("success.request.msg")); | |
| 787 | - | |
| 788 | - response.setContentType("text/javascript; charset=utf-8"); | |
| 789 | - PrintWriter printwriter = response.getWriter(); | |
| 790 | - printwriter.println(jo.toString()); | |
| 791 | - printwriter.flush(); | |
| 792 | - printwriter.close(); | |
| 793 | - } | |
| 794 | - | |
| 795 | - | |
| 796 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/Community.java
... | ... | @@ -1,503 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.io.Serializable; | |
| 5 | - | |
| 6 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 7 | -import egovframework.com.cmm.service.FileVO; | |
| 8 | - | |
| 9 | -/** | |
| 10 | - * 커뮤니티 관리를 위한 모델 클래스 | |
| 11 | - * @author 공통서비스개발팀 이삼섭 | |
| 12 | - * @since 2009.06.01 | |
| 13 | - * @version 1.0 | |
| 14 | - * @see | |
| 15 | - * | |
| 16 | - * <pre> | |
| 17 | - * << 개정이력(Modification Information) >> | |
| 18 | - * | |
| 19 | - * 수정일 수정자 수정내용 | |
| 20 | - * ------- -------- --------------------------- | |
| 21 | - * 2009.4.2 이삼섭 최초 생성 | |
| 22 | - * 2012.1.18 이호영 충청남도교육연구정보원 스마트충남 기능 개선 구축 | |
| 23 | - * | |
| 24 | - * </pre> | |
| 25 | - */ | |
| 26 | -@SuppressWarnings("serial")
| |
| 27 | -public class Community implements Serializable {
| |
| 28 | - | |
| 29 | - /** | |
| 30 | - * 사이트ID | |
| 31 | - */ | |
| 32 | - private String siteId = ""; | |
| 33 | - | |
| 34 | - /** | |
| 35 | - * 시스템구분 | |
| 36 | - */ | |
| 37 | - private String sysTyCode = ""; | |
| 38 | - | |
| 39 | - /** | |
| 40 | - * 승인정책코드 | |
| 41 | - */ | |
| 42 | - private String confmPolicyCode = "Y"; | |
| 43 | - | |
| 44 | - /** | |
| 45 | - * 재가입정책코드 | |
| 46 | - */ | |
| 47 | - private String resbscrbPolicyCode = "Y"; | |
| 48 | - | |
| 49 | - /** | |
| 50 | - * 커뮤니티 아이디 | |
| 51 | - */ | |
| 52 | - private String cmmntyId = ""; | |
| 53 | - | |
| 54 | - /** | |
| 55 | - * 커뮤니티 소개 | |
| 56 | - */ | |
| 57 | - private String cmmntyIntrcn = ""; | |
| 58 | - | |
| 59 | - /** | |
| 60 | - * 커뮤니티 명 | |
| 61 | - */ | |
| 62 | - private String cmmntyNm = ""; | |
| 63 | - | |
| 64 | - /** | |
| 65 | - * 최초등록자 명 | |
| 66 | - */ | |
| 67 | - private String frstRegisterNm = ""; | |
| 68 | - | |
| 69 | - /** | |
| 70 | - * 최초등록자 아이디 | |
| 71 | - */ | |
| 72 | - private String frstRegisterId = ""; | |
| 73 | - | |
| 74 | - /** | |
| 75 | - * 최초등록시점 | |
| 76 | - */ | |
| 77 | - private java.util.Date frstRegisterPnttm; | |
| 78 | - | |
| 79 | - /** | |
| 80 | - * 최종수정자 아이디 | |
| 81 | - */ | |
| 82 | - private String lastUpdusrId = ""; | |
| 83 | - | |
| 84 | - /** | |
| 85 | - * 최종수정시점 | |
| 86 | - */ | |
| 87 | - private java.util.Date lastUpdusrPnttm; | |
| 88 | - | |
| 89 | - /** | |
| 90 | - * 등록구분코드 | |
| 91 | - */ | |
| 92 | - private String registSeCode = ""; | |
| 93 | - | |
| 94 | - /** | |
| 95 | - * 사용유무 | |
| 96 | - */ | |
| 97 | - private String useAt = ""; | |
| 98 | - | |
| 99 | - /** | |
| 100 | - * 사용자 아이디 | |
| 101 | - */ | |
| 102 | - private String emplyrId = ""; | |
| 103 | - | |
| 104 | - /** | |
| 105 | - * 사용자명 | |
| 106 | - */ | |
| 107 | - private String userNm = ""; | |
| 108 | - | |
| 109 | - /** | |
| 110 | - * 회원수 | |
| 111 | - */ | |
| 112 | - private int userCo = 0; | |
| 113 | - | |
| 114 | - /** | |
| 115 | - * 새글수ARTICLE_NEW_CO | |
| 116 | - */ | |
| 117 | - private int articleNewCo = 0; | |
| 118 | - | |
| 119 | - /** | |
| 120 | - * 템플릿 명 | |
| 121 | - */ | |
| 122 | - private String tmplatNm = ""; | |
| 123 | - | |
| 124 | - /** | |
| 125 | - * 커뮤니티 주소 | |
| 126 | - */ | |
| 127 | - private String cmmntyAdres = ""; | |
| 128 | - | |
| 129 | - /** | |
| 130 | - * 커뮤니티 구분코드 | |
| 131 | - */ | |
| 132 | - private String cmmntySeCode = ""; | |
| 133 | - | |
| 134 | - /** | |
| 135 | - * 커뮤니티 구분코드명 | |
| 136 | - */ | |
| 137 | - private String cmmntySeNm = ""; | |
| 138 | - | |
| 139 | - /** | |
| 140 | - * 대표이미지 | |
| 141 | - */ | |
| 142 | - private String atchFileNm = ""; | |
| 143 | - | |
| 144 | - /** | |
| 145 | - * 대표아이콘 | |
| 146 | - */ | |
| 147 | - private String atchFileIcon = ""; | |
| 148 | - | |
| 149 | - /** | |
| 150 | - * 공개여부 | |
| 151 | - */ | |
| 152 | - private String othbcAt = "Y"; | |
| 153 | - | |
| 154 | - /** | |
| 155 | - * 마이메뉴추가여부 | |
| 156 | - */ | |
| 157 | - private String indvdlAt = "N"; | |
| 158 | - | |
| 159 | - | |
| 160 | - public String getSiteId() {
| |
| 161 | - return siteId; | |
| 162 | - } | |
| 163 | - | |
| 164 | - public void setSiteId(String siteId) {
| |
| 165 | - this.siteId = siteId; | |
| 166 | - } | |
| 167 | - | |
| 168 | - public String getSysTyCode() {
| |
| 169 | - return sysTyCode; | |
| 170 | - } | |
| 171 | - | |
| 172 | - public void setSysTyCode(String sysTyCode) {
| |
| 173 | - this.sysTyCode = sysTyCode; | |
| 174 | - } | |
| 175 | - | |
| 176 | - /** | |
| 177 | - * cmmntyId attribute를 리턴한다. | |
| 178 | - * @return the cmmntyId | |
| 179 | - */ | |
| 180 | - public String getCmmntyId() {
| |
| 181 | - return cmmntyId; | |
| 182 | - } | |
| 183 | - | |
| 184 | - /** | |
| 185 | - * cmmntyId attribute 값을 설정한다. | |
| 186 | - * @param cmmntyId the cmmntyId to set | |
| 187 | - */ | |
| 188 | - public void setCmmntyId(String cmmntyId) {
| |
| 189 | - this.cmmntyId = cmmntyId; | |
| 190 | - } | |
| 191 | - | |
| 192 | - /** | |
| 193 | - * cmmntyIntrcn attribute를 리턴한다. | |
| 194 | - * @return the cmmntyIntrcn | |
| 195 | - */ | |
| 196 | - public String getCmmntyIntrcn() {
| |
| 197 | - return cmmntyIntrcn; | |
| 198 | - } | |
| 199 | - | |
| 200 | - /** | |
| 201 | - * cmmntyIntrcn attribute 값을 설정한다. | |
| 202 | - * @param cmmntyIntrcn the cmmntyIntrcn to set | |
| 203 | - */ | |
| 204 | - public void setCmmntyIntrcn(String cmmntyIntrcn) {
| |
| 205 | - this.cmmntyIntrcn = cmmntyIntrcn; | |
| 206 | - } | |
| 207 | - | |
| 208 | - /** | |
| 209 | - * cmmntyNm attribute를 리턴한다. | |
| 210 | - * @return the cmmntyNm | |
| 211 | - */ | |
| 212 | - public String getCmmntyNm() {
| |
| 213 | - return cmmntyNm; | |
| 214 | - } | |
| 215 | - | |
| 216 | - /** | |
| 217 | - * cmmntyNm attribute 값을 설정한다. | |
| 218 | - * @param cmmntyNm the cmmntyNm to set | |
| 219 | - */ | |
| 220 | - public void setCmmntyNm(String cmmntyNm) {
| |
| 221 | - this.cmmntyNm = cmmntyNm; | |
| 222 | - } | |
| 223 | - | |
| 224 | - /** | |
| 225 | - * frstRegisterId attribute를 리턴한다. | |
| 226 | - * @return the frstRegisterId | |
| 227 | - */ | |
| 228 | - public String getFrstRegisterId() {
| |
| 229 | - return frstRegisterId; | |
| 230 | - } | |
| 231 | - | |
| 232 | - /** | |
| 233 | - * frstRegisterId attribute 값을 설정한다. | |
| 234 | - * @param frstRegisterId the frstRegisterId to set | |
| 235 | - */ | |
| 236 | - public void setFrstRegisterId(String frstRegisterId) {
| |
| 237 | - this.frstRegisterId = frstRegisterId; | |
| 238 | - } | |
| 239 | - | |
| 240 | - /** | |
| 241 | - * frstRegisterPnttm attribute를 리턴한다. | |
| 242 | - * @return the frstRegisterPnttm | |
| 243 | - */ | |
| 244 | - public java.util.Date getFrstRegisterPnttm() {
| |
| 245 | - return frstRegisterPnttm; | |
| 246 | - } | |
| 247 | - | |
| 248 | - /** | |
| 249 | - * frstRegisterPnttm attribute 값을 설정한다. | |
| 250 | - * @param frstRegisterPnttm the frstRegisterPnttm to set | |
| 251 | - */ | |
| 252 | - public void setFrstRegisterPnttm(java.util.Date frstRegisterPnttm) {
| |
| 253 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 254 | - } | |
| 255 | - | |
| 256 | - /** | |
| 257 | - * lastUpdusrId attribute를 리턴한다. | |
| 258 | - * @return the lastUpdusrId | |
| 259 | - */ | |
| 260 | - public String getLastUpdusrId() {
| |
| 261 | - return lastUpdusrId; | |
| 262 | - } | |
| 263 | - | |
| 264 | - /** | |
| 265 | - * lastUpdusrId attribute 값을 설정한다. | |
| 266 | - * @param lastUpdusrId the lastUpdusrId to set | |
| 267 | - */ | |
| 268 | - public void setLastUpdusrId(String lastUpdusrId) {
| |
| 269 | - this.lastUpdusrId = lastUpdusrId; | |
| 270 | - } | |
| 271 | - | |
| 272 | - /** | |
| 273 | - * lastUpdusrPnttm attribute를 리턴한다. | |
| 274 | - * @return the lastUpdusrPnttm | |
| 275 | - */ | |
| 276 | - public java.util.Date getLastUpdusrPnttm() {
| |
| 277 | - return lastUpdusrPnttm; | |
| 278 | - } | |
| 279 | - | |
| 280 | - /** | |
| 281 | - * lastUpdusrPnttm attribute 값을 설정한다. | |
| 282 | - * @param lastUpdusrPnttm the lastUpdusrPnttm to set | |
| 283 | - */ | |
| 284 | - public void setLastUpdusrPnttm(java.util.Date lastUpdusrPnttm) {
| |
| 285 | - this.lastUpdusrPnttm = lastUpdusrPnttm; | |
| 286 | - } | |
| 287 | - | |
| 288 | - /** | |
| 289 | - * registSeCode attribute를 리턴한다. | |
| 290 | - * @return the registSeCode | |
| 291 | - */ | |
| 292 | - public String getRegistSeCode() {
| |
| 293 | - return registSeCode; | |
| 294 | - } | |
| 295 | - | |
| 296 | - /** | |
| 297 | - * registSeCode attribute 값을 설정한다. | |
| 298 | - * @param registSeCode the registSeCode to set | |
| 299 | - */ | |
| 300 | - public void setRegistSeCode(String registSeCode) {
| |
| 301 | - this.registSeCode = registSeCode; | |
| 302 | - } | |
| 303 | - | |
| 304 | - /** | |
| 305 | - * useAt attribute를 리턴한다. | |
| 306 | - * @return the useAt | |
| 307 | - */ | |
| 308 | - public String getUseAt() {
| |
| 309 | - return useAt; | |
| 310 | - } | |
| 311 | - | |
| 312 | - /** | |
| 313 | - * useAt attribute 값을 설정한다. | |
| 314 | - * @param useAt the useAt to set | |
| 315 | - */ | |
| 316 | - public void setUseAt(String useAt) {
| |
| 317 | - this.useAt = useAt; | |
| 318 | - } | |
| 319 | - | |
| 320 | - /** | |
| 321 | - * emplyrId attribute를 리턴한다. | |
| 322 | - * @return the emplyrId | |
| 323 | - */ | |
| 324 | - public String getEmplyrId() {
| |
| 325 | - return emplyrId; | |
| 326 | - } | |
| 327 | - | |
| 328 | - /** | |
| 329 | - * emplyrId attribute 값을 설정한다. | |
| 330 | - * @param emplyrId the emplyrId to set | |
| 331 | - */ | |
| 332 | - public void setEmplyrId(String emplyrId) {
| |
| 333 | - this.emplyrId = emplyrId; | |
| 334 | - } | |
| 335 | - | |
| 336 | - /** | |
| 337 | - * userNm attribute를 리턴한다. | |
| 338 | - * @return the userNm | |
| 339 | - */ | |
| 340 | - public String getUserNm() {
| |
| 341 | - return userNm; | |
| 342 | - } | |
| 343 | - | |
| 344 | - /** | |
| 345 | - * userNm attribute 값을 설정한다. | |
| 346 | - * @param userNm the userNm to set | |
| 347 | - */ | |
| 348 | - public void setUserNm(String userNm) {
| |
| 349 | - this.userNm = userNm; | |
| 350 | - } | |
| 351 | - | |
| 352 | - /** | |
| 353 | - * tmplatNm attribute를 리턴한다. | |
| 354 | - * @return the tmplatNm | |
| 355 | - */ | |
| 356 | - public String getTmplatNm() {
| |
| 357 | - return tmplatNm; | |
| 358 | - } | |
| 359 | - | |
| 360 | - /** | |
| 361 | - * userCo attribute를 리턴한다. | |
| 362 | - * @return the userCo | |
| 363 | - * @uml.property name="userCo" | |
| 364 | - */ | |
| 365 | - public int getUserCo() {
| |
| 366 | - return userCo; | |
| 367 | - } | |
| 368 | - | |
| 369 | - /** | |
| 370 | - * userCo attribute 값을 설정한다. | |
| 371 | - * @param userCo the userCo to set | |
| 372 | - * @uml.property name="userCo" | |
| 373 | - */ | |
| 374 | - public void setUserCo(int userCo) {
| |
| 375 | - this.userCo = userCo; | |
| 376 | - } | |
| 377 | - | |
| 378 | - /** | |
| 379 | - * articleNewCo attribute를 리턴한다. | |
| 380 | - * @return the articleNewCo | |
| 381 | - * @uml.property name="articleNewCo" | |
| 382 | - */ | |
| 383 | - public int getArticleNewCo() {
| |
| 384 | - return articleNewCo; | |
| 385 | - } | |
| 386 | - | |
| 387 | - /** | |
| 388 | - * articleNewCo attribute 값을 설정한다. | |
| 389 | - * @param articleNewCo the articleNewCo to set | |
| 390 | - * @uml.property name="articleNewCo" | |
| 391 | - */ | |
| 392 | - public void setArticleNewCo(int articleNewCo) {
| |
| 393 | - this.articleNewCo = articleNewCo; | |
| 394 | - } | |
| 395 | - /** | |
| 396 | - * tmplatNm attribute 값을 설정한다. | |
| 397 | - * @param tmplatNm the tmplatNm to set | |
| 398 | - */ | |
| 399 | - public void setTmplatNm(String tmplatNm) {
| |
| 400 | - this.tmplatNm = tmplatNm; | |
| 401 | - } | |
| 402 | - | |
| 403 | - /** | |
| 404 | - * toString 메소드를 대치한다. | |
| 405 | - */ | |
| 406 | - public String toString() {
| |
| 407 | - return ToStringBuilder.reflectionToString(this); | |
| 408 | - } | |
| 409 | - | |
| 410 | - | |
| 411 | - public String getCmmntyAdres() {
| |
| 412 | - return cmmntyAdres; | |
| 413 | - } | |
| 414 | - | |
| 415 | - public void setCmmntyAdres(String cmmntyAdres) {
| |
| 416 | - this.cmmntyAdres = cmmntyAdres; | |
| 417 | - } | |
| 418 | - | |
| 419 | - public String getCmmntySeCode() {
| |
| 420 | - return cmmntySeCode; | |
| 421 | - } | |
| 422 | - | |
| 423 | - public void setCmmntySeCode(String cmmntySeCode) {
| |
| 424 | - this.cmmntySeCode = cmmntySeCode; | |
| 425 | - } | |
| 426 | - | |
| 427 | - public String getCmmntySeNm() {
| |
| 428 | - return cmmntySeNm; | |
| 429 | - } | |
| 430 | - | |
| 431 | - public void setCmmntySeNm(String cmmntySeNm) {
| |
| 432 | - this.cmmntySeNm = cmmntySeNm; | |
| 433 | - } | |
| 434 | - | |
| 435 | - public String getAtchFileNm() {
| |
| 436 | - return atchFileNm; | |
| 437 | - } | |
| 438 | - | |
| 439 | - public void setAtchFileNm(String atchFileNm) {
| |
| 440 | - this.atchFileNm = atchFileNm; | |
| 441 | - } | |
| 442 | - | |
| 443 | - public String getAtchFileIcon() {
| |
| 444 | - return atchFileIcon; | |
| 445 | - } | |
| 446 | - | |
| 447 | - public void setAtchFileIcon(String atchFileIcon) {
| |
| 448 | - this.atchFileIcon = atchFileIcon; | |
| 449 | - } | |
| 450 | - | |
| 451 | - public String getOthbcAt() {
| |
| 452 | - return othbcAt; | |
| 453 | - } | |
| 454 | - | |
| 455 | - public void setOthbcAt(String othbcAt) {
| |
| 456 | - this.othbcAt = othbcAt; | |
| 457 | - } | |
| 458 | - | |
| 459 | - public String getIndvdlAt() {
| |
| 460 | - return indvdlAt; | |
| 461 | - } | |
| 462 | - | |
| 463 | - public void setIndvdlAt(String indvdlAt) {
| |
| 464 | - this.indvdlAt = indvdlAt; | |
| 465 | - } | |
| 466 | - | |
| 467 | - public String getConfmPolicyCode() {
| |
| 468 | - return confmPolicyCode; | |
| 469 | - } | |
| 470 | - | |
| 471 | - public void setConfmPolicyCode(String confmPolicyCode) {
| |
| 472 | - this.confmPolicyCode = confmPolicyCode; | |
| 473 | - } | |
| 474 | - | |
| 475 | - public String getFrstRegisterNm() {
| |
| 476 | - return frstRegisterNm; | |
| 477 | - } | |
| 478 | - | |
| 479 | - public void setFrstRegisterNm(String frstRegisterNm) {
| |
| 480 | - this.frstRegisterNm = frstRegisterNm; | |
| 481 | - } | |
| 482 | - | |
| 483 | - public String getResbscrbPolicyCode() {
| |
| 484 | - return resbscrbPolicyCode; | |
| 485 | - } | |
| 486 | - | |
| 487 | - public void setResbscrbPolicyCode(String resbscrbPolicyCode) {
| |
| 488 | - this.resbscrbPolicyCode = resbscrbPolicyCode; | |
| 489 | - } | |
| 490 | - | |
| 491 | - public void setFileValue(List<FileVO> files) {
| |
| 492 | - if(files != null) {
| |
| 493 | - for(int index=0; index < files.size(); index++) {
| |
| 494 | - FileVO file = files.get(index); | |
| 495 | - if(file.getFormNm().startsWith("peprsnt")) {
| |
| 496 | - this.atchFileNm = file.getStreFileNm(); | |
| 497 | - } else if(file.getFormNm().startsWith("icon")) {
| |
| 498 | - this.atchFileIcon = file.getStreFileNm(); | |
| 499 | - } | |
| 500 | - } | |
| 501 | - } | |
| 502 | - } | |
| 503 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/CommunityMnu.java
... | ... | @@ -1,82 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import java.util.List; | |
| 5 | - | |
| 6 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 7 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 8 | - | |
| 9 | -//커뮤니티 메뉴정보 VO | |
| 10 | -@SuppressWarnings("serial")
| |
| 11 | -public class CommunityMnu extends BoardMasterVO implements Serializable {
| |
| 12 | - | |
| 13 | - /** CMMNTY_ID */ | |
| 14 | - private java.lang.String cmmntyId; | |
| 15 | - | |
| 16 | - | |
| 17 | - /** MAIN_OUTPT_AT */ | |
| 18 | - private java.lang.String mainOutptAt = "N"; | |
| 19 | - | |
| 20 | - /** NOTIFY_AT */ | |
| 21 | - private java.lang.String notifyAt = "N"; | |
| 22 | - | |
| 23 | - /** 정렬순서코드 - U:위로, D:아래로 */ | |
| 24 | - private String sortTyCode = ""; | |
| 25 | - | |
| 26 | - /** 사용자 아이디 */ | |
| 27 | - private String emplyrId = ""; | |
| 28 | - | |
| 29 | - /** 게시물 */ | |
| 30 | - private List<BoardVO> ariticleList; | |
| 31 | - | |
| 32 | - public java.lang.String getCmmntyId() {
| |
| 33 | - return this.cmmntyId; | |
| 34 | - } | |
| 35 | - | |
| 36 | - public void setCmmntyId(java.lang.String cmmntyId) {
| |
| 37 | - this.cmmntyId = cmmntyId; | |
| 38 | - } | |
| 39 | - | |
| 40 | - | |
| 41 | - public java.lang.String getMainOutptAt() {
| |
| 42 | - return this.mainOutptAt; | |
| 43 | - } | |
| 44 | - | |
| 45 | - public void setMainOutptAt(java.lang.String mainOutptAt) {
| |
| 46 | - this.mainOutptAt = mainOutptAt; | |
| 47 | - } | |
| 48 | - | |
| 49 | - public String getEmplyrId() {
| |
| 50 | - return emplyrId; | |
| 51 | - } | |
| 52 | - | |
| 53 | - public java.lang.String getNotifyAt() {
| |
| 54 | - return notifyAt; | |
| 55 | - } | |
| 56 | - | |
| 57 | - public void setNotifyAt(java.lang.String notifyAt) {
| |
| 58 | - this.notifyAt = notifyAt; | |
| 59 | - } | |
| 60 | - | |
| 61 | - public void setEmplyrId(String emplyrId) {
| |
| 62 | - this.emplyrId = emplyrId; | |
| 63 | - } | |
| 64 | - | |
| 65 | - public String getSortTyCode() {
| |
| 66 | - return sortTyCode; | |
| 67 | - } | |
| 68 | - | |
| 69 | - public void setSortTyCode(String sortTyCode) {
| |
| 70 | - this.sortTyCode = sortTyCode; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public List<BoardVO> getAriticleList() {
| |
| 74 | - return ariticleList; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public void setAriticleList(List<BoardVO> ariticleList) {
| |
| 78 | - this.ariticleList = ariticleList; | |
| 79 | - } | |
| 80 | - | |
| 81 | - | |
| 82 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/CommunityMnuVO.java
... | ... | @@ -1,127 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -/****************************************************** | |
| 7 | - * @Class Name : ComtncmmntyMnu.java | |
| 8 | - * @Program name : egovframework.com.cop.cmy.service | |
| 9 | - * @Descriptopn : 커뮤니티 메뉴 검색 VO | |
| 10 | - * @version : 1.0.0 | |
| 11 | - * @author : 이호영 | |
| 12 | - * @created date : 2012. 1. 19. | |
| 13 | - * Modification log | |
| 14 | - * ===================================================== | |
| 15 | - * date name description | |
| 16 | - * ----------------------------------------------------- | |
| 17 | - * 2012. 1. 19. 이호영 first generated | |
| 18 | -*********************************************************/ | |
| 19 | - | |
| 20 | -@SuppressWarnings("serial")
| |
| 21 | -public class CommunityMnuVO extends CommunityMnu implements Serializable {
| |
| 22 | - | |
| 23 | - /** 검색조건 */ | |
| 24 | - private String searchCnd = ""; | |
| 25 | - | |
| 26 | - /** 검색Keyword */ | |
| 27 | - private String searchWrd = ""; | |
| 28 | - | |
| 29 | - /** 검색사용여부 */ | |
| 30 | - private String searchUseYn = ""; | |
| 31 | - | |
| 32 | - /** 현재페이지 */ | |
| 33 | - private int pageIndex = 1; | |
| 34 | - | |
| 35 | - /** 페이지갯수 */ | |
| 36 | - private int pageUnit = 10; | |
| 37 | - | |
| 38 | - /** 페이지사이즈 */ | |
| 39 | - private int pageSize = 10; | |
| 40 | - | |
| 41 | - /** firstIndex */ | |
| 42 | - private int firstIndex = 1; | |
| 43 | - | |
| 44 | - /** lastIndex */ | |
| 45 | - private int lastIndex = 1; | |
| 46 | - | |
| 47 | - /** recordCountPerPage */ | |
| 48 | - private int recordCountPerPage = 10; | |
| 49 | - | |
| 50 | - | |
| 51 | - public int getFirstIndex() {
| |
| 52 | - return firstIndex; | |
| 53 | - } | |
| 54 | - | |
| 55 | - public void setFirstIndex(int firstIndex) {
| |
| 56 | - this.firstIndex = firstIndex; | |
| 57 | - } | |
| 58 | - | |
| 59 | - public int getLastIndex() {
| |
| 60 | - return lastIndex; | |
| 61 | - } | |
| 62 | - | |
| 63 | - public void setLastIndex(int lastIndex) {
| |
| 64 | - this.lastIndex = lastIndex; | |
| 65 | - } | |
| 66 | - | |
| 67 | - public int getRecordCountPerPage() {
| |
| 68 | - return recordCountPerPage; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public void setRecordCountPerPage(int recordCountPerPage) {
| |
| 72 | - this.recordCountPerPage = recordCountPerPage; | |
| 73 | - } | |
| 74 | - | |
| 75 | - public String getSearchCnd() {
| |
| 76 | - return searchCnd; | |
| 77 | - } | |
| 78 | - | |
| 79 | - public void setSearchCnd(String searchCnd) {
| |
| 80 | - this.searchCnd = searchCnd; | |
| 81 | - } | |
| 82 | - | |
| 83 | - public String getSearchWrd() {
| |
| 84 | - return searchWrd; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public void setSearchWrd(String searchWrd) {
| |
| 88 | - this.searchWrd = searchWrd; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public String getSearchUseYn() {
| |
| 92 | - return searchUseYn; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public void setSearchUseYn(String searchUseYn) {
| |
| 96 | - this.searchUseYn = searchUseYn; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public int getPageIndex() {
| |
| 100 | - return pageIndex; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public void setPageIndex(int pageIndex) {
| |
| 104 | - this.pageIndex = pageIndex; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public int getPageUnit() {
| |
| 108 | - return pageUnit; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public void setPageUnit(int pageUnit) {
| |
| 112 | - this.pageUnit = pageUnit; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public int getPageSize() {
| |
| 116 | - return pageSize; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public void setPageSize(int pageSize) {
| |
| 120 | - this.pageSize = pageSize; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public String toString() {
| |
| 124 | - return ToStringBuilder.reflectionToString(this); | |
| 125 | - } | |
| 126 | - | |
| 127 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/CommunityUser.java
... | ... | @@ -1,322 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 6 | - | |
| 7 | -//커뮤티니 사용자 관리를 위한 모델 클래스 | |
| 8 | -@SuppressWarnings("serial")
| |
| 9 | -public class CommunityUser implements Serializable {
| |
| 10 | - | |
| 11 | - /** | |
| 12 | - * 사이트ID | |
| 13 | - */ | |
| 14 | - private String siteId = ""; | |
| 15 | - | |
| 16 | - /** | |
| 17 | - * 커뮤니티아이디 | |
| 18 | - */ | |
| 19 | - private String cmmntyId = ""; | |
| 20 | - | |
| 21 | - /** | |
| 22 | - * 최초등록자 아이디 | |
| 23 | - */ | |
| 24 | - private String frstRegisterId = ""; | |
| 25 | - | |
| 26 | - /** | |
| 27 | - * 최초등록시점 | |
| 28 | - */ | |
| 29 | - private String frstRegisterPnttm = ""; | |
| 30 | - | |
| 31 | - /** | |
| 32 | - * 최종수정자 아이디 | |
| 33 | - */ | |
| 34 | - private String lastUpdusrId = ""; | |
| 35 | - | |
| 36 | - /** | |
| 37 | - * 최종수정시점 | |
| 38 | - */ | |
| 39 | - private String lastUpdusrPnttm = ""; | |
| 40 | - | |
| 41 | - /** | |
| 42 | - * 권한코드 | |
| 43 | - */ | |
| 44 | - private String authorCode = ""; | |
| 45 | - | |
| 46 | - /** | |
| 47 | - * 권한코드 | |
| 48 | - */ | |
| 49 | - private String authorNm = ""; | |
| 50 | - | |
| 51 | - /** | |
| 52 | - * 관리자여부 | |
| 53 | - */ | |
| 54 | - private String mngrAt = ""; | |
| 55 | - | |
| 56 | - /** | |
| 57 | - * 탈퇴일 | |
| 58 | - */ | |
| 59 | - private String secsnDe = ""; | |
| 60 | - | |
| 61 | - /** | |
| 62 | - * 가입일 | |
| 63 | - */ | |
| 64 | - private String sbscrbDe = ""; | |
| 65 | - | |
| 66 | - /** | |
| 67 | - * 사용여부 | |
| 68 | - */ | |
| 69 | - private String useAt = ""; | |
| 70 | - | |
| 71 | - /** | |
| 72 | - * 사용자 아이디 | |
| 73 | - */ | |
| 74 | - private String emplyrId = ""; | |
| 75 | - | |
| 76 | - /** | |
| 77 | - * 사용자명 | |
| 78 | - */ | |
| 79 | - private String emplyrNm = ""; | |
| 80 | - | |
| 81 | - /** | |
| 82 | - * 가입인사(소개) | |
| 83 | - */ | |
| 84 | - private String userIntrcn = ""; | |
| 85 | - | |
| 86 | - /** | |
| 87 | - * 마이메뉴사용여부 | |
| 88 | - */ | |
| 89 | - private String myMenuAt = ""; | |
| 90 | - | |
| 91 | - | |
| 92 | - public String getSiteId() {
| |
| 93 | - return siteId; | |
| 94 | - } | |
| 95 | - | |
| 96 | - public void setSiteId(String siteId) {
| |
| 97 | - this.siteId = siteId; | |
| 98 | - } | |
| 99 | - | |
| 100 | - /** | |
| 101 | - * cmmntyId attribute를 리턴한다. | |
| 102 | - * @return the cmmntyId | |
| 103 | - */ | |
| 104 | - public String getCmmntyId() {
| |
| 105 | - return cmmntyId; | |
| 106 | - } | |
| 107 | - | |
| 108 | - /** | |
| 109 | - * cmmntyId attribute 값을 설정한다. | |
| 110 | - * @param cmmntyId the cmmntyId to set | |
| 111 | - */ | |
| 112 | - public void setCmmntyId(String cmmntyId) {
| |
| 113 | - this.cmmntyId = cmmntyId; | |
| 114 | - } | |
| 115 | - | |
| 116 | - /** | |
| 117 | - * frstRegisterId attribute를 리턴한다. | |
| 118 | - * @return the frstRegisterId | |
| 119 | - */ | |
| 120 | - public String getFrstRegisterId() {
| |
| 121 | - return frstRegisterId; | |
| 122 | - } | |
| 123 | - | |
| 124 | - /** | |
| 125 | - * frstRegisterId attribute 값을 설정한다. | |
| 126 | - * @param frstRegisterId the frstRegisterId to set | |
| 127 | - */ | |
| 128 | - public void setFrstRegisterId(String frstRegisterId) {
| |
| 129 | - this.frstRegisterId = frstRegisterId; | |
| 130 | - } | |
| 131 | - | |
| 132 | - /** | |
| 133 | - * frstRegisterPnttm attribute를 리턴한다. | |
| 134 | - * @return the frstRegisterPnttm | |
| 135 | - */ | |
| 136 | - public String getFrstRegisterPnttm() {
| |
| 137 | - return frstRegisterPnttm; | |
| 138 | - } | |
| 139 | - | |
| 140 | - /** | |
| 141 | - * frstRegisterPnttm attribute 값을 설정한다. | |
| 142 | - * @param frstRegisterPnttm the frstRegisterPnttm to set | |
| 143 | - */ | |
| 144 | - public void setFrstRegisterPnttm(String frstRegisterPnttm) {
| |
| 145 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 146 | - } | |
| 147 | - | |
| 148 | - /** | |
| 149 | - * lastUpdusrId attribute를 리턴한다. | |
| 150 | - * @return the lastUpdusrId | |
| 151 | - */ | |
| 152 | - public String getLastUpdusrId() {
| |
| 153 | - return lastUpdusrId; | |
| 154 | - } | |
| 155 | - | |
| 156 | - /** | |
| 157 | - * lastUpdusrId attribute 값을 설정한다. | |
| 158 | - * @param lastUpdusrId the lastUpdusrId to set | |
| 159 | - */ | |
| 160 | - public void setLastUpdusrId(String lastUpdusrId) {
| |
| 161 | - this.lastUpdusrId = lastUpdusrId; | |
| 162 | - } | |
| 163 | - | |
| 164 | - /** | |
| 165 | - * lastUpdusrPnttm attribute를 리턴한다. | |
| 166 | - * @return the lastUpdusrPnttm | |
| 167 | - */ | |
| 168 | - public String getLastUpdusrPnttm() {
| |
| 169 | - return lastUpdusrPnttm; | |
| 170 | - } | |
| 171 | - | |
| 172 | - /** | |
| 173 | - * lastUpdusrPnttm attribute 값을 설정한다. | |
| 174 | - * @param lastUpdusrPnttm the lastUpdusrPnttm to set | |
| 175 | - */ | |
| 176 | - public void setLastUpdusrPnttm(String lastUpdusrPnttm) {
| |
| 177 | - this.lastUpdusrPnttm = lastUpdusrPnttm; | |
| 178 | - } | |
| 179 | - | |
| 180 | - public String getAuthorCode() {
| |
| 181 | - return authorCode; | |
| 182 | - } | |
| 183 | - | |
| 184 | - public void setAuthorCode(String authorCode) {
| |
| 185 | - this.authorCode = authorCode; | |
| 186 | - } | |
| 187 | - | |
| 188 | - public String getAuthorNm() {
| |
| 189 | - return authorNm; | |
| 190 | - } | |
| 191 | - | |
| 192 | - public void setAuthorNm(String authorNm) {
| |
| 193 | - this.authorNm = authorNm; | |
| 194 | - } | |
| 195 | - | |
| 196 | - public String getMngrAt() {
| |
| 197 | - return mngrAt; | |
| 198 | - } | |
| 199 | - | |
| 200 | - public void setMngrAt(String mngrAt) {
| |
| 201 | - this.mngrAt = mngrAt; | |
| 202 | - } | |
| 203 | - | |
| 204 | - /** | |
| 205 | - * secsnDe attribute를 리턴한다. | |
| 206 | - * @return the secsnDe | |
| 207 | - */ | |
| 208 | - public String getSecsnDe() {
| |
| 209 | - return secsnDe; | |
| 210 | - } | |
| 211 | - | |
| 212 | - /** | |
| 213 | - * secsnDe attribute 값을 설정한다. | |
| 214 | - * @param secsnDe the secsnDe to set | |
| 215 | - */ | |
| 216 | - public void setSecsnDe(String secsnDe) {
| |
| 217 | - this.secsnDe = secsnDe; | |
| 218 | - } | |
| 219 | - | |
| 220 | - /** | |
| 221 | - * sbscrbDe attribute를 리턴한다. | |
| 222 | - * @return the sbscrbDe | |
| 223 | - */ | |
| 224 | - public String getSbscrbDe() {
| |
| 225 | - return sbscrbDe; | |
| 226 | - } | |
| 227 | - | |
| 228 | - /** | |
| 229 | - * sbscrbDe attribute 값을 설정한다. | |
| 230 | - * @param sbscrbDe the sbscrbDe to set | |
| 231 | - */ | |
| 232 | - public void setSbscrbDe(String sbscrbDe) {
| |
| 233 | - this.sbscrbDe = sbscrbDe; | |
| 234 | - } | |
| 235 | - | |
| 236 | - /** | |
| 237 | - * useAt attribute를 리턴한다. | |
| 238 | - * @return the useAt | |
| 239 | - */ | |
| 240 | - public String getUseAt() {
| |
| 241 | - return useAt; | |
| 242 | - } | |
| 243 | - | |
| 244 | - /** | |
| 245 | - * useAt attribute 값을 설정한다. | |
| 246 | - * @param useAt the useAt to set | |
| 247 | - */ | |
| 248 | - public void setUseAt(String useAt) {
| |
| 249 | - this.useAt = useAt; | |
| 250 | - } | |
| 251 | - | |
| 252 | - /** | |
| 253 | - * emplyrId attribute를 리턴한다. | |
| 254 | - * @return the emplyrId | |
| 255 | - */ | |
| 256 | - public String getEmplyrId() {
| |
| 257 | - return emplyrId; | |
| 258 | - } | |
| 259 | - | |
| 260 | - /** | |
| 261 | - * emplyrId attribute 값을 설정한다. | |
| 262 | - * @param emplyrId the emplyrId to set | |
| 263 | - */ | |
| 264 | - public void setEmplyrId(String emplyrId) {
| |
| 265 | - this.emplyrId = emplyrId; | |
| 266 | - } | |
| 267 | - | |
| 268 | - /** | |
| 269 | - * emplyrNm attribute를 리턴한다. | |
| 270 | - * @return the emplyrNm | |
| 271 | - */ | |
| 272 | - public String getEmplyrNm() {
| |
| 273 | - return emplyrNm; | |
| 274 | - } | |
| 275 | - | |
| 276 | - /** | |
| 277 | - * emplyrNm attribute 값을 설정한다. | |
| 278 | - * @param emplyrNm the emplyrNm to set | |
| 279 | - */ | |
| 280 | - public void setEmplyrNm(String emplyrNm) {
| |
| 281 | - this.emplyrNm = emplyrNm; | |
| 282 | - } | |
| 283 | - | |
| 284 | - /** | |
| 285 | - * userIntrcn attribute를 리턴한다. | |
| 286 | - * @return the userIntrcn | |
| 287 | - */ | |
| 288 | - public String getUserIntrcn() {
| |
| 289 | - return userIntrcn; | |
| 290 | - } | |
| 291 | - | |
| 292 | - /** | |
| 293 | - * userIntrcn attribute 값을 설정한다. | |
| 294 | - * @param userIntrcn the userIntrcn to set | |
| 295 | - */ | |
| 296 | - public void setUserIntrcn(String userIntrcn) {
| |
| 297 | - this.userIntrcn = userIntrcn; | |
| 298 | - } | |
| 299 | - | |
| 300 | - /** | |
| 301 | - * myMenuAt attribute를 리턴한다. | |
| 302 | - * @return the myMenuAt | |
| 303 | - */ | |
| 304 | - public String getMyMenuAt() {
| |
| 305 | - return myMenuAt; | |
| 306 | - } | |
| 307 | - | |
| 308 | - /** | |
| 309 | - * myMenuAt attribute 값을 설정한다. | |
| 310 | - * @param myMenuAt the myMenuAt to set | |
| 311 | - */ | |
| 312 | - public void setMyMenuAt(String myMenuAt) {
| |
| 313 | - this.myMenuAt = myMenuAt; | |
| 314 | - } | |
| 315 | - | |
| 316 | - /** | |
| 317 | - * toString 메소드를 대치한다. | |
| 318 | - */ | |
| 319 | - public String toString() {
| |
| 320 | - return ToStringBuilder.reflectionToString(this); | |
| 321 | - } | |
| 322 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/CommunityUserVO.java
... | ... | @@ -1,306 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 6 | - | |
| 7 | - | |
| 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.2 이삼섭 최초 생성 | |
| 21 | - * | |
| 22 | - * </pre> | |
| 23 | - */ | |
| 24 | -@SuppressWarnings("serial")
| |
| 25 | -public class CommunityUserVO extends CommunityUser implements Serializable {
| |
| 26 | - | |
| 27 | - /** | |
| 28 | - * 검색시작일 | |
| 29 | - */ | |
| 30 | - private String searchBgnDe = ""; | |
| 31 | - | |
| 32 | - /** | |
| 33 | - * 검색조건 | |
| 34 | - */ | |
| 35 | - private String searchCnd = ""; | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * 검색종료일 | |
| 39 | - */ | |
| 40 | - private String searchEndDe = ""; | |
| 41 | - | |
| 42 | - /** | |
| 43 | - * 검색단어 | |
| 44 | - */ | |
| 45 | - private String searchWrd = ""; | |
| 46 | - | |
| 47 | - /** | |
| 48 | - * 정렬순서(DESC,ASC) | |
| 49 | - */ | |
| 50 | - private long sortOrdr = 0L; | |
| 51 | - | |
| 52 | - /** | |
| 53 | - * 검색사용여부 | |
| 54 | - */ | |
| 55 | - private String searchUseYn = ""; | |
| 56 | - | |
| 57 | - /** | |
| 58 | - * 현재페이지 | |
| 59 | - */ | |
| 60 | - private int pageIndex = 1; | |
| 61 | - | |
| 62 | - /** | |
| 63 | - * 페이지갯수 | |
| 64 | - */ | |
| 65 | - private int pageUnit = 10; | |
| 66 | - | |
| 67 | - /** | |
| 68 | - * 페이지사이즈 | |
| 69 | - */ | |
| 70 | - private int pageSize = 10; | |
| 71 | - | |
| 72 | - /** | |
| 73 | - * 첫페이지 인덱스 | |
| 74 | - */ | |
| 75 | - private int firstIndex = 1; | |
| 76 | - | |
| 77 | - /** | |
| 78 | - * 마지막페이지 인덱스 | |
| 79 | - */ | |
| 80 | - private int lastIndex = 1; | |
| 81 | - | |
| 82 | - /** | |
| 83 | - * 페이지당 레코드 개수 | |
| 84 | - */ | |
| 85 | - private int recordCountPerPage = 10; | |
| 86 | - | |
| 87 | - /** | |
| 88 | - * 레코드 번호 | |
| 89 | - */ | |
| 90 | - private int rowNo = 0; | |
| 91 | - | |
| 92 | - /** | |
| 93 | - * searchBgnDe attribute를 리턴한다. | |
| 94 | - * @return the searchBgnDe | |
| 95 | - */ | |
| 96 | - public String getSearchBgnDe() {
| |
| 97 | - return searchBgnDe; | |
| 98 | - } | |
| 99 | - | |
| 100 | - /** | |
| 101 | - * searchBgnDe attribute 값을 설정한다. | |
| 102 | - * @param searchBgnDe the searchBgnDe to set | |
| 103 | - */ | |
| 104 | - public void setSearchBgnDe(String searchBgnDe) {
| |
| 105 | - this.searchBgnDe = searchBgnDe; | |
| 106 | - } | |
| 107 | - | |
| 108 | - /** | |
| 109 | - * searchCnd attribute를 리턴한다. | |
| 110 | - * @return the searchCnd | |
| 111 | - */ | |
| 112 | - public String getSearchCnd() {
| |
| 113 | - return searchCnd; | |
| 114 | - } | |
| 115 | - | |
| 116 | - /** | |
| 117 | - * searchCnd attribute 값을 설정한다. | |
| 118 | - * @param searchCnd the searchCnd to set | |
| 119 | - */ | |
| 120 | - public void setSearchCnd(String searchCnd) {
| |
| 121 | - this.searchCnd = searchCnd; | |
| 122 | - } | |
| 123 | - | |
| 124 | - /** | |
| 125 | - * searchEndDe attribute를 리턴한다. | |
| 126 | - * @return the searchEndDe | |
| 127 | - */ | |
| 128 | - public String getSearchEndDe() {
| |
| 129 | - return searchEndDe; | |
| 130 | - } | |
| 131 | - | |
| 132 | - /** | |
| 133 | - * searchEndDe attribute 값을 설정한다. | |
| 134 | - * @param searchEndDe the searchEndDe to set | |
| 135 | - */ | |
| 136 | - public void setSearchEndDe(String searchEndDe) {
| |
| 137 | - this.searchEndDe = searchEndDe; | |
| 138 | - } | |
| 139 | - | |
| 140 | - /** | |
| 141 | - * searchWrd attribute를 리턴한다. | |
| 142 | - * @return the searchWrd | |
| 143 | - */ | |
| 144 | - public String getSearchWrd() {
| |
| 145 | - return searchWrd; | |
| 146 | - } | |
| 147 | - | |
| 148 | - /** | |
| 149 | - * searchWrd attribute 값을 설정한다. | |
| 150 | - * @param searchWrd the searchWrd to set | |
| 151 | - */ | |
| 152 | - public void setSearchWrd(String searchWrd) {
| |
| 153 | - this.searchWrd = searchWrd; | |
| 154 | - } | |
| 155 | - | |
| 156 | - /** | |
| 157 | - * sortOrdr attribute를 리턴한다. | |
| 158 | - * @return the sortOrdr | |
| 159 | - */ | |
| 160 | - public long getSortOrdr() {
| |
| 161 | - return sortOrdr; | |
| 162 | - } | |
| 163 | - | |
| 164 | - /** | |
| 165 | - * sortOrdr attribute 값을 설정한다. | |
| 166 | - * @param sortOrdr the sortOrdr to set | |
| 167 | - */ | |
| 168 | - public void setSortOrdr(long sortOrdr) {
| |
| 169 | - this.sortOrdr = sortOrdr; | |
| 170 | - } | |
| 171 | - | |
| 172 | - /** | |
| 173 | - * searchUseYn attribute를 리턴한다. | |
| 174 | - * @return the searchUseYn | |
| 175 | - */ | |
| 176 | - public String getSearchUseYn() {
| |
| 177 | - return searchUseYn; | |
| 178 | - } | |
| 179 | - | |
| 180 | - /** | |
| 181 | - * searchUseYn attribute 값을 설정한다. | |
| 182 | - * @param searchUseYn the searchUseYn to set | |
| 183 | - */ | |
| 184 | - public void setSearchUseYn(String searchUseYn) {
| |
| 185 | - this.searchUseYn = searchUseYn; | |
| 186 | - } | |
| 187 | - | |
| 188 | - /** | |
| 189 | - * pageIndex attribute를 리턴한다. | |
| 190 | - * @return the pageIndex | |
| 191 | - */ | |
| 192 | - public int getPageIndex() {
| |
| 193 | - return pageIndex; | |
| 194 | - } | |
| 195 | - | |
| 196 | - /** | |
| 197 | - * pageIndex attribute 값을 설정한다. | |
| 198 | - * @param pageIndex the pageIndex to set | |
| 199 | - */ | |
| 200 | - public void setPageIndex(int pageIndex) {
| |
| 201 | - this.pageIndex = pageIndex; | |
| 202 | - } | |
| 203 | - | |
| 204 | - /** | |
| 205 | - * pageUnit attribute를 리턴한다. | |
| 206 | - * @return the pageUnit | |
| 207 | - */ | |
| 208 | - public int getPageUnit() {
| |
| 209 | - return pageUnit; | |
| 210 | - } | |
| 211 | - | |
| 212 | - /** | |
| 213 | - * pageUnit attribute 값을 설정한다. | |
| 214 | - * @param pageUnit the pageUnit to set | |
| 215 | - */ | |
| 216 | - public void setPageUnit(int pageUnit) {
| |
| 217 | - this.pageUnit = pageUnit; | |
| 218 | - } | |
| 219 | - | |
| 220 | - /** | |
| 221 | - * pageSize attribute를 리턴한다. | |
| 222 | - * @return the pageSize | |
| 223 | - */ | |
| 224 | - public int getPageSize() {
| |
| 225 | - return pageSize; | |
| 226 | - } | |
| 227 | - | |
| 228 | - /** | |
| 229 | - * pageSize attribute 값을 설정한다. | |
| 230 | - * @param pageSize the pageSize to set | |
| 231 | - */ | |
| 232 | - public void setPageSize(int pageSize) {
| |
| 233 | - this.pageSize = pageSize; | |
| 234 | - } | |
| 235 | - | |
| 236 | - /** | |
| 237 | - * firstIndex attribute를 리턴한다. | |
| 238 | - * @return the firstIndex | |
| 239 | - */ | |
| 240 | - public int getFirstIndex() {
| |
| 241 | - return firstIndex; | |
| 242 | - } | |
| 243 | - | |
| 244 | - /** | |
| 245 | - * firstIndex attribute 값을 설정한다. | |
| 246 | - * @param firstIndex the firstIndex to set | |
| 247 | - */ | |
| 248 | - public void setFirstIndex(int firstIndex) {
| |
| 249 | - this.firstIndex = firstIndex; | |
| 250 | - } | |
| 251 | - | |
| 252 | - /** | |
| 253 | - * lastIndex attribute를 리턴한다. | |
| 254 | - * @return the lastIndex | |
| 255 | - */ | |
| 256 | - public int getLastIndex() {
| |
| 257 | - return lastIndex; | |
| 258 | - } | |
| 259 | - | |
| 260 | - /** | |
| 261 | - * lastIndex attribute 값을 설정한다. | |
| 262 | - * @param lastIndex the lastIndex to set | |
| 263 | - */ | |
| 264 | - public void setLastIndex(int lastIndex) {
| |
| 265 | - this.lastIndex = lastIndex; | |
| 266 | - } | |
| 267 | - | |
| 268 | - /** | |
| 269 | - * recordCountPerPage attribute를 리턴한다. | |
| 270 | - * @return the recordCountPerPage | |
| 271 | - */ | |
| 272 | - public int getRecordCountPerPage() {
| |
| 273 | - return recordCountPerPage; | |
| 274 | - } | |
| 275 | - | |
| 276 | - /** | |
| 277 | - * recordCountPerPage attribute 값을 설정한다. | |
| 278 | - * @param recordCountPerPage the recordCountPerPage to set | |
| 279 | - */ | |
| 280 | - public void setRecordCountPerPage(int recordCountPerPage) {
| |
| 281 | - this.recordCountPerPage = recordCountPerPage; | |
| 282 | - } | |
| 283 | - | |
| 284 | - /** | |
| 285 | - * rowNo attribute를 리턴한다. | |
| 286 | - * @return the rowNo | |
| 287 | - */ | |
| 288 | - public int getRowNo() {
| |
| 289 | - return rowNo; | |
| 290 | - } | |
| 291 | - | |
| 292 | - /** | |
| 293 | - * rowNo attribute 값을 설정한다. | |
| 294 | - * @param rowNo the rowNo to set | |
| 295 | - */ | |
| 296 | - public void setRowNo(int rowNo) {
| |
| 297 | - this.rowNo = rowNo; | |
| 298 | - } | |
| 299 | - | |
| 300 | - /** | |
| 301 | - * toString 메소드를 대치한다. | |
| 302 | - */ | |
| 303 | - public String toString() {
| |
| 304 | - return ToStringBuilder.reflectionToString(this); | |
| 305 | - } | |
| 306 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/CommunityVO.java
... | ... | @@ -1,492 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 6 | - | |
| 7 | -//커뮤니티 관리를 위한 VO 클래스 | |
| 8 | -@SuppressWarnings("serial")
| |
| 9 | -public class CommunityVO extends Community implements Serializable {
| |
| 10 | - | |
| 11 | - /** | |
| 12 | - * 대상 아이디 | |
| 13 | - */ | |
| 14 | - private String trgetId = ""; | |
| 15 | - | |
| 16 | - /** | |
| 17 | - * 운영여부검색 | |
| 18 | - */ | |
| 19 | - private String searchUse = ""; | |
| 20 | - | |
| 21 | - /** | |
| 22 | - * 검색분류 | |
| 23 | - */ | |
| 24 | - private String searchTy = ""; | |
| 25 | - | |
| 26 | - /** | |
| 27 | - * 검색시작일 | |
| 28 | - */ | |
| 29 | - private String searchBgnDe = ""; | |
| 30 | - | |
| 31 | - /** | |
| 32 | - * 검색조건 | |
| 33 | - */ | |
| 34 | - private String searchCnd = ""; | |
| 35 | - | |
| 36 | - /** | |
| 37 | - * 검색종료일 | |
| 38 | - */ | |
| 39 | - private String searchEndDe = ""; | |
| 40 | - | |
| 41 | - /** | |
| 42 | - * 검색단어 | |
| 43 | - */ | |
| 44 | - private String searchWrd = ""; | |
| 45 | - | |
| 46 | - /** | |
| 47 | - * 정렬순서(DESC,ASC) | |
| 48 | - */ | |
| 49 | - private long sortOrdr = 0L; | |
| 50 | - | |
| 51 | - /** | |
| 52 | - * 검색사용여부 | |
| 53 | - */ | |
| 54 | - private String searchUseYn = ""; | |
| 55 | - | |
| 56 | - /** | |
| 57 | - * 현재페이지 | |
| 58 | - */ | |
| 59 | - private int pageIndex = 1; | |
| 60 | - | |
| 61 | - /** | |
| 62 | - * 페이지갯수 | |
| 63 | - */ | |
| 64 | - private int pageUnit = 10; | |
| 65 | - | |
| 66 | - /** | |
| 67 | - * 페이지사이즈 | |
| 68 | - */ | |
| 69 | - private int pageSize = 10; | |
| 70 | - | |
| 71 | - /** | |
| 72 | - * 첫페이지 인덱스 | |
| 73 | - */ | |
| 74 | - private int firstIndex = 1; | |
| 75 | - | |
| 76 | - /** | |
| 77 | - * 마지막페이지 인덱스 | |
| 78 | - */ | |
| 79 | - private int lastIndex = 1; | |
| 80 | - | |
| 81 | - /** | |
| 82 | - * 페이지당 레코드 개수 | |
| 83 | - */ | |
| 84 | - private int recordCountPerPage = 10; | |
| 85 | - | |
| 86 | - /** | |
| 87 | - * 레코드 번호 | |
| 88 | - */ | |
| 89 | - private int rowNo = 0; | |
| 90 | - | |
| 91 | - /** | |
| 92 | - * 등록구분 코드명 | |
| 93 | - */ | |
| 94 | - private String registSeCodeNm = ""; | |
| 95 | - | |
| 96 | - /** | |
| 97 | - * 게시판 아이드 | |
| 98 | - */ | |
| 99 | - private String bbsId = ""; | |
| 100 | - | |
| 101 | - /** | |
| 102 | - * 게시판 이름 | |
| 103 | - */ | |
| 104 | - private String bbsNm = ""; | |
| 105 | - | |
| 106 | - /** | |
| 107 | - * 제공 URL | |
| 108 | - */ | |
| 109 | - private String provdUrl = ""; | |
| 110 | - | |
| 111 | - /** | |
| 112 | - * 관리자 유무 | |
| 113 | - */ | |
| 114 | - private String mngrAt = ""; | |
| 115 | - | |
| 116 | - /** | |
| 117 | - * 처리결과코드 | |
| 118 | - */ | |
| 119 | - private String resultCode = ""; | |
| 120 | - | |
| 121 | - /** | |
| 122 | - * 메뉴 정보 | |
| 123 | - */ | |
| 124 | - private String menuId = ""; | |
| 125 | - | |
| 126 | - /** | |
| 127 | - * trgetId attribute를 리턴한다. | |
| 128 | - * @return the trgetId | |
| 129 | - */ | |
| 130 | - public String getTrgetId() {
| |
| 131 | - return trgetId; | |
| 132 | - } | |
| 133 | - | |
| 134 | - /** | |
| 135 | - * trgetId attribute 값을 설정한다. | |
| 136 | - * @param trgetId the trgetId to set | |
| 137 | - */ | |
| 138 | - public void setTrgetId(String trgetId) {
| |
| 139 | - this.trgetId = trgetId; | |
| 140 | - } | |
| 141 | - | |
| 142 | - /** | |
| 143 | - * searchUse attribute를 리턴한다. | |
| 144 | - * @return the searchUse | |
| 145 | - */ | |
| 146 | - public String getSearchUse() {
| |
| 147 | - return searchUse; | |
| 148 | - } | |
| 149 | - | |
| 150 | - /** | |
| 151 | - * searchUse attribute 값을 설정한다. | |
| 152 | - * @param searchUse the searchUse to set | |
| 153 | - */ | |
| 154 | - public void setSearchUse(String searchUse) {
| |
| 155 | - this.searchUse = searchUse; | |
| 156 | - } | |
| 157 | - | |
| 158 | - /** | |
| 159 | - * searchTy attribute를 리턴한다. | |
| 160 | - * @return the searchTy | |
| 161 | - */ | |
| 162 | - public String getSearchTy() {
| |
| 163 | - return searchTy; | |
| 164 | - } | |
| 165 | - | |
| 166 | - /** | |
| 167 | - * searchTy attribute 값을 설정한다. | |
| 168 | - * @param searchTy the searchTy to set | |
| 169 | - */ | |
| 170 | - public void setSearchTy(String searchTy) {
| |
| 171 | - this.searchTy = searchTy; | |
| 172 | - } | |
| 173 | - | |
| 174 | - /** | |
| 175 | - * searchBgnDe attribute를 리턴한다. | |
| 176 | - * @return the searchBgnDe | |
| 177 | - */ | |
| 178 | - public String getSearchBgnDe() {
| |
| 179 | - return searchBgnDe; | |
| 180 | - } | |
| 181 | - | |
| 182 | - /** | |
| 183 | - * searchBgnDe attribute 값을 설정한다. | |
| 184 | - * @param searchBgnDe the searchBgnDe to set | |
| 185 | - */ | |
| 186 | - public void setSearchBgnDe(String searchBgnDe) {
| |
| 187 | - this.searchBgnDe = searchBgnDe; | |
| 188 | - } | |
| 189 | - | |
| 190 | - /** | |
| 191 | - * searchCnd attribute를 리턴한다. | |
| 192 | - * @return the searchCnd | |
| 193 | - */ | |
| 194 | - public String getSearchCnd() {
| |
| 195 | - return searchCnd; | |
| 196 | - } | |
| 197 | - | |
| 198 | - /** | |
| 199 | - * searchCnd attribute 값을 설정한다. | |
| 200 | - * @param searchCnd the searchCnd to set | |
| 201 | - */ | |
| 202 | - public void setSearchCnd(String searchCnd) {
| |
| 203 | - this.searchCnd = searchCnd; | |
| 204 | - } | |
| 205 | - | |
| 206 | - /** | |
| 207 | - * searchEndDe attribute를 리턴한다. | |
| 208 | - * @return the searchEndDe | |
| 209 | - */ | |
| 210 | - public String getSearchEndDe() {
| |
| 211 | - return searchEndDe; | |
| 212 | - } | |
| 213 | - | |
| 214 | - /** | |
| 215 | - * searchEndDe attribute 값을 설정한다. | |
| 216 | - * @param searchEndDe the searchEndDe to set | |
| 217 | - */ | |
| 218 | - public void setSearchEndDe(String searchEndDe) {
| |
| 219 | - this.searchEndDe = searchEndDe; | |
| 220 | - } | |
| 221 | - | |
| 222 | - /** | |
| 223 | - * searchWrd attribute를 리턴한다. | |
| 224 | - * @return the searchWrd | |
| 225 | - */ | |
| 226 | - public String getSearchWrd() {
| |
| 227 | - return searchWrd; | |
| 228 | - } | |
| 229 | - | |
| 230 | - /** | |
| 231 | - * searchWrd attribute 값을 설정한다. | |
| 232 | - * @param searchWrd the searchWrd to set | |
| 233 | - */ | |
| 234 | - public void setSearchWrd(String searchWrd) {
| |
| 235 | - this.searchWrd = searchWrd; | |
| 236 | - } | |
| 237 | - | |
| 238 | - /** | |
| 239 | - * sortOrdr attribute를 리턴한다. | |
| 240 | - * @return the sortOrdr | |
| 241 | - */ | |
| 242 | - public long getSortOrdr() {
| |
| 243 | - return sortOrdr; | |
| 244 | - } | |
| 245 | - | |
| 246 | - /** | |
| 247 | - * sortOrdr attribute 값을 설정한다. | |
| 248 | - * @param sortOrdr the sortOrdr to set | |
| 249 | - */ | |
| 250 | - public void setSortOrdr(long sortOrdr) {
| |
| 251 | - this.sortOrdr = sortOrdr; | |
| 252 | - } | |
| 253 | - | |
| 254 | - /** | |
| 255 | - * searchUseYn attribute를 리턴한다. | |
| 256 | - * @return the searchUseYn | |
| 257 | - */ | |
| 258 | - public String getSearchUseYn() {
| |
| 259 | - return searchUseYn; | |
| 260 | - } | |
| 261 | - | |
| 262 | - /** | |
| 263 | - * searchUseYn attribute 값을 설정한다. | |
| 264 | - * @param searchUseYn the searchUseYn to set | |
| 265 | - */ | |
| 266 | - public void setSearchUseYn(String searchUseYn) {
| |
| 267 | - this.searchUseYn = searchUseYn; | |
| 268 | - } | |
| 269 | - | |
| 270 | - /** | |
| 271 | - * pageIndex attribute를 리턴한다. | |
| 272 | - * @return the pageIndex | |
| 273 | - */ | |
| 274 | - public int getPageIndex() {
| |
| 275 | - return pageIndex; | |
| 276 | - } | |
| 277 | - | |
| 278 | - /** | |
| 279 | - * pageIndex attribute 값을 설정한다. | |
| 280 | - * @param pageIndex the pageIndex to set | |
| 281 | - */ | |
| 282 | - public void setPageIndex(int pageIndex) {
| |
| 283 | - this.pageIndex = pageIndex; | |
| 284 | - } | |
| 285 | - | |
| 286 | - /** | |
| 287 | - * pageUnit attribute를 리턴한다. | |
| 288 | - * @return the pageUnit | |
| 289 | - */ | |
| 290 | - public int getPageUnit() {
| |
| 291 | - return pageUnit; | |
| 292 | - } | |
| 293 | - | |
| 294 | - /** | |
| 295 | - * pageUnit attribute 값을 설정한다. | |
| 296 | - * @param pageUnit the pageUnit to set | |
| 297 | - */ | |
| 298 | - public void setPageUnit(int pageUnit) {
| |
| 299 | - this.pageUnit = pageUnit; | |
| 300 | - } | |
| 301 | - | |
| 302 | - /** | |
| 303 | - * pageSize attribute를 리턴한다. | |
| 304 | - * @return the pageSize | |
| 305 | - */ | |
| 306 | - public int getPageSize() {
| |
| 307 | - return pageSize; | |
| 308 | - } | |
| 309 | - | |
| 310 | - /** | |
| 311 | - * pageSize attribute 값을 설정한다. | |
| 312 | - * @param pageSize the pageSize to set | |
| 313 | - */ | |
| 314 | - public void setPageSize(int pageSize) {
| |
| 315 | - this.pageSize = pageSize; | |
| 316 | - } | |
| 317 | - | |
| 318 | - /** | |
| 319 | - * firstIndex attribute를 리턴한다. | |
| 320 | - * @return the firstIndex | |
| 321 | - */ | |
| 322 | - public int getFirstIndex() {
| |
| 323 | - return firstIndex; | |
| 324 | - } | |
| 325 | - | |
| 326 | - /** | |
| 327 | - * firstIndex attribute 값을 설정한다. | |
| 328 | - * @param firstIndex the firstIndex to set | |
| 329 | - */ | |
| 330 | - public void setFirstIndex(int firstIndex) {
| |
| 331 | - this.firstIndex = firstIndex; | |
| 332 | - } | |
| 333 | - | |
| 334 | - /** | |
| 335 | - * lastIndex attribute를 리턴한다. | |
| 336 | - * @return the lastIndex | |
| 337 | - */ | |
| 338 | - public int getLastIndex() {
| |
| 339 | - return lastIndex; | |
| 340 | - } | |
| 341 | - | |
| 342 | - /** | |
| 343 | - * lastIndex attribute 값을 설정한다. | |
| 344 | - * @param lastIndex the lastIndex to set | |
| 345 | - */ | |
| 346 | - public void setLastIndex(int lastIndex) {
| |
| 347 | - this.lastIndex = lastIndex; | |
| 348 | - } | |
| 349 | - | |
| 350 | - /** | |
| 351 | - * recordCountPerPage attribute를 리턴한다. | |
| 352 | - * @return the recordCountPerPage | |
| 353 | - */ | |
| 354 | - public int getRecordCountPerPage() {
| |
| 355 | - return recordCountPerPage; | |
| 356 | - } | |
| 357 | - | |
| 358 | - /** | |
| 359 | - * recordCountPerPage attribute 값을 설정한다. | |
| 360 | - * @param recordCountPerPage the recordCountPerPage to set | |
| 361 | - */ | |
| 362 | - public void setRecordCountPerPage(int recordCountPerPage) {
| |
| 363 | - this.recordCountPerPage = recordCountPerPage; | |
| 364 | - } | |
| 365 | - | |
| 366 | - /** | |
| 367 | - * rowNo attribute를 리턴한다. | |
| 368 | - * @return the rowNo | |
| 369 | - */ | |
| 370 | - public int getRowNo() {
| |
| 371 | - return rowNo; | |
| 372 | - } | |
| 373 | - | |
| 374 | - /** | |
| 375 | - * rowNo attribute 값을 설정한다. | |
| 376 | - * @param rowNo the rowNo to set | |
| 377 | - */ | |
| 378 | - public void setRowNo(int rowNo) {
| |
| 379 | - this.rowNo = rowNo; | |
| 380 | - } | |
| 381 | - | |
| 382 | - /** | |
| 383 | - * registSeCodeNm attribute를 리턴한다. | |
| 384 | - * @return the registSeCodeNm | |
| 385 | - */ | |
| 386 | - public String getRegistSeCodeNm() {
| |
| 387 | - return registSeCodeNm; | |
| 388 | - } | |
| 389 | - | |
| 390 | - /** | |
| 391 | - * registSeCodeNm attribute 값을 설정한다. | |
| 392 | - * @param registSeCodeNm the registSeCodeNm to set | |
| 393 | - */ | |
| 394 | - public void setRegistSeCodeNm(String registSeCodeNm) {
| |
| 395 | - this.registSeCodeNm = registSeCodeNm; | |
| 396 | - } | |
| 397 | - | |
| 398 | - /** | |
| 399 | - * bbsId attribute를 리턴한다. | |
| 400 | - * @return the bbsId | |
| 401 | - */ | |
| 402 | - public String getBbsId() {
| |
| 403 | - return bbsId; | |
| 404 | - } | |
| 405 | - | |
| 406 | - /** | |
| 407 | - * bbsId attribute 값을 설정한다. | |
| 408 | - * @param bbsId the bbsId to set | |
| 409 | - */ | |
| 410 | - public void setBbsId(String bbsId) {
| |
| 411 | - this.bbsId = bbsId; | |
| 412 | - } | |
| 413 | - | |
| 414 | - /** | |
| 415 | - * bbsNm attribute를 리턴한다. | |
| 416 | - * @return the bbsNm | |
| 417 | - */ | |
| 418 | - public String getBbsNm() {
| |
| 419 | - return bbsNm; | |
| 420 | - } | |
| 421 | - | |
| 422 | - /** | |
| 423 | - * bbsNm attribute 값을 설정한다. | |
| 424 | - * @param bbsNm the bbsNm to set | |
| 425 | - */ | |
| 426 | - public void setBbsNm(String bbsNm) {
| |
| 427 | - this.bbsNm = bbsNm; | |
| 428 | - } | |
| 429 | - | |
| 430 | - /** | |
| 431 | - * provdUrl attribute를 리턴한다. | |
| 432 | - * @return the provdUrl | |
| 433 | - */ | |
| 434 | - public String getProvdUrl() {
| |
| 435 | - return provdUrl; | |
| 436 | - } | |
| 437 | - | |
| 438 | - /** | |
| 439 | - * provdUrl attribute 값을 설정한다. | |
| 440 | - * @param provdUrl the provdUrl to set | |
| 441 | - */ | |
| 442 | - public void setProvdUrl(String provdUrl) {
| |
| 443 | - this.provdUrl = provdUrl; | |
| 444 | - } | |
| 445 | - | |
| 446 | - /** | |
| 447 | - * mngrAt attribute를 리턴한다. | |
| 448 | - * @return the mngrAt | |
| 449 | - */ | |
| 450 | - public String getMngrAt() {
| |
| 451 | - return mngrAt; | |
| 452 | - } | |
| 453 | - | |
| 454 | - /** | |
| 455 | - * mngrAt attribute 값을 설정한다. | |
| 456 | - * @param mngr the mngrAt to set | |
| 457 | - */ | |
| 458 | - public void setMngrAt(String mngrAt) {
| |
| 459 | - this.mngrAt = mngrAt; | |
| 460 | - } | |
| 461 | - | |
| 462 | - /** | |
| 463 | - * resultCode attribute를 리턴한다. | |
| 464 | - * @return the resultCode | |
| 465 | - */ | |
| 466 | - public String getResultCode() {
| |
| 467 | - return resultCode; | |
| 468 | - } | |
| 469 | - | |
| 470 | - /** | |
| 471 | - * resultCode attribute 값을 설정한다. | |
| 472 | - * @param mngr the resultCode to resultCode | |
| 473 | - */ | |
| 474 | - public void setResultCode(String resultCode) {
| |
| 475 | - this.resultCode = resultCode; | |
| 476 | - } | |
| 477 | - | |
| 478 | - public String getMenuId() {
| |
| 479 | - return menuId; | |
| 480 | - } | |
| 481 | - | |
| 482 | - public void setMenuId(String menuId) {
| |
| 483 | - this.menuId = menuId; | |
| 484 | - } | |
| 485 | - | |
| 486 | - /** | |
| 487 | - * toString 메소드를 대치한다. | |
| 488 | - */ | |
| 489 | - public String toString() {
| |
| 490 | - return ToStringBuilder.reflectionToString(this); | |
| 491 | - } | |
| 492 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/EgovCommunityManageService.java
... | ... | @@ -1,152 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.util.Map; | |
| 5 | - | |
| 6 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 7 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 8 | -import egovframework.com.cop.com.service.BoardUseInfVO; | |
| 9 | -import egovframework.com.sec.ram.service.AuthorManageVO; | |
| 10 | - | |
| 11 | -//커뮤니티 정보를 관리하기 위한 서비스 인터페이스 클래스 | |
| 12 | -public interface EgovCommunityManageService {
| |
| 13 | - | |
| 14 | - //커뮤니티 주소를 매칭하여 커뮤니티ID를 찾는다. | |
| 15 | - public String selectCmmntyFindId(String cmmntyAdres) throws Exception; | |
| 16 | - | |
| 17 | - //커뮤니티에 대한 정보를 등록한다. | |
| 18 | - public void insertCommunityInf(Community cmmnty) throws Exception; | |
| 19 | - | |
| 20 | - //커뮤니티 정보를 수정한다. | |
| 21 | - public void updateCommunityInf(Community cmmnty) throws Exception; | |
| 22 | - | |
| 23 | - //커뮤니티에 대한 정보를 삭제한다. | |
| 24 | - public void deleteCommunityInf(Community cmmnty) throws Exception; | |
| 25 | - | |
| 26 | - //커뮤니티 정보 목록을 조회한다. | |
| 27 | - public Map<String, Object> selectCommunityInfs(CommunityVO cmmntyVO) throws Exception; | |
| 28 | - | |
| 29 | - //커뮤니티 사용자 정보를 등록한다. | |
| 30 | - public String insertCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 31 | - | |
| 32 | - //커뮤니티 사용자 정보를 확인한다. | |
| 33 | - public String checkCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 34 | - | |
| 35 | - //커뮤니티 사용자 정보를 수정한다. | |
| 36 | - public void updateCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 37 | - | |
| 38 | - //커뮤니티 사용정보를 삭제한다. | |
| 39 | - public void deleteCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 40 | - | |
| 41 | - //커뮤니티 사용자 정보에 대한 목록을 조회한다. | |
| 42 | - public Map<String, Object> selectCommunityUserInfs(CommunityUserVO cmmntyUserVO) throws Exception; | |
| 43 | - | |
| 44 | - //커뮤니티에 대한 게시판 사용정보를 등록한다. | |
| 45 | - public void insertCommunityBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; | |
| 46 | - | |
| 47 | - //커뮤니티 게시판 사용정보를 수정한다. | |
| 48 | - public void updateCommunityBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; | |
| 49 | - | |
| 50 | - //커뮤니티 게사판 사용정보 목록을 조회한다. | |
| 51 | - public List<CommunityVO> selectCommunityBBSUseInf(CommunityVO cmmntyVO) throws Exception; | |
| 52 | - | |
| 53 | - //커뮤니티 게사판 사용정보 목록을 조회한다. | |
| 54 | - public List<CommunityVO> selectCommunityMenuList(CommunityVO cmmntyVO) throws Exception; | |
| 55 | - | |
| 56 | - //커뮤니티에 대한 기본정보를 조회한다. | |
| 57 | - public CommunityVO selectCommunityInfo(CommunityVO cmmntyVO) throws Exception; | |
| 58 | - | |
| 59 | - //커뮤니티에 대한 특정 사용자 정보를 조회한다. | |
| 60 | - public CommunityVO selectCommunityInf(CommunityVO cmmntyVO) throws Exception; | |
| 61 | - | |
| 62 | - //커뮤니티 관리자 정보를 조회한다. | |
| 63 | - public CommunityUser selectManager(CommunityVO cmmntyVO) throws Exception; | |
| 64 | - | |
| 65 | - //포트릿을 위한 커뮤니티 정보 목록 정보를 조회한다. | |
| 66 | - public List<CommunityVO> selectCmmntyListPortlet(CommunityVO cmmntyVO) throws Exception; | |
| 67 | - | |
| 68 | - //모든 커뮤니티 목록을 조회한다. | |
| 69 | - public List<CommunityVO> selectAllCmmnty(CommunityVO cmmntyVO) throws Exception; | |
| 70 | - | |
| 71 | - //관리자 여부를 확인한다. | |
| 72 | - public boolean isManager(CommunityUser cmmntyUser) throws Exception; | |
| 73 | - | |
| 74 | - //모든 권한목록을 조회한다. | |
| 75 | - public List<AuthorManageVO> selectAuthorAllList(AuthorManageVO authorManageVO) throws Exception; | |
| 76 | - | |
| 77 | - //커뮤니티에 대한 특정 사용자 정보를 조회한다. | |
| 78 | - public CommunityUser selectSingleCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 79 | - | |
| 80 | - //커뮤니티 정보 목록을 조회한다. | |
| 81 | - public List<CommunityUser> selectMyCommunityList(CommunityUser cmmntyUser) throws Exception; | |
| 82 | - | |
| 83 | - //커뮤니티명에 대한 중복확인 결과값을 얻어온다. | |
| 84 | - public int checkCmmntyNmDplct(CommunityVO cmmntyVO) throws Exception; | |
| 85 | - | |
| 86 | - //커뮤니티주소에 대한 중복확인 결과값을 얻어온다. | |
| 87 | - public int checkCmmntyAdresDplct(CommunityVO cmmntyVO) throws Exception; | |
| 88 | - | |
| 89 | - //커뮤니티에 대한 메뉴를 등록한다. | |
| 90 | - public void insertCommunityMnu(CommunityMnu cmmntyMnu) throws Exception; | |
| 91 | - | |
| 92 | - //커뮤니티에 메뉴를 수정한다. | |
| 93 | - public void updateCommunityMnu(CommunityMnu cmmntyMnu) throws Exception; | |
| 94 | - | |
| 95 | - //커뮤니티에 메뉴 정렬순서를 수정한다. | |
| 96 | - public void updateCommunitySortOrdr(CommunityMnu cmmntyMnu) throws Exception; | |
| 97 | - | |
| 98 | - //사용자별 커뮤니티 가입 목록을 조회한다. | |
| 99 | - public List<CommunityUser> selectMyCmmntyList(CommunityUser cmmntyUser) throws Exception; | |
| 100 | - | |
| 101 | - //게시판 속성 정보의 목록을 조회 한다. | |
| 102 | - public Map<String, Object> selectCmmntyMasterInfs(CommunityMnu communityMnu) throws Exception; | |
| 103 | - | |
| 104 | - //게시판 속성정보 한 건을 상세조회한다. | |
| 105 | - public CommunityMnu selectCmmntyMasterInf(CommunityMnu communityMnu) throws Exception; | |
| 106 | - | |
| 107 | - //커뮤니티 메인노출유무를 설정한다. | |
| 108 | - public void updateCommunityMnuMainAt(CommunityMnu communityMnu) throws Exception; | |
| 109 | - | |
| 110 | - //커뮤니티 게시판 메인 목록을 조회한다. | |
| 111 | - public List<CommunityMnu> selectCommunityBbsMaster(CommunityVO cmmntyVO) throws Exception; | |
| 112 | - | |
| 113 | - //가입한 커뮤니티 게시판에 최신글을 조회한다. | |
| 114 | - public List<BoardVO> selectCommunityBoardMyArticles(CommunityVO cmmntyVO) throws Exception; | |
| 115 | - | |
| 116 | - //커뮤니티 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 117 | - public List<BoardVO> selectCommunityBoardAllArticles(CommunityVO cmmntyVO) throws Exception; | |
| 118 | - | |
| 119 | - //커뮤니티 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 120 | - public int selectCommunityBoardAllArticlesCnt(CommunityVO cmmntyVO) throws Exception; | |
| 121 | - | |
| 122 | - //조건에 맞는 메뉴별 신규목록을 조회 한다. | |
| 123 | - public List<BoardVO> selectBoardNewArticles(BoardVO boardVO) throws Exception; | |
| 124 | - | |
| 125 | - //커뮤니티 게시판 속성정보를 수정한다. | |
| 126 | - public void updateCmmntyBBSMasterInf(BoardMasterVO boardMaster) throws Exception; | |
| 127 | - | |
| 128 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 129 | - public List<BoardVO> selectCmmntyBoardArticles(BoardVO boardVO) throws Exception; | |
| 130 | - | |
| 131 | - //커뮤니티 게시판을 등록한다. | |
| 132 | - public void insertBBSMasterInf(CommunityMnu cmmntyMnu) throws Exception; | |
| 133 | - | |
| 134 | - //커뮤니티 게시판 수정 한다. | |
| 135 | - public void updateBBSMasterInf(CommunityMnu cmmntyMnu) throws Exception; | |
| 136 | - | |
| 137 | - //모든 커뮤니티 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 138 | - public List<BoardVO> selectSearchCommunityBoardArticleList(BoardVO boardVO) throws Exception ; | |
| 139 | - | |
| 140 | - //모든 커뮤니티 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 141 | - public int selectSearchCommunityBoardArticleListCnt(BoardVO boardVO) throws Exception; | |
| 142 | - | |
| 143 | - //모든 커뮤니티 알림장 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 144 | - public List<BoardVO> selectSearchCommunityNotifyArticleList(BoardVO boardVO) throws Exception; | |
| 145 | - | |
| 146 | - //모든 커뮤니티 알림장 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 147 | - public int selectSearchCommunityNotifyArticleListCnt(BoardVO boardVO) throws Exception; | |
| 148 | - | |
| 149 | - //모든 커뮤니티 알림장 게시판을 조회한다. | |
| 150 | - public List<BoardVO> selectSearchCommunityNotifyUrlList(BoardVO boardVO) throws Exception; | |
| 151 | -} | |
| 152 | - |
--- base/src/main/java/egovframework/com/cop/cmy/service/impl/CommunityManageMapper.java
... | ... | @@ -1,153 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 4 | -import egovframework.com.cop.cmy.service.*; | |
| 5 | -import egovframework.com.cop.com.service.BoardUseInfVO; | |
| 6 | -import egovframework.com.sec.ram.service.AuthorManageVO; | |
| 7 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 8 | - | |
| 9 | -import java.util.List; | |
| 10 | - | |
| 11 | -//커뮤니티 정보를 관리하기 위한 데이터 접근 클래스 | |
| 12 | -@Mapper("communityManageMapper") | |
| 13 | -public interface CommunityManageMapper { | |
| 14 | - | |
| 15 | - //게시판 속성정보 한 건을 상세조회 한다. | |
| 16 | - public String selectCmmntyFindId(String cmmntyAdres) throws Exception; | |
| 17 | - | |
| 18 | - //커뮤니티 정보를 등록한다. | |
| 19 | - public void insertCommunityInf(Community cmmnty) throws Exception; | |
| 20 | - | |
| 21 | - //커뮤니티 정보를 수정한다. | |
| 22 | - public void updateCommunityInf(Community cmmnty) throws Exception; | |
| 23 | - | |
| 24 | - //커뮤니티 정보를 삭제한다. | |
| 25 | - public void deleteCommunityInf(Community cmmnty) throws Exception; | |
| 26 | - | |
| 27 | - //커뮤니티 정보 목록을 조회한다. | |
| 28 | - public List<CommunityVO> selectCommunityInfs(CommunityVO cmmntyVO) throws Exception; | |
| 29 | - | |
| 30 | - //커뮤니티 정보 목록에 대한 전체 건수를 조회한다. | |
| 31 | - public int selectCommunityInfsCnt(CommunityVO cmmntyVO) throws Exception; | |
| 32 | - | |
| 33 | - //커뮤니티 사용자 정보를 등록한다. | |
| 34 | - public void insertCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 35 | - | |
| 36 | - //커뮤니티 사용자 정보를 수정한다. | |
| 37 | - public void updateCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 38 | - | |
| 39 | - //커뮤니티 사용자 정보를 삭제한다. | |
| 40 | - public void deleteCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 41 | - | |
| 42 | - //커뮤니티 사용자 정보 목록을 조회한다. | |
| 43 | - public List<CommunityUserVO> selectCommunityUserInfs(CommunityUserVO cmmntyUserVO) throws Exception; | |
| 44 | - | |
| 45 | - //커뮤니티 사용자 정보 목록에 대한 전체 건수를 조회한다. | |
| 46 | - public int selectCommunityUserInfsCnt(CommunityUserVO cmmntyUserVO) throws Exception; | |
| 47 | - | |
| 48 | - //커뮤니티 게시판 사용정보를 등록한다. | |
| 49 | - public void insertCommunityBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; | |
| 50 | - | |
| 51 | - //커뮤니티 게시판 사용정보를 수정한다. | |
| 52 | - public void updateCommunityBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; | |
| 53 | - | |
| 54 | - //커뮤니티 게사판 사용정보 목록을 조회한다. | |
| 55 | - public List<CommunityVO> selectCommunityBBSUseInf(CommunityVO cmmntyVO) throws Exception; | |
| 56 | - | |
| 57 | - //커뮤니티 게사판 사용정보 목록을 조회한다. | |
| 58 | - public List<CommunityVO> selectCommunityMenuList(CommunityVO cmmntyVO) throws Exception; | |
| 59 | - | |
| 60 | - //커뮤니티에 대한 기본정보를 조회한다. | |
| 61 | - public CommunityVO selectCommunityInfo(CommunityVO cmmntyVO) throws Exception; | |
| 62 | - | |
| 63 | - //커뮤니티에 대한 상세정보를 조회한다. | |
| 64 | - public CommunityVO selectCommunityInf(CommunityVO cmmntyVO) throws Exception; | |
| 65 | - | |
| 66 | - //포트릿을 위한 커뮤니티 정보 목록 정보를 조회한다. | |
| 67 | - public List<CommunityVO> selectCmmntyListPortlet(CommunityVO cmmntyVO) throws Exception; | |
| 68 | - | |
| 69 | - //커뮤니티 사용여부를 조회한다. | |
| 70 | - public int checkExistUser(CommunityUser cmmntyUser) throws Exception; | |
| 71 | - | |
| 72 | - //모든 커뮤니티 목록을 조회한다. | |
| 73 | - public List<CommunityVO> selectAllCmmnty(CommunityVO cmmntyVO) throws Exception; | |
| 74 | - | |
| 75 | - //커뮤니티를 사용하는 모든 사용자 정보를 삭제한다. | |
| 76 | - public void deleteAllCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 77 | - | |
| 78 | - //커뮤니티에 대한 특정 사용자 정보를 조회한다. | |
| 79 | - public CommunityUser selectSingleCommunityUserInf(CommunityUser cmmntyUser) throws Exception; | |
| 80 | - | |
| 81 | - //커뮤니티에 대한 관리자 정보를 조회한다. | |
| 82 | - public List<CommunityUser> selectCommunityManagerInfs(CommunityVO cmmnty) throws Exception; | |
| 83 | - | |
| 84 | - //모든 권한목록을 조회한다. | |
| 85 | - public List<AuthorManageVO> selectAuthorAllList(AuthorManageVO authorManageVO) throws Exception; | |
| 86 | - | |
| 87 | - //커뮤니티명에 대한 중복확인 결과값을 얻어온다. | |
| 88 | - public int checkCmmntyNmDplct(CommunityVO cmmntyVO); | |
| 89 | - | |
| 90 | - //커뮤니티주소에 대한 중복확인 결과값을 얻어온다. | |
| 91 | - public int checkCmmntyAdresDplct(CommunityVO cmmntyVO); | |
| 92 | - | |
| 93 | - //커뮤니티에 대한 메뉴를 등록한다. | |
| 94 | - public void insertCommunityMnu(CommunityMnu cmmntyMnu) throws Exception; | |
| 95 | - | |
| 96 | - //커뮤니티 대한 메뉴를 수정한다. | |
| 97 | - public void updateCommunityMnu(CommunityMnu cmmntyMnu) throws Exception; | |
| 98 | - | |
| 99 | - //커뮤니티 메뉴정보 목록을 조회한다. | |
| 100 | - public CommunityMnu selectCommunityMnuSortOrdr(CommunityMnu cmmntyMnu) throws Exception; | |
| 101 | - | |
| 102 | - //커뮤니티 메뉴 정렬순서를 수정한다. | |
| 103 | - public void updateCommunityMnuSortOrdr(CommunityMnu cmmntyMnu) throws Exception; | |
| 104 | - | |
| 105 | - //커뮤니티 메뉴 메인노출 여부설정. | |
| 106 | - public void updateCommunityMnuMainAt(CommunityMnu cmmntyMnu) throws Exception; | |
| 107 | - | |
| 108 | - //사용자별 커뮤니티 가입 목록을 조회한다. | |
| 109 | - public List<CommunityUser> selectMyCmmntyList(CommunityUser cmmntyUser) throws Exception; | |
| 110 | - | |
| 111 | - //게시판 속성정보 목록을 조회한다. | |
| 112 | - public List<CommunityMnu> selectCmmntyBBSMasterInfs(CommunityMnu cmmntyMnu) throws Exception; | |
| 113 | - | |
| 114 | - //게시판 속성정보 목록 숫자를 조회한다 | |
| 115 | - public int selectCmmntyBBSMasterInfsCnt(CommunityMnu cmmntyMnu) throws Exception; | |
| 116 | - | |
| 117 | - //게시판 속성정보 한 건을 상세조회 한다. | |
| 118 | - public CommunityMnu selectCmmntyBBSMasterInf(CommunityMnu vo) throws Exception; | |
| 119 | - | |
| 120 | - //커뮤니티 게시판 메인 목록을 가져온다. | |
| 121 | - public List<CommunityMnu> selectCommunityBbsMaster(CommunityVO cmmntyVO) throws Exception; | |
| 122 | - | |
| 123 | - //조건에 맞는 메뉴별 신규목록을 조회 한다. | |
| 124 | - public List<BoardVO> selectCommunityBoardMyArticles(CommunityVO cmmntyVO) throws Exception; | |
| 125 | - | |
| 126 | - //커뮤니티 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 127 | - public List<BoardVO> selectCommunityBoardAllArticles(CommunityVO cmmntyVO) throws Exception; | |
| 128 | - | |
| 129 | - //커뮤니티 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 130 | - public int selectCommunityBoardAllArticlesCnt(CommunityVO cmmntyVO) throws Exception; | |
| 131 | - | |
| 132 | - //조건에 맞는 메뉴별 신규목록을 조회 한다. | |
| 133 | - public List<BoardVO> selectBoardNewArticles(BoardVO boardVO) throws Exception; | |
| 134 | - | |
| 135 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 136 | - public List<BoardVO> selectCmmntyBoardArticles(BoardVO boardVO) throws Exception; | |
| 137 | - | |
| 138 | - //모든 커뮤니티 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 139 | - public List<BoardVO> selectSearchCommunityBoardArticleList(BoardVO boardVO) throws Exception; | |
| 140 | - | |
| 141 | - //모든 커뮤니티 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 142 | - public int selectSearchCommunityBoardArticleListCnt(BoardVO boardVO) throws Exception; | |
| 143 | - | |
| 144 | - //모든 커뮤니티 알림장 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 145 | - public List<BoardVO> selectSearchCommunityNotifyArticleList(BoardVO boardVO) throws Exception; | |
| 146 | - | |
| 147 | - //모든 커뮤니티 알림장 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 148 | - public int selectSearchCommunityNotifyArticleListCnt(BoardVO boardVO) throws Exception; | |
| 149 | - | |
| 150 | - //모든 커뮤니티 알림장 게시판을 조회한다. | |
| 151 | - public List<BoardVO> selectSearchCommunityNotifyUrlList(BoardVO boardVO) throws Exception; | |
| 152 | - | |
| 153 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/service/impl/EgovCommunityManageServiceImpl.java
... | ... | @@ -1,500 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.service.impl; | |
| 2 | - | |
| 3 | -import java.util.ArrayList; | |
| 4 | -import java.util.HashMap; | |
| 5 | -import java.util.Iterator; | |
| 6 | -import java.util.List; | |
| 7 | -import java.util.Map; | |
| 8 | - | |
| 9 | -import javax.annotation.Resource; | |
| 10 | - | |
| 11 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 12 | -import egovframework.com.cop.bbs.service.impl.BBSAttributeManageMapper; | |
| 13 | -import egovframework.com.cop.com.service.BoardUseInfVO; | |
| 14 | -import org.apache.log4j.Logger; | |
| 15 | -import org.springframework.stereotype.Service; | |
| 16 | - | |
| 17 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 18 | -import egovframework.com.cop.bbs.service.BBSAttributeManageService; | |
| 19 | - | |
| 20 | -import egovframework.com.cop.cmy.service.Community; | |
| 21 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 22 | -import egovframework.com.cop.cmy.service.CommunityUserVO; | |
| 23 | -import egovframework.com.cop.cmy.service.CommunityVO; | |
| 24 | -import egovframework.com.cop.cmy.service.CommunityMnu; | |
| 25 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 26 | -import egovframework.com.sec.ram.service.AuthorManageVO; | |
| 27 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 28 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 29 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 30 | - | |
| 31 | -//커뮤니티 정보를 관리하기 위한 서비스 구현 클래스 | |
| 32 | -@Service("EgovCommunityManageService")
| |
| 33 | -public class EgovCommunityManageServiceImpl extends EgovAbstractServiceImpl implements EgovCommunityManageService {
| |
| 34 | - | |
| 35 | - @Resource(name = "bbsAttributeManageService") | |
| 36 | - private BBSAttributeManageService bbsAttrbService; | |
| 37 | - | |
| 38 | - @Resource(name = "communityManageMapper") | |
| 39 | - private CommunityManageMapper communityManageMapper; | |
| 40 | - | |
| 41 | - @Resource(name = "egovCmmntyIdGnrService") | |
| 42 | - private EgovIdGnrService idgenService; | |
| 43 | - | |
| 44 | - @Resource(name = "bbsAttributeManageMapper") | |
| 45 | - private BBSAttributeManageMapper attrbMngMapper; | |
| 46 | - | |
| 47 | - @Resource(name = "propertiesService") | |
| 48 | - protected EgovPropertyService propertyService; | |
| 49 | - | |
| 50 | - Logger log = Logger.getLogger(this.getClass()); | |
| 51 | - | |
| 52 | - //커뮤니티 주소를 매칭하여 커뮤니티ID를 찾는다. | |
| 53 | - public String selectCmmntyFindId(String cmmntyAdres) throws Exception {
| |
| 54 | - return communityManageMapper.selectCmmntyFindId(cmmntyAdres); | |
| 55 | - } | |
| 56 | - | |
| 57 | - //커뮤니티에 대한 정보를 삭제한다. | |
| 58 | - public void deleteCommunityInf(Community cmmnty) throws Exception {
| |
| 59 | - communityManageMapper.deleteCommunityInf(cmmnty); | |
| 60 | - | |
| 61 | - //커뮤니티에서 사용되는 게시판을 폐쇄시킨다. | |
| 62 | - //BoardUseInfVO bdUseVO = new BoardUseInfVO(); | |
| 63 | - | |
| 64 | - //bdUseVO.setLastUpdusrId(cmmnty.getLastUpdusrId()); | |
| 65 | - //bdUseVO.setCmmntyId(cmmnty.getCmmntyId()); | |
| 66 | - | |
| 67 | - //bbsUseService.deleteAllBBSUseInfByCmmnty(bdUseVO); | |
| 68 | - | |
| 69 | - //커뮤니티 사용자도 삭제처리해야 한다. | |
| 70 | - //CommunityUser cmmntyUser = new CommunityUser(); | |
| 71 | - //cmmntyUser.setSecsnDe(EgovDateUtil.getToday()); | |
| 72 | - //cmmntyUser.setCmmntyId(cmmnty.getCmmntyId()); | |
| 73 | - //cmmntyUser.setLastUpdusrId(cmmnty.getLastUpdusrId()); | |
| 74 | - | |
| 75 | - //communityManageMapper.deleteAllCommunityUserInf(cmmntyUser); | |
| 76 | - } | |
| 77 | - | |
| 78 | - //커뮤니티 사용정보를 삭제한다. | |
| 79 | - public void deleteCommunityUserInf(CommunityUser cmmntyUser) throws Exception {
| |
| 80 | - communityManageMapper.deleteCommunityUserInf(cmmntyUser); | |
| 81 | - } | |
| 82 | - | |
| 83 | - //커뮤니티에 대한 게시판 사용정보를 등록한다. | |
| 84 | - public void insertCommunityBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
| |
| 85 | - //communityManageMapper.insertCommunityBBSUseInf(bdUseInf); | |
| 86 | - //커뮤니티에 게시판을 하나 추가하게 되면 - _- 해당 게시판이 등록된 커뮤니티의 | |
| 87 | - //모든 소속사용자에게 사용 권한을 줘야하나 - _-? 일단 그렇게 진행 | |
| 88 | - } | |
| 89 | - | |
| 90 | - //커뮤니티에 대한 정보를 등록한다. | |
| 91 | - public void insertCommunityInf(Community cmmnty) throws Exception {
| |
| 92 | - | |
| 93 | - String cmmntyId = idgenService.getNextStringId(); | |
| 94 | - | |
| 95 | - cmmnty.setCmmntyId(cmmntyId); | |
| 96 | - communityManageMapper.insertCommunityInf(cmmnty); | |
| 97 | - | |
| 98 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 99 | - cmmntyUser.setCmmntyId(cmmnty.getCmmntyId()); | |
| 100 | - cmmntyUser.setEmplyrId(cmmnty.getEmplyrId()); | |
| 101 | - cmmntyUser.setEmplyrNm(cmmnty.getFrstRegisterNm()); | |
| 102 | - cmmntyUser.setMngrAt("Y");
| |
| 103 | - cmmntyUser.setAuthorCode("10");
| |
| 104 | - cmmntyUser.setUseAt("Y");
| |
| 105 | - cmmntyUser.setFrstRegisterId(cmmnty.getFrstRegisterId()); | |
| 106 | - communityManageMapper.insertCommunityUserInf(cmmntyUser); | |
| 107 | - | |
| 108 | - List<CommunityMnu> result = makeBdMstrListforCmmnty(cmmnty); | |
| 109 | - | |
| 110 | - Iterator<CommunityMnu> iter = result.iterator(); | |
| 111 | - while (iter.hasNext()) {
| |
| 112 | - insertBBSMasterInf(iter.next()); | |
| 113 | - } | |
| 114 | - } | |
| 115 | - | |
| 116 | - //커뮤니티용 게사판 정보를 생성한다. | |
| 117 | - private List<CommunityMnu> makeBdMstrListforCmmnty(Community cmmnty) {
| |
| 118 | - CommunityMnu bdMstr; | |
| 119 | - ArrayList<CommunityMnu> result = new ArrayList<CommunityMnu>(); | |
| 120 | - | |
| 121 | - for (int i = 0; i < 4; i++) {
| |
| 122 | - bdMstr = new CommunityMnu(); | |
| 123 | - | |
| 124 | - bdMstr.setSiteId(cmmnty.getSiteId()); | |
| 125 | - bdMstr.setSysTyCode(cmmnty.getSysTyCode()); | |
| 126 | - bdMstr.setFrstRegisterId(cmmnty.getFrstRegisterId()); | |
| 127 | - bdMstr.setUseAt("Y"); //사용여부
| |
| 128 | - bdMstr.setTrgetId(cmmnty.getCmmntyId()); //커뮤니티 아이디 | |
| 129 | - bdMstr.setRegistSeCode("REGC06"); //등록구분코드(REGC06:커뮤니티 게시판 등록)
| |
| 130 | - //bdMstr.setTmplatId("TMPLAT_0000000000014"); //템플릿코드(기본커뮤니티)
| |
| 131 | - bdMstr.setMainOutptAt("Y");
| |
| 132 | - | |
| 133 | - if (i == 0) {
| |
| 134 | - if("CMY02".equals(cmmnty.getCmmntySeCode())) {
| |
| 135 | - bdMstr.setBbsNm("알림장"); //게시판명
| |
| 136 | - bdMstr.setNotifyAt("Y");
| |
| 137 | - } else {
| |
| 138 | - bdMstr.setBbsNm("공지게시판"); //게시판명
| |
| 139 | - } | |
| 140 | - bdMstr.setReplyPosblAt("N"); //답장여부
| |
| 141 | - bdMstr.setFileAtchPosblAt("Y"); //파일첨부가능여부
| |
| 142 | - bdMstr.setCommentUseAt("N"); //뎃글사용우무
| |
| 143 | - //bdMstr.setPosblAtchFileNumber("5"); //파일첨부가능갯수
| |
| 144 | - bdMstr.setBbsAttrbCode("BBSA03"); //게시판 속성(BBSA02:겔러리 BBSA03:일반)
| |
| 145 | - bdMstr.setInqireAuthor("02"); //보기권한(01:손님 02:준회원 03:정회원 10:관리자)
| |
| 146 | - bdMstr.setRegistAuthor("10"); //쓰기권한
| |
| 147 | - bdMstr.setAnswerAuthor("10"); //답글권한
| |
| 148 | - } else if (i == 1) {
| |
| 149 | - bdMstr.setReplyPosblAt("N");
| |
| 150 | - bdMstr.setFileAtchPosblAt("Y");
| |
| 151 | - bdMstr.setCommentUseAt("");
| |
| 152 | - //bdMstr.setPosblAtchFileNumber("5");
| |
| 153 | - bdMstr.setBbsAttrbCode("BBSA03");
| |
| 154 | - bdMstr.setBbsNm("자료실");
| |
| 155 | - bdMstr.setInqireAuthor("02"); //보기권한(01:손님 02:준회원 03:정회원 10:관리자)
| |
| 156 | - bdMstr.setRegistAuthor("02"); //쓰기권한
| |
| 157 | - bdMstr.setAnswerAuthor("02"); //답글권한
| |
| 158 | - } else if (i == 2) {
| |
| 159 | - bdMstr.setReplyPosblAt("N");
| |
| 160 | - bdMstr.setFileAtchPosblAt("Y");
| |
| 161 | - bdMstr.setCommentUseAt("Y");
| |
| 162 | - //bdMstr.setPosblAtchFileNumber("5");
| |
| 163 | - bdMstr.setBbsAttrbCode("BBSA02");
| |
| 164 | - bdMstr.setBbsNm("사진게시판");
| |
| 165 | - bdMstr.setInqireAuthor("02"); //보기권한(01:손님 02:준회원 03:정회원 10:관리자)
| |
| 166 | - bdMstr.setRegistAuthor("02"); //쓰기권한
| |
| 167 | - bdMstr.setAnswerAuthor("02"); //답글권한
| |
| 168 | - } else {
| |
| 169 | - bdMstr.setReplyPosblAt("Y");
| |
| 170 | - bdMstr.setFileAtchPosblAt("Y");
| |
| 171 | - bdMstr.setCommentUseAt("Y");
| |
| 172 | - //bdMstr.setPosblAtchFileNumber("5");
| |
| 173 | - bdMstr.setBbsAttrbCode("BBSA03");
| |
| 174 | - bdMstr.setBbsNm("자유게시판");
| |
| 175 | - bdMstr.setInqireAuthor("02"); //보기권한(01:손님 02:준회원 03:정회원 10:관리자)
| |
| 176 | - bdMstr.setRegistAuthor("02"); //쓰기권한
| |
| 177 | - bdMstr.setAnswerAuthor("02"); //답글권한
| |
| 178 | - } | |
| 179 | - result.add(bdMstr); | |
| 180 | - } | |
| 181 | - | |
| 182 | - return result; | |
| 183 | - } | |
| 184 | - | |
| 185 | - //커뮤니티 사용자 정보를 등록한다. | |
| 186 | - public String insertCommunityUserInf(CommunityUser cmmntyUser) throws Exception {
| |
| 187 | - //cmmntyId | |
| 188 | - CommunityVO vo = new CommunityVO(); | |
| 189 | - | |
| 190 | - vo.setCmmntyId(cmmntyUser.getCmmntyId()); | |
| 191 | - | |
| 192 | - String retVal = ""; | |
| 193 | - int cnt = communityManageMapper.checkExistUser(cmmntyUser); | |
| 194 | - if (cnt == 0) {
| |
| 195 | - communityManageMapper.insertCommunityUserInf(cmmntyUser); | |
| 196 | - } else {
| |
| 197 | - retVal = "EXIST"; | |
| 198 | - } | |
| 199 | - | |
| 200 | - return retVal; | |
| 201 | - } | |
| 202 | - | |
| 203 | - //커뮤니티 사용자 정보를 확인한다. | |
| 204 | - public String checkCommunityUserInf(CommunityUser cmmntyUser) throws Exception {
| |
| 205 | - // 회원가입 승인처리 적용시 기존 insertCommunityUserInf 대신 사용자 확인만 확인 | |
| 206 | - | |
| 207 | - //cmmntyId | |
| 208 | - CommunityVO vo = new CommunityVO(); | |
| 209 | - vo.setCmmntyId(cmmntyUser.getCmmntyId()); | |
| 210 | - | |
| 211 | - if (communityManageMapper.checkExistUser(cmmntyUser) == 0) {
| |
| 212 | - return ""; | |
| 213 | - } else {
| |
| 214 | - return "EXIST"; | |
| 215 | - } | |
| 216 | - } | |
| 217 | - | |
| 218 | - //커뮤니티 게사판 사용정보 목록을 조회한다. | |
| 219 | - public List<CommunityVO> selectCommunityBBSUseInf(CommunityVO cmmntyVO) throws Exception {
| |
| 220 | - return communityManageMapper.selectCommunityBBSUseInf(cmmntyVO); | |
| 221 | - } | |
| 222 | - | |
| 223 | - //커뮤니티 게사판 사용정보 목록을 조회한다. | |
| 224 | - public List<CommunityVO> selectCommunityMenuList(CommunityVO cmmntyVO) throws Exception {
| |
| 225 | - return communityManageMapper.selectCommunityMenuList(cmmntyVO); | |
| 226 | - } | |
| 227 | - | |
| 228 | - //커뮤니티에 대한 기본정보를 조회한다. | |
| 229 | - public CommunityVO selectCommunityInfo(CommunityVO cmmntyVO) throws Exception {
| |
| 230 | - return communityManageMapper.selectCommunityInfo(cmmntyVO); | |
| 231 | - } | |
| 232 | - | |
| 233 | - //커뮤니티에 대한 특정 사용자 정보를 조회한다. | |
| 234 | - public CommunityVO selectCommunityInf(CommunityVO cmmntyVO) throws Exception {
| |
| 235 | - | |
| 236 | - //CommunityVO vo = communityManageMapper.selectCommunityInf(cmmntyVO); | |
| 237 | - | |
| 238 | - //List<CommunityVO> result = communityManageMapper.selectCommunityBBSUseInf(cmmntyVO); | |
| 239 | - | |
| 240 | - //CommunityUser cmmntyUser = new CommunityUser(); | |
| 241 | - //cmmntyUser.setEmplyrId(cmmntyVO.getEmplyrId()); | |
| 242 | - //cmmntyUser.setCmmntyId(cmmntyVO.getCmmntyId()); | |
| 243 | - //cmmntyUser = communityManageMapper.selectSingleCommunityUserInf(cmmntyUser); | |
| 244 | - | |
| 245 | - //Map<String, Object> map = new HashMap<String, Object>(); | |
| 246 | - | |
| 247 | - //map.put("cmmntyMnuList", result);
| |
| 248 | - //map.put("cmmntyVO", vo);
| |
| 249 | - //map.put("cmmntyUser", cmmntyUser);
| |
| 250 | - | |
| 251 | - return communityManageMapper.selectCommunityInf(cmmntyVO); | |
| 252 | - } | |
| 253 | - | |
| 254 | - //커뮤니티 관리자 정보를 조회한다. | |
| 255 | - public CommunityUser selectManager(CommunityVO cmmntyVO) throws Exception {
| |
| 256 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 257 | - | |
| 258 | - List<CommunityUser> managers = communityManageMapper.selectCommunityManagerInfs(cmmntyVO); | |
| 259 | - | |
| 260 | - if (managers.size() == 1) {
| |
| 261 | - cmmntyUser.setEmplyrId(managers.get(0).getEmplyrId()); | |
| 262 | - cmmntyUser.setEmplyrNm(managers.get(0).getEmplyrNm()); | |
| 263 | - } else if (managers.size() > 1) {
| |
| 264 | - cmmntyUser.setEmplyrId(managers.get(0).getEmplyrId()); | |
| 265 | - cmmntyUser.setEmplyrNm(managers.get(0).getEmplyrNm() + "외 " + (managers.size() - 1) + "명"); | |
| 266 | - } else {
| |
| 267 | - // no-op | |
| 268 | - log.debug("No managers...");
| |
| 269 | - } | |
| 270 | - | |
| 271 | - return cmmntyUser; | |
| 272 | - } | |
| 273 | - | |
| 274 | - //커뮤니티 정보 목록을 조회한다. | |
| 275 | - public Map<String, Object> selectCommunityInfs(CommunityVO cmmntyVO) throws Exception {
| |
| 276 | - | |
| 277 | - List<CommunityVO> result = communityManageMapper.selectCommunityInfs(cmmntyVO); | |
| 278 | - int cnt = communityManageMapper.selectCommunityInfsCnt(cmmntyVO); | |
| 279 | - | |
| 280 | - Map<String, Object> map = new HashMap<String, Object>(); | |
| 281 | - | |
| 282 | - map.put("resultList", result);
| |
| 283 | - map.put("resultCnt", Integer.toString(cnt));
| |
| 284 | - | |
| 285 | - return map; | |
| 286 | - } | |
| 287 | - | |
| 288 | - //커뮤니티 사용자 정보에 대한 목록을 조회한다. | |
| 289 | - public Map<String, Object> selectCommunityUserInfs(CommunityUserVO cmmntyUserVO) throws Exception {
| |
| 290 | - return null; | |
| 291 | - } | |
| 292 | - | |
| 293 | - //커뮤니티 게시판 사용정보를 수정한다. | |
| 294 | - public void updateCommunityBBSUseInf(BoardUseInfVO bdUseInf) throws Exception {
| |
| 295 | - communityManageMapper.updateCommunityBBSUseInf(bdUseInf); | |
| 296 | - } | |
| 297 | - | |
| 298 | - //커뮤니티 정보를 수정한다. | |
| 299 | - public void updateCommunityInf(Community cmmnty) throws Exception {
| |
| 300 | - //CommunityUser cmmntyUser = new CommunityUser(); | |
| 301 | - | |
| 302 | - //cmmntyUser.setUseAt("Y");
| |
| 303 | - //cmmntyUser.setMngrAt("Y");
| |
| 304 | - //cmmntyUser.setAuthorCode("10");
| |
| 305 | - //cmmntyUser.setLastUpdusrId(cmmnty.getLastUpdusrId()); | |
| 306 | - ///cmmntyUser.setCmmntyId(cmmnty.getCmmntyId()); | |
| 307 | - //cmmntyUser.setEmplyrId(cmmnty.getEmplyrId()); | |
| 308 | - | |
| 309 | - communityManageMapper.updateCommunityInf(cmmnty); | |
| 310 | - //communityManageMapper.updateCommunityUserInf(cmmntyUser); | |
| 311 | - } | |
| 312 | - | |
| 313 | - //커뮤니티 사용자 정보를 수정한다. | |
| 314 | - public void updateCommunityUserInf(CommunityUser cmmntyUser) throws Exception {
| |
| 315 | - communityManageMapper.updateCommunityUserInf(cmmntyUser); | |
| 316 | - } | |
| 317 | - | |
| 318 | - //포트릿을 위한 커뮤니티 정보 목록 정보를 조회한다. | |
| 319 | - public List<CommunityVO> selectCmmntyListPortlet(CommunityVO cmmntyVO) throws Exception {
| |
| 320 | - return communityManageMapper.selectCmmntyListPortlet(cmmntyVO); | |
| 321 | - } | |
| 322 | - | |
| 323 | - //모든 커뮤니티 목록을 조회한다. | |
| 324 | - public List<CommunityVO> selectAllCmmnty(CommunityVO cmmntyVO) throws Exception {
| |
| 325 | - return communityManageMapper.selectAllCmmnty(cmmntyVO); | |
| 326 | - } | |
| 327 | - | |
| 328 | - //관리자 여부를 확인한다. | |
| 329 | - public boolean isManager(CommunityUser cmmntyUser) throws Exception {
| |
| 330 | - CommunityUser result = communityManageMapper.selectSingleCommunityUserInf(cmmntyUser); | |
| 331 | - | |
| 332 | - if(result == null) {
| |
| 333 | - return false; | |
| 334 | - } | |
| 335 | - | |
| 336 | - if (("10".equals(result.getAuthorCode()) || "Y".equals(result.getMngrAt())) && "Y".equals(result.getUseAt())) {
| |
| 337 | - return true; | |
| 338 | - } | |
| 339 | - | |
| 340 | - return false; | |
| 341 | - } | |
| 342 | - | |
| 343 | - //모든 권한목록을 조회한다. | |
| 344 | - public List<AuthorManageVO> selectAuthorAllList(AuthorManageVO authorManageVO) throws Exception {
| |
| 345 | - return communityManageMapper.selectAuthorAllList(authorManageVO); | |
| 346 | - } | |
| 347 | - | |
| 348 | - //커뮤니티에 대한 특정 사용자 정보를 조회한다. | |
| 349 | - public CommunityUser selectSingleCommunityUserInf(CommunityUser cmmntyUser) throws Exception {
| |
| 350 | - return communityManageMapper.selectSingleCommunityUserInf(cmmntyUser); | |
| 351 | - } | |
| 352 | - | |
| 353 | - //커뮤니티 정보 목록을 조회한다. | |
| 354 | - public List<CommunityUser> selectMyCommunityList(CommunityUser cmmntyUser) throws Exception {
| |
| 355 | - return communityManageMapper.selectMyCmmntyList(cmmntyUser); | |
| 356 | - } | |
| 357 | - | |
| 358 | - //커뮤니티명에 대한 중복확인 결과값을 얻어온다. | |
| 359 | - public int checkCmmntyNmDplct(CommunityVO cmmntyVO) {
| |
| 360 | - return communityManageMapper.checkCmmntyNmDplct(cmmntyVO); | |
| 361 | - } | |
| 362 | - | |
| 363 | - //커뮤니티주소에 대한 중복확인 결과값을 얻어온다. | |
| 364 | - public int checkCmmntyAdresDplct(CommunityVO cmmntyVO) {
| |
| 365 | - return communityManageMapper.checkCmmntyAdresDplct(cmmntyVO); | |
| 366 | - } | |
| 367 | - | |
| 368 | - //커뮤니티에 대한 메뉴를 등록한다. | |
| 369 | - public void insertCommunityMnu(CommunityMnu cmmntyMnu) throws Exception {
| |
| 370 | - communityManageMapper.insertCommunityMnu(cmmntyMnu); | |
| 371 | - } | |
| 372 | - | |
| 373 | - //커뮤니티 대한 메뉴를 수정한다. | |
| 374 | - public void updateCommunityMnu(CommunityMnu cmmntyMnu) throws Exception {
| |
| 375 | - communityManageMapper.updateCommunityMnu(cmmntyMnu); | |
| 376 | - } | |
| 377 | - | |
| 378 | - //메뉴 정렬순서를 수정한다. | |
| 379 | - public void updateCommunitySortOrdr(CommunityMnu cmmntyMnu) throws Exception {
| |
| 380 | - int sourceSortOrdr = cmmntyMnu.getSortOrdr(); | |
| 381 | - | |
| 382 | - CommunityMnu targetMenu = communityManageMapper.selectCommunityMnuSortOrdr(cmmntyMnu); | |
| 383 | - | |
| 384 | - if(targetMenu != null && targetMenu.getBbsId() != null && targetMenu.getBbsId() != "") {
| |
| 385 | - cmmntyMnu.setSortOrdr(targetMenu.getSortOrdr()); | |
| 386 | - communityManageMapper.updateCommunityMnuSortOrdr(cmmntyMnu); | |
| 387 | - | |
| 388 | - cmmntyMnu.setBbsId(targetMenu.getBbsId()); | |
| 389 | - cmmntyMnu.setSortOrdr(sourceSortOrdr); | |
| 390 | - communityManageMapper.updateCommunityMnuSortOrdr(cmmntyMnu); | |
| 391 | - } | |
| 392 | - } | |
| 393 | - | |
| 394 | - //사용자별 커뮤니티 가입 목록을 조회한다. | |
| 395 | - public List<CommunityUser> selectMyCmmntyList(CommunityUser cmmntyUser) throws Exception {
| |
| 396 | - return communityManageMapper.selectMyCmmntyList(cmmntyUser); | |
| 397 | - } | |
| 398 | - | |
| 399 | - //커뮤니티 게시판 속성 정보의 목록을 조회 한다. | |
| 400 | - public Map<String, Object> selectCmmntyMasterInfs(CommunityMnu cmmntyMnu) throws Exception {
| |
| 401 | - List<CommunityMnu> result = communityManageMapper.selectCmmntyBBSMasterInfs(cmmntyMnu); | |
| 402 | - int cnt = communityManageMapper.selectCmmntyBBSMasterInfsCnt(cmmntyMnu); | |
| 403 | - | |
| 404 | - Map<String, Object> map = new HashMap<String, Object>(); | |
| 405 | - | |
| 406 | - map.put("resultList", result);
| |
| 407 | - map.put("resultCnt", Integer.toString(cnt));
| |
| 408 | - | |
| 409 | - return map; | |
| 410 | - } | |
| 411 | - | |
| 412 | - //커뮤니티 게시판 속성정보 한 건을 상세조회한다. | |
| 413 | - public CommunityMnu selectCmmntyMasterInf(CommunityMnu cmmntyMnu) throws Exception {
| |
| 414 | - CommunityMnu result = communityManageMapper.selectCmmntyBBSMasterInf(cmmntyMnu); | |
| 415 | - return result; | |
| 416 | - } | |
| 417 | - | |
| 418 | - //커뮤니티 게시판 속성정보 한 건을 상세조회한다. | |
| 419 | - public void updateCommunityMnuMainAt(CommunityMnu cmmntyMnu) throws Exception {
| |
| 420 | - communityManageMapper.updateCommunityMnuMainAt(cmmntyMnu); | |
| 421 | - } | |
| 422 | - | |
| 423 | - | |
| 424 | - //커뮤니티 게시판 메인 목록을 가져온다. | |
| 425 | - public List<CommunityMnu> selectCommunityBbsMaster(CommunityVO cmmntyVO) throws Exception {
| |
| 426 | - return communityManageMapper.selectCommunityBbsMaster(cmmntyVO); | |
| 427 | - } | |
| 428 | - | |
| 429 | - | |
| 430 | - //조건에 맞는 메뉴별 신규목록을 조회 한다. | |
| 431 | - public List<BoardVO> selectCommunityBoardMyArticles(CommunityVO cmmntyVO) throws Exception {
| |
| 432 | - return communityManageMapper.selectCommunityBoardMyArticles(cmmntyVO); | |
| 433 | - } | |
| 434 | - | |
| 435 | - //커뮤니티 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 436 | - public List<BoardVO> selectCommunityBoardAllArticles(CommunityVO cmmntyVO) throws Exception {
| |
| 437 | - return communityManageMapper.selectCommunityBoardAllArticles(cmmntyVO); | |
| 438 | - } | |
| 439 | - | |
| 440 | - | |
| 441 | - //커뮤니티 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 442 | - public int selectCommunityBoardAllArticlesCnt(CommunityVO cmmntyVO) throws Exception {
| |
| 443 | - return communityManageMapper.selectCommunityBoardAllArticlesCnt(cmmntyVO); | |
| 444 | - } | |
| 445 | - | |
| 446 | - | |
| 447 | - //조건에 맞는 메뉴별 신규목록을 조회 한다. | |
| 448 | - public List<BoardVO> selectBoardNewArticles(BoardVO boardVO) throws Exception {
| |
| 449 | - return communityManageMapper.selectBoardNewArticles(boardVO); | |
| 450 | - } | |
| 451 | - | |
| 452 | - //게시판 속성정보를 수정한다. | |
| 453 | - public void updateCmmntyBBSMasterInf(BoardMasterVO boardMaster) throws Exception {
| |
| 454 | - attrbMngMapper.updateBBSMasterInf(boardMaster); | |
| 455 | - } | |
| 456 | - | |
| 457 | - //조건에 맞는 게시물 목록을 조회 한다. | |
| 458 | - public List<BoardVO> selectCmmntyBoardArticles(BoardVO boardVO) throws Exception {
| |
| 459 | - return communityManageMapper.selectCmmntyBoardArticles(boardVO); | |
| 460 | - } | |
| 461 | - | |
| 462 | - //커뮤니티 게시판을 등록한다. | |
| 463 | - public void insertBBSMasterInf(CommunityMnu cmmntyMnu) throws Exception {
| |
| 464 | - bbsAttrbService.insertBBSMastetInf(cmmntyMnu); | |
| 465 | - insertCommunityMnu(cmmntyMnu); | |
| 466 | - | |
| 467 | - } | |
| 468 | - | |
| 469 | - //커뮤니티 게시판을 수정한다. | |
| 470 | - public void updateBBSMasterInf(CommunityMnu cmmntyMnu) throws Exception {
| |
| 471 | - bbsAttrbService.updateBBSMasterInf(cmmntyMnu); | |
| 472 | - updateCommunityMnu(cmmntyMnu); | |
| 473 | - } | |
| 474 | - | |
| 475 | - //모든 커뮤니티 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 476 | - public List<BoardVO> selectSearchCommunityBoardArticleList(BoardVO boardVO) throws Exception {
| |
| 477 | - return communityManageMapper.selectSearchCommunityBoardArticleList(boardVO); | |
| 478 | - } | |
| 479 | - | |
| 480 | - //모든 커뮤니티 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 481 | - public int selectSearchCommunityBoardArticleListCnt(BoardVO boardVO) throws Exception {
| |
| 482 | - return communityManageMapper.selectSearchCommunityBoardArticleListCnt(boardVO); | |
| 483 | - } | |
| 484 | - | |
| 485 | - //모든 커뮤니티 알림장 게시판의 조건에 맞는 전체게시물을 조회한다. | |
| 486 | - public List<BoardVO> selectSearchCommunityNotifyArticleList(BoardVO boardVO) throws Exception {
| |
| 487 | - return communityManageMapper.selectSearchCommunityNotifyArticleList(boardVO); | |
| 488 | - } | |
| 489 | - | |
| 490 | - //모든 커뮤니티 알림장 게시판의 조건에 맞는 전체게시물 건수를 조회한다. | |
| 491 | - public int selectSearchCommunityNotifyArticleListCnt(BoardVO boardVO) throws Exception {
| |
| 492 | - return communityManageMapper.selectSearchCommunityNotifyArticleListCnt(boardVO); | |
| 493 | - } | |
| 494 | - | |
| 495 | - //모든 커뮤니티 알림장 게시판을 조회한다. | |
| 496 | - public List<BoardVO> selectSearchCommunityNotifyUrlList(BoardVO boardVO) throws Exception {
| |
| 497 | - return communityManageMapper.selectSearchCommunityNotifyUrlList(boardVO); | |
| 498 | - } | |
| 499 | -} | |
| 500 | - |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSAttributeManageController.java
... | ... | @@ -1,249 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.web; | |
| 2 | - | |
| 3 | -import javax.annotation.Resource; | |
| 4 | -import javax.servlet.http.HttpServletRequest; | |
| 5 | -import javax.servlet.http.HttpServletResponse; | |
| 6 | - | |
| 7 | -import egovframework.com.cop.bbs.service.CtgryMasterVO; | |
| 8 | -import org.apache.log4j.Logger; | |
| 9 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 10 | -import org.springframework.stereotype.Controller; | |
| 11 | -import org.springframework.ui.ModelMap; | |
| 12 | -import org.springframework.validation.BindingResult; | |
| 13 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 14 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 15 | -import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 16 | - | |
| 17 | -import egovframework.com.cmm.service.CmmUseService; | |
| 18 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 19 | -import egovframework.com.cop.bbs.service.BBSCtgryMasterService; | |
| 20 | -import egovframework.com.cop.bbs.service.BBSAttributeManageService; | |
| 21 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 22 | -import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 23 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 24 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 25 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 26 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 27 | - | |
| 28 | -import egovframework.com.cop.cmy.service.CommunityMnuVO; | |
| 29 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 30 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 31 | -import egovframework.rte.fdl.cmmn.exception.EgovBizException; | |
| 32 | -//게시판 속성관리를 위한 컨트롤러 클래스 | |
| 33 | -@Controller("EgovBBSAttributeManageController") | |
| 34 | -public class EgovBBSAttributeManageController { | |
| 35 | - | |
| 36 | - @Resource(name = "bbsAttributeManageService") | |
| 37 | - private BBSAttributeManageService bbsAttrbService; | |
| 38 | - | |
| 39 | - @Resource(name = "cmmUseService") | |
| 40 | - private CmmUseService cmmUseService; | |
| 41 | - | |
| 42 | - @Resource(name = "bbsCtgryMasterService") | |
| 43 | - private BBSCtgryMasterService bbsCtgryMasterService; | |
| 44 | - | |
| 45 | - @Resource(name = "propertiesService") | |
| 46 | - protected EgovPropertyService propertyService; | |
| 47 | - | |
| 48 | - @Autowired | |
| 49 | - private DefaultBeanValidator beanValidator; | |
| 50 | - | |
| 51 | - @Resource(name = "EgovCommunityManageService") | |
| 52 | - private EgovCommunityManageService cmmntyService; // 커뮤니티 관리자 권한 확인 | |
| 53 | - | |
| 54 | - @Resource(name = "siteManageService") | |
| 55 | - SiteManageService siteManageService; | |
| 56 | - | |
| 57 | - | |
| 58 | - Logger log = Logger.getLogger(this.getClass()); | |
| 59 | - | |
| 60 | - | |
| 61 | - //커뮤니티 관리자 및 동호회 운영자 권한을 확인한다. | |
| 62 | - protected void checkAuthority(BoardMasterVO boardMaster, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 63 | - | |
| 64 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 65 | - if (!isAuthenticated) { | |
| 66 | - throw new EgovBizException("인증된 사용자 정보가 존재하지 않습니다."); | |
| 67 | - } | |
| 68 | - | |
| 69 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 70 | - | |
| 71 | - String targetId = boardMaster.getTrgetId(); | |
| 72 | - | |
| 73 | - if (targetId.startsWith("CMMNTY_")) { | |
| 74 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 75 | - | |
| 76 | - cmmntyUser.setCmmntyId(boardMaster.getTrgetId()); | |
| 77 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 78 | - | |
| 79 | - if (!cmmntyService.isManager(cmmntyUser)) { | |
| 80 | - throw new EgovBizException("해당 커뮤니티 관리자만 사용하실 수 있습니다."); | |
| 81 | - } | |
| 82 | - } else { | |
| 83 | - throw new EgovBizException("대상ID 정보가 정확하지 않습니다."); | |
| 84 | - } | |
| 85 | - } | |
| 86 | - | |
| 87 | - //신규 게시판 마스터 등록을 위한 등록페이지로 이동한다. | |
| 88 | - @RequestMapping("/cop/cmy/bbs/addBBSMaster.do") | |
| 89 | - public String addBBSMaster(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 90 | - | |
| 91 | - checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 92 | - | |
| 93 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 94 | - model.addAttribute("siteInfo", siteVO); | |
| 95 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 96 | - | |
| 97 | - CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 98 | - vo.setCodeId("COM912"); | |
| 99 | - model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 100 | - | |
| 101 | - model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 102 | - | |
| 103 | - CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); | |
| 104 | - ctgrymasterVO.setFirstIndex(0); | |
| 105 | - ctgrymasterVO.setRecordCountPerPage(999999999); | |
| 106 | - model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO)); | |
| 107 | - | |
| 108 | - model.addAttribute("boardMaster", cmmntyMnu); | |
| 109 | - | |
| 110 | - request.getSession().setAttribute("sessionVO", cmmntyMnu); | |
| 111 | - | |
| 112 | - return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 113 | - } | |
| 114 | - | |
| 115 | - //신규 게시판 마스터 정보를 등록한다. | |
| 116 | - @RequestMapping("/cop/cmy/bbs/insertBBSMasterInf.do") | |
| 117 | - public String insertBBSMasterInf(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, BindingResult bindingResult, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 118 | - | |
| 119 | - checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 120 | - | |
| 121 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 122 | - return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 123 | - } | |
| 124 | - | |
| 125 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 126 | - cmmntyMnu.setSiteId(siteVO.getSiteId()); | |
| 127 | - cmmntyMnu.setSysTyCode(siteVO.getSysTyCode()); | |
| 128 | - | |
| 129 | - LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 130 | - | |
| 131 | - beanValidator.validate(cmmntyMnu, bindingResult); | |
| 132 | - if(bindingResult.hasErrors()) { | |
| 133 | - | |
| 134 | - CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 135 | - vo.setCodeId("COM912"); | |
| 136 | - model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 137 | - | |
| 138 | - model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 139 | - | |
| 140 | - CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); | |
| 141 | - ctgrymasterVO.setFirstIndex(0); | |
| 142 | - ctgrymasterVO.setRecordCountPerPage(999999999); | |
| 143 | - model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO)); | |
| 144 | - | |
| 145 | - model.addAttribute("siteInfo", siteVO); | |
| 146 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 147 | - | |
| 148 | - return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 149 | - } | |
| 150 | - | |
| 151 | - cmmntyMnu.setFrstRegisterId(loginVO.getId()); | |
| 152 | - cmmntyMnu.setRegistSeCode("REGC06"); | |
| 153 | - cmmntyService.insertBBSMasterInf(cmmntyMnu); | |
| 154 | - | |
| 155 | - request.getSession().removeAttribute("sessionVO"); | |
| 156 | - | |
| 157 | - | |
| 158 | - return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 159 | - } | |
| 160 | - | |
| 161 | - //게시판 마스터 상세내용을 조회한다. | |
| 162 | - @RequestMapping("/cop/cmy/bbs/SelectBBSMasterInf.do") | |
| 163 | - public String selectBBSMasterInf(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 164 | - | |
| 165 | - checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 166 | - | |
| 167 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 168 | - model.addAttribute("siteInfo", siteVO); | |
| 169 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 170 | - cmmntyMnu.setSiteId(siteVO.getSiteId()); | |
| 171 | - cmmntyMnu.setSysTyCode(siteVO.getSysTyCode()); | |
| 172 | - | |
| 173 | - CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 174 | - vo.setCodeId("COM912"); | |
| 175 | - model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 176 | - | |
| 177 | - model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 178 | - | |
| 179 | - model.addAttribute("boardMaster", cmmntyService.selectCmmntyMasterInf(cmmntyMnu)); | |
| 180 | - | |
| 181 | - request.getSession().setAttribute("sessionVO", cmmntyMnu); | |
| 182 | - | |
| 183 | - return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 184 | - } | |
| 185 | - | |
| 186 | - //게시판 마스터 정보를 수정한다. | |
| 187 | - @RequestMapping("/cop/cmy/bbs/updateBBSMasterInf.do") | |
| 188 | - public String updateBBSMasterInf(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 189 | - | |
| 190 | - checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 191 | - | |
| 192 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 193 | - return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 194 | - } | |
| 195 | - | |
| 196 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 197 | - cmmntyMnu.setSiteId(siteVO.getSiteId()); | |
| 198 | - cmmntyMnu.setSysTyCode(siteVO.getSysTyCode()); | |
| 199 | - | |
| 200 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 201 | - | |
| 202 | - beanValidator.validate(cmmntyMnu, bindingResult); | |
| 203 | - if(bindingResult.hasErrors()) { | |
| 204 | - | |
| 205 | - CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 206 | - vo.setCodeId("COM912"); | |
| 207 | - model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 208 | - | |
| 209 | - model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 210 | - | |
| 211 | - CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); | |
| 212 | - ctgrymasterVO.setFirstIndex(0); | |
| 213 | - ctgrymasterVO.setRecordCountPerPage(999999999); | |
| 214 | - model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO)); | |
| 215 | - | |
| 216 | - model.addAttribute("siteInfo", siteVO); | |
| 217 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 218 | - | |
| 219 | - return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 220 | - } | |
| 221 | - | |
| 222 | - cmmntyMnu.setLastUpdusrId(user.getId()); | |
| 223 | - cmmntyService.updateBBSMasterInf(cmmntyMnu); | |
| 224 | - | |
| 225 | - request.getSession().removeAttribute("sessionVO"); | |
| 226 | - | |
| 227 | - return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 228 | - } | |
| 229 | - | |
| 230 | - //게시판 마스터 정보를 삭제한다. | |
| 231 | - @RequestMapping("/cop/cmy/bbs/DeleteBBSMasterInf.do") | |
| 232 | - public String deleteBBSMasterInf(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, @ModelAttribute("boardMaster") BoardMasterVO boardMaster, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 233 | - | |
| 234 | - checkAuthority(boardMasterVO, request, response); // server-side 권한 확인 | |
| 235 | - | |
| 236 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 237 | - boardMaster.setSiteId(siteVO.getSiteId()); | |
| 238 | - boardMaster.setSysTyCode(siteVO.getSysTyCode()); | |
| 239 | - | |
| 240 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 241 | - | |
| 242 | - boardMaster.setLastUpdusrId(user.getId()); | |
| 243 | - bbsAttrbService.deleteBBSMasterInf(boardMaster); | |
| 244 | - | |
| 245 | - return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 246 | - } | |
| 247 | - | |
| 248 | - | |
| 249 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSCommentController.java
... | ... | @@ -1,290 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.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("EgovCmyBBSCommentController")
| |
| 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/cmy/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/cmy/bbs/selectSingleComment.do"; | |
| 84 | - } | |
| 85 | - | |
| 86 | - model.addAttribute("type", commentVO.getType()); // head or body
| |
| 87 | - | |
| 88 | - if(commentVO.getType().equals("head")) {
| |
| 89 | - return "cop/cmy/bbs/cmy_001/EgovCommentList"; | |
| 90 | - } | |
| 91 | - // //---------------------------------------- | |
| 92 | - | |
| 93 | - commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
| |
| 94 | - commentVO.setSubPageSize(propertyService.getInt("pageSize"));
| |
| 95 | - | |
| 96 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 97 | - paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); | |
| 98 | - paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); | |
| 99 | - paginationInfo.setPageSize(commentVO.getSubPageSize()); | |
| 100 | - | |
| 101 | - commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 102 | - commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); | |
| 103 | - commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 104 | - | |
| 105 | - Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); | |
| 106 | - int totCnt = Integer.parseInt((String)map.get("resultCnt"));
| |
| 107 | - | |
| 108 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 109 | - | |
| 110 | - model.addAttribute("resultList", map.get("resultList"));
| |
| 111 | - model.addAttribute("resultCnt", map.get("resultCnt"));
| |
| 112 | - model.addAttribute("paginationInfo", paginationInfo);
| |
| 113 | - | |
| 114 | - commentVO.setCommentCn(""); // 등록 후 댓글 내용 처리
| |
| 115 | - } catch(Exception ex) {
| |
| 116 | - ex.printStackTrace(); | |
| 117 | - } | |
| 118 | - return "cop/cmy/bbs/cmy_001/EgovCommentList"; | |
| 119 | - } | |
| 120 | - | |
| 121 | - //댓글을 등록한다. | |
| 122 | - @RequestMapping(value = "/cop/cmy/bbs/insertComment.do") | |
| 123 | - public String insertComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 124 | - | |
| 125 | - if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
| |
| 126 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 127 | - } | |
| 128 | - | |
| 129 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 130 | - if(!isAuthenticated) {
| |
| 131 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 132 | - } | |
| 133 | - | |
| 134 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 135 | - | |
| 136 | - beanValidator.validate(comment, bindingResult); | |
| 137 | - if(bindingResult.hasErrors()) {
| |
| 138 | - model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
| |
| 139 | - | |
| 140 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 141 | - } | |
| 142 | - | |
| 143 | - if(isAuthenticated) {
| |
| 144 | - comment.setFrstRegisterId(user.getId()); | |
| 145 | - comment.setWrterNm(user.getName()); | |
| 146 | - comment.setCommentCn(unscript(comment.getCommentCn())); | |
| 147 | - | |
| 148 | - bbsCommentService.insertComment(comment); | |
| 149 | - | |
| 150 | - request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
| |
| 151 | - | |
| 152 | - commentVO.setCommentCn("");
| |
| 153 | - commentVO.setCommentNo(null); | |
| 154 | - } | |
| 155 | - | |
| 156 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 157 | - } | |
| 158 | - | |
| 159 | - @RequestMapping(value = "/cop/cmy/bbs/insertReplyComment.do") | |
| 160 | - public String insertReplyComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 161 | - if(request.getSession().getAttribute("sessionCommentVO") != null && comment.getCommentCn().equals((String)request.getSession().getAttribute("sessionCommentVO"))) {
| |
| 162 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 163 | - } | |
| 164 | - | |
| 165 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 166 | - if(!isAuthenticated) {
| |
| 167 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 168 | - } | |
| 169 | - | |
| 170 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 171 | - | |
| 172 | - beanValidator.validate(comment, bindingResult); | |
| 173 | - if(bindingResult.hasErrors()) {
| |
| 174 | - model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
| |
| 175 | - | |
| 176 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 177 | - } | |
| 178 | - | |
| 179 | - if(isAuthenticated) {
| |
| 180 | - commentVO.setFrstRegisterId(user.getId()); | |
| 181 | - commentVO.setWrterNm(user.getName()); | |
| 182 | - commentVO.setCommentCn(unscript(commentVO.getCommentCn())); | |
| 183 | - | |
| 184 | - bbsCommentService.insertReplyComment(commentVO); | |
| 185 | - | |
| 186 | - request.getSession().setAttribute("sessionCommentVO", comment.getCommentCn());
| |
| 187 | - commentVO.setCommentCn("");
| |
| 188 | - commentVO.setCommentNo(null); | |
| 189 | - } | |
| 190 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 191 | - } | |
| 192 | - //댓글을 삭제한다. | |
| 193 | - @RequestMapping(value = "/cop/cmy/bbs/deleteComment.do") | |
| 194 | - public String deleteComment(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 195 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 196 | - | |
| 197 | - if(user != null) {
| |
| 198 | - commentVO.setLastUpdusrId(user.getId()); | |
| 199 | - bbsCommentService.deleteComment(commentVO); | |
| 200 | - } | |
| 201 | - | |
| 202 | - commentVO.setCommentCn("");
| |
| 203 | - commentVO.setCommentNo(null); | |
| 204 | - | |
| 205 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 206 | - } | |
| 207 | - | |
| 208 | - //댓글 수정 페이지로 이동한다. | |
| 209 | - @RequestMapping(value = "/cop/cmy/bbs/selectSingleComment.do") | |
| 210 | - public String selectSingleComment(@ModelAttribute("searchVO") CommentVO commentVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 211 | - | |
| 212 | - model.addAttribute("type", commentVO.getType()); // head or body
| |
| 213 | - | |
| 214 | - if(commentVO.getType().equals("head")) {
| |
| 215 | - return "cop/cmy/bbs/cmy_001/EgovCommentList"; | |
| 216 | - } | |
| 217 | - // //---------------------------------------- | |
| 218 | - | |
| 219 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 220 | - | |
| 221 | - commentVO.setWrterNm(user.getName()); | |
| 222 | - | |
| 223 | - commentVO.setSubPageUnit(propertyService.getInt("pageUnit"));
| |
| 224 | - commentVO.setSubPageSize(propertyService.getInt("pageSize"));
| |
| 225 | - | |
| 226 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 227 | - paginationInfo.setCurrentPageNo(commentVO.getSubPageIndex()); | |
| 228 | - paginationInfo.setRecordCountPerPage(commentVO.getSubPageUnit()); | |
| 229 | - paginationInfo.setPageSize(commentVO.getSubPageSize()); | |
| 230 | - | |
| 231 | - commentVO.setSubFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 232 | - commentVO.setSubLastIndex(paginationInfo.getLastRecordIndex()); | |
| 233 | - commentVO.setSubRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 234 | - | |
| 235 | - Map<String, Object> map = bbsCommentService.selectCommentList(commentVO); | |
| 236 | - int totCnt = Integer.parseInt((String)map.get("resultCnt"));
| |
| 237 | - | |
| 238 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 239 | - | |
| 240 | - model.addAttribute("resultList", map.get("resultList"));
| |
| 241 | - model.addAttribute("resultCnt", map.get("resultCnt"));
| |
| 242 | - model.addAttribute("paginationInfo", paginationInfo);
| |
| 243 | - | |
| 244 | - CommentVO data = bbsCommentService.selectComment(commentVO); | |
| 245 | - | |
| 246 | - commentVO.setCommentNo(data.getCommentNo()); | |
| 247 | - commentVO.setNttNo(data.getNttNo()); | |
| 248 | - commentVO.setWrterNm(data.getWrterNm()); | |
| 249 | - commentVO.setCommentCn(data.getCommentCn()); | |
| 250 | - commentVO.setUseAt(data.getUseAt()); | |
| 251 | - commentVO.setFrstRegisterPnttm(data.getFrstRegisterPnttm()); | |
| 252 | - | |
| 253 | - request.getSession().setAttribute("sessionVO", commentVO);
| |
| 254 | - | |
| 255 | - return "cop/cmy/bbs/cmy_001/EgovCommentList"; | |
| 256 | - } | |
| 257 | - | |
| 258 | - //댓글을 수정한다. | |
| 259 | - @RequestMapping(value = "/cop/cmy/bbs/updateComment.do") | |
| 260 | - public String updateCommentList(@ModelAttribute("searchVO") CommentVO commentVO, @ModelAttribute("comment") CommentVO comment, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception {
| |
| 261 | - | |
| 262 | - if(request.getSession().getAttribute("sessionVO") == null) {
| |
| 263 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 264 | - } | |
| 265 | - | |
| 266 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 267 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 268 | - | |
| 269 | - beanValidator.validate(comment, bindingResult); | |
| 270 | - if(bindingResult.hasErrors()) {
| |
| 271 | - model.addAttribute("msg", "댓글 작성자 및 내용은 필수 입력값입니다.");
| |
| 272 | - | |
| 273 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 274 | - } | |
| 275 | - | |
| 276 | - if(isAuthenticated) {
| |
| 277 | - comment.setLastUpdusrId(user.getId()); | |
| 278 | - | |
| 279 | - bbsCommentService.updateComment(comment); | |
| 280 | - | |
| 281 | - commentVO.setCommentCn("");
| |
| 282 | - commentVO.setCommentNo(null); | |
| 283 | - | |
| 284 | - request.getSession().removeAttribute("sessionVO");
| |
| 285 | - } | |
| 286 | - | |
| 287 | - return "forward:/cop/cmy/bbs/selectBoardArticle.do"; | |
| 288 | - } | |
| 289 | - | |
| 290 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovBBSManageController.java
... | ... | @@ -1,813 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.web; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.util.Map; | |
| 5 | - | |
| 6 | -import javax.annotation.Resource; | |
| 7 | - | |
| 8 | -import egovframework.com.cop.bbs.service.*; | |
| 9 | -import org.apache.log4j.Logger; | |
| 10 | -import net.sf.json.JSONObject; | |
| 11 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 12 | -import org.springframework.stereotype.Controller; | |
| 13 | -import org.springframework.ui.ModelMap; | |
| 14 | -import org.springframework.validation.BindingResult; | |
| 15 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 16 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 17 | -import org.springframework.web.multipart.MultipartFile; | |
| 18 | -import org.springframework.web.multipart.MultipartHttpServletRequest; | |
| 19 | -import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 20 | - | |
| 21 | -import egovframework.com.cmm.EgovMessageSource; | |
| 22 | -import egovframework.com.cmm.service.CmmUseService; | |
| 23 | -import egovframework.com.cmm.service.FileMngService; | |
| 24 | -import egovframework.com.cmm.service.FileMngUtil; | |
| 25 | -import egovframework.com.cmm.service.FileVO; | |
| 26 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 27 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 28 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 29 | -import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 30 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 31 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 32 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 33 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 34 | -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 35 | -import egovframework.com.utl.fcc.service.EgovHttpUtil; | |
| 36 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 37 | -import egovframework.com.utl.sim.service.EgovClntInfo; | |
| 38 | - | |
| 39 | -import javax.servlet.http.HttpServletRequest; | |
| 40 | -import javax.servlet.http.HttpServletResponse; | |
| 41 | - | |
| 42 | - | |
| 43 | -//게시물 관리를 위한 컨트롤러 클래스 | |
| 44 | -@Controller("EgovCmyBBSManageController") | |
| 45 | -public class EgovBBSManageController { | |
| 46 | - | |
| 47 | - @Resource(name = "bbsManageService") | |
| 48 | - private BBSManageService bbsMngService; | |
| 49 | - | |
| 50 | - @Resource(name = "bbsAttributeManageService") | |
| 51 | - private BBSAttributeManageService bbsAttrbService; | |
| 52 | - | |
| 53 | - @Resource(name = "bbsCtgryService") | |
| 54 | - private BBSCtgryService ctgryService; | |
| 55 | - | |
| 56 | - @Resource(name = "siteManageService") | |
| 57 | - SiteManageService siteManageService; | |
| 58 | - | |
| 59 | - @Resource(name = "fileMngService") | |
| 60 | - private FileMngService fileMngService; | |
| 61 | - | |
| 62 | - @Resource(name = "fileMngUtil") | |
| 63 | - private FileMngUtil fileUtil; | |
| 64 | - | |
| 65 | - @Resource(name = "propertiesService") | |
| 66 | - protected EgovPropertyService propertyService; | |
| 67 | - | |
| 68 | - @Resource(name = "cmmUseService") | |
| 69 | - private CmmUseService cmmUseService; | |
| 70 | - | |
| 71 | - @Resource(name = "egovMessageSource") | |
| 72 | - EgovMessageSource egovMessageSource; | |
| 73 | - | |
| 74 | - @Resource(name = "EgovCommunityManageService") | |
| 75 | - private EgovCommunityManageService cmmntyService; | |
| 76 | - | |
| 77 | - @Autowired | |
| 78 | - private DefaultBeanValidator beanValidator; | |
| 79 | - | |
| 80 | - Logger log = Logger.getLogger(this.getClass()); | |
| 81 | - | |
| 82 | - //XSS 방지 처리. | |
| 83 | - protected String unscript(String data) { | |
| 84 | - if(data == null || data.trim().equals("")) { | |
| 85 | - return ""; | |
| 86 | - } | |
| 87 | - | |
| 88 | - String ret = data; | |
| 89 | - | |
| 90 | - ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script"); | |
| 91 | - ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script"); | |
| 92 | - | |
| 93 | - ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object"); | |
| 94 | - ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object"); | |
| 95 | - | |
| 96 | - ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet"); | |
| 97 | - ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet"); | |
| 98 | - | |
| 99 | - ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 100 | - ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 101 | - | |
| 102 | - ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 103 | - ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 104 | - | |
| 105 | - return ret; | |
| 106 | - } | |
| 107 | - | |
| 108 | - | |
| 109 | - //게시물에 대한 목록을 조회한다. | |
| 110 | - @RequestMapping(value = "/cop/cmy/bbs/selectBoardList.do") | |
| 111 | - public String selectBoardArticles(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 112 | - | |
| 113 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 114 | - | |
| 115 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 116 | - vo.setBbsId(boardVO.getBbsId()); | |
| 117 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 118 | - | |
| 119 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 120 | - model.addAttribute("siteInfo", siteVO); | |
| 121 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 122 | - vo.setSiteId(siteVO.getSiteId()); | |
| 123 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 124 | - | |
| 125 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 126 | - | |
| 127 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 128 | - | |
| 129 | - // 페이징 정보 설정 | |
| 130 | - boardVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 131 | - boardVO.setPageSize(propertyService.getInt("pageSize")); | |
| 132 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 133 | - | |
| 134 | - if("BBSA02".equals(master.getBbsAttrbCode())) { | |
| 135 | - // 페이징 정보 설정 | |
| 136 | - boardVO.setPageUnit(propertyService.getInt("photoPageUnit")); | |
| 137 | - boardVO.setPageSize(propertyService.getInt("photoPageSize")); | |
| 138 | - | |
| 139 | - } else { | |
| 140 | - //공지게시물 가져오기 | |
| 141 | - BoardVO noticeVO = new BoardVO(); | |
| 142 | - noticeVO.setBbsId(boardVO.getBbsId()); | |
| 143 | - noticeVO.setCommentUseAt(master.getCommentUseAt()); | |
| 144 | - noticeVO.setSearchNoticeAt("Y"); | |
| 145 | - noticeVO.setFirstIndex(0); | |
| 146 | - noticeVO.setRecordCountPerPage(9999); | |
| 147 | - | |
| 148 | - model.addAttribute("noticeList", bbsMngService.selectBoardArticles(noticeVO)); | |
| 149 | - } | |
| 150 | - | |
| 151 | - paginationInfo.setCurrentPageNo(boardVO.getPageIndex()); | |
| 152 | - paginationInfo.setRecordCountPerPage(boardVO.getPageUnit()); | |
| 153 | - paginationInfo.setPageSize(boardVO.getPageSize()); | |
| 154 | - | |
| 155 | - boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 156 | - boardVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 157 | - boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 158 | - | |
| 159 | - boardVO.setCommentUseAt(master.getCommentUseAt()); | |
| 160 | - boardVO.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 161 | - | |
| 162 | - List<BoardVO> resultList = bbsMngService.selectBoardArticles(boardVO); | |
| 163 | - int totCnt = bbsMngService.selectBoardArticlesCnt(boardVO); | |
| 164 | - | |
| 165 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 166 | - | |
| 167 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 168 | - CtgryVO ctgry = new CtgryVO(); | |
| 169 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 170 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 171 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 172 | - } | |
| 173 | - | |
| 174 | - | |
| 175 | - | |
| 176 | - model.addAttribute("resultList", resultList); | |
| 177 | - model.addAttribute("resultCnt", totCnt); | |
| 178 | - model.addAttribute("brdMstrVO", master); | |
| 179 | - | |
| 180 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 181 | - if(user != null) { | |
| 182 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 183 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 184 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 185 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 186 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 187 | - } | |
| 188 | - } | |
| 189 | - | |
| 190 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 191 | - | |
| 192 | - | |
| 193 | - return "cop/cmy/bbs/cmy_001/EgovNoticeList"; | |
| 194 | - } | |
| 195 | - | |
| 196 | - //게시물에 대한 상세 정보를 조회한다. | |
| 197 | - @RequestMapping(value = "/cop/cmy/bbs/selectBoardArticle.do") | |
| 198 | - public String selectBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 199 | - | |
| 200 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 201 | - vo.setBbsId(boardVO.getBbsId()); | |
| 202 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 203 | - | |
| 204 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 205 | - model.addAttribute("siteInfo", siteVO); | |
| 206 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 207 | - vo.setSiteId(siteVO.getSiteId()); | |
| 208 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 209 | - | |
| 210 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 211 | - | |
| 212 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 213 | - | |
| 214 | - model.addAttribute("brdMstrVO", master); | |
| 215 | - CommunityUser resultInfo = null; | |
| 216 | - int SE_CODE = 1; | |
| 217 | - | |
| 218 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 219 | - if(user != null) { | |
| 220 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 221 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 222 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 223 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 224 | - resultInfo = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 225 | - if(resultInfo != null) { | |
| 226 | - model.addAttribute("USER_INFO", resultInfo); //사용자 정보 | |
| 227 | - SE_CODE = Integer.parseInt(resultInfo.getAuthorCode()); | |
| 228 | - } | |
| 229 | - boardVO.setFrstRegisterId(user.getId()); | |
| 230 | - } | |
| 231 | - | |
| 232 | - if(SE_CODE >= Integer.parseInt(master.getInqireAuthor())){ | |
| 233 | - if(SE_CODE >= 10) { | |
| 234 | - boardVO.setAdminAt("Y"); | |
| 235 | - } | |
| 236 | - // 조회수 증가 여부 지정 | |
| 237 | - boardVO.setPlusCount(true); | |
| 238 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 239 | - model.addAttribute("board", bbsMngService.selectBoardArticle(boardVO)); | |
| 240 | - | |
| 241 | - return "cop/cmy/bbs/cmy_001/EgovNoticeInqire"; | |
| 242 | - } else { | |
| 243 | - model.addAttribute("message", egovMessageSource.getMessage("fail.common.select")); | |
| 244 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 245 | - } | |
| 246 | - | |
| 247 | - } | |
| 248 | - | |
| 249 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 250 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 251 | - } | |
| 252 | - | |
| 253 | - //게시물 등록을 위한 등록페이지로 이동한다. | |
| 254 | - @RequestMapping(value = "/cop/cmy/bbs/addBoardArticle.do") | |
| 255 | - public String addBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 256 | - | |
| 257 | - if(!EgovUserDetailsHelper.isAuthenticated(request, response)) { | |
| 258 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 259 | - } | |
| 260 | - | |
| 261 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 262 | - vo.setBbsId(boardVO.getBbsId()); | |
| 263 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 264 | - | |
| 265 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 266 | - model.addAttribute("siteInfo", siteVO); | |
| 267 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 268 | - vo.setSiteId(siteVO.getSiteId()); | |
| 269 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 270 | - | |
| 271 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 272 | - | |
| 273 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 274 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 275 | - CtgryVO ctgry = new CtgryVO(); | |
| 276 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 277 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 278 | - | |
| 279 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 280 | - } | |
| 281 | - | |
| 282 | - model.addAttribute("brdMstrVO", master); | |
| 283 | - | |
| 284 | - BoardVO board = new BoardVO(); | |
| 285 | - model.addAttribute("board", board); | |
| 286 | - | |
| 287 | - request.getSession().setAttribute("sessionVO", boardVO); | |
| 288 | - CommunityUser resultInfo = null; | |
| 289 | - int SE_CODE = 1; | |
| 290 | - | |
| 291 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 292 | - if(user != null) { | |
| 293 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 294 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 295 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 296 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 297 | - resultInfo = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 298 | - if(resultInfo != null) { | |
| 299 | - model.addAttribute("USER_INFO", resultInfo); //사용자 정보 | |
| 300 | - SE_CODE = Integer.parseInt(resultInfo.getAuthorCode()); | |
| 301 | - } | |
| 302 | - } | |
| 303 | - | |
| 304 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 305 | - return "cop/cmy/bbs/cmy_001/EgovNoticeRegist"; | |
| 306 | - } else { | |
| 307 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 308 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 309 | - } | |
| 310 | - } | |
| 311 | - | |
| 312 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 313 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 314 | - } | |
| 315 | - | |
| 316 | - //게시물을 등록한다. | |
| 317 | - @RequestMapping(value = "/cop/cmy/bbs/insertBoardArticle.do") | |
| 318 | - public String insertBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, BindingResult bindingResult, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 319 | - | |
| 320 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 321 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 322 | - } | |
| 323 | - | |
| 324 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 325 | - | |
| 326 | - beanValidator.validate(board, bindingResult); | |
| 327 | - | |
| 328 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 329 | - vo.setBbsId(boardVO.getBbsId()); | |
| 330 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 331 | - | |
| 332 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 333 | - vo.setSiteId(siteVO.getSiteId()); | |
| 334 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 335 | - | |
| 336 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 337 | - | |
| 338 | - int SE_CODE = 1; | |
| 339 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 340 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 341 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 342 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 343 | - cmmntyUser = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 344 | - if(cmmntyUser != null) { | |
| 345 | - model.addAttribute("USER_INFO", cmmntyUser); //사용자 정보 | |
| 346 | - SE_CODE = Integer.parseInt(cmmntyUser.getAuthorCode()); | |
| 347 | - } | |
| 348 | - | |
| 349 | - if(bindingResult.hasErrors()) { | |
| 350 | - | |
| 351 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 352 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 353 | - CtgryVO ctgry = new CtgryVO(); | |
| 354 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 355 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 356 | - | |
| 357 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 358 | - } | |
| 359 | - | |
| 360 | - model.addAttribute("brdMstrVO", master); | |
| 361 | - model.addAttribute("siteInfo", siteVO); | |
| 362 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 363 | - } | |
| 364 | - | |
| 365 | - return "cop/cmy/bbs/cmy_001/EgovNoticeRegist"; | |
| 366 | - } | |
| 367 | - | |
| 368 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 369 | - | |
| 370 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())) { | |
| 371 | - String atchFileId = ""; | |
| 372 | - | |
| 373 | - List<FileVO> result = null; | |
| 374 | - | |
| 375 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 376 | - if(!files.isEmpty()) { | |
| 377 | - result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, "", siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(),"",""); | |
| 378 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 379 | - } | |
| 380 | - | |
| 381 | - boardVO.setAtchFileId(atchFileId); | |
| 382 | - boardVO.setFrstRegisterId(user.getId()); | |
| 383 | - boardVO.setNtcrNm(user.getName()); | |
| 384 | - boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 385 | - boardVO.setCreatIp(EgovClntInfo.getClntIP(request)); | |
| 386 | - boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 387 | - | |
| 388 | - bbsMngService.insertBoardArticle(boardVO, master); | |
| 389 | - } | |
| 390 | - } | |
| 391 | - | |
| 392 | - request.getSession().removeAttribute("sessionVO"); | |
| 393 | - | |
| 394 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 395 | - } | |
| 396 | - | |
| 397 | - //게시물에 대한 답변 등록을 위한 등록페이지로 이동한다. | |
| 398 | - @RequestMapping(value = "/cop/cmy/bbs/addReplyBoardArticle.do") | |
| 399 | - public String addReplyBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 400 | - | |
| 401 | - if(!EgovUserDetailsHelper.isAuthenticated(request, response)) { | |
| 402 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 403 | - } | |
| 404 | - | |
| 405 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 406 | - vo.setBbsId(boardVO.getBbsId()); | |
| 407 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 408 | - | |
| 409 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 410 | - model.addAttribute("siteInfo", siteVO); | |
| 411 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 412 | - vo.setSiteId(siteVO.getSiteId()); | |
| 413 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 414 | - | |
| 415 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 416 | - | |
| 417 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 418 | - | |
| 419 | - CommunityUser resultInfo = null; | |
| 420 | - int SE_CODE = 1; | |
| 421 | - | |
| 422 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 423 | - if(user != null) { | |
| 424 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 425 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 426 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 427 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 428 | - resultInfo = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 429 | - if(resultInfo != null) { | |
| 430 | - model.addAttribute("USER_INFO", resultInfo); //사용자 정보 | |
| 431 | - SE_CODE = Integer.parseInt(resultInfo.getAuthorCode()); | |
| 432 | - } | |
| 433 | - } | |
| 434 | - | |
| 435 | - if(SE_CODE >= Integer.parseInt(master.getAnswerAuthor())){ | |
| 436 | - model.addAttribute("brdMstrVO", master); | |
| 437 | - | |
| 438 | - BoardVO selectVO = new BoardVO(); | |
| 439 | - selectVO.setBbsId(master.getBbsId()); | |
| 440 | - selectVO.setNttNo(boardVO.getNttNo()); | |
| 441 | - selectVO.setAdminAt("Y"); | |
| 442 | - | |
| 443 | - selectVO = bbsMngService.selectBoardArticle(selectVO); | |
| 444 | - | |
| 445 | - BoardVO board = new BoardVO(); | |
| 446 | - board.setCtgryId(selectVO.getCtgryId()); | |
| 447 | - //board.setOrdrCode(selectVO.getOrdrCode()); | |
| 448 | - //board.setOrdrCodeDp(BigDecimal.valueOf(selectVO.getOrdrCodeDp().longValue() + 1)); | |
| 449 | - | |
| 450 | - if("BBSA11".equals(master.getBbsAttrbCode())) { | |
| 451 | - | |
| 452 | - board.setNttNo(selectVO.getNttNo()); | |
| 453 | - board.setNttSj(selectVO.getNttSj()); | |
| 454 | - if(!EgovStringUtil.isEmpty(selectVO.getEstnData())) { | |
| 455 | - board.setNttCn(selectVO.getEstnParseData().getString("cn")); | |
| 456 | - } | |
| 457 | - board.setAtchFileId(selectVO.getEstnAtchFileId()); | |
| 458 | - board.setProcessSttusCode(selectVO.getProcessSttusCode()); | |
| 459 | - | |
| 460 | - CmmnDetailCodeVO codeVO = new CmmnDetailCodeVO(); | |
| 461 | - codeVO.setCodeId("COM108"); | |
| 462 | - model.addAttribute("qaCodeList", cmmUseService.selectCmmCodeDetail(codeVO)); | |
| 463 | - } | |
| 464 | - | |
| 465 | - model.addAttribute("board", board); | |
| 466 | - | |
| 467 | - request.getSession().setAttribute("sessionVO", boardVO); | |
| 468 | - | |
| 469 | - return "cop/cmy/bbs/cmy_001/EgovNoticeRegist"; | |
| 470 | - | |
| 471 | - } else { | |
| 472 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 473 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 474 | - } | |
| 475 | - } | |
| 476 | - | |
| 477 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 478 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 479 | - } | |
| 480 | - | |
| 481 | - //게시물에 대한 답변을 등록한다. | |
| 482 | - @RequestMapping(value = "/cop/cmy/bbs/replyBoardArticle.do") | |
| 483 | - public String replyBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 484 | - | |
| 485 | - | |
| 486 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 487 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 488 | - } | |
| 489 | - | |
| 490 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 491 | - | |
| 492 | - beanValidator.validate(board, bindingResult); | |
| 493 | - | |
| 494 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 495 | - vo.setBbsId(boardVO.getBbsId()); | |
| 496 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 497 | - | |
| 498 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 499 | - vo.setSiteId(siteVO.getSiteId()); | |
| 500 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 501 | - | |
| 502 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 503 | - | |
| 504 | - int SE_CODE = 1; | |
| 505 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 506 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 507 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 508 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 509 | - cmmntyUser = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 510 | - if(cmmntyUser != null) { | |
| 511 | - model.addAttribute("USER_INFO", cmmntyUser); //사용자 정보 | |
| 512 | - SE_CODE = Integer.parseInt(cmmntyUser.getAuthorCode()); | |
| 513 | - } | |
| 514 | - | |
| 515 | - if(bindingResult.hasErrors()) { | |
| 516 | - | |
| 517 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 518 | - | |
| 519 | - model.addAttribute("brdMstrVO", master); | |
| 520 | - | |
| 521 | - if("BBSA11".equals(master.getBbsAttrbCode())) { | |
| 522 | - CmmnDetailCodeVO codeVO = new CmmnDetailCodeVO(); | |
| 523 | - codeVO.setCodeId("COM108"); | |
| 524 | - model.addAttribute("qaCodeList", cmmUseService.selectCmmCodeDetail(codeVO)); | |
| 525 | - } | |
| 526 | - } | |
| 527 | - | |
| 528 | - model.addAttribute("siteInfo", siteVO); | |
| 529 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 530 | - | |
| 531 | - return "cop/cmy/bbs/cmy_001/EgovNoticeRegist"; | |
| 532 | - } | |
| 533 | - | |
| 534 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 535 | - | |
| 536 | - if(SE_CODE >= Integer.parseInt(master.getAnswerAuthor())) { | |
| 537 | - if(SE_CODE >= 10) { | |
| 538 | - boardVO.setAdminAt("Y"); | |
| 539 | - } | |
| 540 | - | |
| 541 | - String atchFileId = boardVO.getAtchFileId();; | |
| 542 | - | |
| 543 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 544 | - | |
| 545 | - | |
| 546 | - if("BBSA11".equals(master.getBbsAttrbCode())) { | |
| 547 | - if(!files.isEmpty()) { | |
| 548 | - if(EgovStringUtil.isEmpty(atchFileId)) { | |
| 549 | - List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(),"",""); | |
| 550 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 551 | - } else { | |
| 552 | - FileVO fvo = new FileVO(); | |
| 553 | - fvo.setAtchFileId(atchFileId); | |
| 554 | - int cnt = fileMngService.getMaxFileSN(fvo); | |
| 555 | - List<FileVO> _result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, cnt, atchFileId, siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(),"",""); | |
| 556 | - fileMngService.updateFileInfs(_result); | |
| 557 | - } | |
| 558 | - boardVO.setEstnAtchFileId(atchFileId); | |
| 559 | - } | |
| 560 | - | |
| 561 | - boardVO.setLastAnswrrId(user.getId()); | |
| 562 | - boardVO.setLastAnswrrNm(user.getName()); | |
| 563 | - | |
| 564 | - JSONObject jObj = new JSONObject(); | |
| 565 | - jObj.put("cn", boardVO.getNttCn()); | |
| 566 | - boardVO.setEstnData(jObj.toString()); | |
| 567 | - | |
| 568 | - bbsMngService.updateBoardArticle(boardVO, master, true); | |
| 569 | - } else { | |
| 570 | - if(!files.isEmpty()) { | |
| 571 | - List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, "", siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(),"",""); | |
| 572 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 573 | - } | |
| 574 | - | |
| 575 | - boardVO.setAtchFileId(atchFileId); | |
| 576 | - boardVO.setFrstRegisterId(user.getId()); | |
| 577 | - boardVO.setNtcrNm(user.getName()); | |
| 578 | - boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 579 | - boardVO.setCreatIp(EgovClntInfo.getClntIP(request)); | |
| 580 | - | |
| 581 | - boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 582 | - bbsMngService.replyBoardArticle(boardVO, master); | |
| 583 | - } | |
| 584 | - } | |
| 585 | - } | |
| 586 | - | |
| 587 | - request.getSession().removeAttribute("sessionVO"); | |
| 588 | - | |
| 589 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 590 | - } | |
| 591 | - | |
| 592 | - //게시물 수정을 위한 수정페이지로 이동한다. | |
| 593 | - @RequestMapping(value = "/cop/cmy/bbs/forUpdateBoardArticle.do") | |
| 594 | - public String selectBoardArticleForUpdt(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 595 | - | |
| 596 | - if(!EgovUserDetailsHelper.isAuthenticated(request, response)) { | |
| 597 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 598 | - } | |
| 599 | - | |
| 600 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 601 | - vo.setBbsId(boardVO.getBbsId()); | |
| 602 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 603 | - | |
| 604 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 605 | - model.addAttribute("siteInfo", siteVO); | |
| 606 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 607 | - vo.setSiteId(siteVO.getSiteId()); | |
| 608 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 609 | - | |
| 610 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 611 | - | |
| 612 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 613 | - | |
| 614 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 615 | - boardVO.setFrstRegisterId(user.getId()); | |
| 616 | - | |
| 617 | - int SE_CODE = 1; | |
| 618 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 619 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 620 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 621 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 622 | - cmmntyUser = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 623 | - if(cmmntyUser != null) { | |
| 624 | - model.addAttribute("USER_INFO", cmmntyUser); //사용자 정보 | |
| 625 | - SE_CODE = Integer.parseInt(cmmntyUser.getAuthorCode()); | |
| 626 | - } | |
| 627 | - | |
| 628 | - boardVO.setFrstRegisterId(user.getId()); | |
| 629 | - | |
| 630 | - if(SE_CODE >= 10) { | |
| 631 | - boardVO.setAdminAt("Y"); | |
| 632 | - } | |
| 633 | - | |
| 634 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 635 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 636 | - CtgryVO ctgry = new CtgryVO(); | |
| 637 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 638 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 639 | - | |
| 640 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 641 | - } | |
| 642 | - | |
| 643 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 644 | - BoardVO dataVO = bbsMngService.selectBoardArticle(boardVO); | |
| 645 | - | |
| 646 | - model.addAttribute("brdMstrVO", master); | |
| 647 | - model.addAttribute("board", dataVO); | |
| 648 | - | |
| 649 | - request.getSession().setAttribute("sessionVO", boardVO); | |
| 650 | - | |
| 651 | - return "cop/cmy/bbs/cmy_001/EgovNoticeRegist"; | |
| 652 | - } else { | |
| 653 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 654 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 655 | - } | |
| 656 | - | |
| 657 | - } | |
| 658 | - | |
| 659 | - model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 660 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 661 | - } | |
| 662 | - | |
| 663 | - //게시물에 대한 내용을 수정한다. | |
| 664 | - @RequestMapping(value = "/cop/cmy/bbs/updateBoardArticle.do") | |
| 665 | - public String updateBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, | |
| 666 | - BoardVO board, BindingResult bindingResult, | |
| 667 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 668 | - | |
| 669 | - if(request.getSession().getAttribute("sessionVO") == null) { | |
| 670 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 671 | - } | |
| 672 | - | |
| 673 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 674 | - String atchFileId = boardVO.getAtchFileId(); | |
| 675 | - | |
| 676 | - beanValidator.validate(board, bindingResult); | |
| 677 | - | |
| 678 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 679 | - vo.setBbsId(boardVO.getBbsId()); | |
| 680 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 681 | - | |
| 682 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 683 | - vo.setSiteId(siteVO.getSiteId()); | |
| 684 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 685 | - | |
| 686 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 687 | - | |
| 688 | - int SE_CODE = 1; | |
| 689 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 690 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 691 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 692 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 693 | - cmmntyUser = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 694 | - if(cmmntyUser != null) { | |
| 695 | - model.addAttribute("USER_INFO", cmmntyUser); //사용자 정보 | |
| 696 | - SE_CODE = Integer.parseInt(cmmntyUser.getAuthorCode()); | |
| 697 | - } | |
| 698 | - | |
| 699 | - if(bindingResult.hasErrors()) { | |
| 700 | - | |
| 701 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 702 | - if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 703 | - CtgryVO ctgry = new CtgryVO(); | |
| 704 | - ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 705 | - model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 706 | - | |
| 707 | - model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 708 | - } | |
| 709 | - | |
| 710 | - boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 711 | - BoardVO dataVO = bbsMngService.selectBoardArticle(boardVO); | |
| 712 | - | |
| 713 | - model.addAttribute("brdMstrVO", master); | |
| 714 | - model.addAttribute("board", dataVO); | |
| 715 | - } | |
| 716 | - model.addAttribute("siteInfo", siteVO); | |
| 717 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 718 | - | |
| 719 | - return "cop/cmy/bbs/cmy_001/EgovNoticeRegist"; | |
| 720 | - } | |
| 721 | - | |
| 722 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 723 | - | |
| 724 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())) { | |
| 725 | - | |
| 726 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 727 | - if(!files.isEmpty()) { | |
| 728 | - if(EgovStringUtil.isEmpty(atchFileId)) { | |
| 729 | - List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(),"",""); | |
| 730 | - atchFileId = fileMngService.insertFileInfs(result); | |
| 731 | - boardVO.setAtchFileId(atchFileId); | |
| 732 | - } else { | |
| 733 | - FileVO fvo = new FileVO(); | |
| 734 | - fvo.setAtchFileId(atchFileId); | |
| 735 | - int cnt = fileMngService.getMaxFileSN(fvo); | |
| 736 | - List<FileVO> _result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, cnt, atchFileId, siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(),"",""); | |
| 737 | - fileMngService.updateFileInfs(_result); | |
| 738 | - } | |
| 739 | - } | |
| 740 | - | |
| 741 | - if(!"".equals(atchFileId)) { | |
| 742 | - FileVO fvo = new FileVO(); | |
| 743 | - fvo.setAtchFileId(atchFileId); | |
| 744 | - List<FileVO> dbFiles = fileMngService.selectFileInfs(fvo); | |
| 745 | - if(dbFiles == null || dbFiles.size() == 0) { | |
| 746 | - boardVO.setAtchFileId(""); | |
| 747 | - boardVO.setFileGroupId(""); | |
| 748 | - } | |
| 749 | - } | |
| 750 | - | |
| 751 | - if(SE_CODE >= 10) { | |
| 752 | - boardVO.setAdminAt("Y"); | |
| 753 | - } | |
| 754 | - boardVO.setLastUpdusrId(user.getId()); | |
| 755 | - boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 756 | - boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 757 | - | |
| 758 | - bbsMngService.updateBoardArticle(boardVO, master, false); | |
| 759 | - } | |
| 760 | - } | |
| 761 | - | |
| 762 | - request.getSession().removeAttribute("sessionVO"); | |
| 763 | - | |
| 764 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 765 | - } | |
| 766 | - | |
| 767 | - //게시물에 대한 내용을 삭제한다. | |
| 768 | - @RequestMapping(value = "/cop/cmy/bbs/deleteBoardArticle.do") | |
| 769 | - public String deleteBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 770 | - | |
| 771 | - if(!EgovUserDetailsHelper.isAuthenticated(request, response)) { | |
| 772 | - return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 773 | - } | |
| 774 | - | |
| 775 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 776 | - | |
| 777 | - BoardMasterVO vo = new BoardMasterVO(); | |
| 778 | - vo.setBbsId(boardVO.getBbsId()); | |
| 779 | - vo.setTrgetId(boardVO.getTrgetId()); | |
| 780 | - | |
| 781 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 782 | - vo.setSiteId(siteVO.getSiteId()); | |
| 783 | - vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 784 | - | |
| 785 | - BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 786 | - | |
| 787 | - if(master != null && !EgovStringUtil.isEmpty(boardVO.getTrgetId())) { | |
| 788 | - | |
| 789 | - int SE_CODE = 1; | |
| 790 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 791 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 792 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 793 | - cmmntyUser.setCmmntyId(boardVO.getTrgetId()); | |
| 794 | - cmmntyUser = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 795 | - if(cmmntyUser != null) { | |
| 796 | - SE_CODE = Integer.parseInt(cmmntyUser.getAuthorCode()); | |
| 797 | - } | |
| 798 | - | |
| 799 | - if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 800 | - if(SE_CODE >= 10) { | |
| 801 | - boardVO.setAdminAt("Y"); | |
| 802 | - } | |
| 803 | - | |
| 804 | - board.setLastUpdusrId(user.getId()); | |
| 805 | - bbsMngService.deleteBoardArticle(board, master); | |
| 806 | - } | |
| 807 | - } | |
| 808 | - | |
| 809 | - return "forward:/cop/cmy/bbs/selectBoardList.do"; | |
| 810 | - } | |
| 811 | - | |
| 812 | - | |
| 813 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/web/EgovCommunityManageController.java
... | ... | @@ -1,888 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.web; | |
| 2 | - | |
| 3 | -import java.io.PrintWriter; | |
| 4 | -import java.util.HashMap; | |
| 5 | -import java.util.List; | |
| 6 | -import java.util.Map; | |
| 7 | -import java.util.regex.*; | |
| 8 | - | |
| 9 | -import javax.annotation.Resource; | |
| 10 | -import javax.servlet.http.HttpServletRequest; | |
| 11 | -import javax.servlet.http.HttpServletResponse; | |
| 12 | - | |
| 13 | -import egovframework.com.cop.com.service.ConfirmHistoryVO; | |
| 14 | -import org.apache.log4j.Logger; | |
| 15 | -import net.sf.json.JSONArray; | |
| 16 | -import net.sf.json.JSONObject; | |
| 17 | -import org.springframework.beans.factory.annotation.Autowired; | |
| 18 | -import org.springframework.stereotype.Controller; | |
| 19 | -import org.springframework.ui.ModelMap; | |
| 20 | -import org.springframework.validation.BindingResult; | |
| 21 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 22 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 23 | -import org.springframework.web.multipart.MultipartFile; | |
| 24 | -import org.springframework.web.multipart.MultipartHttpServletRequest; | |
| 25 | -import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 26 | - | |
| 27 | -import egovframework.com.cmm.EgovMessageSource; | |
| 28 | -import egovframework.com.cmm.service.CmmUseService; | |
| 29 | -import egovframework.com.cmm.service.FileMngUtil; | |
| 30 | -import egovframework.com.cmm.service.FileVO; | |
| 31 | -import egovframework.com.cop.bbs.service.BoardMasterVO; | |
| 32 | -import egovframework.com.cop.bbs.service.BoardVO; | |
| 33 | -import egovframework.com.cop.cmy.service.Community; | |
| 34 | -import egovframework.com.cop.cmy.service.CommunityMnuVO; | |
| 35 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 36 | -import egovframework.com.cop.cmy.service.CommunityUserVO; | |
| 37 | -import egovframework.com.cop.cmy.service.CommunityVO; | |
| 38 | -import egovframework.com.cop.cmy.service.CommunityMnu; | |
| 39 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 40 | -import egovframework.com.cop.com.service.ConfirmManageService; | |
| 41 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 42 | -import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 43 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 44 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 45 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 46 | -import egovframework.com.utl.fcc.service.EgovDateUtil; | |
| 47 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 48 | -import egovframework.rte.fdl.cmmn.exception.EgovBizException; | |
| 49 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 50 | -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 51 | - | |
| 52 | - | |
| 53 | -//커뮤니티 정보를 관리하기 위한 컨트롤러 클래스 | |
| 54 | -@Controller("EgovCommunityManageController") | |
| 55 | -public class EgovCommunityManageController { | |
| 56 | - | |
| 57 | - @Resource(name = "EgovCommunityManageService") | |
| 58 | - private EgovCommunityManageService cmmntyService; | |
| 59 | - | |
| 60 | - @Resource(name = "EgovConfirmManageService") | |
| 61 | - private ConfirmManageService confmService; | |
| 62 | - | |
| 63 | - @Resource(name = "propertiesService") | |
| 64 | - protected EgovPropertyService propertyService; | |
| 65 | - | |
| 66 | - @Resource(name = "siteManageService") | |
| 67 | - SiteManageService siteManageService; | |
| 68 | - | |
| 69 | - @Resource(name="cmmUseService") | |
| 70 | - private CmmUseService cmmUseService; | |
| 71 | - | |
| 72 | - @Resource(name = "fileMngUtil") | |
| 73 | - private FileMngUtil fileUtil; | |
| 74 | - | |
| 75 | - @Resource(name = "egovMessageSource") | |
| 76 | - EgovMessageSource egovMessageSource; | |
| 77 | - | |
| 78 | - @Autowired | |
| 79 | - private DefaultBeanValidator beanValidator; | |
| 80 | - | |
| 81 | - Logger log = Logger.getLogger(this.getClass()); | |
| 82 | - | |
| 83 | - | |
| 84 | - //커뮤니티 관리자 권한을 확인한다. | |
| 85 | - protected void checkAuthority(String trgetId, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 86 | - | |
| 87 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 88 | - | |
| 89 | - if (user == null) { | |
| 90 | - throw new EgovBizException("인증된 사용자 정보가 존재하지 않습니다."); | |
| 91 | - } | |
| 92 | - | |
| 93 | - if (trgetId.startsWith("CMMNTY_")) { | |
| 94 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 95 | - | |
| 96 | - cmmntyUser.setCmmntyId(trgetId); | |
| 97 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 98 | - | |
| 99 | - if (!cmmntyService.isManager(cmmntyUser)) { | |
| 100 | - throw new EgovBizException("해당 커뮤니티 관리자만 사용하실 수 있습니다."); | |
| 101 | - } | |
| 102 | - } else { | |
| 103 | - throw new EgovBizException("대상ID 정보가 정확하지 않습니다."); | |
| 104 | - } | |
| 105 | - } | |
| 106 | - | |
| 107 | - //커뮤니티 메인에 대한 목록을 조회한다. | |
| 108 | - @RequestMapping("/cop/cmy/selectCmmntyInfs.do") | |
| 109 | - public String selectCmmntyInfs(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 110 | - | |
| 111 | - /** 사이트 정보 */ | |
| 112 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 113 | - model.addAttribute("siteInfo", siteVO); | |
| 114 | - | |
| 115 | - cmmntyVO.setSiteId(siteVO.getSiteId()); | |
| 116 | - cmmntyVO.setSysTyCode(siteVO.getSysTyCode()); | |
| 117 | - | |
| 118 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 119 | - if(user != null) { | |
| 120 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 121 | - cmmntyUser.setSiteId(cmmntyVO.getSiteId()); | |
| 122 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 123 | - cmmntyUser.setCmmntyId(cmmntyVO.getCmmntyId()); | |
| 124 | - model.addAttribute("USER_SBSCRB", cmmntyService.selectMyCmmntyList(cmmntyUser)); //사용자 가입목록 | |
| 125 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 126 | - } | |
| 127 | - | |
| 128 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 129 | - cmmntyVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 130 | - cmmntyVO.setPageSize(propertyService.getInt("pageSize")); | |
| 131 | - paginationInfo.setCurrentPageNo(cmmntyVO.getPageIndex()); | |
| 132 | - paginationInfo.setRecordCountPerPage(cmmntyVO.getRecordCountPerPage()); | |
| 133 | - paginationInfo.setPageSize(cmmntyVO.getPageSize()); | |
| 134 | - cmmntyVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 135 | - cmmntyVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 136 | - cmmntyVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 137 | - | |
| 138 | - HashMap<String, Object> map = (HashMap<String, Object>)cmmntyService.selectCommunityInfs(cmmntyVO); | |
| 139 | - model.addAttribute("resultList", map.get("resultList")); | |
| 140 | - int resultCnt = Integer.parseInt((String)map.get("resultCnt")); | |
| 141 | - paginationInfo.setTotalRecordCount(resultCnt); | |
| 142 | - | |
| 143 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 144 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 145 | - | |
| 146 | - model.addAttribute("CmmntyFileStoreWebPath", propertyService.getString("Cmmnty.fileStoreWebPath")); | |
| 147 | - | |
| 148 | - return "cop/cmy/EgovCmmntyInfs"; | |
| 149 | - } | |
| 150 | - | |
| 151 | - //커뮤니티 메인에 대한 목록을 조회한다. | |
| 152 | - @RequestMapping("/cop/cmy/selectCmmntyJsonList.do") | |
| 153 | - public void selectCmmntyMainList(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 154 | - | |
| 155 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 156 | - | |
| 157 | - paginationInfo.setCurrentPageNo(cmmntyVO.getPageIndex()); | |
| 158 | - paginationInfo.setRecordCountPerPage(cmmntyVO.getRecordCountPerPage()); | |
| 159 | - paginationInfo.setPageSize(cmmntyVO.getPageSize()); | |
| 160 | - | |
| 161 | - cmmntyVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 162 | - cmmntyVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 163 | - cmmntyVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 164 | - | |
| 165 | - HashMap map = (HashMap)cmmntyService.selectCommunityInfs(cmmntyVO); | |
| 166 | - | |
| 167 | - List<CommunityVO> resultList = (List<CommunityVO>) map.get("resultList"); | |
| 168 | - int resultCnt = Integer.parseInt((String)map.get("resultCnt")); | |
| 169 | - | |
| 170 | - CommunityVO result = null; | |
| 171 | - JSONObject jObj = null; | |
| 172 | - JSONArray jArray = new JSONArray(); | |
| 173 | - if(resultList != null && resultList.size() > 0) { | |
| 174 | - for(int i=0; i < resultList.size(); i++) { | |
| 175 | - result = resultList.get(i); | |
| 176 | - jObj = new JSONObject(); | |
| 177 | - jObj.put("cmmntyId", egovframework.com.utl.fcc.service.EgovStringUtil.isNullToString(result.getCmmntyId())); | |
| 178 | - jObj.put("cmmntyNm", egovframework.com.utl.fcc.service.EgovStringUtil.isNullToString(result.getCmmntyNm())); | |
| 179 | - jObj.put("cmmntyAdres", egovframework.com.utl.fcc.service.EgovStringUtil.isNullToString(result.getCmmntyAdres())); | |
| 180 | - jObj.put("cmmntyIntrcn", egovframework.com.utl.fcc.service.EgovStringUtil.isNullToString(result.getCmmntyIntrcn())); | |
| 181 | - jObj.put("atchFileIcon", egovframework.com.utl.fcc.service.EgovStringUtil.isNullToString(result.getAtchFileIcon())); | |
| 182 | - jObj.put("frstRegisterNm", egovframework.com.utl.fcc.service.EgovStringUtil.isNullToString(result.getFrstRegisterNm())); | |
| 183 | - jObj.put("resultCnt", resultCnt); | |
| 184 | - jObj.put("userCo", egovframework.com.utl.fcc.service.EgovStringUtil.isNullToString(result.getUserCo())); | |
| 185 | - jArray.add(jObj); | |
| 186 | - } | |
| 187 | - } | |
| 188 | - | |
| 189 | - response.setContentType("text/javascript; charset=utf-8"); | |
| 190 | - PrintWriter printwriter = response.getWriter(); | |
| 191 | - printwriter.println(jArray.toString()); | |
| 192 | - printwriter.flush(); | |
| 193 | - printwriter.close(); | |
| 194 | - } | |
| 195 | - | |
| 196 | - //커뮤니티 등록을 위한 약관페이지로 이동한다. | |
| 197 | - @RequestMapping("/cop/cmy/selectCmmntyStplat.do") | |
| 198 | - public String selectCmmntyStplat(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 199 | - | |
| 200 | - /** 사이트 정보 */ | |
| 201 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 202 | - model.addAttribute("siteInfo", siteVO); | |
| 203 | - | |
| 204 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 205 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 206 | - | |
| 207 | - if(user == null) { | |
| 208 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 209 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 210 | - } | |
| 211 | - request.getSession().setAttribute("sessionVO", cmmntyVO); | |
| 212 | - | |
| 213 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 214 | - | |
| 215 | - return "cop/cmy/EgovCmmntyStplat"; | |
| 216 | - } | |
| 217 | - | |
| 218 | - //커뮤니티 등록을 위한 등록페이지로 이동한다. | |
| 219 | - @RequestMapping("/cop/cmy/addCmmntyInf.do") | |
| 220 | - public String addCmmntyInf(@ModelAttribute("searchVO") CommunityVO cmmntyVO, | |
| 221 | - Community community, | |
| 222 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 223 | - | |
| 224 | - /** 사이트 정보 */ | |
| 225 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 226 | - model.addAttribute("siteInfo", siteVO); | |
| 227 | - | |
| 228 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 229 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 230 | - if(user == null) { | |
| 231 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 232 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 233 | - } | |
| 234 | - | |
| 235 | - if (request.getSession().getAttribute("sessionVO") == null) return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 236 | - | |
| 237 | - /** 공통코드 - 커뮤니티구분코드(COM201) */ | |
| 238 | - CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); | |
| 239 | - voComCode = new CmmnDetailCodeVO(); | |
| 240 | - voComCode.setCodeId("COM201"); | |
| 241 | - List<CmmnDetailCodeVO> listComCode = cmmUseService.selectCmmCodeDetail(voComCode); | |
| 242 | - model.addAttribute("cmmntySe", listComCode); | |
| 243 | - | |
| 244 | - if(!"".equals(cmmntyVO.getSearchTy())) community.setCmmntySeCode(cmmntyVO.getSearchTy()); | |
| 245 | - | |
| 246 | - model.addAttribute("communityVO", community); | |
| 247 | - | |
| 248 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 249 | - | |
| 250 | - return "cop/cmy/EgovCmmntyRegist"; | |
| 251 | - } | |
| 252 | - | |
| 253 | - //커뮤니티 정보를 등록 개설한다. | |
| 254 | - @RequestMapping("/cop/cmy/insertCmmntyInf.do") | |
| 255 | - public String insertCmmntyInf(final MultipartHttpServletRequest multiRequest, | |
| 256 | - @ModelAttribute("searchVO") CommunityVO cmmntyVO, | |
| 257 | - Community community, | |
| 258 | - BindingResult bindingResult, | |
| 259 | - ModelMap model, | |
| 260 | - HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 261 | - | |
| 262 | - if (request.getSession().getAttribute("sessionVO") == null) return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 263 | - | |
| 264 | - //커뮤니티 개설정보 무결성 체크 | |
| 265 | - boolean checkCmmnty = true; | |
| 266 | - | |
| 267 | - beanValidator.validate(community, bindingResult); | |
| 268 | - if (bindingResult.hasErrors()) { | |
| 269 | - checkCmmnty = false; | |
| 270 | - } | |
| 271 | - | |
| 272 | - if(checkCmmnty){ | |
| 273 | - if (cmmntyService.checkCmmntyNmDplct(cmmntyVO) > 0) { | |
| 274 | - model.addAttribute("message", "입력하신 커뮤니티명은 이미 사용중입니다. 다른커뮤니티명을 입력하여 주십시오."); //커뮤니티명 중복확인 체크 | |
| 275 | - checkCmmnty = false; | |
| 276 | - } | |
| 277 | - } | |
| 278 | - | |
| 279 | - if(checkCmmnty){ | |
| 280 | - if (cmmntyService.checkCmmntyAdresDplct(cmmntyVO) > 0) { | |
| 281 | - model.addAttribute("message", "입력하신 커뮤니티 주소는 이미 사용중입니다. 다른커뮤니티 주소를 입력하여 주십시오."); //커뮤니티 주소 중복확인 체크 | |
| 282 | - checkCmmnty = false; | |
| 283 | - } | |
| 284 | - } | |
| 285 | - | |
| 286 | - | |
| 287 | - if (checkCmmnty) { | |
| 288 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 289 | - community.setSiteId(siteVO.getSiteId()); | |
| 290 | - community.setSysTyCode(siteVO.getSysTyCode()); | |
| 291 | - | |
| 292 | - List<FileVO> result = null; | |
| 293 | - | |
| 294 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 295 | - if(!files.isEmpty()) { | |
| 296 | - result = fileUtil.directParseFileInf(files, "CMMNTY_", 0, "Cmmnty.fileStorePath", ""); | |
| 297 | - community.setFileValue(result); | |
| 298 | - } | |
| 299 | - | |
| 300 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 301 | - | |
| 302 | - community.setEmplyrId(user.getId()); | |
| 303 | - community.setFrstRegisterNm(user.getName()); | |
| 304 | - community.setUseAt("Y"); | |
| 305 | - community.setRegistSeCode("REGC02"); | |
| 306 | - community.setFrstRegisterId(user.getId()); | |
| 307 | - | |
| 308 | - cmmntyService.insertCommunityInf(community); | |
| 309 | - | |
| 310 | - request.getSession().removeAttribute("sessionVO"); | |
| 311 | - return "forward:/cmy/"+cmmntyVO.getCmmntyAdres()+".do"; | |
| 312 | - }else{ | |
| 313 | - /** 공통코드 - 커뮤니티구분코드(COM201) */ | |
| 314 | - CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); | |
| 315 | - voComCode = new CmmnDetailCodeVO(); | |
| 316 | - voComCode.setCodeId("COM201"); | |
| 317 | - List<CmmnDetailCodeVO> listComCode = cmmUseService.selectCmmCodeDetail(voComCode); | |
| 318 | - model.addAttribute("cmmntySe", listComCode); | |
| 319 | - | |
| 320 | - if(!"".equals(cmmntyVO.getSearchTy())) community.setCmmntySeCode(cmmntyVO.getSearchTy()); | |
| 321 | - return "cop/cmy/EgovCmmntyRegist"; | |
| 322 | - } | |
| 323 | - } | |
| 324 | - | |
| 325 | - //커뮤니티 정보 수정을 위한 수정페이지로 이동한다. | |
| 326 | - @RequestMapping("/cop/cmy/forUpdateCmmntyInf.do") | |
| 327 | - public String forUpdateCmmntyInf(@ModelAttribute("searchVO") CommunityVO cmmntyVO, Community community, | |
| 328 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) | |
| 329 | - throws Exception { | |
| 330 | - | |
| 331 | - checkAuthority(cmmntyVO.getCmmntyId(), request, response); //권한확인 | |
| 332 | - | |
| 333 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 334 | - model.addAttribute("siteInfo", siteVO); | |
| 335 | - cmmntyVO.setSiteId(siteVO.getSiteId()); | |
| 336 | - cmmntyVO.setSysTyCode(siteVO.getSysTyCode()); | |
| 337 | - | |
| 338 | - /** 공통코드 - 커뮤니티구분코드(COM201) */ | |
| 339 | - CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); | |
| 340 | - voComCode = new CmmnDetailCodeVO(); | |
| 341 | - voComCode.setCodeId("COM201"); | |
| 342 | - model.addAttribute("cmmntySe", cmmUseService.selectCmmCodeDetail(voComCode)); | |
| 343 | - | |
| 344 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 345 | - | |
| 346 | - model.addAttribute("communityVO", cmmntyService.selectCommunityInf(cmmntyVO)); | |
| 347 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 348 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 349 | - | |
| 350 | - request.getSession().setAttribute("sessionVO", cmmntyVO); | |
| 351 | - return "cop/cmy/EgovCmmntyUpdt"; | |
| 352 | - } | |
| 353 | - | |
| 354 | - //커뮤니티 정보를 수정한다. | |
| 355 | - @RequestMapping("/cop/cmy/updtCmmntyInf.do") | |
| 356 | - public String updtCmmntyInf(final MultipartHttpServletRequest multiRequest, | |
| 357 | - @ModelAttribute("searchVO") CommunityVO cmmntyVO, | |
| 358 | - Community community, | |
| 359 | - BindingResult bindingResult, ModelMap model, | |
| 360 | - HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 361 | - | |
| 362 | - checkAuthority(cmmntyVO.getCmmntyId(), request, response); //권한확인 | |
| 363 | - | |
| 364 | - if (request.getSession().getAttribute("sessionVO") == null) return "forward:/cmy/"+cmmntyVO.getCmmntyAdres()+".do"; | |
| 365 | - | |
| 366 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 367 | - | |
| 368 | - beanValidator.validate(community, bindingResult); | |
| 369 | - if (bindingResult.hasErrors()) { | |
| 370 | - | |
| 371 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 372 | - cmmntyVO.setSiteId(siteVO.getSiteId()); | |
| 373 | - cmmntyVO.setSysTyCode(siteVO.getSysTyCode()); | |
| 374 | - | |
| 375 | - /** 공통코드 - 커뮤니티구분코드(COM201) */ | |
| 376 | - CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); | |
| 377 | - voComCode = new CmmnDetailCodeVO(); | |
| 378 | - voComCode.setCodeId("COM201"); | |
| 379 | - List<CmmnDetailCodeVO> listComCode = cmmUseService.selectCmmCodeDetail(voComCode); | |
| 380 | - model.addAttribute("cmmntySe", listComCode); | |
| 381 | - | |
| 382 | - model.addAttribute("communityVO", cmmntyService.selectCommunityInf(cmmntyVO)); | |
| 383 | - | |
| 384 | - return "cop/cmy/EgovCmmntyUpdt"; | |
| 385 | - } | |
| 386 | - | |
| 387 | - if (user != null) { | |
| 388 | - | |
| 389 | - List<FileVO> result = null; | |
| 390 | - | |
| 391 | - final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 392 | - if(!files.isEmpty()) { | |
| 393 | - result = fileUtil.directParseFileInf(files, "CMMNTY_", 0, "Cmmnty.fileStorePath", ""); | |
| 394 | - community.setFileValue(result); | |
| 395 | - } | |
| 396 | - community.setLastUpdusrId(user.getId()); | |
| 397 | - | |
| 398 | - cmmntyService.updateCommunityInf(community); | |
| 399 | - } | |
| 400 | - request.getSession().removeAttribute("sessionVO"); | |
| 401 | - return "forward:/cmy/"+cmmntyVO.getCmmntyAdres()+".do"; | |
| 402 | - } | |
| 403 | - | |
| 404 | - //정규식에 의한 페이지 주소 확인 | |
| 405 | - public String extractUrlParts(String url) { | |
| 406 | - | |
| 407 | - String rVal = ""; | |
| 408 | - Pattern urlPattern = Pattern.compile("^(/cmy/?)\\/([^#\\s\\?]*)?$"); | |
| 409 | - Matcher mc = urlPattern.matcher(url); | |
| 410 | - | |
| 411 | - if(mc.matches() && mc.group(2) != null && !"".equals(mc.group(2))){ | |
| 412 | - rVal = mc.group(2).replaceAll(".do", ""); | |
| 413 | - } | |
| 414 | - return rVal; | |
| 415 | - } | |
| 416 | - | |
| 417 | - //커뮤니티 메인페이지의 기본 내용(게시판 4개 표시) 조회한다. | |
| 418 | - @RequestMapping(value = "/cmy/*") | |
| 419 | - public String selectCmmntyMainPage(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 420 | - | |
| 421 | - String cmmntyAdres = extractUrlParts(request.getRequestURI()); //현재 URL정보 | |
| 422 | - | |
| 423 | - String cmmntyAdresReult = cmmntyService.selectCmmntyFindId(cmmntyAdres); | |
| 424 | - | |
| 425 | - if(cmmntyAdresReult == null || "".equals(cmmntyAdresReult)){ | |
| 426 | - model.addAttribute("message", "커뮤니티가 개설되어 있지 않거나 존재하지 않는 커뮤니티 입니다."); | |
| 427 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 428 | - } | |
| 429 | - | |
| 430 | - cmmntyVO.setCmmntyId(cmmntyAdresReult); //커뮤니티 주소 매칭 | |
| 431 | - | |
| 432 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 433 | - model.addAttribute("siteInfo", siteVO); | |
| 434 | - cmmntyVO.setSiteId(siteVO.getSiteId()); | |
| 435 | - cmmntyVO.setSysTyCode(siteVO.getSysTyCode()); | |
| 436 | - | |
| 437 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 438 | - if(user != null) { | |
| 439 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 440 | - cmmntyUser.setSiteId(cmmntyVO.getSiteId()); | |
| 441 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 442 | - cmmntyUser.setCmmntyId(cmmntyVO.getCmmntyId()); | |
| 443 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 444 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 445 | - } | |
| 446 | - | |
| 447 | - BoardMasterVO bbsVo = new BoardMasterVO(); | |
| 448 | - bbsVo.setSiteId(cmmntyVO.getSiteId()); | |
| 449 | - bbsVo.setSysTyCode(cmmntyVO.getSysTyCode()); | |
| 450 | - bbsVo.setTrgetId(cmmntyVO.getCmmntyId()); | |
| 451 | - | |
| 452 | - // 게시판 목록 정보 처리 | |
| 453 | - List<CommunityMnu> bbsResult = cmmntyService.selectCommunityBbsMaster(cmmntyVO); | |
| 454 | - | |
| 455 | - model.addAttribute("bbsList", bbsResult); | |
| 456 | - | |
| 457 | - // 게시물 목록 정보 처리 | |
| 458 | - BoardVO boardVo = new BoardVO(); | |
| 459 | - CommunityMnu masterVo = null; | |
| 460 | - | |
| 461 | - boardVo.setTrgetId(cmmntyVO.getCmmntyId()); | |
| 462 | - | |
| 463 | - //신규 게시물 처리 | |
| 464 | - boardVo.setRecordCountPerPage(15); | |
| 465 | - List<BoardVO> bbsNewResult = cmmntyService.selectBoardNewArticles(boardVo); | |
| 466 | - model.addAttribute("bbsNewList", bbsNewResult); | |
| 467 | - | |
| 468 | - if(bbsResult != null && bbsResult.size() > 0) { | |
| 469 | - for (int i = 0; i < bbsResult.size() && i < 4; i++) { | |
| 470 | - masterVo = bbsResult.get(i); | |
| 471 | - boardVo = new BoardVO(); | |
| 472 | - boardVo.setTrgetId(cmmntyVO.getCmmntyId()); | |
| 473 | - boardVo.setBbsId(masterVo.getBbsId()); | |
| 474 | - boardVo.setBbsNm(masterVo.getBbsNm()); | |
| 475 | - boardVo.setTmplatId(masterVo.getTmplatId()); | |
| 476 | - | |
| 477 | - boardVo.setRecordCountPerPage(5); | |
| 478 | - bbsResult.get(i).setAriticleList(cmmntyService.selectBoardNewArticles(boardVo)); | |
| 479 | - } | |
| 480 | - } | |
| 481 | - | |
| 482 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 483 | - | |
| 484 | - return "cop/cmy/EgovCmmntyMainPage"; | |
| 485 | - } | |
| 486 | - | |
| 487 | - //커뮤니티 소개 페이지. | |
| 488 | - @RequestMapping("/cop/cmy/selectCmmntyInfo.do") | |
| 489 | - public String selectCmmntyView(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 490 | - | |
| 491 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 492 | - model.addAttribute("siteInfo", siteVO); | |
| 493 | - | |
| 494 | - //커뮤니티 정보 | |
| 495 | - model.addAttribute("cmmntyVO", cmmntyService.selectCommunityInf(cmmntyVO)); | |
| 496 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 497 | - | |
| 498 | - return "cop/cmy/EgovCmmntyInfo"; | |
| 499 | - } | |
| 500 | - | |
| 501 | - //커뮤니티 사용신청(회원가입) 등록페이지. | |
| 502 | - @RequestMapping("/cop/cmy/selectCmmntyUserBySelf.do") | |
| 503 | - public String selectCmmntyUserBySelf(@ModelAttribute("communityUserVO") CommunityUserVO communityUserVO, | |
| 504 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 505 | - | |
| 506 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 507 | - model.addAttribute("siteInfo", siteVO); | |
| 508 | - | |
| 509 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 510 | - if(user == null) { | |
| 511 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 512 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 513 | - } | |
| 514 | - | |
| 515 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 516 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 517 | - request.getSession().setAttribute("sessionVO", communityUserVO); | |
| 518 | - return "cop/cmy/EgovCmmntyUserBySelf"; | |
| 519 | - } | |
| 520 | - | |
| 521 | - //커뮤니티 사용신청(회원가입)을 등록한다. | |
| 522 | - @RequestMapping("/cop/cmy/insertCmmntyUserBySelf.do") | |
| 523 | - public String insertCmmntyUserBySelf(@ModelAttribute("communityUserVO") CommunityUserVO communityUserVO, | |
| 524 | - BindingResult bindingResult, | |
| 525 | - @ModelAttribute("cmmntyVO") CommunityVO cmmntyVO, | |
| 526 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 527 | - | |
| 528 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 529 | - | |
| 530 | - if(user == null) { | |
| 531 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 532 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 533 | - } | |
| 534 | - | |
| 535 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 536 | - model.addAttribute("siteInfo", siteVO); | |
| 537 | - | |
| 538 | - beanValidator.validate(communityUserVO, bindingResult); | |
| 539 | - if (bindingResult.hasErrors()) { | |
| 540 | - | |
| 541 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 542 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 543 | - | |
| 544 | - return "cop/cmy/EgovCmmntyUserBySelf"; | |
| 545 | - } | |
| 546 | - | |
| 547 | - if (request.getSession().getAttribute("sessionVO") == null) return "forward:/cop/cmy/selectCmmntyUserBySelf.do"; | |
| 548 | - | |
| 549 | - String retVal = ""; | |
| 550 | - | |
| 551 | - communityUserVO.setFrstRegisterId(user.getId()); | |
| 552 | - communityUserVO.setEmplyrId(user.getId()); | |
| 553 | - | |
| 554 | - //--------------------------------------------- | |
| 555 | - // 재가입정책에 따른 가입 처리 | |
| 556 | - // 가입방식 - confmPolicyCode Y:가입신청시 자동승인, N:확인 후 수동승인 | |
| 557 | - // 재가입정책 - resbscrbPolicyCode Y:재가입 허용, N:재가입 불가 | |
| 558 | - //--------------------------------------------- | |
| 559 | - CommunityVO resultInfo = cmmntyService.selectCommunityInf(cmmntyVO); | |
| 560 | - | |
| 561 | - if ("Y".equals(resultInfo.getResbscrbPolicyCode())) communityUserVO.setUseAt("Y"); // 재가입허용시 중복유무 체크 | |
| 562 | - retVal = cmmntyService.checkCommunityUserInf(communityUserVO); | |
| 563 | - | |
| 564 | - if (!retVal.equals("EXIST")) { | |
| 565 | - | |
| 566 | - CommunityUser manager = cmmntyService.selectManager(cmmntyVO); | |
| 567 | - | |
| 568 | - ConfirmHistoryVO history = new ConfirmHistoryVO(); | |
| 569 | - | |
| 570 | - history.setAutoAt(resultInfo.getConfmPolicyCode()); // 자동승인여부 | |
| 571 | - history.setConfmRqesterId(user.getId()); // 요청자 ID | |
| 572 | - history.setConfmRqesterNm(user.getName()); // 요청자 이름 | |
| 573 | - history.setConfmRqesterIntrcn(communityUserVO.getUserIntrcn()); // 요청자 소개 | |
| 574 | - history.setConfmerId(manager.getEmplyrId()); // 승인자 ID | |
| 575 | - history.setConfmTyCode("CF11"); // 커뮤니티사용자등록 (커뮤니티사용자등록) | |
| 576 | - history.setConfmSttusCode("AP01"); // 승인요청(AP01:승인요청 AP02:승인허가 AP03:승인반려) | |
| 577 | - history.setOpertTyCode("WC01"); // 회원가입 | |
| 578 | - history.setTrgetJobTyCode("CMY"); // 대상작업구분 | |
| 579 | - history.setTrgetJobId(communityUserVO.getCmmntyId()); // 대상작업 ID | |
| 580 | - history.setMyMenuAt(communityUserVO.getMyMenuAt()); | |
| 581 | - | |
| 582 | - int cnt = confmService.countConfirmRequest(history); //승인중인 건수 중복체크 | |
| 583 | - | |
| 584 | - if (cnt == 0) { | |
| 585 | - | |
| 586 | - confmService.insertConfirmRequest(history); | |
| 587 | - | |
| 588 | - if("Y".equals(resultInfo.getConfmPolicyCode())) { | |
| 589 | - retVal = "CMMNTY_MBER_B"; //회원가입 완료 | |
| 590 | - }else{ | |
| 591 | - retVal = "CMMNTY_MBER_A"; //회원가입 요청 | |
| 592 | - } | |
| 593 | - } else { | |
| 594 | - retVal = "ING"; | |
| 595 | - } | |
| 596 | - }else{ | |
| 597 | - if ("N".equals(resultInfo.getResbscrbPolicyCode())){ | |
| 598 | - retVal="CMMNTY_INTRCP"; //재가입 차단메세지 | |
| 599 | - }else{ | |
| 600 | - retVal="CMMNTY_MBER_FC"; //중복가입 메세지 | |
| 601 | - } | |
| 602 | - } | |
| 603 | - | |
| 604 | - cmmntyVO.setResultCode(retVal); | |
| 605 | - request.getSession().removeAttribute("sessionVO"); | |
| 606 | - return "forward:/cop/cmy/selectCmmntyMsg.do"; | |
| 607 | - } | |
| 608 | - | |
| 609 | - //커뮤니티 탈퇴신청 페이지로 이동한다. | |
| 610 | - @RequestMapping("/cop/cmy/selectCmmntyUserSecsn.do") | |
| 611 | - public String selectCmmntyUserSecsn(@ModelAttribute("searchVO") CommunityVO cmmntyVO, | |
| 612 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 613 | - | |
| 614 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 615 | - model.addAttribute("siteInfo", siteVO); | |
| 616 | - | |
| 617 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 618 | - if(user == null) { | |
| 619 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 620 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 621 | - } | |
| 622 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 623 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 624 | - | |
| 625 | - request.getSession().setAttribute("sessionVO", cmmntyVO); | |
| 626 | - return "cop/cmy/EgovCmmntyUserSecsn"; | |
| 627 | - } | |
| 628 | - | |
| 629 | - //커뮤니티 탈퇴신청을 처리한다. | |
| 630 | - @RequestMapping("/cop/cmy/deleteCmmntyUserSecsn.do") | |
| 631 | - public String deleteCmmntyUserBySelf(@ModelAttribute("cmmntyUser") CommunityUser cmmntyUser, | |
| 632 | - @ModelAttribute("cmmntyVO") CommunityVO cmmntyVO, | |
| 633 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 634 | - | |
| 635 | - String retVal = ""; | |
| 636 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 637 | - | |
| 638 | - if(user == null) { | |
| 639 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 640 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 641 | - } else { | |
| 642 | - | |
| 643 | - if (request.getSession().getAttribute("sessionVO") == null) return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 644 | - | |
| 645 | - cmmntyUser.setUseAt("N"); | |
| 646 | - cmmntyUser.setLastUpdusrId(user.getId()); | |
| 647 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 648 | - cmmntyUser.setSecsnDe(EgovDateUtil.getToday()); | |
| 649 | - | |
| 650 | - ConfirmHistoryVO history = new ConfirmHistoryVO(); | |
| 651 | - history.setConfmRqesterId(user.getId()); | |
| 652 | - history.setConfmerId(cmmntyUser.getEmplyrId()); | |
| 653 | - history.setConfmDe(EgovDateUtil.getToday()); | |
| 654 | - history.setConfmTyCode("CF12"); //커뮤니티사용자탈퇴 | |
| 655 | - history.setConfmSttusCode("AP02"); //승인허가 | |
| 656 | - history.setOpertTyCode("WC03"); //회원탈퇴 | |
| 657 | - history.setOpertId(""); | |
| 658 | - history.setTrgetJobTyCode("CMY"); | |
| 659 | - history.setTrgetJobId(cmmntyUser.getCmmntyId()); | |
| 660 | - | |
| 661 | - confmService.insertConfirmRequest(history); | |
| 662 | - cmmntyService.deleteCommunityUserInf(cmmntyUser); | |
| 663 | - retVal = "DEL_REQ_SUCCESS"; | |
| 664 | - } | |
| 665 | - | |
| 666 | - cmmntyVO.setResultCode(retVal); | |
| 667 | - request.getSession().removeAttribute("sessionVO"); | |
| 668 | - return "forward:/cop/cmy/selectCmmntyMsg.do"; | |
| 669 | - } | |
| 670 | - | |
| 671 | - //커뮤니티 폐쇄신청페이지로 이동한다. | |
| 672 | - @RequestMapping("/cop/cmy/selectCmmntyClosing.do") | |
| 673 | - public String selectCmmntyClosing(@ModelAttribute("searchVO") CommunityVO cmmntyVO, | |
| 674 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 675 | - | |
| 676 | - checkAuthority(cmmntyVO.getCmmntyId(), request, response); //권한확인 | |
| 677 | - | |
| 678 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 679 | - model.addAttribute("siteInfo", siteVO); | |
| 680 | - | |
| 681 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 682 | - if(user == null) { | |
| 683 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 684 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 685 | - } | |
| 686 | - request.getSession().setAttribute("sessionVO", cmmntyVO); | |
| 687 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 688 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 689 | - return "cop/cmy/EgovCmmntyClosing"; | |
| 690 | - } | |
| 691 | - | |
| 692 | - //커뮤니티를 폐쇄한다. | |
| 693 | - @RequestMapping("/cop/cmy/deleteCmmntyClosing.do") | |
| 694 | - public String updtCmmntyCls(@ModelAttribute("searchVO") CommunityVO cmmntyVO, | |
| 695 | - Community community, | |
| 696 | - ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 697 | - | |
| 698 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 699 | - if(user == null) { | |
| 700 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 701 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 702 | - } | |
| 703 | - | |
| 704 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 705 | - | |
| 706 | - cmmntyUser.setCmmntyId(cmmntyVO.getCmmntyId()); | |
| 707 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 708 | - CommunityUser result = cmmntyService.selectSingleCommunityUserInf(cmmntyUser); | |
| 709 | - | |
| 710 | - if(!"Y".equals(result.getMngrAt())){ | |
| 711 | - model.addAttribute("message", "권한이 없습니다."); | |
| 712 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 713 | - } | |
| 714 | - | |
| 715 | - cmmntyService.deleteCommunityInf(community); | |
| 716 | - model.addAttribute("message", "커뮤니티를 정상적으로 폐쇄하였습니다."); | |
| 717 | - | |
| 718 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 719 | - } | |
| 720 | - | |
| 721 | - | |
| 722 | - //커뮤니티 등록을 위한 커뮤니티명을 중복검색 한다. | |
| 723 | - @RequestMapping("/cop/cmy/selectCmmntyNmDplct.do") | |
| 724 | - public String selectCmmntyNmDplct(@ModelAttribute("cmmntyVO") CommunityVO cmmntyVO, | |
| 725 | - ModelMap model, HttpServletRequest request) throws Exception { | |
| 726 | - | |
| 727 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 728 | - model.addAttribute("siteInfo", siteVO); | |
| 729 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 730 | - | |
| 731 | - int cmmntyNmCnt = -1; | |
| 732 | - | |
| 733 | - if(EgovStringUtil.isEmpty(cmmntyVO.getCmmntyNm())){ //커뮤니티명이 입력시에만 중복확인 처리 한다. | |
| 734 | - model.addAttribute("cmmntyNmCnt", cmmntyNmCnt); | |
| 735 | - return "cop/cmy/EgovCmmntyNmDplct"; | |
| 736 | - } | |
| 737 | - | |
| 738 | - model.addAttribute("cmmntyNmCnt", cmmntyService.checkCmmntyNmDplct(cmmntyVO)); | |
| 739 | - return "cop/cmy/EgovCmmntyNmDplct"; | |
| 740 | - } | |
| 741 | - | |
| 742 | - //커뮤니티 등록을 위한 커뮤니티 주소를 중복검색 한다. | |
| 743 | - @RequestMapping("/cop/cmy/selectCmmntyAdresDplct.do") | |
| 744 | - public String selectCmmntyAdresDplct(@ModelAttribute("cmmntyVO") CommunityVO cmmntyVO, | |
| 745 | - ModelMap model, HttpServletRequest request) throws Exception { | |
| 746 | - | |
| 747 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 748 | - model.addAttribute("siteInfo", siteVO); | |
| 749 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 750 | - | |
| 751 | - int cmmntyAdresCnt = -1; | |
| 752 | - | |
| 753 | - if(EgovStringUtil.isEmpty(cmmntyVO.getCmmntyAdres())){ //커뮤니티주소가 입력시에만 중복확인 처리 한다. | |
| 754 | - model.addAttribute("cmmntyAdresCnt", cmmntyAdresCnt); | |
| 755 | - return "cop/cmy/EgovCmmntyAdresDplct"; | |
| 756 | - } | |
| 757 | - | |
| 758 | - model.addAttribute("cmmntyAdresCnt", cmmntyService.checkCmmntyAdresDplct(cmmntyVO)); | |
| 759 | - return "cop/cmy/EgovCmmntyAdresDplct"; | |
| 760 | - } | |
| 761 | - | |
| 762 | - //커뮤니티 메뉴를 순서를 변경한다. | |
| 763 | - @RequestMapping("/cop/cmy/updateCmmntySortOrdr.do") | |
| 764 | - public String updateMpmSortOrdr(@ModelAttribute("searchVO") CommunityMnu communityMnu, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 765 | - | |
| 766 | - checkAuthority(communityMnu.getTrgetId(), request, response); //권한확인 | |
| 767 | - | |
| 768 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 769 | - communityMnu.setSiteId(siteVO.getSiteId()); | |
| 770 | - communityMnu.setSysTyCode(siteVO.getSysTyCode()); | |
| 771 | - communityMnu.setCmmntyId(communityMnu.getTrgetId()); | |
| 772 | - | |
| 773 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 774 | - communityMnu.setEmplyrId(user.getId()); | |
| 775 | - cmmntyService.updateCommunitySortOrdr(communityMnu); | |
| 776 | - | |
| 777 | - return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 778 | - } | |
| 779 | - | |
| 780 | - //커뮤니티 게시판 마스터 목록을 조회한다. | |
| 781 | - @RequestMapping("/cop/cmy/selectCmmntyMasterInfs.do") | |
| 782 | - public String selectCmmntyMasterInfs(@ModelAttribute("searchVO") CommunityMnuVO communityMnuVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 783 | - | |
| 784 | - checkAuthority(communityMnuVO.getTrgetId(), request, response); //권한확인 | |
| 785 | - | |
| 786 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 787 | - model.addAttribute("siteInfo", siteVO); | |
| 788 | - communityMnuVO.setSiteId(siteVO.getSiteId()); | |
| 789 | - communityMnuVO.setSysTyCode(siteVO.getSysTyCode()); | |
| 790 | - | |
| 791 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 792 | - if(user == null) { | |
| 793 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 794 | - }else{ | |
| 795 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 796 | - cmmntyUser.setSiteId(communityMnuVO.getSiteId()); | |
| 797 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 798 | - cmmntyUser.setCmmntyId(communityMnuVO.getTrgetId()); | |
| 799 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 800 | - } | |
| 801 | - | |
| 802 | - communityMnuVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 803 | - communityMnuVO.setPageSize(propertyService.getInt("pageSize")); | |
| 804 | - | |
| 805 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 806 | - | |
| 807 | - paginationInfo.setCurrentPageNo(communityMnuVO.getPageIndex()); | |
| 808 | - paginationInfo.setRecordCountPerPage(communityMnuVO.getPageUnit()); | |
| 809 | - paginationInfo.setPageSize(communityMnuVO.getPageSize()); | |
| 810 | - | |
| 811 | - communityMnuVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 812 | - communityMnuVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 813 | - communityMnuVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 814 | - | |
| 815 | - Map<String, Object> map = cmmntyService.selectCmmntyMasterInfs(communityMnuVO); | |
| 816 | - int totCnt = Integer.parseInt((String)map.get("resultCnt")); | |
| 817 | - | |
| 818 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 819 | - | |
| 820 | - model.addAttribute("resultList", map.get("resultList")); | |
| 821 | - model.addAttribute("resultCnt", map.get("resultCnt")); | |
| 822 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 823 | - | |
| 824 | - return "cop/cmy/EgovCmybbsMstrList"; | |
| 825 | - } | |
| 826 | - | |
| 827 | - //커뮤니티에 대한 처리결과 메세지를 보여준다. | |
| 828 | - @RequestMapping("/cop/cmy/selectCmmntyMsg.do") | |
| 829 | - public String selectCmmntyMsg(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 830 | - | |
| 831 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 832 | - model.addAttribute("siteInfo", siteVO); | |
| 833 | - | |
| 834 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 835 | - if(user == null) { | |
| 836 | - model.addAttribute("message", egovMessageSource.getMessage("fail.user.login")); | |
| 837 | - return "forward:/cop/cmy/selectCmmntyInfs.do"; | |
| 838 | - } | |
| 839 | - | |
| 840 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 841 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 842 | - | |
| 843 | - return "cop/cmy/EgovCmmntyMsg"; | |
| 844 | - } | |
| 845 | - | |
| 846 | - //커뮤니티 게시판의 전체검색 결과를 보여준다. | |
| 847 | - @RequestMapping("/cop/cmy/selectCmmntyBoardList.do") | |
| 848 | - public String selectCmmntyBoardList(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 849 | - | |
| 850 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 851 | - model.addAttribute("siteInfo", siteVO); | |
| 852 | - | |
| 853 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 854 | - if(user != null) { | |
| 855 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 856 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 857 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 858 | - cmmntyUser.setCmmntyId(cmmntyVO.getCmmntyId()); | |
| 859 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 860 | - model.addAttribute("LOGIN_USER_INFO", user); | |
| 861 | - } | |
| 862 | - | |
| 863 | - cmmntyVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 864 | - cmmntyVO.setPageSize(propertyService.getInt("pageSize")); | |
| 865 | - | |
| 866 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 867 | - | |
| 868 | - paginationInfo.setCurrentPageNo(cmmntyVO.getPageIndex()); | |
| 869 | - paginationInfo.setRecordCountPerPage(cmmntyVO.getPageUnit()); | |
| 870 | - paginationInfo.setPageSize(cmmntyVO.getPageSize()); | |
| 871 | - | |
| 872 | - cmmntyVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 873 | - cmmntyVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 874 | - cmmntyVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 875 | - | |
| 876 | - List<BoardVO> resultList = cmmntyService.selectCommunityBoardAllArticles(cmmntyVO); | |
| 877 | - int totCnt = cmmntyService.selectCommunityBoardAllArticlesCnt(cmmntyVO); | |
| 878 | - | |
| 879 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 880 | - | |
| 881 | - model.addAttribute("resultList", resultList); | |
| 882 | - model.addAttribute("resultCnt", totCnt); | |
| 883 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 884 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 885 | - | |
| 886 | - return "cop/cmy/EgovCommntyBoardList"; | |
| 887 | - } | |
| 888 | -} |
--- base/src/main/java/egovframework/com/cop/cmy/web/TemplateServiceController.java
... | ... | @@ -1,103 +0,0 @@ |
| 1 | -package egovframework.com.cop.cmy.web; | |
| 2 | - | |
| 3 | -import javax.annotation.Resource; | |
| 4 | -import javax.servlet.http.HttpServletRequest; | |
| 5 | -import javax.servlet.http.HttpServletResponse; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Controller; | |
| 8 | -import org.springframework.ui.ModelMap; | |
| 9 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 10 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 11 | - | |
| 12 | -import egovframework.com.cmm.service.Globals; | |
| 13 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 14 | -import egovframework.com.cop.cmy.service.CommunityVO; | |
| 15 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 16 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 17 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 18 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 19 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 20 | -import egovframework.com.utl.fcc.service.EgovHttpUtil; | |
| 21 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 22 | - | |
| 23 | -/****************************************************** | |
| 24 | - * @Class Name : TemplateServiceController.java | |
| 25 | - * @Program name : egovframework.com.cop.cmy.web | |
| 26 | - * @Descriptopn : 커뮤니티 템플릿 | |
| 27 | - * @version : 1.0.0 | |
| 28 | - * @author : 이호영 | |
| 29 | - * @created date : 2012. 1. 25. | |
| 30 | - * Modification log | |
| 31 | - * ===================================================== | |
| 32 | - * date name description | |
| 33 | - * ----------------------------------------------------- | |
| 34 | - * 2012. 1. 25. 이호영 first generated | |
| 35 | -*********************************************************/ | |
| 36 | - | |
| 37 | -@Controller("CmyTemplateServiceController") | |
| 38 | -public class TemplateServiceController { | |
| 39 | - | |
| 40 | - @Resource(name = "propertiesService") | |
| 41 | - protected EgovPropertyService propertyService; | |
| 42 | - | |
| 43 | - @Resource(name = "EgovCommunityManageService") | |
| 44 | - private EgovCommunityManageService cmmntyService; | |
| 45 | - | |
| 46 | - @Resource(name = "siteManageService") | |
| 47 | - SiteManageService siteManageService; | |
| 48 | - | |
| 49 | - @RequestMapping(value = "/cop/cmy/tmplatHead.do") | |
| 50 | - public String cmyTmplatHead(@ModelAttribute("searchVO") CommunityVO cmmntyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 51 | - | |
| 52 | - if(!"".equals(cmmntyVO.getTrgetId())) cmmntyVO.setCmmntyId(cmmntyVO.getTrgetId()); | |
| 53 | - | |
| 54 | - /* | |
| 55 | - ComDefaultCodeVO voComCode = new ComDefaultCodeVO(); | |
| 56 | - voComCode = new ComDefaultCodeVO(); | |
| 57 | - voComCode.setCodeId("COM201"); | |
| 58 | - List<CmmnDetailCode> listComCode = cmmUseService.selectCmmCodeDetail(voComCode); | |
| 59 | - model.addAttribute("cmmntySe", listComCode); //공통카테고리 | |
| 60 | - */ | |
| 61 | - | |
| 62 | - if(!"Y".equals(request.getParameter("isMain"))) model.addAttribute("cmmntyMnuList", cmmntyService.selectCommunityMenuList(cmmntyVO)); //메뉴정보 | |
| 63 | - if(!"".equals(cmmntyVO.getCmmntyId())) model.addAttribute("cmmntyVO", cmmntyService.selectCommunityInfo(cmmntyVO)); //커뮤니티 정보 | |
| 64 | - | |
| 65 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 66 | - model.addAttribute("siteInfo", siteVO); | |
| 67 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 68 | - | |
| 69 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 70 | - if(user != null) { | |
| 71 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 72 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 73 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 74 | - cmmntyUser.setCmmntyId(cmmntyVO.getCmmntyId()); | |
| 75 | - model.addAttribute("USER_SBSCRB", cmmntyService.selectMyCmmntyList(cmmntyUser)); //사용자 가입목록 | |
| 76 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 77 | - } | |
| 78 | - | |
| 79 | - model.addAttribute("CmmntyFileStoreWebPath", propertyService.getString("Cmmnty.fileStoreWebPath")); | |
| 80 | - | |
| 81 | - return propertyService.getString("publish.sourc.lyt.fileStoreWebPathByJspFile") | |
| 82 | - + "cmy/" | |
| 83 | - + siteVO.getCmySourcId() | |
| 84 | - + "/sourcHead" | |
| 85 | - + (EgovHttpUtil.getIsMobile(request) && "Y".equals(siteVO.getMobileUseAt()) ? Globals.PUBLISH_MOBILE_APPEND_FREFIX : ""); | |
| 86 | - } | |
| 87 | - | |
| 88 | - @RequestMapping(value = "/cop/cmy/tmplatBottom.do") | |
| 89 | - public String cmyTmplatBottom(@ModelAttribute("searchVO") CommunityVO cmmntyVO, ModelMap model, HttpServletRequest request) throws Exception { | |
| 90 | - if(!"".equals(cmmntyVO.getTrgetId())) cmmntyVO.setCmmntyId(cmmntyVO.getTrgetId()); | |
| 91 | - | |
| 92 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 93 | - model.addAttribute("siteInfo", siteVO); | |
| 94 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 95 | - | |
| 96 | - return propertyService.getString("publish.sourc.lyt.fileStoreWebPathByJspFile") | |
| 97 | - + "cmy/" | |
| 98 | - + siteVO.getCmySourcId() | |
| 99 | - + "/sourcBottom" | |
| 100 | - + (EgovHttpUtil.getIsMobile(request) && "Y".equals(siteVO.getMobileUseAt()) ? Globals.PUBLISH_MOBILE_APPEND_FREFIX : ""); | |
| 101 | - } | |
| 102 | - | |
| 103 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/BBSUseInfoManageService.java
... | ... | @@ -1,45 +0,0 @@ |
| 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/BbsSourcHistoryService.java
... | ... | @@ -1,24 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.BbsSourcVO; | |
| 5 | - | |
| 6 | -//게시판소스 이력관리 | |
| 7 | -public interface BbsSourcHistoryService {
| |
| 8 | - | |
| 9 | - //COMTNBBSSOURCHISTORY을 등록한다. | |
| 10 | - String insertBbsSourcHistory(BbsSourcVO vo) throws Exception; | |
| 11 | - | |
| 12 | - //COMTNBBSSOURCHISTORY을 삭제한다. | |
| 13 | - void deleteBbsSourcHistory(BbsSourcVO vo) throws Exception; | |
| 14 | - | |
| 15 | - //COMTNBBSSOURCHISTORY을 조회한다. | |
| 16 | - BbsSourcVO selectBbsSourcHistory(BbsSourcVO vo) throws Exception; | |
| 17 | - | |
| 18 | - //COMTNBBSSOURCHISTORY 목록을 조회한다. | |
| 19 | - List<BbsSourcVO> selectBbsSourcHistoryList(BbsSourcVO searchVO) throws Exception; | |
| 20 | - | |
| 21 | - //COMTNBBSSOURCHISTORY 총 갯수를 조회한다. | |
| 22 | - int selectBbsSourcHistoryListCnt(BbsSourcVO searchVO); | |
| 23 | - | |
| 24 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/BbsSourcService.java
... | ... | @@ -1,27 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.BbsSourcVO; | |
| 5 | - | |
| 6 | -//게시판 소스 서비스 | |
| 7 | -public interface BbsSourcService {
| |
| 8 | - | |
| 9 | - //COMTNBBSSOURC을 등록한다. | |
| 10 | - String insertBbsSourc(BbsSourcVO vo) throws Exception; | |
| 11 | - | |
| 12 | - //COMTNBBSSOURC을 수정한다. | |
| 13 | - void updateBbsSourc(BbsSourcVO vo) throws Exception; | |
| 14 | - | |
| 15 | - //COMTNBBSSOURC을 삭제한다. | |
| 16 | - void deleteBbsSourc(BbsSourcVO vo) throws Exception; | |
| 17 | - | |
| 18 | - //COMTNBBSSOURC을 조회한다. | |
| 19 | - BbsSourcVO selectBbsSourc(BbsSourcVO vo) throws Exception; | |
| 20 | - | |
| 21 | - //COMTNBBSSOURC 목록을 조회한다. | |
| 22 | - List<BbsSourcVO> selectBbsSourcList(BbsSourcVO searchVO) throws Exception; | |
| 23 | - | |
| 24 | - //COMTNBBSSOURC 총 갯수를 조회한다. | |
| 25 | - int selectBbsSourcListCnt(BbsSourcVO searchVO); | |
| 26 | - | |
| 27 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/BbsSourcVO.java
... | ... | @@ -1,134 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -import egovframework.com.cmm.ComDefaultVO; | |
| 7 | - | |
| 8 | - | |
| 9 | -@SuppressWarnings("serial")
| |
| 10 | -public class BbsSourcVO extends ComDefaultVO implements Serializable {
| |
| 11 | - | |
| 12 | - /** 검색구분코드 */ | |
| 13 | - private String searchSourcSeCode = ""; | |
| 14 | - | |
| 15 | - /** BBS_SOURC_ID */ | |
| 16 | - private java.lang.String bbsSourcId; | |
| 17 | - | |
| 18 | - /** SOURC_SE_CODE */ | |
| 19 | - private java.lang.String sourcSeCode; | |
| 20 | - | |
| 21 | - /** SOURC_SE_CODE_NM */ | |
| 22 | - private java.lang.String sourcSeCodeNm; | |
| 23 | - | |
| 24 | - /** SOURC_NM */ | |
| 25 | - private java.lang.String sourcNm; | |
| 26 | - | |
| 27 | - /** LIST_SOURC */ | |
| 28 | - private java.lang.String listSourc; | |
| 29 | - | |
| 30 | - /** VIEW_SOURC */ | |
| 31 | - private java.lang.String viewSourc; | |
| 32 | - | |
| 33 | - /** FORM_SOURC */ | |
| 34 | - private java.lang.String formSourc; | |
| 35 | - | |
| 36 | - /** CM_SOURC */ | |
| 37 | - private java.lang.String cmSourc; | |
| 38 | - | |
| 39 | - /** PREVEW_FILE_NM */ | |
| 40 | - private java.lang.String prevewFileNm; | |
| 41 | - | |
| 42 | - /** BBS_SOURC_HIST_ID */ | |
| 43 | - private java.lang.String bbsSourcHistId; | |
| 44 | - | |
| 45 | - public String getSearchSourcSeCode() {
| |
| 46 | - return searchSourcSeCode; | |
| 47 | - } | |
| 48 | - | |
| 49 | - public void setSearchSourcSeCode(String searchSourcSeCode) {
| |
| 50 | - this.searchSourcSeCode = searchSourcSeCode; | |
| 51 | - } | |
| 52 | - | |
| 53 | - public java.lang.String getBbsSourcId() {
| |
| 54 | - return bbsSourcId; | |
| 55 | - } | |
| 56 | - | |
| 57 | - public void setBbsSourcId(java.lang.String bbsSourcId) {
| |
| 58 | - this.bbsSourcId = bbsSourcId; | |
| 59 | - } | |
| 60 | - | |
| 61 | - public java.lang.String getSourcSeCode() {
| |
| 62 | - return sourcSeCode; | |
| 63 | - } | |
| 64 | - | |
| 65 | - public void setSourcSeCode(java.lang.String sourcSeCode) {
| |
| 66 | - this.sourcSeCode = sourcSeCode; | |
| 67 | - } | |
| 68 | - | |
| 69 | - public java.lang.String getSourcSeCodeNm() {
| |
| 70 | - return sourcSeCodeNm; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public void setSourcSeCodeNm(java.lang.String sourcSeCodeNm) {
| |
| 74 | - this.sourcSeCodeNm = sourcSeCodeNm; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public java.lang.String getSourcNm() {
| |
| 78 | - return sourcNm; | |
| 79 | - } | |
| 80 | - | |
| 81 | - public void setSourcNm(java.lang.String sourcNm) {
| |
| 82 | - this.sourcNm = sourcNm; | |
| 83 | - } | |
| 84 | - | |
| 85 | - public java.lang.String getListSourc() {
| |
| 86 | - return listSourc; | |
| 87 | - } | |
| 88 | - | |
| 89 | - public void setListSourc(java.lang.String listSourc) {
| |
| 90 | - this.listSourc = listSourc; | |
| 91 | - } | |
| 92 | - | |
| 93 | - public java.lang.String getViewSourc() {
| |
| 94 | - return viewSourc; | |
| 95 | - } | |
| 96 | - | |
| 97 | - public void setViewSourc(java.lang.String viewSourc) {
| |
| 98 | - this.viewSourc = viewSourc; | |
| 99 | - } | |
| 100 | - | |
| 101 | - public java.lang.String getFormSourc() {
| |
| 102 | - return formSourc; | |
| 103 | - } | |
| 104 | - | |
| 105 | - public void setFormSourc(java.lang.String formSourc) {
| |
| 106 | - this.formSourc = formSourc; | |
| 107 | - } | |
| 108 | - | |
| 109 | - public java.lang.String getCmSourc() {
| |
| 110 | - return cmSourc; | |
| 111 | - } | |
| 112 | - | |
| 113 | - public void setCmSourc(java.lang.String cmSourc) {
| |
| 114 | - this.cmSourc = cmSourc; | |
| 115 | - } | |
| 116 | - | |
| 117 | - public java.lang.String getPrevewFileNm() {
| |
| 118 | - return prevewFileNm; | |
| 119 | - } | |
| 120 | - | |
| 121 | - public void setPrevewFileNm(java.lang.String prevewFileNm) {
| |
| 122 | - this.prevewFileNm = prevewFileNm; | |
| 123 | - } | |
| 124 | - | |
| 125 | - public java.lang.String getBbsSourcHistId() {
| |
| 126 | - return bbsSourcHistId; | |
| 127 | - } | |
| 128 | - | |
| 129 | - public void setBbsSourcHistId(java.lang.String bbsSourcHistId) {
| |
| 130 | - this.bbsSourcHistId = bbsSourcHistId; | |
| 131 | - } | |
| 132 | - | |
| 133 | - | |
| 134 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/BbsTmplatHistoryService.java
... | ... | @@ -1,23 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.BbsTmplatVO; | |
| 5 | - | |
| 6 | -public interface BbsTmplatHistoryService {
| |
| 7 | - | |
| 8 | - //COMTNBBSTMPLATHISTORY을 등록한다. | |
| 9 | - String insertBbsTmplatHistory(BbsTmplatVO vo) throws Exception; | |
| 10 | - | |
| 11 | - //COMTNBBSTMPLATHISTORY을 삭제한다. | |
| 12 | - void deleteBbsTmplatHistory(BbsTmplatVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSTMPLATHISTORY을 조회한다. | |
| 15 | - BbsTmplatVO selectBbsTmplatHistory(BbsTmplatVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSTMPLATHISTORY 목록을 조회한다. | |
| 18 | - List<BbsTmplatVO> selectBbsTmplatHistoryList(BbsTmplatVO searchVO) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSTMPLATHISTORY 총 갯수를 조회한다. | |
| 21 | - int selectBbsTmplatHistoryListCnt(BbsTmplatVO searchVO); | |
| 22 | - | |
| 23 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/BbsTmplatService.java
... | ... | @@ -1,26 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.BbsTmplatVO; | |
| 5 | - | |
| 6 | -public interface BbsTmplatService {
| |
| 7 | - | |
| 8 | - //COMTNBBSTMPLAT을 등록한다. | |
| 9 | - String insertBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 10 | - | |
| 11 | - //COMTNBBSTMPLAT을 수정한다. | |
| 12 | - void updateBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSTMPLAT을 삭제한다. | |
| 15 | - void deleteBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSTMPLAT을 조회한다. | |
| 18 | - BbsTmplatVO selectBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSTMPLAT 목록을 조회한다. | |
| 21 | - List<BbsTmplatVO> selectBbsTmplatList(BbsTmplatVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNBBSTMPLAT 총 갯수를 조회한다. | |
| 24 | - int selectBbsTmplatListCnt(BbsTmplatVO searchVO); | |
| 25 | - | |
| 26 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/BbsTmplatVO.java
... | ... | @@ -1,170 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -import egovframework.com.cmm.ComDefaultVO; | |
| 7 | - | |
| 8 | - | |
| 9 | -@SuppressWarnings("serial")
| |
| 10 | -public class BbsTmplatVO extends ComDefaultVO implements Serializable {
| |
| 11 | - | |
| 12 | - /** 대분류검색구분 */ | |
| 13 | - private String searchTmplatSeCode; | |
| 14 | - | |
| 15 | - /** BBS_TMPLAT_ID */ | |
| 16 | - private java.lang.String bbsTmplatId; | |
| 17 | - | |
| 18 | - /** TMPLAT_SE_CODE */ | |
| 19 | - private java.lang.String tmplatSeCode; | |
| 20 | - | |
| 21 | - /** TMPLAT_SE_CODE_NM */ | |
| 22 | - private java.lang.String tmplatSeCodeNm; | |
| 23 | - | |
| 24 | - /** TMPLAT_NM */ | |
| 25 | - private java.lang.String tmplatNm; | |
| 26 | - | |
| 27 | - /** CSS_SOURC */ | |
| 28 | - private java.lang.String cssSourc; | |
| 29 | - | |
| 30 | - /** SCRIPT_SOURC */ | |
| 31 | - private java.lang.String scriptSourc; | |
| 32 | - | |
| 33 | - /** PREVEW_FILE_NM */ | |
| 34 | - private java.lang.String prevewFileNm; | |
| 35 | - | |
| 36 | - /** USE_AT */ | |
| 37 | - private java.lang.String useAt; | |
| 38 | - | |
| 39 | - /** FRST_REGISTER_ID */ | |
| 40 | - private java.lang.String frstRegisterId; | |
| 41 | - | |
| 42 | - /** FRST_REGISTER_PNTTM */ | |
| 43 | - private java.util.Date frstRegisterPnttm; | |
| 44 | - | |
| 45 | - /** LAST_UPDUSR_ID */ | |
| 46 | - private java.lang.String lastUpdusrId; | |
| 47 | - | |
| 48 | - /** LAST_UPDUSR_PNTTM */ | |
| 49 | - private java.util.Date lastUpdusrPnttm; | |
| 50 | - | |
| 51 | - /** BBS_TMPLAT_HIST_ID */ | |
| 52 | - private java.lang.String bbsTmplatHistId; | |
| 53 | - | |
| 54 | - public String getSearchTmplatSeCode() {
| |
| 55 | - return searchTmplatSeCode; | |
| 56 | - } | |
| 57 | - | |
| 58 | - public void setSearchTmplatSeCode(String searchTmplatSeCode) {
| |
| 59 | - this.searchTmplatSeCode = searchTmplatSeCode; | |
| 60 | - } | |
| 61 | - | |
| 62 | - public java.lang.String getBbsTmplatId() {
| |
| 63 | - return bbsTmplatId; | |
| 64 | - } | |
| 65 | - | |
| 66 | - public void setBbsTmplatId(java.lang.String bbsTmplatId) {
| |
| 67 | - this.bbsTmplatId = bbsTmplatId; | |
| 68 | - } | |
| 69 | - | |
| 70 | - public java.lang.String getTmplatSeCode() {
| |
| 71 | - return tmplatSeCode; | |
| 72 | - } | |
| 73 | - | |
| 74 | - public void setTmplatSeCode(java.lang.String tmplatSeCode) {
| |
| 75 | - this.tmplatSeCode = tmplatSeCode; | |
| 76 | - } | |
| 77 | - | |
| 78 | - public java.lang.String getTmplatSeCodeNm() {
| |
| 79 | - return tmplatSeCodeNm; | |
| 80 | - } | |
| 81 | - | |
| 82 | - public void setTmplatSeCodeNm(java.lang.String tmplatSeCodeNm) {
| |
| 83 | - this.tmplatSeCodeNm = tmplatSeCodeNm; | |
| 84 | - } | |
| 85 | - | |
| 86 | - public java.lang.String getTmplatNm() {
| |
| 87 | - return tmplatNm; | |
| 88 | - } | |
| 89 | - | |
| 90 | - public void setTmplatNm(java.lang.String tmplatNm) {
| |
| 91 | - this.tmplatNm = tmplatNm; | |
| 92 | - } | |
| 93 | - | |
| 94 | - public java.lang.String getCssSourc() {
| |
| 95 | - return cssSourc; | |
| 96 | - } | |
| 97 | - | |
| 98 | - public void setCssSourc(java.lang.String cssSourc) {
| |
| 99 | - this.cssSourc = cssSourc; | |
| 100 | - } | |
| 101 | - | |
| 102 | - public java.lang.String getScriptSourc() {
| |
| 103 | - return scriptSourc; | |
| 104 | - } | |
| 105 | - | |
| 106 | - public void setScriptSourc(java.lang.String scriptSourc) {
| |
| 107 | - this.scriptSourc = scriptSourc; | |
| 108 | - } | |
| 109 | - | |
| 110 | - public java.lang.String getPrevewFileNm() {
| |
| 111 | - return prevewFileNm; | |
| 112 | - } | |
| 113 | - | |
| 114 | - public void setPrevewFileNm(java.lang.String prevewFileNm) {
| |
| 115 | - this.prevewFileNm = prevewFileNm; | |
| 116 | - } | |
| 117 | - | |
| 118 | - public java.lang.String getUseAt() {
| |
| 119 | - return useAt; | |
| 120 | - } | |
| 121 | - | |
| 122 | - public void setUseAt(java.lang.String useAt) {
| |
| 123 | - this.useAt = useAt; | |
| 124 | - } | |
| 125 | - | |
| 126 | - public java.lang.String getFrstRegisterId() {
| |
| 127 | - return frstRegisterId; | |
| 128 | - } | |
| 129 | - | |
| 130 | - public void setFrstRegisterId(java.lang.String frstRegisterId) {
| |
| 131 | - this.frstRegisterId = frstRegisterId; | |
| 132 | - } | |
| 133 | - | |
| 134 | - public java.util.Date getFrstRegisterPnttm() {
| |
| 135 | - return frstRegisterPnttm; | |
| 136 | - } | |
| 137 | - | |
| 138 | - public void setFrstRegisterPnttm(java.util.Date frstRegisterPnttm) {
| |
| 139 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 140 | - } | |
| 141 | - | |
| 142 | - public java.lang.String getLastUpdusrId() {
| |
| 143 | - return lastUpdusrId; | |
| 144 | - } | |
| 145 | - | |
| 146 | - public void setLastUpdusrId(java.lang.String lastUpdusrId) {
| |
| 147 | - this.lastUpdusrId = lastUpdusrId; | |
| 148 | - } | |
| 149 | - | |
| 150 | - public java.util.Date getLastUpdusrPnttm() {
| |
| 151 | - return lastUpdusrPnttm; | |
| 152 | - } | |
| 153 | - | |
| 154 | - public void setLastUpdusrPnttm(java.util.Date lastUpdusrPnttm) {
| |
| 155 | - this.lastUpdusrPnttm = lastUpdusrPnttm; | |
| 156 | - } | |
| 157 | - | |
| 158 | - public java.lang.String getBbsTmplatHistId() {
| |
| 159 | - return bbsTmplatHistId; | |
| 160 | - } | |
| 161 | - | |
| 162 | - public void setBbsTmplatHistId(java.lang.String bbsTmplatHistId) {
| |
| 163 | - this.bbsTmplatHistId = bbsTmplatHistId; | |
| 164 | - } | |
| 165 | - | |
| 166 | - public String toString() {
| |
| 167 | - return ToStringBuilder.reflectionToString(this); | |
| 168 | - } | |
| 169 | - | |
| 170 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/BoardUseInfVO.java
... | ... | @@ -1,165 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import egovframework.com.cmm.ComDefaultVO; | |
| 6 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 7 | - | |
| 8 | - | |
| 9 | -//게시판의 이용정보를 관리하기 위한 VO 클래스 | |
| 10 | -public class BoardUseInfVO extends ComDefaultVO implements Serializable {
| |
| 11 | - | |
| 12 | - //레코드 번호 | |
| 13 | - private int rowNo = 0; | |
| 14 | - | |
| 15 | - //등록구분 코드명 | |
| 16 | - private String registSeCodeNm = ""; | |
| 17 | - | |
| 18 | - //커뮤니티 아이디 | |
| 19 | - private String cmmntyId = ""; | |
| 20 | - | |
| 21 | - //커뮤니티 명 | |
| 22 | - private String cmmntyNm = ""; | |
| 23 | - | |
| 24 | - //동호회 아이디 | |
| 25 | - private String clbId = ""; | |
| 26 | - | |
| 27 | - //동호회 명 | |
| 28 | - private String clbNm = ""; | |
| 29 | - | |
| 30 | - //게시판 명 | |
| 31 | - private String bbsNm = ""; | |
| 32 | - | |
| 33 | - //사용자 명 | |
| 34 | - private String userNm = ""; | |
| 35 | - | |
| 36 | - //제공 URL | |
| 37 | - private String provdUrl = ""; | |
| 38 | - | |
| 39 | - //게시판 유형코드 | |
| 40 | - private String bbsTyCode = ""; | |
| 41 | - | |
| 42 | - //게시판 아이디 | |
| 43 | - private String bbsId = ""; | |
| 44 | - | |
| 45 | - //대상시스템 아이디 | |
| 46 | - private String trgetId = ""; | |
| 47 | - | |
| 48 | - //대상 구분 (커뮤니티, 동호회) | |
| 49 | - private String trgetType = ""; | |
| 50 | - | |
| 51 | - //등록구분코드 | |
| 52 | - private String registSeCode = ""; | |
| 53 | - | |
| 54 | - public int getRowNo() {
| |
| 55 | - return rowNo; | |
| 56 | - } | |
| 57 | - | |
| 58 | - public void setRowNo(int rowNo) {
| |
| 59 | - this.rowNo = rowNo; | |
| 60 | - } | |
| 61 | - | |
| 62 | - public String getRegistSeCodeNm() {
| |
| 63 | - return registSeCodeNm; | |
| 64 | - } | |
| 65 | - | |
| 66 | - public void setRegistSeCodeNm(String registSeCodeNm) {
| |
| 67 | - this.registSeCodeNm = registSeCodeNm; | |
| 68 | - } | |
| 69 | - | |
| 70 | - public String getCmmntyId() {
| |
| 71 | - return cmmntyId; | |
| 72 | - } | |
| 73 | - | |
| 74 | - public void setCmmntyId(String cmmntyId) {
| |
| 75 | - this.cmmntyId = cmmntyId; | |
| 76 | - } | |
| 77 | - | |
| 78 | - public String getCmmntyNm() {
| |
| 79 | - return cmmntyNm; | |
| 80 | - } | |
| 81 | - | |
| 82 | - public void setCmmntyNm(String cmmntyNm) {
| |
| 83 | - this.cmmntyNm = cmmntyNm; | |
| 84 | - } | |
| 85 | - | |
| 86 | - public String getClbId() {
| |
| 87 | - return clbId; | |
| 88 | - } | |
| 89 | - | |
| 90 | - public void setClbId(String clbId) {
| |
| 91 | - this.clbId = clbId; | |
| 92 | - } | |
| 93 | - | |
| 94 | - public String getClbNm() {
| |
| 95 | - return clbNm; | |
| 96 | - } | |
| 97 | - | |
| 98 | - public void setClbNm(String clbNm) {
| |
| 99 | - this.clbNm = clbNm; | |
| 100 | - } | |
| 101 | - | |
| 102 | - public String getBbsNm() {
| |
| 103 | - return bbsNm; | |
| 104 | - } | |
| 105 | - | |
| 106 | - public void setBbsNm(String bbsNm) {
| |
| 107 | - this.bbsNm = bbsNm; | |
| 108 | - } | |
| 109 | - | |
| 110 | - public String getUserNm() {
| |
| 111 | - return userNm; | |
| 112 | - } | |
| 113 | - | |
| 114 | - public void setUserNm(String userNm) {
| |
| 115 | - this.userNm = userNm; | |
| 116 | - } | |
| 117 | - | |
| 118 | - public String getProvdUrl() {
| |
| 119 | - return provdUrl; | |
| 120 | - } | |
| 121 | - | |
| 122 | - public void setProvdUrl(String provdUrl) {
| |
| 123 | - this.provdUrl = provdUrl; | |
| 124 | - } | |
| 125 | - | |
| 126 | - public String getBbsTyCode() {
| |
| 127 | - return bbsTyCode; | |
| 128 | - } | |
| 129 | - | |
| 130 | - public void setBbsTyCode(String bbsTyCode) {
| |
| 131 | - this.bbsTyCode = bbsTyCode; | |
| 132 | - } | |
| 133 | - | |
| 134 | - public String getBbsId() {
| |
| 135 | - return bbsId; | |
| 136 | - } | |
| 137 | - | |
| 138 | - public void setBbsId(String bbsId) {
| |
| 139 | - this.bbsId = bbsId; | |
| 140 | - } | |
| 141 | - | |
| 142 | - public String getTrgetId() {
| |
| 143 | - return trgetId; | |
| 144 | - } | |
| 145 | - | |
| 146 | - public void setTrgetId(String trgetId) {
| |
| 147 | - this.trgetId = trgetId; | |
| 148 | - } | |
| 149 | - | |
| 150 | - public String getTrgetType() {
| |
| 151 | - return trgetType; | |
| 152 | - } | |
| 153 | - | |
| 154 | - public void setTrgetType(String trgetType) {
| |
| 155 | - this.trgetType = trgetType; | |
| 156 | - } | |
| 157 | - | |
| 158 | - public String getRegistSeCode() {
| |
| 159 | - return registSeCode; | |
| 160 | - } | |
| 161 | - | |
| 162 | - public void setRegistSeCode(String registSeCode) {
| |
| 163 | - this.registSeCode = registSeCode; | |
| 164 | - } | |
| 165 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/ConfirmHistoryVO.java
... | ... | @@ -1,220 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import egovframework.com.cmm.ComDefaultVO; | |
| 6 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 7 | - | |
| 8 | -//승인정보를 관리하기 위한 VO 클래스 | |
| 9 | -public class ConfirmHistoryVO extends ComDefaultVO{
| |
| 10 | - | |
| 11 | - //승인일 | |
| 12 | - private String confmDe = ""; | |
| 13 | - | |
| 14 | - //승인자 아이디 | |
| 15 | - private String confmerId = ""; | |
| 16 | - | |
| 17 | - //확인구분코드 | |
| 18 | - private int confmNumber = 0; | |
| 19 | - | |
| 20 | - //승인요청자 아이디 | |
| 21 | - private String confmRqesterId = ""; | |
| 22 | - | |
| 23 | - //승인요청자 이름 | |
| 24 | - private String confmRqesterNm = ""; | |
| 25 | - | |
| 26 | - //승인요청자 소개 | |
| 27 | - private String confmRqesterIntrcn = ""; | |
| 28 | - | |
| 29 | - //승인상태코드 | |
| 30 | - private String confmSttusCode = ""; | |
| 31 | - | |
| 32 | - //승인유형코드 | |
| 33 | - private String confmTyCode = ""; | |
| 34 | - | |
| 35 | - //작업 아이디 | |
| 36 | - private String opertId = ""; | |
| 37 | - | |
| 38 | - //작업유형코드 | |
| 39 | - private String opertTyCode = ""; | |
| 40 | - | |
| 41 | - //대상업무 아이디 | |
| 42 | - private String trgetJobId = ""; | |
| 43 | - | |
| 44 | - //대상업무유형코드 | |
| 45 | - private String trgetJobTyCode = ""; | |
| 46 | - | |
| 47 | - //대상 ID | |
| 48 | - private String trgetId = ""; | |
| 49 | - | |
| 50 | - //자동승인여부 | |
| 51 | - private String autoAt = ""; | |
| 52 | - | |
| 53 | - //마이메뉴사용여부 | |
| 54 | - private String myMenuAt = ""; | |
| 55 | - | |
| 56 | - //확인구분 코드명 | |
| 57 | - private String confmTyCodeNm = ""; | |
| 58 | - | |
| 59 | - //확인상태 코드명 | |
| 60 | - private String confmSttusCodeNm = ""; | |
| 61 | - | |
| 62 | - //대상유형구분 코드명 | |
| 63 | - private String trgetJobTyNm = ""; | |
| 64 | - | |
| 65 | - //처리구분 코드명 | |
| 66 | - private String opertTyCodeNm = ""; | |
| 67 | - | |
| 68 | - | |
| 69 | - public String getConfmDe() {
| |
| 70 | - return confmDe; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public void setConfmDe(String confmDe) {
| |
| 74 | - this.confmDe = confmDe; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public String getConfmerId() {
| |
| 78 | - return confmerId; | |
| 79 | - } | |
| 80 | - | |
| 81 | - public void setConfmerId(String confmerId) {
| |
| 82 | - this.confmerId = confmerId; | |
| 83 | - } | |
| 84 | - | |
| 85 | - public int getConfmNumber() {
| |
| 86 | - return confmNumber; | |
| 87 | - } | |
| 88 | - | |
| 89 | - public void setConfmNumber(int confmNumber) {
| |
| 90 | - this.confmNumber = confmNumber; | |
| 91 | - } | |
| 92 | - | |
| 93 | - public String getConfmRqesterId() {
| |
| 94 | - return confmRqesterId; | |
| 95 | - } | |
| 96 | - | |
| 97 | - public void setConfmRqesterId(String confmRqesterId) {
| |
| 98 | - this.confmRqesterId = confmRqesterId; | |
| 99 | - } | |
| 100 | - | |
| 101 | - public String getConfmRqesterNm() {
| |
| 102 | - return confmRqesterNm; | |
| 103 | - } | |
| 104 | - | |
| 105 | - public void setConfmRqesterNm(String confmRqesterNm) {
| |
| 106 | - this.confmRqesterNm = confmRqesterNm; | |
| 107 | - } | |
| 108 | - | |
| 109 | - public String getConfmRqesterIntrcn() {
| |
| 110 | - return confmRqesterIntrcn; | |
| 111 | - } | |
| 112 | - | |
| 113 | - public void setConfmRqesterIntrcn(String confmRqesterIntrcn) {
| |
| 114 | - this.confmRqesterIntrcn = confmRqesterIntrcn; | |
| 115 | - } | |
| 116 | - | |
| 117 | - public String getConfmSttusCode() {
| |
| 118 | - return confmSttusCode; | |
| 119 | - } | |
| 120 | - | |
| 121 | - public void setConfmSttusCode(String confmSttusCode) {
| |
| 122 | - this.confmSttusCode = confmSttusCode; | |
| 123 | - } | |
| 124 | - | |
| 125 | - public String getConfmTyCode() {
| |
| 126 | - return confmTyCode; | |
| 127 | - } | |
| 128 | - | |
| 129 | - public void setConfmTyCode(String confmTyCode) {
| |
| 130 | - this.confmTyCode = confmTyCode; | |
| 131 | - } | |
| 132 | - | |
| 133 | - public String getOpertId() {
| |
| 134 | - return opertId; | |
| 135 | - } | |
| 136 | - | |
| 137 | - public void setOpertId(String opertId) {
| |
| 138 | - this.opertId = opertId; | |
| 139 | - } | |
| 140 | - | |
| 141 | - public String getOpertTyCode() {
| |
| 142 | - return opertTyCode; | |
| 143 | - } | |
| 144 | - | |
| 145 | - public void setOpertTyCode(String opertTyCode) {
| |
| 146 | - this.opertTyCode = opertTyCode; | |
| 147 | - } | |
| 148 | - | |
| 149 | - public String getTrgetJobId() {
| |
| 150 | - return trgetJobId; | |
| 151 | - } | |
| 152 | - | |
| 153 | - public void setTrgetJobId(String trgetJobId) {
| |
| 154 | - this.trgetJobId = trgetJobId; | |
| 155 | - } | |
| 156 | - | |
| 157 | - public String getTrgetJobTyCode() {
| |
| 158 | - return trgetJobTyCode; | |
| 159 | - } | |
| 160 | - | |
| 161 | - public void setTrgetJobTyCode(String trgetJobTyCode) {
| |
| 162 | - this.trgetJobTyCode = trgetJobTyCode; | |
| 163 | - } | |
| 164 | - | |
| 165 | - public String getTrgetId() {
| |
| 166 | - return trgetId; | |
| 167 | - } | |
| 168 | - | |
| 169 | - public void setTrgetId(String trgetId) {
| |
| 170 | - this.trgetId = trgetId; | |
| 171 | - } | |
| 172 | - | |
| 173 | - public String getAutoAt() {
| |
| 174 | - return autoAt; | |
| 175 | - } | |
| 176 | - | |
| 177 | - public void setAutoAt(String autoAt) {
| |
| 178 | - this.autoAt = autoAt; | |
| 179 | - } | |
| 180 | - | |
| 181 | - public String getMyMenuAt() {
| |
| 182 | - return myMenuAt; | |
| 183 | - } | |
| 184 | - | |
| 185 | - public void setMyMenuAt(String myMenuAt) {
| |
| 186 | - this.myMenuAt = myMenuAt; | |
| 187 | - } | |
| 188 | - | |
| 189 | - public String getConfmTyCodeNm() {
| |
| 190 | - return confmTyCodeNm; | |
| 191 | - } | |
| 192 | - | |
| 193 | - public void setConfmTyCodeNm(String confmTyCodeNm) {
| |
| 194 | - this.confmTyCodeNm = confmTyCodeNm; | |
| 195 | - } | |
| 196 | - | |
| 197 | - public String getConfmSttusCodeNm() {
| |
| 198 | - return confmSttusCodeNm; | |
| 199 | - } | |
| 200 | - | |
| 201 | - public void setConfmSttusCodeNm(String confmSttusCodeNm) {
| |
| 202 | - this.confmSttusCodeNm = confmSttusCodeNm; | |
| 203 | - } | |
| 204 | - | |
| 205 | - public String getTrgetJobTyNm() {
| |
| 206 | - return trgetJobTyNm; | |
| 207 | - } | |
| 208 | - | |
| 209 | - public void setTrgetJobTyNm(String trgetJobTyNm) {
| |
| 210 | - this.trgetJobTyNm = trgetJobTyNm; | |
| 211 | - } | |
| 212 | - | |
| 213 | - public String getOpertTyCodeNm() {
| |
| 214 | - return opertTyCodeNm; | |
| 215 | - } | |
| 216 | - | |
| 217 | - public void setOpertTyCodeNm(String opertTyCodeNm) {
| |
| 218 | - this.opertTyCodeNm = opertTyCodeNm; | |
| 219 | - } | |
| 220 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/ConfirmManageService.java
... | ... | @@ -1,22 +0,0 @@ |
| 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/LytSourcHistoryService.java
... | ... | @@ -1,24 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.LytSourcVO; | |
| 5 | - | |
| 6 | - | |
| 7 | -public interface LytSourcHistoryService { | |
| 8 | - | |
| 9 | - //COMTNLYTSOURCHISTORY을 등록한다. | |
| 10 | - String insertLytSourcHistory(LytSourcVO vo) throws Exception; | |
| 11 | - | |
| 12 | - //COMTNLYTSOURCHISTORY을 삭제한다. | |
| 13 | - void deleteLytSourcHistory(LytSourcVO vo) throws Exception; | |
| 14 | - | |
| 15 | - //COMTNLYTSOURCHISTORY을 조회한다. | |
| 16 | - LytSourcVO selectLytSourcHistory(LytSourcVO vo) throws Exception; | |
| 17 | - | |
| 18 | - //COMTNLYTSOURCHISTORY 목록을 조회한다. | |
| 19 | - List<LytSourcVO> selectLytSourcHistoryList(LytSourcVO searchVO) throws Exception; | |
| 20 | - | |
| 21 | - //COMTNLYTSOURCHISTORY 총 갯수를 조회한다. | |
| 22 | - int selectLytSourcHistoryListCnt(LytSourcVO searchVO); | |
| 23 | - | |
| 24 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/LytSourcService.java
... | ... | @@ -1,28 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.LytSourcVO; | |
| 5 | - | |
| 6 | -public interface LytSourcService { | |
| 7 | - | |
| 8 | - //COMTNLYTSOURC을 등록한다. | |
| 9 | - String insertLytSourc(LytSourcVO vo) throws Exception; | |
| 10 | - | |
| 11 | - //COMTNLYTSOURC을 수정한다. | |
| 12 | - void updateLytSourc(LytSourcVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNLYTSOURC을 삭제한다. | |
| 15 | - void deleteLytSourc(LytSourcVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNLYTSOURC을 조회한다. | |
| 18 | - LytSourcVO selectLytSourc(LytSourcVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNLYTSOURC 목록을 조회한다. | |
| 21 | - List<LytSourcVO> selectLytSourcList(LytSourcVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNLYTSOURC 총 갯수를 조회한다. | |
| 24 | - int selectLytSourcListCnt(LytSourcVO searchVO); | |
| 25 | - | |
| 26 | - public void publishCreate(LytSourcVO vo) throws Exception ; | |
| 27 | - | |
| 28 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/LytSourcVO.java
... | ... | @@ -1,188 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -import egovframework.com.cmm.ComDefaultVO; | |
| 7 | - | |
| 8 | -@SuppressWarnings("serial") | |
| 9 | -public class LytSourcVO extends ComDefaultVO implements Serializable { | |
| 10 | - | |
| 11 | - /** 검색구분코드 */ | |
| 12 | - private String searchSourcSeCode = ""; | |
| 13 | - | |
| 14 | - /** LYT_SOURC_ID */ | |
| 15 | - private java.lang.String lytSourcId; | |
| 16 | - | |
| 17 | - /** SOURC_SE_CODE */ | |
| 18 | - private java.lang.String sourcSeCode; | |
| 19 | - | |
| 20 | - /** SOURC_SE_CODE_NM */ | |
| 21 | - private java.lang.String sourcSeCodeNm; | |
| 22 | - | |
| 23 | - /** SOURC_NM */ | |
| 24 | - private java.lang.String sourcNm; | |
| 25 | - | |
| 26 | - /** UPEND_SOURC */ | |
| 27 | - private java.lang.String upendSourc; | |
| 28 | - | |
| 29 | - /** LPT_SOURC */ | |
| 30 | - private java.lang.String lptSourc; | |
| 31 | - | |
| 32 | - /** MOBILE_UPEND_SOURC */ | |
| 33 | - private java.lang.String mobileUpendSourc; | |
| 34 | - | |
| 35 | - /** MOBILE_LPT_SOURC */ | |
| 36 | - private java.lang.String mobileLptSourc; | |
| 37 | - | |
| 38 | - /** PREVEW_FILE_NM */ | |
| 39 | - private java.lang.String prevewFileNm; | |
| 40 | - | |
| 41 | - /** USE_AT */ | |
| 42 | - private java.lang.String useAt; | |
| 43 | - | |
| 44 | - /** FRST_REGISTER_ID */ | |
| 45 | - private java.lang.String frstRegisterId; | |
| 46 | - | |
| 47 | - /** FRST_REGISTER_PNTTM */ | |
| 48 | - private java.util.Date frstRegisterPnttm; | |
| 49 | - | |
| 50 | - /** LAST_UPDUSR_ID */ | |
| 51 | - private java.lang.String lastUpdusrId; | |
| 52 | - | |
| 53 | - /** LAST_UPDUSR_PNTTM */ | |
| 54 | - private java.util.Date lastUpdusrPnttm; | |
| 55 | - | |
| 56 | - /** LYT_SOURC_HIST_ID */ | |
| 57 | - private java.lang.String lytSourcHistId; | |
| 58 | - | |
| 59 | - public String getSearchSourcSeCode() { | |
| 60 | - return searchSourcSeCode; | |
| 61 | - } | |
| 62 | - | |
| 63 | - public void setSearchSourcSeCode(String searchSourcSeCode) { | |
| 64 | - this.searchSourcSeCode = searchSourcSeCode; | |
| 65 | - } | |
| 66 | - | |
| 67 | - public java.lang.String getLytSourcId() { | |
| 68 | - return lytSourcId; | |
| 69 | - } | |
| 70 | - | |
| 71 | - public void setLytSourcId(java.lang.String lytSourcId) { | |
| 72 | - this.lytSourcId = lytSourcId; | |
| 73 | - } | |
| 74 | - | |
| 75 | - public java.lang.String getSourcSeCode() { | |
| 76 | - return sourcSeCode; | |
| 77 | - } | |
| 78 | - | |
| 79 | - public void setSourcSeCode(java.lang.String sourcSeCode) { | |
| 80 | - this.sourcSeCode = sourcSeCode; | |
| 81 | - } | |
| 82 | - | |
| 83 | - public java.lang.String getSourcSeCodeNm() { | |
| 84 | - return sourcSeCodeNm; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public void setSourcSeCodeNm(java.lang.String sourcSeCodeNm) { | |
| 88 | - this.sourcSeCodeNm = sourcSeCodeNm; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public java.lang.String getSourcNm() { | |
| 92 | - return sourcNm; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public void setSourcNm(java.lang.String sourcNm) { | |
| 96 | - this.sourcNm = sourcNm; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public java.lang.String getUpendSourc() { | |
| 100 | - return upendSourc; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public void setUpendSourc(java.lang.String upendSourc) { | |
| 104 | - this.upendSourc = upendSourc; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public java.lang.String getLptSourc() { | |
| 108 | - return lptSourc; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public void setLptSourc(java.lang.String lptSourc) { | |
| 112 | - this.lptSourc = lptSourc; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public java.lang.String getMobileUpendSourc() { | |
| 116 | - return mobileUpendSourc; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public void setMobileUpendSourc(java.lang.String mobileUpendSourc) { | |
| 120 | - this.mobileUpendSourc = mobileUpendSourc; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public java.lang.String getMobileLptSourc() { | |
| 124 | - return mobileLptSourc; | |
| 125 | - } | |
| 126 | - | |
| 127 | - public void setMobileLptSourc(java.lang.String mobileLptSourc) { | |
| 128 | - this.mobileLptSourc = mobileLptSourc; | |
| 129 | - } | |
| 130 | - | |
| 131 | - public java.lang.String getPrevewFileNm() { | |
| 132 | - return prevewFileNm; | |
| 133 | - } | |
| 134 | - | |
| 135 | - public void setPrevewFileNm(java.lang.String prevewFileNm) { | |
| 136 | - this.prevewFileNm = prevewFileNm; | |
| 137 | - } | |
| 138 | - | |
| 139 | - public java.lang.String getUseAt() { | |
| 140 | - return useAt; | |
| 141 | - } | |
| 142 | - | |
| 143 | - public void setUseAt(java.lang.String useAt) { | |
| 144 | - this.useAt = useAt; | |
| 145 | - } | |
| 146 | - | |
| 147 | - public java.lang.String getFrstRegisterId() { | |
| 148 | - return frstRegisterId; | |
| 149 | - } | |
| 150 | - | |
| 151 | - public void setFrstRegisterId(java.lang.String frstRegisterId) { | |
| 152 | - this.frstRegisterId = frstRegisterId; | |
| 153 | - } | |
| 154 | - | |
| 155 | - public java.util.Date getFrstRegisterPnttm() { | |
| 156 | - return frstRegisterPnttm; | |
| 157 | - } | |
| 158 | - | |
| 159 | - public void setFrstRegisterPnttm(java.util.Date frstRegisterPnttm) { | |
| 160 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 161 | - } | |
| 162 | - | |
| 163 | - public java.lang.String getLastUpdusrId() { | |
| 164 | - return lastUpdusrId; | |
| 165 | - } | |
| 166 | - | |
| 167 | - public void setLastUpdusrId(java.lang.String lastUpdusrId) { | |
| 168 | - this.lastUpdusrId = lastUpdusrId; | |
| 169 | - } | |
| 170 | - | |
| 171 | - public java.util.Date getLastUpdusrPnttm() { | |
| 172 | - return lastUpdusrPnttm; | |
| 173 | - } | |
| 174 | - | |
| 175 | - public void setLastUpdusrPnttm(java.util.Date lastUpdusrPnttm) { | |
| 176 | - this.lastUpdusrPnttm = lastUpdusrPnttm; | |
| 177 | - } | |
| 178 | - | |
| 179 | - public java.lang.String getLytSourcHistId() { | |
| 180 | - return lytSourcHistId; | |
| 181 | - } | |
| 182 | - | |
| 183 | - public void setLytSourcHistId(java.lang.String lytSourcHistId) { | |
| 184 | - this.lytSourcHistId = lytSourcHistId; | |
| 185 | - } | |
| 186 | - | |
| 187 | - | |
| 188 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/LytTmplatHistoryService.java
... | ... | @@ -1,23 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.LytTmplatVO; | |
| 5 | - | |
| 6 | -public interface LytTmplatHistoryService { | |
| 7 | - | |
| 8 | - //COMTNLYTTMPLATHISTORY을 등록한다. | |
| 9 | - String insertLytTmplatHistory(LytTmplatVO vo) throws Exception; | |
| 10 | - | |
| 11 | - //COMTNLYTTMPLATHISTORY을 삭제한다. | |
| 12 | - void deleteLytTmplatHistory(LytTmplatVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNLYTTMPLATHISTORY을 조회한다. | |
| 15 | - LytTmplatVO selectLytTmplatHistory(LytTmplatVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNLYTTMPLATHISTORY 목록을 조회한다. | |
| 18 | - List<LytTmplatVO> selectLytTmplatHistoryList(LytTmplatVO searchVO) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNLYTTMPLATHISTORY 총 갯수를 조회한다. | |
| 21 | - int selectLytTmplatHistoryListCnt(LytTmplatVO searchVO); | |
| 22 | - | |
| 23 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/LytTmplatService.java
... | ... | @@ -1,29 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import egovframework.com.cop.com.service.LytTmplatVO; | |
| 5 | - | |
| 6 | - | |
| 7 | -public interface LytTmplatService { | |
| 8 | - | |
| 9 | - //COMTNLYTTMPLAT을 등록한다. | |
| 10 | - String insertLytTmplat(LytTmplatVO vo) throws Exception; | |
| 11 | - | |
| 12 | - //COMTNLYTTMPLAT을 수정한다. | |
| 13 | - void updateLytTmplat(LytTmplatVO vo) throws Exception; | |
| 14 | - | |
| 15 | - //COMTNLYTTMPLAT을 삭제한다. | |
| 16 | - void deleteLytTmplat(LytTmplatVO vo) throws Exception; | |
| 17 | - | |
| 18 | - //COMTNLYTTMPLAT을 조회한다. | |
| 19 | - LytTmplatVO selectLytTmplat(LytTmplatVO vo) throws Exception; | |
| 20 | - | |
| 21 | - //COMTNLYTTMPLAT 목록을 조회한다. | |
| 22 | - List<LytTmplatVO> selectLytTmplatList(LytTmplatVO searchVO) throws Exception; | |
| 23 | - | |
| 24 | - //COMTNLYTTMPLAT 총 갯수를 조회한다. | |
| 25 | - int selectLytTmplatListCnt(LytTmplatVO searchVO); | |
| 26 | - | |
| 27 | - public void publishCreate(LytTmplatVO vo) throws Exception; | |
| 28 | - | |
| 29 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/LytTmplatVO.java
... | ... | @@ -1,222 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -import egovframework.com.cmm.ComDefaultVO; | |
| 7 | - | |
| 8 | - | |
| 9 | -@SuppressWarnings("serial") | |
| 10 | -public class LytTmplatVO extends ComDefaultVO implements Serializable { | |
| 11 | - | |
| 12 | - /** 대분류검색구분 */ | |
| 13 | - private String searchTmplatLcasCode; | |
| 14 | - | |
| 15 | - /** 중분류검색구분 */ | |
| 16 | - private String searchTmplatMlsfcCode; | |
| 17 | - | |
| 18 | - /** LYT_TMPLAT_ID */ | |
| 19 | - private java.lang.String lytTmplatId; | |
| 20 | - | |
| 21 | - /** TMPLAT_LCAS_CODE */ | |
| 22 | - private java.lang.String tmplatLcasCode; | |
| 23 | - | |
| 24 | - /** TMPLAT_LCAS_CODE_NM */ | |
| 25 | - private java.lang.String tmplatLcasCodeNm; | |
| 26 | - | |
| 27 | - /** TMPLAT_MLSFC_CODE */ | |
| 28 | - private java.lang.String tmplatMlsfcCode; | |
| 29 | - | |
| 30 | - /** TMPLAT_MLSFC_CODE_NM */ | |
| 31 | - private java.lang.String tmplatMlsfcCodeNm; | |
| 32 | - | |
| 33 | - /** TMPLAT_NM */ | |
| 34 | - private java.lang.String tmplatNm; | |
| 35 | - | |
| 36 | - /** CSS_SOURC */ | |
| 37 | - private java.lang.String cssSourc; | |
| 38 | - | |
| 39 | - /** SCRIPT_SOURC */ | |
| 40 | - private java.lang.String scriptSourc; | |
| 41 | - | |
| 42 | - /** MOBILE_CSS_SOURC */ | |
| 43 | - private java.lang.String mobileCssSourc; | |
| 44 | - | |
| 45 | - /** MOBILE_SCRIPT_SOURC */ | |
| 46 | - private java.lang.String mobileScriptSourc; | |
| 47 | - | |
| 48 | - /** PREVEW_FILE_NM */ | |
| 49 | - private java.lang.String prevewFileNm; | |
| 50 | - | |
| 51 | - /** USE_AT */ | |
| 52 | - private java.lang.String useAt; | |
| 53 | - | |
| 54 | - /** FRST_REGISTER_ID */ | |
| 55 | - private java.lang.String frstRegisterId; | |
| 56 | - | |
| 57 | - /** FRST_REGISTER_PNTTM */ | |
| 58 | - private java.util.Date frstRegisterPnttm; | |
| 59 | - | |
| 60 | - /** LAST_UPDUSR_ID */ | |
| 61 | - private java.lang.String lastUpdusrId; | |
| 62 | - | |
| 63 | - /** LAST_UPDUSR_PNTTM */ | |
| 64 | - private java.util.Date lastUpdusrPnttm; | |
| 65 | - | |
| 66 | - /** LYT_TMPLAT_HIST_ID */ | |
| 67 | - private java.lang.String lytTmplatHistId; | |
| 68 | - | |
| 69 | - public String getSearchTmplatLcasCode() { | |
| 70 | - return searchTmplatLcasCode; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public void setSearchTmplatLcasCode(String searchTmplatLcasCode) { | |
| 74 | - this.searchTmplatLcasCode = searchTmplatLcasCode; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public String getSearchTmplatMlsfcCode() { | |
| 78 | - return searchTmplatMlsfcCode; | |
| 79 | - } | |
| 80 | - | |
| 81 | - public void setSearchTmplatMlsfcCode(String searchTmplatMlsfcCode) { | |
| 82 | - this.searchTmplatMlsfcCode = searchTmplatMlsfcCode; | |
| 83 | - } | |
| 84 | - | |
| 85 | - public java.lang.String getLytTmplatId() { | |
| 86 | - return lytTmplatId; | |
| 87 | - } | |
| 88 | - | |
| 89 | - public void setLytTmplatId(java.lang.String lytTmplatId) { | |
| 90 | - this.lytTmplatId = lytTmplatId; | |
| 91 | - } | |
| 92 | - | |
| 93 | - public java.lang.String getTmplatLcasCode() { | |
| 94 | - return tmplatLcasCode; | |
| 95 | - } | |
| 96 | - | |
| 97 | - public void setTmplatLcasCode(java.lang.String tmplatLcasCode) { | |
| 98 | - this.tmplatLcasCode = tmplatLcasCode; | |
| 99 | - } | |
| 100 | - | |
| 101 | - public java.lang.String getTmplatLcasCodeNm() { | |
| 102 | - return tmplatLcasCodeNm; | |
| 103 | - } | |
| 104 | - | |
| 105 | - public void setTmplatLcasCodeNm(java.lang.String tmplatLcasCodeNm) { | |
| 106 | - this.tmplatLcasCodeNm = tmplatLcasCodeNm; | |
| 107 | - } | |
| 108 | - | |
| 109 | - public java.lang.String getTmplatMlsfcCode() { | |
| 110 | - return tmplatMlsfcCode; | |
| 111 | - } | |
| 112 | - | |
| 113 | - public void setTmplatMlsfcCode(java.lang.String tmplatMlsfcCode) { | |
| 114 | - this.tmplatMlsfcCode = tmplatMlsfcCode; | |
| 115 | - } | |
| 116 | - | |
| 117 | - public java.lang.String getTmplatMlsfcCodeNm() { | |
| 118 | - return tmplatMlsfcCodeNm; | |
| 119 | - } | |
| 120 | - | |
| 121 | - public void setTmplatMlsfcCodeNm(java.lang.String tmplatMlsfcCodeNm) { | |
| 122 | - this.tmplatMlsfcCodeNm = tmplatMlsfcCodeNm; | |
| 123 | - } | |
| 124 | - | |
| 125 | - public java.lang.String getTmplatNm() { | |
| 126 | - return tmplatNm; | |
| 127 | - } | |
| 128 | - | |
| 129 | - public void setTmplatNm(java.lang.String tmplatNm) { | |
| 130 | - this.tmplatNm = tmplatNm; | |
| 131 | - } | |
| 132 | - | |
| 133 | - public java.lang.String getCssSourc() { | |
| 134 | - return cssSourc; | |
| 135 | - } | |
| 136 | - | |
| 137 | - public void setCssSourc(java.lang.String cssSourc) { | |
| 138 | - this.cssSourc = cssSourc; | |
| 139 | - } | |
| 140 | - | |
| 141 | - public java.lang.String getScriptSourc() { | |
| 142 | - return scriptSourc; | |
| 143 | - } | |
| 144 | - | |
| 145 | - public void setScriptSourc(java.lang.String scriptSourc) { | |
| 146 | - this.scriptSourc = scriptSourc; | |
| 147 | - } | |
| 148 | - | |
| 149 | - public java.lang.String getMobileCssSourc() { | |
| 150 | - return mobileCssSourc; | |
| 151 | - } | |
| 152 | - | |
| 153 | - public void setMobileCssSourc(java.lang.String mobileCssSourc) { | |
| 154 | - this.mobileCssSourc = mobileCssSourc; | |
| 155 | - } | |
| 156 | - | |
| 157 | - public java.lang.String getMobileScriptSourc() { | |
| 158 | - return mobileScriptSourc; | |
| 159 | - } | |
| 160 | - | |
| 161 | - public void setMobileScriptSourc(java.lang.String mobileScriptSourc) { | |
| 162 | - this.mobileScriptSourc = mobileScriptSourc; | |
| 163 | - } | |
| 164 | - | |
| 165 | - public java.lang.String getPrevewFileNm() { | |
| 166 | - return prevewFileNm; | |
| 167 | - } | |
| 168 | - | |
| 169 | - public void setPrevewFileNm(java.lang.String prevewFileNm) { | |
| 170 | - this.prevewFileNm = prevewFileNm; | |
| 171 | - } | |
| 172 | - | |
| 173 | - public java.lang.String getUseAt() { | |
| 174 | - return useAt; | |
| 175 | - } | |
| 176 | - | |
| 177 | - public void setUseAt(java.lang.String useAt) { | |
| 178 | - this.useAt = useAt; | |
| 179 | - } | |
| 180 | - | |
| 181 | - public java.lang.String getFrstRegisterId() { | |
| 182 | - return frstRegisterId; | |
| 183 | - } | |
| 184 | - | |
| 185 | - public void setFrstRegisterId(java.lang.String frstRegisterId) { | |
| 186 | - this.frstRegisterId = frstRegisterId; | |
| 187 | - } | |
| 188 | - | |
| 189 | - public java.util.Date getFrstRegisterPnttm() { | |
| 190 | - return frstRegisterPnttm; | |
| 191 | - } | |
| 192 | - | |
| 193 | - public void setFrstRegisterPnttm(java.util.Date frstRegisterPnttm) { | |
| 194 | - this.frstRegisterPnttm = frstRegisterPnttm; | |
| 195 | - } | |
| 196 | - | |
| 197 | - public java.lang.String getLastUpdusrId() { | |
| 198 | - return lastUpdusrId; | |
| 199 | - } | |
| 200 | - | |
| 201 | - public void setLastUpdusrId(java.lang.String lastUpdusrId) { | |
| 202 | - this.lastUpdusrId = lastUpdusrId; | |
| 203 | - } | |
| 204 | - | |
| 205 | - public java.util.Date getLastUpdusrPnttm() { | |
| 206 | - return lastUpdusrPnttm; | |
| 207 | - } | |
| 208 | - | |
| 209 | - public void setLastUpdusrPnttm(java.util.Date lastUpdusrPnttm) { | |
| 210 | - this.lastUpdusrPnttm = lastUpdusrPnttm; | |
| 211 | - } | |
| 212 | - | |
| 213 | - public java.lang.String getLytTmplatHistId() { | |
| 214 | - return lytTmplatHistId; | |
| 215 | - } | |
| 216 | - | |
| 217 | - public void setLytTmplatHistId(java.lang.String lytTmplatHistId) { | |
| 218 | - this.lytTmplatHistId = lytTmplatHistId; | |
| 219 | - } | |
| 220 | - | |
| 221 | - | |
| 222 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/UserInfManageService.java
... | ... | @@ -1,78 +0,0 @@ |
| 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
... | ... | @@ -1,165 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | - | |
| 5 | -import egovframework.com.cmm.ComDefaultVO; | |
| 6 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 7 | - | |
| 8 | - | |
| 9 | -//사용자 정보 조회를 위한 VO 클래스 | |
| 10 | -public class UserInfVO extends ComDefaultVO {
| |
| 11 | - | |
| 12 | - //사용자 명 | |
| 13 | - private String userNm = ""; | |
| 14 | - | |
| 15 | - //사용자 우편번호 | |
| 16 | - private String userZip = ""; | |
| 17 | - | |
| 18 | - //사용자 주소 | |
| 19 | - private String userAdres = ""; | |
| 20 | - | |
| 21 | - //사용자 이메일 | |
| 22 | - private String userEmail = ""; | |
| 23 | - | |
| 24 | - //권한코드 | |
| 25 | - private String authorCode = ""; | |
| 26 | - | |
| 27 | - //권한코드 | |
| 28 | - private String authorNm = ""; | |
| 29 | - | |
| 30 | - //검색시작일 | |
| 31 | - private String searchBgnDe = ""; | |
| 32 | - | |
| 33 | - //검색종료일 | |
| 34 | - private String searchEndDe = ""; | |
| 35 | - | |
| 36 | - //회원검색구분 | |
| 37 | - private String searchSe = ""; | |
| 38 | - | |
| 39 | - //레코드 번호 | |
| 40 | - private int rowNo = 0; | |
| 41 | - | |
| 42 | - //대상 아이디 | |
| 43 | - private String trgetId = ""; | |
| 44 | - | |
| 45 | - //커뮤니티 아이디 | |
| 46 | - private String cmmntyId = ""; | |
| 47 | - | |
| 48 | - //동호회 아이디 | |
| 49 | - private String clubId = ""; | |
| 50 | - | |
| 51 | - //대상 중지 여부 (커뮤니티 또는 동호회) | |
| 52 | - private String deletedAt = "N"; | |
| 53 | - | |
| 54 | - public String getUserNm() {
| |
| 55 | - return userNm; | |
| 56 | - } | |
| 57 | - | |
| 58 | - public void setUserNm(String userNm) {
| |
| 59 | - this.userNm = userNm; | |
| 60 | - } | |
| 61 | - | |
| 62 | - public String getUserZip() {
| |
| 63 | - return userZip; | |
| 64 | - } | |
| 65 | - | |
| 66 | - public void setUserZip(String userZip) {
| |
| 67 | - this.userZip = userZip; | |
| 68 | - } | |
| 69 | - | |
| 70 | - public String getUserAdres() {
| |
| 71 | - return userAdres; | |
| 72 | - } | |
| 73 | - | |
| 74 | - public void setUserAdres(String userAdres) {
| |
| 75 | - this.userAdres = userAdres; | |
| 76 | - } | |
| 77 | - | |
| 78 | - public String getUserEmail() {
| |
| 79 | - return userEmail; | |
| 80 | - } | |
| 81 | - | |
| 82 | - public void setUserEmail(String userEmail) {
| |
| 83 | - this.userEmail = userEmail; | |
| 84 | - } | |
| 85 | - | |
| 86 | - public String getAuthorCode() {
| |
| 87 | - return authorCode; | |
| 88 | - } | |
| 89 | - | |
| 90 | - public void setAuthorCode(String authorCode) {
| |
| 91 | - this.authorCode = authorCode; | |
| 92 | - } | |
| 93 | - | |
| 94 | - public String getAuthorNm() {
| |
| 95 | - return authorNm; | |
| 96 | - } | |
| 97 | - | |
| 98 | - public void setAuthorNm(String authorNm) {
| |
| 99 | - this.authorNm = authorNm; | |
| 100 | - } | |
| 101 | - | |
| 102 | - public String getSearchBgnDe() {
| |
| 103 | - return searchBgnDe; | |
| 104 | - } | |
| 105 | - | |
| 106 | - public void setSearchBgnDe(String searchBgnDe) {
| |
| 107 | - this.searchBgnDe = searchBgnDe; | |
| 108 | - } | |
| 109 | - | |
| 110 | - public String getSearchEndDe() {
| |
| 111 | - return searchEndDe; | |
| 112 | - } | |
| 113 | - | |
| 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 | - } | |
| 165 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BBSUseInfoManageMapper.java
... | ... | @@ -1,53 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.cop.com.service.BoardUseInfVO; | |
| 4 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -@Mapper("bbsUseInfoManageMapper") | |
| 9 | -public interface BBSUseInfoManageMapper { | |
| 10 | - | |
| 11 | - //게시판 사용 정보를 삭제한다. | |
| 12 | - public void deleteBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; | |
| 13 | - | |
| 14 | - //커뮤니티에 사용되는 게시판 사용정보 목록을 조회한다. | |
| 15 | - public List<BoardUseInfVO> selectBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception; | |
| 16 | - | |
| 17 | - //동호회에 사용되는 게시판 사용정보 목록을 조회한다. | |
| 18 | - public List<BoardUseInfVO> selectBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception; | |
| 19 | - | |
| 20 | - //커뮤니티에 사용되는 모든 게시판 사용정보를 삭제한다. | |
| 21 | - public void deleteAllBBSUseInfByCmmnty(BoardUseInfVO bdUseVO) throws Exception; | |
| 22 | - | |
| 23 | - //동호회에 사용되는 모든 게시판 사용정보를 삭제한다. | |
| 24 | - public void deleteAllBBSUseInfByClub(BoardUseInfVO bdUseVO) throws Exception; | |
| 25 | - | |
| 26 | - //게시판 사용정보를 등록한다. | |
| 27 | - public void insertBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; | |
| 28 | - | |
| 29 | - //게시판 사용정보 목록을 조회한다. | |
| 30 | - public List<BoardUseInfVO> selectBBSUseInfs(BoardUseInfVO bdUseVO) throws Exception; | |
| 31 | - | |
| 32 | - //게시판 사용정보 목록 수를 조회한다. | |
| 33 | - public int selectBBSUseInfsCnt(BoardUseInfVO bdUseVO) throws Exception; | |
| 34 | - | |
| 35 | - //게시판 사용정보에 대한 상세정보를 조회한다. | |
| 36 | - public BoardUseInfVO selectBBSUseInf(BoardUseInfVO bdUseVO) throws Exception; | |
| 37 | - | |
| 38 | - //게시판 사용정보를 수정한다. | |
| 39 | - public void updateBBSUseInf(BoardUseInfVO bdUseInf) throws Exception; | |
| 40 | - | |
| 41 | - //게시판에 대한 사용정보를 삭제한다. | |
| 42 | - public void deleteBBSUseInfByBoardId(BoardUseInfVO bdUseInf) throws Exception; | |
| 43 | - | |
| 44 | - //커뮤니티, 동호회에 사용되는 게시판 사용정보에 대한 목록을 조회한다. | |
| 45 | - public List<BoardUseInfVO> selectBBSUseInfsByTrget(BoardUseInfVO bdUseVO) throws Exception; | |
| 46 | - | |
| 47 | - //커뮤니티, 동호회에 사용되는 게시판 사용정보에 대한 전체 건수를 조회한다. | |
| 48 | - public int selectBBSUseInfsCntByTrget(BoardUseInfVO bdUseVO) throws Exception; | |
| 49 | - | |
| 50 | - //커뮤니티, 동호회에 사용되는 게시판 사용정보를 수정한다. | |
| 51 | - public void updateBBSUseInfByTrget(BoardUseInfVO bdUseInf) throws Exception; | |
| 52 | - | |
| 53 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BBSUseInfoManageServiceImpl.java
... | ... | @@ -1,123 +0,0 @@ |
| 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/BbsSourcHistoryMapper.java
... | ... | @@ -1,25 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.BbsSourcVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("bbsSourcHistoryMapper") | |
| 9 | -public interface BbsSourcHistoryMapper { | |
| 10 | - | |
| 11 | - //COMTNBBSSOURCHISTORY을 등록한다. | |
| 12 | - public void insertBbsSourcHistory(BbsSourcVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSSOURCHISTORY을 삭제한다. | |
| 15 | - public void deleteBbsSourcHistory(BbsSourcVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSSOURCHISTORY을 조회한다. | |
| 18 | - public BbsSourcVO selectBbsSourcHistory(BbsSourcVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSSOURCHISTORY 목록을 조회한다. | |
| 21 | - public List<BbsSourcVO> selectBbsSourcHistoryList(BbsSourcVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNBBSSOURCHISTORY 총 갯수를 조회한다. | |
| 24 | - public int selectBbsSourcHistoryListCnt(BbsSourcVO searchVO); | |
| 25 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BbsSourcHistoryServiceImpl.java
... | ... | @@ -1,54 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cop.com.service.BbsSourcVO; | |
| 12 | -import egovframework.com.cop.com.service.BbsSourcHistoryService; | |
| 13 | - | |
| 14 | - | |
| 15 | -@Service("bbsSourcHistoryService")
| |
| 16 | -public class BbsSourcHistoryServiceImpl extends EgovAbstractServiceImpl implements BbsSourcHistoryService {
| |
| 17 | - | |
| 18 | - @Resource(name="bbsSourcHistoryMapper") | |
| 19 | - private BbsSourcHistoryMapper bbsSourcHistoryMapper; | |
| 20 | - | |
| 21 | - /** ID Generation */ | |
| 22 | - @Resource(name="bbsSourcHistoryIdGnrService") | |
| 23 | - private EgovIdGnrService egovIdGnrService; | |
| 24 | - | |
| 25 | - //COMTNBBSSOURCHISTORY을 등록한다. | |
| 26 | - public String insertBbsSourcHistory(BbsSourcVO vo) throws Exception {
| |
| 27 | - vo.setBbsSourcHistId(egovIdGnrService.getNextStringId()); | |
| 28 | - bbsSourcHistoryMapper.insertBbsSourcHistory(vo); | |
| 29 | - return null; | |
| 30 | - } | |
| 31 | - | |
| 32 | - //COMTNBBSSOURCHISTORY을 삭제한다. | |
| 33 | - public void deleteBbsSourcHistory(BbsSourcVO vo) throws Exception {
| |
| 34 | - bbsSourcHistoryMapper.deleteBbsSourcHistory(vo); | |
| 35 | - } | |
| 36 | - | |
| 37 | - //COMTNBBSSOURCHISTORY을 조회한다. | |
| 38 | - public BbsSourcVO selectBbsSourcHistory(BbsSourcVO vo) throws Exception {
| |
| 39 | - BbsSourcVO resultVO = bbsSourcHistoryMapper.selectBbsSourcHistory(vo); | |
| 40 | - | |
| 41 | - return resultVO; | |
| 42 | - } | |
| 43 | - | |
| 44 | - //COMTNBBSSOURCHISTORY 목록을 조회한다. | |
| 45 | - public List<BbsSourcVO> selectBbsSourcHistoryList(BbsSourcVO searchVO) throws Exception {
| |
| 46 | - return bbsSourcHistoryMapper.selectBbsSourcHistoryList(searchVO); | |
| 47 | - } | |
| 48 | - | |
| 49 | - //COMTNBBSSOURCHISTORY 총 갯수를 조회한다. | |
| 50 | - public int selectBbsSourcHistoryListCnt(BbsSourcVO searchVO) {
| |
| 51 | - return bbsSourcHistoryMapper.selectBbsSourcHistoryListCnt(searchVO); | |
| 52 | - } | |
| 53 | - | |
| 54 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BbsSourcMapper.java
... | ... | @@ -1,28 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.BbsSourcVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("bbsSourcMapper") | |
| 9 | -public interface BbsSourcMapper { | |
| 10 | - | |
| 11 | - //COMTNBBSSOURC을 등록한다. | |
| 12 | - public void insertBbsSourc(BbsSourcVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSSOURC을 수정한다. | |
| 15 | - public void updateBbsSourc(BbsSourcVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSSOURC을 삭제한다. | |
| 18 | - public void deleteBbsSourc(BbsSourcVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSSOURC을 조회한다. | |
| 21 | - public BbsSourcVO selectBbsSourc(BbsSourcVO vo) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNBBSSOURC 목록을 조회한다. | |
| 24 | - public List<BbsSourcVO> selectBbsSourcList(BbsSourcVO searchVO) throws Exception; | |
| 25 | - | |
| 26 | - //COMTNBBSSOURC 총 갯수를 조회한다. | |
| 27 | - public int selectBbsSourcListCnt(BbsSourcVO searchVO); | |
| 28 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BbsSourcServiceImpl.java
... | ... | @@ -1,97 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 12 | -import egovframework.com.cop.com.service.BbsSourcHistoryService; | |
| 13 | -import egovframework.com.cop.com.service.BbsSourcService; | |
| 14 | -import egovframework.com.cop.com.service.BbsSourcVO; | |
| 15 | -import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; | |
| 16 | - | |
| 17 | -//게시판소스impl | |
| 18 | -@Service("bbsSourcService")
| |
| 19 | -public class BbsSourcServiceImpl extends EgovAbstractServiceImpl implements BbsSourcService {
| |
| 20 | - | |
| 21 | - @Resource(name="bbsSourcMapper") | |
| 22 | - private BbsSourcMapper bbsSourcMapper; | |
| 23 | - | |
| 24 | - /** ID Generation */ | |
| 25 | - @Resource(name="bbsSourcIdGnrService") | |
| 26 | - private EgovIdGnrService egovIdGnrService; | |
| 27 | - | |
| 28 | - @Resource(name="bbsSourcHistoryService") | |
| 29 | - private BbsSourcHistoryService bbsSourcHistoryService; | |
| 30 | - | |
| 31 | - @Resource(name = "propertiesService") | |
| 32 | - protected EgovPropertyService propertyService; | |
| 33 | - | |
| 34 | - //COMTNBBSSOURC을 등록한다. | |
| 35 | - public String insertBbsSourc(BbsSourcVO vo) throws Exception {
| |
| 36 | - vo.setBbsSourcId(egovIdGnrService.getNextStringId()); | |
| 37 | - bbsSourcMapper.insertBbsSourc(vo); | |
| 38 | - | |
| 39 | - bbsSourcHistoryService.insertBbsSourcHistory(vo); | |
| 40 | - | |
| 41 | - this.publishCreate(vo); | |
| 42 | - | |
| 43 | - return null; | |
| 44 | - } | |
| 45 | - | |
| 46 | - //COMTNBBSSOURC을 수정한다. | |
| 47 | - public void updateBbsSourc(BbsSourcVO vo) throws Exception {
| |
| 48 | - bbsSourcMapper.updateBbsSourc(vo); | |
| 49 | - | |
| 50 | - bbsSourcHistoryService.insertBbsSourcHistory(vo); | |
| 51 | - | |
| 52 | - this.publishCreate(vo); | |
| 53 | - } | |
| 54 | - | |
| 55 | - //COMTNBBSSOURC을 삭제한다. | |
| 56 | - public void deleteBbsSourc(BbsSourcVO vo) throws Exception {
| |
| 57 | - bbsSourcMapper.deleteBbsSourc(vo); | |
| 58 | - | |
| 59 | - this.publishDelete(vo); | |
| 60 | - } | |
| 61 | - | |
| 62 | - //COMTNBBSSOURC을 조회한다. | |
| 63 | - public BbsSourcVO selectBbsSourc(BbsSourcVO vo) throws Exception {
| |
| 64 | - BbsSourcVO resultVO = bbsSourcMapper.selectBbsSourc(vo); | |
| 65 | - | |
| 66 | - return resultVO; | |
| 67 | - } | |
| 68 | - | |
| 69 | - //COMTNBBSSOURC 목록을 조회한다. | |
| 70 | - public List<BbsSourcVO> selectBbsSourcList(BbsSourcVO searchVO) throws Exception {
| |
| 71 | - return bbsSourcMapper.selectBbsSourcList(searchVO); | |
| 72 | - } | |
| 73 | - | |
| 74 | - //COMTNBBSSOURC 총 갯수를 조회한다. | |
| 75 | - public int selectBbsSourcListCnt(BbsSourcVO searchVO) {
| |
| 76 | - return bbsSourcMapper.selectBbsSourcListCnt(searchVO); | |
| 77 | - } | |
| 78 | - | |
| 79 | - public void publishCreate(BbsSourcVO vo) throws Exception {
| |
| 80 | - | |
| 81 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "NoticeList.jsp", vo.getListSourc());
| |
| 82 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "NoticeInqire.jsp", vo.getViewSourc());
| |
| 83 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "NoticeRegist.jsp", vo.getFormSourc());
| |
| 84 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "CommentList.jsp", vo.getCmSourc());
| |
| 85 | - | |
| 86 | - } | |
| 87 | - | |
| 88 | - public void publishDelete(BbsSourcVO vo) throws Exception {
| |
| 89 | - | |
| 90 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "NoticeList.jsp");
| |
| 91 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "NoticeInqire.jsp");
| |
| 92 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "NoticeRegist.jsp");
| |
| 93 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.bbs.fileStorePathByJspFile") + "/" + vo.getBbsSourcId() + "/" + "CommentList.jsp");
| |
| 94 | - | |
| 95 | - } | |
| 96 | - | |
| 97 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BbsTmplatHistoryMapper.java
... | ... | @@ -1,26 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.BbsTmplatVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("bbsTmplatHistoryMapper") | |
| 9 | -public interface BbsTmplatHistoryMapper { | |
| 10 | - | |
| 11 | - //COMTNBBSTMPLATHISTORY을 등록한다. | |
| 12 | - public void insertBbsTmplatHistory(BbsTmplatVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSTMPLATHISTORY을 삭제한다. | |
| 15 | - public void deleteBbsTmplatHistory(BbsTmplatVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSTMPLATHISTORY을 조회한다. | |
| 18 | - public BbsTmplatVO selectBbsTmplatHistory(BbsTmplatVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSTMPLATHISTORY 목록을 조회한다. | |
| 21 | - public List<BbsTmplatVO> selectBbsTmplatHistoryList(BbsTmplatVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNBBSTMPLATHISTORY 총 갯수를 조회한다. | |
| 24 | - public int selectBbsTmplatHistoryListCnt(BbsTmplatVO searchVO); | |
| 25 | - | |
| 26 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BbsTmplatHistoryServiceImpl.java
... | ... | @@ -1,60 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cop.com.service.BbsTmplatVO; | |
| 12 | -import egovframework.com.cop.com.service.BbsTmplatHistoryService; | |
| 13 | - | |
| 14 | -@Service("bbsTmplatHistoryService")
| |
| 15 | -public class BbsTmplatHistoryServiceImpl extends EgovAbstractServiceImpl implements BbsTmplatHistoryService {
| |
| 16 | - | |
| 17 | - @Resource(name="bbsTmplatHistoryMapper") | |
| 18 | - private BbsTmplatHistoryMapper bbsTmplatHistoryMapper; | |
| 19 | - | |
| 20 | - /** ID Generation */ | |
| 21 | - @Resource(name="bbsTmplatHistoryIdGnrService") | |
| 22 | - private EgovIdGnrService egovIdGnrService; | |
| 23 | - | |
| 24 | - //COMTNBBSTMPLATHISTORY을 등록한다. | |
| 25 | - public String insertBbsTmplatHistory(BbsTmplatVO vo) throws Exception {
| |
| 26 | - vo.setBbsTmplatHistId(egovIdGnrService.getNextStringId()); | |
| 27 | - bbsTmplatHistoryMapper.insertBbsTmplatHistory(vo); | |
| 28 | - return null; | |
| 29 | - } | |
| 30 | - | |
| 31 | - //COMTNBBSTMPLATHISTORY을 삭제한다. | |
| 32 | - public void deleteBbsTmplatHistory(BbsTmplatVO vo) throws Exception {
| |
| 33 | - bbsTmplatHistoryMapper.deleteBbsTmplatHistory(vo); | |
| 34 | - } | |
| 35 | - | |
| 36 | - //COMTNBBSTMPLATHISTORY을 조회한다. | |
| 37 | - public BbsTmplatVO selectBbsTmplatHistory(BbsTmplatVO vo) throws Exception {
| |
| 38 | - BbsTmplatVO resultVO = bbsTmplatHistoryMapper.selectBbsTmplatHistory(vo); | |
| 39 | - | |
| 40 | - return resultVO; | |
| 41 | - } | |
| 42 | - | |
| 43 | - //COMTNBBSTMPLATHISTORY 목록을 조회한다. | |
| 44 | - public List<BbsTmplatVO> selectBbsTmplatHistoryList(BbsTmplatVO searchVO) throws Exception {
| |
| 45 | - return bbsTmplatHistoryMapper.selectBbsTmplatHistoryList(searchVO); | |
| 46 | - } | |
| 47 | - | |
| 48 | - //COMTNBBSTMPLATHISTORY 총 갯수를 조회한다. | |
| 49 | - public int selectBbsTmplatHistoryListCnt(BbsTmplatVO searchVO) {
| |
| 50 | - return bbsTmplatHistoryMapper.selectBbsTmplatHistoryListCnt(searchVO); | |
| 51 | - } | |
| 52 | - | |
| 53 | - | |
| 54 | - | |
| 55 | - | |
| 56 | - | |
| 57 | - | |
| 58 | - | |
| 59 | - | |
| 60 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BbsTmplatMapper.java
... | ... | @@ -1,29 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.BbsTmplatVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("bbsTmplatMapper") | |
| 9 | -public interface BbsTmplatMapper { | |
| 10 | - | |
| 11 | - //COMTNBBSTMPLAT을 등록한다. | |
| 12 | - public void insertBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNBBSTMPLAT을 수정한다. | |
| 15 | - public void updateBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNBBSTMPLAT을 삭제한다. | |
| 18 | - public void deleteBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNBBSTMPLAT을 조회한다. | |
| 21 | - public BbsTmplatVO selectBbsTmplat(BbsTmplatVO vo) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNBBSTMPLAT 목록을 조회한다. | |
| 24 | - public List<BbsTmplatVO> selectBbsTmplatList(BbsTmplatVO searchVO) throws Exception; | |
| 25 | - | |
| 26 | - //COMTNBBSTMPLAT 총 갯수를 조회한다. | |
| 27 | - public int selectBbsTmplatListCnt(BbsTmplatVO searchVO); | |
| 28 | - | |
| 29 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/BbsTmplatServiceImpl.java
... | ... | @@ -1,92 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 12 | -import egovframework.com.cop.com.service.BbsTmplatHistoryService; | |
| 13 | -import egovframework.com.cop.com.service.BbsTmplatService; | |
| 14 | -import egovframework.com.cop.com.service.BbsTmplatVO; | |
| 15 | -import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; | |
| 16 | - | |
| 17 | -@Service("bbsTmplatService")
| |
| 18 | -public class BbsTmplatServiceImpl extends EgovAbstractServiceImpl implements BbsTmplatService {
| |
| 19 | - | |
| 20 | - @Resource(name="bbsTmplatMapper") | |
| 21 | - private BbsTmplatMapper bbsTmplatMapper; | |
| 22 | - | |
| 23 | - /** ID Generation */ | |
| 24 | - @Resource(name="bbsTmplatIdGnrService") | |
| 25 | - private EgovIdGnrService egovIdGnrService; | |
| 26 | - | |
| 27 | - @Resource(name="bbsTmplatHistoryService") | |
| 28 | - private BbsTmplatHistoryService bbsTmplatHistoryService; | |
| 29 | - | |
| 30 | - @Resource(name = "propertiesService") | |
| 31 | - protected EgovPropertyService propertyService; | |
| 32 | - | |
| 33 | - //COMTNBBSTMPLAT을 등록한다. | |
| 34 | - public String insertBbsTmplat(BbsTmplatVO vo) throws Exception {
| |
| 35 | - vo.setBbsTmplatId(egovIdGnrService.getNextStringId()); | |
| 36 | - bbsTmplatMapper.insertBbsTmplat(vo); | |
| 37 | - | |
| 38 | - bbsTmplatHistoryService.insertBbsTmplatHistory(vo); | |
| 39 | - | |
| 40 | - this.publishCreate(vo); | |
| 41 | - | |
| 42 | - return null; | |
| 43 | - } | |
| 44 | - | |
| 45 | - //COMTNBBSTMPLAT을 수정한다. | |
| 46 | - public void updateBbsTmplat(BbsTmplatVO vo) throws Exception {
| |
| 47 | - bbsTmplatMapper.updateBbsTmplat(vo); | |
| 48 | - | |
| 49 | - bbsTmplatHistoryService.insertBbsTmplatHistory(vo); | |
| 50 | - | |
| 51 | - this.publishCreate(vo); | |
| 52 | - } | |
| 53 | - | |
| 54 | - //COMTNBBSTMPLAT을 삭제한다. | |
| 55 | - public void deleteBbsTmplat(BbsTmplatVO vo) throws Exception {
| |
| 56 | - bbsTmplatMapper.deleteBbsTmplat(vo); | |
| 57 | - | |
| 58 | - this.publishDelete(vo); | |
| 59 | - } | |
| 60 | - | |
| 61 | - //COMTNBBSTMPLAT을 조회한다. | |
| 62 | - public BbsTmplatVO selectBbsTmplat(BbsTmplatVO vo) throws Exception {
| |
| 63 | - BbsTmplatVO resultVO = bbsTmplatMapper.selectBbsTmplat(vo); | |
| 64 | - | |
| 65 | - return resultVO; | |
| 66 | - } | |
| 67 | - | |
| 68 | - //COMTNBBSTMPLAT 목록을 조회한다. | |
| 69 | - public List<BbsTmplatVO> selectBbsTmplatList(BbsTmplatVO searchVO) throws Exception {
| |
| 70 | - return bbsTmplatMapper.selectBbsTmplatList(searchVO); | |
| 71 | - } | |
| 72 | - | |
| 73 | - //COMTNBBSTMPLAT 총 갯수를 조회한다. | |
| 74 | - public int selectBbsTmplatListCnt(BbsTmplatVO searchVO) {
| |
| 75 | - return bbsTmplatMapper.selectBbsTmplatListCnt(searchVO); | |
| 76 | - } | |
| 77 | - | |
| 78 | - public void publishCreate(BbsTmplatVO vo) throws Exception {
| |
| 79 | - | |
| 80 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.tmplat.bbs.fileStorePathByWebFile") + "/" + vo.getBbsTmplatId() + "/style.css", vo.getCssSourc());
| |
| 81 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.tmplat.bbs.fileStorePathByWebFile") + "/" + vo.getBbsTmplatId() + "/script.js", vo.getScriptSourc());
| |
| 82 | - | |
| 83 | - } | |
| 84 | - | |
| 85 | - public void publishDelete(BbsTmplatVO vo) throws Exception {
| |
| 86 | - | |
| 87 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.tmplat.bbs.fileStorePathByWebFile") + "/" + vo.getBbsTmplatId() + "/style.css");
| |
| 88 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.tmplat.bbs.fileStorePathByWebFile") + "/" + vo.getBbsTmplatId() + "/script.js");
| |
| 89 | - | |
| 90 | - } | |
| 91 | - | |
| 92 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/ConfirmManageMapper.java
... | ... | @@ -1,30 +0,0 @@ |
| 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
... | ... | @@ -1,137 +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.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/LytSourcHistoryMapper.java
... | ... | @@ -1,27 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.LytSourcVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("lytSourcHistoryMapper") | |
| 9 | -public interface LytSourcHistoryMapper { | |
| 10 | - | |
| 11 | - //COMTNLYTSOURCHISTORY을 등록한다. | |
| 12 | - public void insertLytSourcHistory(LytSourcVO vo) throws Exception; | |
| 13 | - | |
| 14 | - ///COMTNLYTSOURCHISTORY을 삭제한다. | |
| 15 | - public void deleteLytSourcHistory(LytSourcVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNLYTSOURCHISTORY을 조회한다. | |
| 18 | - public LytSourcVO selectLytSourcHistory(LytSourcVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNLYTSOURCHISTORY 목록을 조회한다. | |
| 21 | - public List<LytSourcVO> selectLytSourcHistoryList(LytSourcVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNLYTSOURCHISTORY 총 갯수를 조회한다. | |
| 24 | - public int selectLytSourcHistoryListCnt(LytSourcVO searchVO); | |
| 25 | - | |
| 26 | - | |
| 27 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/LytSourcHistoryServiceImpl.java
... | ... | @@ -1,54 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cop.com.service.LytSourcHistoryService; | |
| 12 | -import egovframework.com.cop.com.service.LytSourcVO; | |
| 13 | - | |
| 14 | - | |
| 15 | -@Service("lytSourcHistoryService") | |
| 16 | -public class LytSourcHistoryServiceImpl extends EgovAbstractServiceImpl implements LytSourcHistoryService { | |
| 17 | - | |
| 18 | - @Resource(name="lytSourcHistoryMapper") | |
| 19 | - private LytSourcHistoryMapper lytSourcHistoryMapper; | |
| 20 | - | |
| 21 | - /** ID Generation */ | |
| 22 | - @Resource(name="lytSourcHistoryIdGnrService") | |
| 23 | - private EgovIdGnrService egovIdGnrService; | |
| 24 | - | |
| 25 | - //COMTNLYTSOURCHISTORY을 등록한다. | |
| 26 | - public String insertLytSourcHistory(LytSourcVO vo) throws Exception { | |
| 27 | - vo.setLytSourcHistId(egovIdGnrService.getNextStringId()); | |
| 28 | - lytSourcHistoryMapper.insertLytSourcHistory(vo); | |
| 29 | - return null; | |
| 30 | - } | |
| 31 | - | |
| 32 | - ///COMTNLYTSOURCHISTORY을 삭제한다. | |
| 33 | - public void deleteLytSourcHistory(LytSourcVO vo) throws Exception { | |
| 34 | - lytSourcHistoryMapper.deleteLytSourcHistory(vo); | |
| 35 | - } | |
| 36 | - | |
| 37 | - //COMTNLYTSOURCHISTORY을 조회한다. | |
| 38 | - public LytSourcVO selectLytSourcHistory(LytSourcVO vo) throws Exception { | |
| 39 | - LytSourcVO resultVO = lytSourcHistoryMapper.selectLytSourcHistory(vo); | |
| 40 | - | |
| 41 | - return resultVO; | |
| 42 | - } | |
| 43 | - | |
| 44 | - //COMTNLYTSOURCHISTORY 목록을 조회한다. | |
| 45 | - public List<LytSourcVO> selectLytSourcHistoryList(LytSourcVO searchVO) throws Exception { | |
| 46 | - return lytSourcHistoryMapper.selectLytSourcHistoryList(searchVO); | |
| 47 | - } | |
| 48 | - | |
| 49 | - //COMTNLYTSOURCHISTORY 총 갯수를 조회한다. | |
| 50 | - public int selectLytSourcHistoryListCnt(LytSourcVO searchVO) { | |
| 51 | - return lytSourcHistoryMapper.selectLytSourcHistoryListCnt(searchVO); | |
| 52 | - } | |
| 53 | - | |
| 54 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/LytSourcMapper.java
... | ... | @@ -1,28 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.LytSourcVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("lytSourcMapper") | |
| 9 | -public interface LytSourcMapper { | |
| 10 | - | |
| 11 | - //COMTNLYTSOURC을 등록한다. | |
| 12 | - public void insertLytSourc(LytSourcVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNLYTSOURC을 수정한다. | |
| 15 | - public void updateLytSourc(LytSourcVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNLYTSOURC을 삭제한다. | |
| 18 | - public void deleteLytSourc(LytSourcVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNLYTSOURC을 조회한다. | |
| 21 | - public LytSourcVO selectLytSourc(LytSourcVO vo) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNLYTSOURC 목록을 조회한다. | |
| 24 | - public List<LytSourcVO> selectLytSourcList(LytSourcVO searchVO) throws Exception; | |
| 25 | - | |
| 26 | - //COMTNLYTSOURC 총 갯수를 조회한다. | |
| 27 | - public int selectLytSourcListCnt(LytSourcVO searchVO); | |
| 28 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/LytSourcServiceImpl.java
... | ... | @@ -1,96 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 12 | -import egovframework.com.cmm.service.Globals; | |
| 13 | -import egovframework.com.cop.com.service.LytSourcHistoryService; | |
| 14 | -import egovframework.com.cop.com.service.LytSourcService; | |
| 15 | -import egovframework.com.cop.com.service.LytSourcVO; | |
| 16 | -import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; | |
| 17 | - | |
| 18 | - | |
| 19 | -@Service("lytSourcService") | |
| 20 | -public class LytSourcServiceImpl extends EgovAbstractServiceImpl implements LytSourcService { | |
| 21 | - | |
| 22 | - @Resource(name="lytSourcMapper") | |
| 23 | - private LytSourcMapper lytSourcMapper; | |
| 24 | - | |
| 25 | - /** ID Generation */ | |
| 26 | - @Resource(name="lytSourcIdGnrService") | |
| 27 | - private EgovIdGnrService egovIdGnrService; | |
| 28 | - | |
| 29 | - @Resource(name="lytSourcHistoryService") | |
| 30 | - private LytSourcHistoryService lytSourcHistoryService; | |
| 31 | - | |
| 32 | - @Resource(name = "propertiesService") | |
| 33 | - protected EgovPropertyService propertyService; | |
| 34 | - | |
| 35 | - //COMTNLYTSOURC을 등록한다. | |
| 36 | - public String insertLytSourc(LytSourcVO vo) throws Exception { | |
| 37 | - vo.setLytSourcId(egovIdGnrService.getNextStringId()); | |
| 38 | - lytSourcMapper.insertLytSourc(vo); | |
| 39 | - | |
| 40 | - lytSourcHistoryService.insertLytSourcHistory(vo); | |
| 41 | - | |
| 42 | - this.publishCreate(vo); | |
| 43 | - | |
| 44 | - return null; | |
| 45 | - } | |
| 46 | - | |
| 47 | - //COMTNLYTSOURC을 수정한다. | |
| 48 | - public void updateLytSourc(LytSourcVO vo) throws Exception { | |
| 49 | - lytSourcMapper.updateLytSourc(vo); | |
| 50 | - | |
| 51 | - lytSourcHistoryService.insertLytSourcHistory(vo); | |
| 52 | - | |
| 53 | - this.publishCreate(vo); | |
| 54 | - } | |
| 55 | - | |
| 56 | - //COMTNLYTSOURC을 삭제한다. | |
| 57 | - public void deleteLytSourc(LytSourcVO vo) throws Exception { | |
| 58 | - lytSourcMapper.deleteLytSourc(vo); | |
| 59 | - | |
| 60 | - this.publishDelete(vo); | |
| 61 | - } | |
| 62 | - | |
| 63 | - //COMTNLYTSOURC을 조회한다. | |
| 64 | - public LytSourcVO selectLytSourc(LytSourcVO vo) throws Exception { | |
| 65 | - LytSourcVO resultVO = lytSourcMapper.selectLytSourc(vo); | |
| 66 | - | |
| 67 | - return resultVO; | |
| 68 | - } | |
| 69 | - | |
| 70 | - //COMTNLYTSOURC 목록을 조회한다. | |
| 71 | - public List<LytSourcVO> selectLytSourcList(LytSourcVO searchVO) throws Exception { | |
| 72 | - return lytSourcMapper.selectLytSourcList(searchVO); | |
| 73 | - } | |
| 74 | - | |
| 75 | - //COMTNLYTSOURC 총 갯수를 조회한다. | |
| 76 | - public int selectLytSourcListCnt(LytSourcVO searchVO) { | |
| 77 | - return lytSourcMapper.selectLytSourcListCnt(searchVO); | |
| 78 | - } | |
| 79 | - | |
| 80 | - public void publishCreate(LytSourcVO vo) throws Exception { | |
| 81 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead.jsp", vo.getUpendSourc()); | |
| 82 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom.jsp", vo.getLptSourc()); | |
| 83 | - | |
| 84 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp", vo.getMobileUpendSourc()); | |
| 85 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp", vo.getMobileLptSourc()); | |
| 86 | - } | |
| 87 | - | |
| 88 | - public void publishDelete(LytSourcVO vo) throws Exception { | |
| 89 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead.jsp"); | |
| 90 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom.jsp"); | |
| 91 | - | |
| 92 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcHead"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp"); | |
| 93 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.sourc.lyt.fileStorePathByJspFile") + "/" + vo.getSourcSeCode() + "/" + vo.getLytSourcId() + "/" + "sourcBottom"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".jsp"); | |
| 94 | - } | |
| 95 | - | |
| 96 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/LytTmplatHistoryMapper.java
... | ... | @@ -1,25 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.LytTmplatVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("lytTmplatHistoryMapper") | |
| 9 | -public interface LytTmplatHistoryMapper { | |
| 10 | - | |
| 11 | - //COMTNLYTTMPLATHISTORY을 등록한다. | |
| 12 | - public void insertLytTmplatHistory(LytTmplatVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNLYTTMPLATHISTORY을 삭제한다. | |
| 15 | - public void deleteLytTmplatHistory(LytTmplatVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNLYTTMPLATHISTORY을 조회한다. | |
| 18 | - public LytTmplatVO selectLytTmplatHistory(LytTmplatVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNLYTTMPLATHISTORY 목록을 조회한다. | |
| 21 | - public List<LytTmplatVO> selectLytTmplatHistoryList(LytTmplatVO searchVO) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNLYTTMPLATHISTORY 총 갯수를 조회한다. | |
| 24 | - public int selectLytTmplatHistoryListCnt(LytTmplatVO searchVO); | |
| 25 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/LytTmplatHistoryServiceImpl.java
... | ... | @@ -1,53 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cop.com.service.LytTmplatVO; | |
| 12 | -import egovframework.com.cop.com.service.LytTmplatHistoryService; | |
| 13 | - | |
| 14 | -@Service("lytTmplatHistoryService") | |
| 15 | -public class LytTmplatHistoryServiceImpl extends EgovAbstractServiceImpl implements LytTmplatHistoryService { | |
| 16 | - | |
| 17 | - @Resource(name="lytTmplatHistoryMapper") | |
| 18 | - private LytTmplatHistoryMapper lytTmplatHistoryMapper; | |
| 19 | - | |
| 20 | - /** ID Generation */ | |
| 21 | - @Resource(name="lytTmplatHistoryIdGnrService") | |
| 22 | - private EgovIdGnrService egovIdGnrService; | |
| 23 | - | |
| 24 | - //COMTNLYTTMPLATHISTORY을 등록한다. | |
| 25 | - public String insertLytTmplatHistory(LytTmplatVO vo) throws Exception { | |
| 26 | - vo.setLytTmplatHistId(egovIdGnrService.getNextStringId()); | |
| 27 | - lytTmplatHistoryMapper.insertLytTmplatHistory(vo); | |
| 28 | - return null; | |
| 29 | - } | |
| 30 | - | |
| 31 | - //COMTNLYTTMPLATHISTORY을 삭제한다. | |
| 32 | - public void deleteLytTmplatHistory(LytTmplatVO vo) throws Exception { | |
| 33 | - lytTmplatHistoryMapper.deleteLytTmplatHistory(vo); | |
| 34 | - } | |
| 35 | - | |
| 36 | - //COMTNLYTTMPLATHISTORY을 조회한다. | |
| 37 | - public LytTmplatVO selectLytTmplatHistory(LytTmplatVO vo) throws Exception { | |
| 38 | - LytTmplatVO resultVO = lytTmplatHistoryMapper.selectLytTmplatHistory(vo); | |
| 39 | - | |
| 40 | - return resultVO; | |
| 41 | - } | |
| 42 | - | |
| 43 | - //COMTNLYTTMPLATHISTORY 목록을 조회한다. | |
| 44 | - public List<LytTmplatVO> selectLytTmplatHistoryList(LytTmplatVO searchVO) throws Exception { | |
| 45 | - return lytTmplatHistoryMapper.selectLytTmplatHistoryList(searchVO); | |
| 46 | - } | |
| 47 | - | |
| 48 | - //COMTNLYTTMPLATHISTORY 총 갯수를 조회한다. | |
| 49 | - public int selectLytTmplatHistoryListCnt(LytTmplatVO searchVO) { | |
| 50 | - return lytTmplatHistoryMapper.selectLytTmplatHistoryListCnt(searchVO); | |
| 51 | - } | |
| 52 | - | |
| 53 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/LytTmplatMapper.java
... | ... | @@ -1,29 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.com.service.LytTmplatVO; | |
| 6 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 7 | - | |
| 8 | -@Mapper("lytTmplatMapper") | |
| 9 | -public interface LytTmplatMapper { | |
| 10 | - | |
| 11 | - //COMTNLYTTMPLAT을 등록한다. | |
| 12 | - public void insertLytTmplat(LytTmplatVO vo) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNLYTTMPLAT을 수정한다. | |
| 15 | - public void updateLytTmplat(LytTmplatVO vo) throws Exception; | |
| 16 | - | |
| 17 | - //COMTNLYTTMPLAT을 삭제한다. | |
| 18 | - public void deleteLytTmplat(LytTmplatVO vo) throws Exception; | |
| 19 | - | |
| 20 | - //COMTNLYTTMPLAT을 조회한다. | |
| 21 | - public LytTmplatVO selectLytTmplat(LytTmplatVO vo) throws Exception; | |
| 22 | - | |
| 23 | - //COMTNLYTTMPLAT 목록을 조회한다. | |
| 24 | - public List<LytTmplatVO> selectLytTmplatList(LytTmplatVO searchVO) throws Exception; | |
| 25 | - | |
| 26 | - //총 갯수를 조회한다. | |
| 27 | - public int selectLytTmplatListCnt(LytTmplatVO searchVO); | |
| 28 | - | |
| 29 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/LytTmplatServiceImpl.java
... | ... | @@ -1,101 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 12 | -import egovframework.com.cmm.service.Globals; | |
| 13 | -import egovframework.com.cop.com.service.LytTmplatHistoryService; | |
| 14 | -import egovframework.com.cop.com.service.LytTmplatService; | |
| 15 | -import egovframework.com.cop.com.service.LytTmplatVO; | |
| 16 | -import egovframework.com.utl.fcc.service.EgovFormBasedFileUtil; | |
| 17 | - | |
| 18 | -@Service("lytTmplatService") | |
| 19 | -public class LytTmplatServiceImpl extends EgovAbstractServiceImpl implements LytTmplatService { | |
| 20 | - | |
| 21 | - @Resource(name="lytTmplatMapper") | |
| 22 | - private LytTmplatMapper lytTmplatMapper; | |
| 23 | - | |
| 24 | - /** ID Generation */ | |
| 25 | - @Resource(name="lytTmplatIdGnrService") | |
| 26 | - private EgovIdGnrService egovIdGnrService; | |
| 27 | - | |
| 28 | - @Resource(name="lytTmplatHistoryService") | |
| 29 | - private LytTmplatHistoryService lytTmplatHistoryService; | |
| 30 | - | |
| 31 | - @Resource(name = "propertiesService") | |
| 32 | - protected EgovPropertyService propertyService; | |
| 33 | - | |
| 34 | - //COMTNLYTTMPLAT을 등록한다. | |
| 35 | - public String insertLytTmplat(LytTmplatVO vo) throws Exception { | |
| 36 | - vo.setLytTmplatId(egovIdGnrService.getNextStringId()); | |
| 37 | - lytTmplatMapper.insertLytTmplat(vo); | |
| 38 | - | |
| 39 | - lytTmplatHistoryService.insertLytTmplatHistory(vo); | |
| 40 | - | |
| 41 | - this.publishCreate(vo); | |
| 42 | - | |
| 43 | - return null; | |
| 44 | - } | |
| 45 | - | |
| 46 | - //COMTNLYTTMPLAT을 수정한다. | |
| 47 | - public void updateLytTmplat(LytTmplatVO vo) throws Exception { | |
| 48 | - lytTmplatMapper.updateLytTmplat(vo); | |
| 49 | - | |
| 50 | - lytTmplatHistoryService.insertLytTmplatHistory(vo); | |
| 51 | - | |
| 52 | - this.publishCreate(vo); | |
| 53 | - } | |
| 54 | - | |
| 55 | - //COMTNLYTTMPLAT을 삭제한다. | |
| 56 | - public void deleteLytTmplat(LytTmplatVO vo) throws Exception { | |
| 57 | - lytTmplatMapper.deleteLytTmplat(vo); | |
| 58 | - | |
| 59 | - this.publishDelete(vo); | |
| 60 | - } | |
| 61 | - | |
| 62 | - //COMTNLYTTMPLAT을 조회한다. | |
| 63 | - public LytTmplatVO selectLytTmplat(LytTmplatVO vo) throws Exception { | |
| 64 | - LytTmplatVO resultVO = lytTmplatMapper.selectLytTmplat(vo); | |
| 65 | - | |
| 66 | - return resultVO; | |
| 67 | - } | |
| 68 | - | |
| 69 | - //COMTNLYTTMPLAT 목록을 조회한다. | |
| 70 | - public List<LytTmplatVO> selectLytTmplatList(LytTmplatVO searchVO) throws Exception { | |
| 71 | - return lytTmplatMapper.selectLytTmplatList(searchVO); | |
| 72 | - } | |
| 73 | - | |
| 74 | - //COMTNLYTTMPLAT 총 갯수를 조회한다. | |
| 75 | - public int selectLytTmplatListCnt(LytTmplatVO searchVO) { | |
| 76 | - return lytTmplatMapper.selectLytTmplatListCnt(searchVO); | |
| 77 | - } | |
| 78 | - | |
| 79 | - //스타일 생성(css, js) | |
| 80 | - public void publishCreate(LytTmplatVO vo) throws Exception { | |
| 81 | - | |
| 82 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "style.css", vo.getCssSourc()); | |
| 83 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "script.js", vo.getScriptSourc()); | |
| 84 | - | |
| 85 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "style"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".css", vo.getMobileCssSourc()); | |
| 86 | - EgovFormBasedFileUtil.saveFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "script"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".js", vo.getMobileScriptSourc()); | |
| 87 | - | |
| 88 | - } | |
| 89 | - | |
| 90 | - //스타일 삭제(css, js) | |
| 91 | - public void publishDelete(LytTmplatVO vo) throws Exception { | |
| 92 | - | |
| 93 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "style.css"); | |
| 94 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "script.js"); | |
| 95 | - | |
| 96 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "style"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".css"); | |
| 97 | - EgovFormBasedFileUtil.deleteFile(this.propertyService.getString("publish.tmplat.lyt.fileStorePathByWebFile") + "/" + vo.getTmplatLcasCode() + "/" + vo.getLytTmplatId() + "/" + "script"+Globals.PUBLISH_MOBILE_APPEND_FREFIX+".js"); | |
| 98 | - | |
| 99 | - } | |
| 100 | - | |
| 101 | -} |
--- base/src/main/java/egovframework/com/cop/com/service/impl/UserInfManageMapper.java
... | ... | @@ -1,43 +0,0 @@ |
| 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/UserInfManageServiceImpl.java
... | ... | @@ -1,83 +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.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
... | ... | @@ -1,203 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.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.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 | - | |
| 15 | -import egovframework.com.cmm.service.CmmUseService; | |
| 16 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 17 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 18 | -import egovframework.com.cop.com.service.ConfirmHistoryVO; | |
| 19 | -import egovframework.com.cop.com.service.ConfirmManageService; | |
| 20 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 21 | -import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 22 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 23 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 24 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 25 | -import egovframework.rte.fdl.cmmn.exception.EgovBizException; | |
| 26 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 27 | -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 28 | - | |
| 29 | -//승인정보 관리를 위한 컨트롤러 클래스 | |
| 30 | -@Controller | |
| 31 | -public class EgovConfirmController { | |
| 32 | - | |
| 33 | - @Resource(name = "EgovConfirmManageService") | |
| 34 | - private ConfirmManageService confmService; | |
| 35 | - | |
| 36 | - @Resource(name = "propertiesService") | |
| 37 | - protected EgovPropertyService propertyService; | |
| 38 | - | |
| 39 | - @Resource(name = "cmmUseService") | |
| 40 | - private CmmUseService cmmUseService; | |
| 41 | - | |
| 42 | - @Resource(name = "EgovCommunityManageService") | |
| 43 | - private EgovCommunityManageService cmmntyService; // 커뮤니티 관리자 권한 확인 | |
| 44 | - | |
| 45 | - @Resource(name = "siteManageService") | |
| 46 | - SiteManageService siteManageService; | |
| 47 | - | |
| 48 | - Logger log = Logger.getLogger(this.getClass()); | |
| 49 | - | |
| 50 | - //커뮤니티 운영자 권한을 확인한다. | |
| 51 | - protected void checkAuthority(ConfirmHistoryVO history, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 52 | - String targetId = history.getTrgetId(); | |
| 53 | - | |
| 54 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 55 | - | |
| 56 | - if (user == null) { | |
| 57 | - throw new EgovBizException("인증된 사용자 정보가 존재하지 않습니다."); | |
| 58 | - } | |
| 59 | - | |
| 60 | - if (targetId.startsWith("CMMNTY_")) { | |
| 61 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 62 | - | |
| 63 | - cmmntyUser.setCmmntyId(history.getTrgetId()); | |
| 64 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 65 | - | |
| 66 | - if (!cmmntyService.isManager(cmmntyUser)) { | |
| 67 | - throw new EgovBizException("해당 커뮤니티 관리자만 사용하실 수 있습니다."); | |
| 68 | - } | |
| 69 | - } else { | |
| 70 | - throw new EgovBizException("대상ID 정보가 정확하지 않습니다."); | |
| 71 | - } | |
| 72 | - } | |
| 73 | - | |
| 74 | - //승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 75 | - @RequestMapping("/cop/com/selectConfirmRequest.do") | |
| 76 | - public String selectConfirmRequest(@ModelAttribute("searchVO") ConfirmHistoryVO historyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 77 | - | |
| 78 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 79 | - @SuppressWarnings("unused") | |
| 80 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 81 | - | |
| 82 | - historyVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 83 | - historyVO.setPageSize(propertyService.getInt("pageSize")); | |
| 84 | - | |
| 85 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 86 | - | |
| 87 | - paginationInfo.setCurrentPageNo(historyVO.getPageIndex()); | |
| 88 | - paginationInfo.setRecordCountPerPage(historyVO.getPageUnit()); | |
| 89 | - paginationInfo.setPageSize(historyVO.getPageSize()); | |
| 90 | - | |
| 91 | - historyVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 92 | - historyVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 93 | - historyVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 94 | - historyVO.setConfmerId(user.getId()); | |
| 95 | - | |
| 96 | - Map<String, Object> map = confmService.selectConfirmRequest(historyVO); | |
| 97 | - int totCnt = Integer.parseInt((String)map.get("resultCnt")); | |
| 98 | - | |
| 99 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 100 | - | |
| 101 | - model.addAttribute("resultList", map.get("resultList")); | |
| 102 | - model.addAttribute("resultCnt", map.get("resultCnt")); | |
| 103 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 104 | - | |
| 105 | - return "cop/com/EgovConfirmList"; | |
| 106 | - } | |
| 107 | - | |
| 108 | - //승인(탈퇴)요청 확인 처리를 위해 수정페이지로 이동한다. | |
| 109 | - @RequestMapping("/cop/com/forUpdateConfirmRequest.do") | |
| 110 | - public String forUpdateConfirmRequest(@ModelAttribute("searchVO") ConfirmHistoryVO historyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model) | |
| 111 | - throws Exception { | |
| 112 | - | |
| 113 | - checkAuthority(historyVO, request, response); // server-side 권한 확인 | |
| 114 | - | |
| 115 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 116 | - model.addAttribute("siteInfo", siteVO); | |
| 117 | - | |
| 118 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 119 | - | |
| 120 | - historyVO.setConfmerId(user.getId()); | |
| 121 | - | |
| 122 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 123 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 124 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 125 | - cmmntyUser.setCmmntyId(historyVO.getTrgetId()); | |
| 126 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 127 | - | |
| 128 | - ConfirmHistoryVO vo = confmService.selectSingleConfirmRequest(historyVO); | |
| 129 | - model.addAttribute("historyVO", vo); | |
| 130 | - | |
| 131 | - CmmnDetailCodeVO comDefaultCodeVO = new CmmnDetailCodeVO(); | |
| 132 | - comDefaultCodeVO.setCodeId("COM007"); | |
| 133 | - model.addAttribute("typeList", cmmUseService.selectCmmCodeDetail(comDefaultCodeVO)); | |
| 134 | - | |
| 135 | - return "cop/com/EgovConfmInfUpdt"; | |
| 136 | - } | |
| 137 | - | |
| 138 | - //승인(탈퇴)요청에 대한 확인을 처리한다. | |
| 139 | - @RequestMapping("/cop/com/updateConfirmRequest.do") | |
| 140 | - public String updateConfirmRequest(@ModelAttribute("history") ConfirmHistoryVO history, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 141 | - if (! "".equals(history.getTrgetId())) { | |
| 142 | - checkAuthority(history, request, response); // server-side 권한 확인 | |
| 143 | - } | |
| 144 | - | |
| 145 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 146 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 147 | - | |
| 148 | - history.setConfmerId(user.getId()); | |
| 149 | - | |
| 150 | - if (isAuthenticated) { | |
| 151 | - confmService.updateConfirmRequest(history); | |
| 152 | - } | |
| 153 | - | |
| 154 | - if ("".equals(history.getTrgetId())) { | |
| 155 | - return "forward:/cop/com/selectConfirmRequest.do"; | |
| 156 | - } else { | |
| 157 | - return "forward:/cop/com/selectConfirmRequestByTrget.do"; | |
| 158 | - } | |
| 159 | - } | |
| 160 | - | |
| 161 | - //커뮤니티/동호회 관리부분에서 승인(탈퇴)요청에 대한 목록을 조회한다. | |
| 162 | - @RequestMapping("/cop/com/selectConfirmRequestByTrget.do") | |
| 163 | - public String selectConfirmRequestByTrget(@ModelAttribute("searchVO") ConfirmHistoryVO historyVO, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 164 | - | |
| 165 | - checkAuthority(historyVO, request, response); // server-side 권한 확인 | |
| 166 | - | |
| 167 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 168 | - model.addAttribute("siteInfo", siteVO); | |
| 169 | - | |
| 170 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 171 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 172 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 173 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 174 | - cmmntyUser.setCmmntyId(historyVO.getTrgetId()); | |
| 175 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 176 | - | |
| 177 | - historyVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 178 | - historyVO.setPageSize(propertyService.getInt("pageSize")); | |
| 179 | - | |
| 180 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 181 | - | |
| 182 | - paginationInfo.setCurrentPageNo(historyVO.getPageIndex()); | |
| 183 | - paginationInfo.setRecordCountPerPage(historyVO.getPageUnit()); | |
| 184 | - paginationInfo.setPageSize(historyVO.getPageSize()); | |
| 185 | - | |
| 186 | - historyVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 187 | - historyVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 188 | - historyVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 189 | - historyVO.setConfmerId(user.getId()); | |
| 190 | - | |
| 191 | - Map<String, Object> map = confmService.selectConfirmRequest(historyVO); | |
| 192 | - int totCnt = Integer.parseInt((String)map.get("resultCnt")); | |
| 193 | - | |
| 194 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 195 | - | |
| 196 | - model.addAttribute("resultList", map.get("resultList")); | |
| 197 | - model.addAttribute("resultCnt", map.get("resultCnt")); | |
| 198 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 199 | - | |
| 200 | - return "cop/com/EgovConfirmList"; | |
| 201 | - } | |
| 202 | - | |
| 203 | -} |
--- base/src/main/java/egovframework/com/cop/com/web/EgovCopUserInfController.java
... | ... | @@ -1,263 +0,0 @@ |
| 1 | -package egovframework.com.cop.com.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.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 | - | |
| 15 | -import egovframework.com.cop.cmy.service.CommunityUser; | |
| 16 | -import egovframework.com.cop.cmy.service.EgovCommunityManageService; | |
| 17 | -import egovframework.com.cop.com.service.UserInfManageService; | |
| 18 | -import egovframework.com.cop.com.service.UserInfVO; | |
| 19 | -import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 20 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 21 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 22 | -import egovframework.com.uat.uia.service.LoginVO; | |
| 23 | -import egovframework.com.utl.fcc.service.EgovDateUtil; | |
| 24 | -import egovframework.rte.fdl.cmmn.exception.EgovBizException; | |
| 25 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 26 | -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 27 | - | |
| 28 | - | |
| 29 | -/** | |
| 30 | - * 협업기능에서 활용하는 사용자 정보 조회용 컨트롤러 클래스 | |
| 31 | - * @author 공통서비스개발팀 이삼섭 | |
| 32 | - * @since 2009.06.01 | |
| 33 | - * @version 1.0 | |
| 34 | - * @see | |
| 35 | - * | |
| 36 | - * <pre> | |
| 37 | - * << 개정이력(Modification Information) >> | |
| 38 | - * | |
| 39 | - * 수정일 수정자 수정내용 | |
| 40 | - * ------- -------- --------------------------- | |
| 41 | - * 2009.4.6 이삼섭 최초 생성 | |
| 42 | - * | |
| 43 | - * </pre> | |
| 44 | - */ | |
| 45 | -@Controller | |
| 46 | -public class EgovCopUserInfController { | |
| 47 | - | |
| 48 | - @Resource(name = "EgovUserInfManageService") | |
| 49 | - private UserInfManageService userInfService; | |
| 50 | - | |
| 51 | - @Resource(name = "EgovCommunityManageService") | |
| 52 | - private EgovCommunityManageService cmmntyService; | |
| 53 | - | |
| 54 | - @Resource(name = "siteManageService") | |
| 55 | - SiteManageService siteManageService; | |
| 56 | - | |
| 57 | - @Resource(name = "propertiesService") | |
| 58 | - protected EgovPropertyService propertyService; | |
| 59 | - | |
| 60 | - Logger log = Logger.getLogger(this.getClass()); | |
| 61 | - | |
| 62 | - /** | |
| 63 | - * 커뮤니티 관리자 및 동호회 운영자 권한을 확인한다. | |
| 64 | - * | |
| 65 | - * @param userVO | |
| 66 | - * @throws EgovBizException | |
| 67 | - */ | |
| 68 | - protected void checkAuthority(UserInfVO userVO, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 69 | - String targetId = userVO.getTrgetId(); | |
| 70 | - | |
| 71 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 72 | - | |
| 73 | - if (user == null) { | |
| 74 | - throw new EgovBizException("인증된 사용자 정보가 존재하지 않습니다."); | |
| 75 | - } | |
| 76 | - | |
| 77 | - if (targetId.startsWith("CMMNTY_")) { | |
| 78 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 79 | - | |
| 80 | - cmmntyUser.setCmmntyId(userVO.getTrgetId()); | |
| 81 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 82 | - | |
| 83 | - if (!cmmntyService.isManager(cmmntyUser)) { | |
| 84 | - throw new EgovBizException("해당 커뮤니티 관리자만 사용하실 수 있습니다."); | |
| 85 | - } | |
| 86 | - } else { | |
| 87 | - throw new EgovBizException("대상ID 정보가 정확하지 않습니다."); | |
| 88 | - } | |
| 89 | - } | |
| 90 | - | |
| 91 | - /** | |
| 92 | - * 커뮤니티 사용자 목록을 조회한다. | |
| 93 | - * | |
| 94 | - * @param userVO | |
| 95 | - * @param sessionVO | |
| 96 | - * @param model | |
| 97 | - * @return | |
| 98 | - * @throws Exception | |
| 99 | - */ | |
| 100 | - @RequestMapping("/cop/com/selectCmmntyUserList.do") | |
| 101 | - public String selectCmmntyUserList(@ModelAttribute("searchVO") UserInfVO userVO, Map<String, Object> commandMap, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 102 | - | |
| 103 | - checkAuthority(userVO, request, response); // server-side 권한 확인 | |
| 104 | - | |
| 105 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 106 | - model.addAttribute("siteInfo", siteVO); | |
| 107 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 108 | - | |
| 109 | - String popFlag = (String)commandMap.get("PopFlag"); | |
| 110 | - String returnUrl = "/cop/com/EgovUserList"; | |
| 111 | - | |
| 112 | - if ("Y".equals(popFlag)) returnUrl = "/cop/com/EgovUserListPop"; | |
| 113 | - | |
| 114 | - if (! "Y".equals(popFlag)) checkAuthority(userVO, request, response); // server-side 권한 확인 | |
| 115 | - | |
| 116 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 117 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 118 | - cmmntyUser.setSiteId(siteVO.getSiteId()); | |
| 119 | - cmmntyUser.setEmplyrId(user.getId()); | |
| 120 | - cmmntyUser.setCmmntyId(userVO.getTrgetId()); | |
| 121 | - model.addAttribute("USER_INFO", cmmntyService.selectSingleCommunityUserInf(cmmntyUser)); //사용자 정보 | |
| 122 | - | |
| 123 | - String trgetId = (String)commandMap.get("trgetId"); | |
| 124 | - | |
| 125 | - userVO.setTrgetId(trgetId); | |
| 126 | - userVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 127 | - userVO.setPageSize(propertyService.getInt("pageSize")); | |
| 128 | - | |
| 129 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 130 | - | |
| 131 | - paginationInfo.setCurrentPageNo(userVO.getPageIndex()); | |
| 132 | - paginationInfo.setRecordCountPerPage(userVO.getPageUnit()); | |
| 133 | - paginationInfo.setPageSize(userVO.getPageSize()); | |
| 134 | - | |
| 135 | - userVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 136 | - userVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 137 | - userVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 138 | - | |
| 139 | - Map<String, Object> map = userInfService.selectCmmntyUserList(userVO); | |
| 140 | - int totCnt = Integer.parseInt((String)map.get("resultCnt")); | |
| 141 | - | |
| 142 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 143 | - | |
| 144 | - model.addAttribute("resultList", map.get("resultList")); | |
| 145 | - model.addAttribute("resultCnt", map.get("resultCnt")); | |
| 146 | - model.addAttribute("targetMethod", "selectCmmntyUserList"); | |
| 147 | - model.addAttribute("trgetId", trgetId); | |
| 148 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 149 | - | |
| 150 | - model.addAttribute("authorList", cmmntyService.selectAuthorAllList(null)); | |
| 151 | - | |
| 152 | - return returnUrl; | |
| 153 | - } | |
| 154 | - | |
| 155 | - | |
| 156 | - /** | |
| 157 | - * 커뮤니티 사용정보를 삭제한다. | |
| 158 | - * | |
| 159 | - * @param userVO | |
| 160 | - * @param commandMap | |
| 161 | - * @param sessionVO | |
| 162 | - * @param model | |
| 163 | - * @return | |
| 164 | - * @throws Exception | |
| 165 | - */ | |
| 166 | - @RequestMapping("/cop/com/deleteCmmntyUser.do") | |
| 167 | - public String deleteCmmntyUser(@ModelAttribute("searchVO") UserInfVO userVO, Map<String, Object> commandMap, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 168 | - | |
| 169 | - checkAuthority(userVO, request, response); // server-side 권한 확인 | |
| 170 | - | |
| 171 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 172 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 173 | - | |
| 174 | - String cmmntyId = (String)commandMap.get("param_cmmntyId"); | |
| 175 | - String emplyrId = (String)commandMap.get("param_emplyrId"); | |
| 176 | - | |
| 177 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 178 | - | |
| 179 | - cmmntyUser.setLastUpdusrId(user.getId()); | |
| 180 | - cmmntyUser.setCmmntyId(cmmntyId); | |
| 181 | - cmmntyUser.setEmplyrId(emplyrId); | |
| 182 | - cmmntyUser.setSecsnDe(EgovDateUtil.getToday()); | |
| 183 | - | |
| 184 | - if (isAuthenticated) { | |
| 185 | - cmmntyService.deleteCommunityUserInf(cmmntyUser); | |
| 186 | - } | |
| 187 | - | |
| 188 | - return "forward:/cop/com/selectCmmntyUserList.do"; | |
| 189 | - } | |
| 190 | - | |
| 191 | - /** | |
| 192 | - * 커뮤니티 사용자 정보를 수정한다. | |
| 193 | - * | |
| 194 | - * @param userVO | |
| 195 | - * @param commandMap | |
| 196 | - * @param sessionVO | |
| 197 | - * @param model | |
| 198 | - * @return | |
| 199 | - * @throws Exception | |
| 200 | - */ | |
| 201 | - @RequestMapping("/cop/com/reRegistCmmntyUser.do") | |
| 202 | - public String reRegisterCmmntyUser(@ModelAttribute("searchVO") UserInfVO userVO, Map<String, Object> commandMap, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 203 | - | |
| 204 | - checkAuthority(userVO, request, response); // server-side 권한 확인 | |
| 205 | - | |
| 206 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 207 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 208 | - | |
| 209 | - String cmmntyId = (String)commandMap.get("param_cmmntyId"); | |
| 210 | - String emplyrId = (String)commandMap.get("param_emplyrId"); | |
| 211 | - | |
| 212 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 213 | - | |
| 214 | - cmmntyUser.setLastUpdusrId(user.getId()); | |
| 215 | - cmmntyUser.setCmmntyId(cmmntyId); | |
| 216 | - cmmntyUser.setEmplyrId(emplyrId); | |
| 217 | - cmmntyUser.setUseAt("Y"); | |
| 218 | - | |
| 219 | - if (isAuthenticated) { | |
| 220 | - cmmntyService.updateCommunityUserInf(cmmntyUser); | |
| 221 | - } | |
| 222 | - | |
| 223 | - return "forward:/cop/com/selectCmmntyUserList.do"; | |
| 224 | - } | |
| 225 | - | |
| 226 | - /** | |
| 227 | - * 커뮤니티 사용자 권한정보를 수정한다. | |
| 228 | - * | |
| 229 | - * @param userVO | |
| 230 | - * @param commandMap | |
| 231 | - * @param sessionVO | |
| 232 | - * @param model | |
| 233 | - * @return | |
| 234 | - * @throws Exception | |
| 235 | - */ | |
| 236 | - @RequestMapping("/cop/com/authorUpdateCmmntyUser.do") | |
| 237 | - public String authorUpdateCmmntyUser(@ModelAttribute("searchVO") UserInfVO userVO, Map<String, Object> commandMap, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 238 | - | |
| 239 | - checkAuthority(userVO, request, response); // server-side 권한 확인 | |
| 240 | - | |
| 241 | - LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 242 | - Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 243 | - | |
| 244 | - String cmmntyId = (String)commandMap.get("param_cmmntyId"); | |
| 245 | - String emplyrId = (String)commandMap.get("param_emplyrId"); | |
| 246 | - String authorCode = (String)commandMap.get("param_authorCode"); | |
| 247 | - | |
| 248 | - CommunityUser cmmntyUser = new CommunityUser(); | |
| 249 | - | |
| 250 | - cmmntyUser.setLastUpdusrId(user.getId()); | |
| 251 | - cmmntyUser.setCmmntyId(cmmntyId); | |
| 252 | - cmmntyUser.setEmplyrId(emplyrId); | |
| 253 | - cmmntyUser.setAuthorCode(authorCode); | |
| 254 | - | |
| 255 | - if (isAuthenticated) { | |
| 256 | - cmmntyService.updateCommunityUserInf(cmmntyUser); | |
| 257 | - } | |
| 258 | - | |
| 259 | - return "forward:/cop/com/selectCmmntyUserList.do"; | |
| 260 | - } | |
| 261 | - | |
| 262 | - | |
| 263 | -} |
--- base/src/main/java/egovframework/com/cop/sms/service/SmsInfoService.java
... | ... | @@ -1,16 +0,0 @@ |
| 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/SmsSenderService.java
... | ... | @@ -1,10 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service; | |
| 2 | - | |
| 3 | -public interface SmsSenderService {
| |
| 4 | - | |
| 5 | - //사용자 정보를 받아 sms 발송 처리 한다. | |
| 6 | - public boolean sendSmsSender(String userId, String moblphonNo, String strMsg) throws Exception; | |
| 7 | - | |
| 8 | - //사용자 정보를 받아 MMS정보를 처리 한다. | |
| 9 | - public boolean sendMmsSender(String userId, String moblphonNo, String strMsg, int fileCnt, String filePath) throws Exception; | |
| 10 | -} |
--- base/src/main/java/egovframework/com/cop/sms/service/SmsVO.java
... | ... | @@ -1,185 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service; | |
| 2 | - | |
| 3 | -import egovframework.com.cmm.ComDefaultVO; | |
| 4 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -//문자메시지 서비스를 위한 VO 클래스 | |
| 9 | -public class SmsVO extends ComDefaultVO {
| |
| 10 | - //문자메시지 ID | |
| 11 | - private String smsId = ""; | |
| 12 | - | |
| 13 | - //전송 전화번호 | |
| 14 | - private String trnsmitTelno = ""; | |
| 15 | - | |
| 16 | - //수신 전화번호 | |
| 17 | - private String recptnTelnoSingle = ""; | |
| 18 | - | |
| 19 | - //전송 내용 | |
| 20 | - private String trnsmitCn = ""; | |
| 21 | - | |
| 22 | - //수신 전화번호 개수 | |
| 23 | - private int recptnCnt = 0; | |
| 24 | - | |
| 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 | |
| 50 | - private int rowNo = 0; | |
| 51 | - | |
| 52 | - //결과코드 | |
| 53 | - private String resultCode = ""; | |
| 54 | - | |
| 55 | - //결과메시지 | |
| 56 | - private String resultMssage = ""; | |
| 57 | - | |
| 58 | - public String getSmsId() {
| |
| 59 | - return smsId; | |
| 60 | - } | |
| 61 | - | |
| 62 | - public void setSmsId(String smsId) {
| |
| 63 | - this.smsId = smsId; | |
| 64 | - } | |
| 65 | - | |
| 66 | - public String getTrnsmitTelno() {
| |
| 67 | - return trnsmitTelno; | |
| 68 | - } | |
| 69 | - | |
| 70 | - public void setTrnsmitTelno(String trnsmitTelno) {
| |
| 71 | - this.trnsmitTelno = trnsmitTelno; | |
| 72 | - } | |
| 73 | - | |
| 74 | - public String getRecptnTelnoSingle() {
| |
| 75 | - return recptnTelnoSingle; | |
| 76 | - } | |
| 77 | - | |
| 78 | - public void setRecptnTelnoSingle(String recptnTelnoSingle) {
| |
| 79 | - this.recptnTelnoSingle = recptnTelnoSingle; | |
| 80 | - } | |
| 81 | - | |
| 82 | - public String getTrnsmitCn() {
| |
| 83 | - return trnsmitCn; | |
| 84 | - } | |
| 85 | - | |
| 86 | - public void setTrnsmitCn(String trnsmitCn) {
| |
| 87 | - this.trnsmitCn = trnsmitCn; | |
| 88 | - } | |
| 89 | - | |
| 90 | - public int getRecptnCnt() {
| |
| 91 | - return recptnCnt; | |
| 92 | - } | |
| 93 | - | |
| 94 | - public void setRecptnCnt(int recptnCnt) {
| |
| 95 | - this.recptnCnt = recptnCnt; | |
| 96 | - } | |
| 97 | - | |
| 98 | - public List<SmsVO> getRecptn() {
| |
| 99 | - return recptn; | |
| 100 | - } | |
| 101 | - | |
| 102 | - public void setRecptn(List<SmsVO> recptn) {
| |
| 103 | - this.recptn = recptn; | |
| 104 | - } | |
| 105 | - | |
| 106 | - public String getRecptnTelno() {
| |
| 107 | - return recptnTelno; | |
| 108 | - } | |
| 109 | - | |
| 110 | - public void setRecptnTelno(String recptnTelno) {
| |
| 111 | - this.recptnTelno = recptnTelno; | |
| 112 | - } | |
| 113 | - | |
| 114 | - public List<String> getRecptnTelnoList() {
| |
| 115 | - return recptnTelnoList; | |
| 116 | - } | |
| 117 | - | |
| 118 | - public void setRecptnTelnoList(List<String> recptnTelnoList) {
| |
| 119 | - this.recptnTelnoList = recptnTelnoList; | |
| 120 | - } | |
| 121 | - | |
| 122 | - public String getReservationAt() {
| |
| 123 | - return reservationAt; | |
| 124 | - } | |
| 125 | - | |
| 126 | - public void setReservationAt(String reservationAt) {
| |
| 127 | - this.reservationAt = reservationAt; | |
| 128 | - } | |
| 129 | - | |
| 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 | - | |
| 162 | - public int getRowNo() {
| |
| 163 | - return rowNo; | |
| 164 | - } | |
| 165 | - | |
| 166 | - public void setRowNo(int rowNo) {
| |
| 167 | - this.rowNo = rowNo; | |
| 168 | - } | |
| 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; | |
| 184 | - } | |
| 185 | -} |
--- base/src/main/java/egovframework/com/cop/sms/service/impl/SmsInfoServiceImpl.java
... | ... | @@ -1,80 +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.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
... | ... | @@ -1,24 +0,0 @@ |
| 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
... | ... | @@ -1,97 +0,0 @@ |
| 1 | -package egovframework.com.cop.sms.service.impl; | |
| 2 | - | |
| 3 | -import javax.annotation.Resource; | |
| 4 | - | |
| 5 | -import egovframework.com.cop.sms.service.SmsVO; | |
| 6 | -import org.apache.log4j.Logger; | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.com.cop.sms.service.SmsSenderService; | |
| 11 | -import egovframework.com.cmm.service.Globals; | |
| 12 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 13 | - | |
| 14 | -import java.util.List; | |
| 15 | - | |
| 16 | - | |
| 17 | -@Service("smsSenderService")
| |
| 18 | -public class SmsSenderServiceImpl extends EgovAbstractServiceImpl implements SmsSenderService {
| |
| 19 | - | |
| 20 | - @Resource(name="smsMapper") | |
| 21 | - private SmsMapper smsMapper; | |
| 22 | - | |
| 23 | - Logger log = Logger.getLogger(this.getClass()); | |
| 24 | - | |
| 25 | - //사용자 정보를 받아 sms 발송 처리 한다. | |
| 26 | - public boolean sendSmsSender(String userId, String moblphonNo, String strMsg) throws Exception {
| |
| 27 | - | |
| 28 | - SmsVO sms = new SmsVO(); | |
| 29 | - sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(moblphonNo)); | |
| 30 | - sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(Globals.PHONE)); | |
| 31 | - sms.setTrnsmitCn(strMsg); | |
| 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 | - } | |
| 54 | - | |
| 55 | - return true; | |
| 56 | - } | |
| 57 | - | |
| 58 | - //사용자 정보를 받아 MMS정보를 처리 한다. | |
| 59 | - public boolean sendMmsSender(String userId, String moblphonNo, String strMsg, int fileCnt, String filePath) throws Exception {
| |
| 60 | - | |
| 61 | - SmsVO sms = new SmsVO(); | |
| 62 | - sms.setRecptnTelnoSingle(EgovStringUtil.getPhoneNumber(moblphonNo)); | |
| 63 | - sms.setTrnsmitTelno(EgovStringUtil.getPhoneNumber(Globals.PHONE)); | |
| 64 | - sms.setTrnsmitCn(strMsg); | |
| 65 | - sms.setFileCnt(fileCnt); | |
| 66 | - sms.setFilePath(filePath); | |
| 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 | - } | |
| 92 | - | |
| 93 | - return true; | |
| 94 | - } | |
| 95 | - | |
| 96 | - | |
| 97 | -} |
--- base/src/main/java/egovframework/com/ems/service/AtchmnFileVO.java
... | ... | @@ -1,148 +0,0 @@ |
| 1 | -package egovframework.com.ems.service; | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * 발송메일에 첨부되는 파일 VO 클래스 | |
| 5 | - * @author 공통서비스 개발팀 박지욱 | |
| 6 | - * @since 2009.03.12 | |
| 7 | - * @version 1.0 | |
| 8 | - * @see | |
| 9 | - * | |
| 10 | - * <pre> | |
| 11 | - * << 개정이력(Modification Information) >> | |
| 12 | - * | |
| 13 | - * 수정일 수정자 수정내용 | |
| 14 | - * ------- -------- --------------------------- | |
| 15 | - * 2009.03.12 박지욱 최초 생성 | |
| 16 | - * | |
| 17 | - * </pre> | |
| 18 | - */ | |
| 19 | -public class AtchmnFileVO {
| |
| 20 | - | |
| 21 | - /** | |
| 22 | - * 첨부파일ID | |
| 23 | - */ | |
| 24 | - private String atchFileId; | |
| 25 | - /** | |
| 26 | - * 파일연번 | |
| 27 | - */ | |
| 28 | - private String fileSn; | |
| 29 | - /** | |
| 30 | - * 원파일명 | |
| 31 | - */ | |
| 32 | - private String orignlFileNm; | |
| 33 | - /** | |
| 34 | - * 저장파일명 | |
| 35 | - */ | |
| 36 | - private String streFileNm; | |
| 37 | - /** | |
| 38 | - * 파일저장경로 | |
| 39 | - */ | |
| 40 | - private String fileStreCours; | |
| 41 | - /** | |
| 42 | - * 파일확장자 | |
| 43 | - */ | |
| 44 | - private String fileExtsn; | |
| 45 | - /** | |
| 46 | - * 파일크기 | |
| 47 | - * @uml.property name="fileMg" | |
| 48 | - */ | |
| 49 | - private int fileMg; | |
| 50 | - /** | |
| 51 | - * atchFileId attribute 를 리턴한다. | |
| 52 | - * @return String | |
| 53 | - */ | |
| 54 | - public String getAtchFileId() {
| |
| 55 | - return atchFileId; | |
| 56 | - } | |
| 57 | - /** | |
| 58 | - * atchFileId attribute 값을 설정한다. | |
| 59 | - * @param atchFileId String | |
| 60 | - */ | |
| 61 | - public void setAtchFileId(String atchFileId) {
| |
| 62 | - this.atchFileId = atchFileId; | |
| 63 | - } | |
| 64 | - /** | |
| 65 | - * fileSn attribute 를 리턴한다. | |
| 66 | - * @return String | |
| 67 | - */ | |
| 68 | - public String getFileSn() {
| |
| 69 | - return fileSn; | |
| 70 | - } | |
| 71 | - /** | |
| 72 | - * fileSn attribute 값을 설정한다. | |
| 73 | - * @param fileSn String | |
| 74 | - */ | |
| 75 | - public void setFileSn(String fileSn) {
| |
| 76 | - this.fileSn = fileSn; | |
| 77 | - } | |
| 78 | - /** | |
| 79 | - * orignlFileNm attribute 를 리턴한다. | |
| 80 | - * @return String | |
| 81 | - */ | |
| 82 | - public String getOrignlFileNm() {
| |
| 83 | - return orignlFileNm; | |
| 84 | - } | |
| 85 | - /** | |
| 86 | - * orignlFileNm attribute 값을 설정한다. | |
| 87 | - * @param orignlFileNm String | |
| 88 | - */ | |
| 89 | - public void setOrignlFileNm(String orignlFileNm) {
| |
| 90 | - this.orignlFileNm = orignlFileNm; | |
| 91 | - } | |
| 92 | - /** | |
| 93 | - * streFileNm attribute 를 리턴한다. | |
| 94 | - * @return String | |
| 95 | - */ | |
| 96 | - public String getStreFileNm() {
| |
| 97 | - return streFileNm; | |
| 98 | - } | |
| 99 | - /** | |
| 100 | - * streFileNm attribute 값을 설정한다. | |
| 101 | - * @param streFileNm String | |
| 102 | - */ | |
| 103 | - public void setStreFileNm(String streFileNm) {
| |
| 104 | - this.streFileNm = streFileNm; | |
| 105 | - } | |
| 106 | - /** | |
| 107 | - * fileStreCours attribute 를 리턴한다. | |
| 108 | - * @return String | |
| 109 | - */ | |
| 110 | - public String getFileStreCours() {
| |
| 111 | - return fileStreCours; | |
| 112 | - } | |
| 113 | - /** | |
| 114 | - * fileStreCours attribute 값을 설정한다. | |
| 115 | - * @param fileStreCours String | |
| 116 | - */ | |
| 117 | - public void setFileStreCours(String fileStreCours) {
| |
| 118 | - this.fileStreCours = fileStreCours; | |
| 119 | - } | |
| 120 | - /** | |
| 121 | - * fileExtsn attribute 를 리턴한다. | |
| 122 | - * @return String | |
| 123 | - */ | |
| 124 | - public String getFileExtsn() {
| |
| 125 | - return fileExtsn; | |
| 126 | - } | |
| 127 | - /** | |
| 128 | - * fileExtsn attribute 값을 설정한다. | |
| 129 | - * @param fileExtsn String | |
| 130 | - */ | |
| 131 | - public void setFileExtsn(String fileExtsn) {
| |
| 132 | - this.fileExtsn = fileExtsn; | |
| 133 | - } | |
| 134 | - /** | |
| 135 | - * fileMg attribute 를 리턴한다. | |
| 136 | - * @return int | |
| 137 | - */ | |
| 138 | - public int getFileMg() {
| |
| 139 | - return fileMg; | |
| 140 | - } | |
| 141 | - /** | |
| 142 | - * fileMg attribute 값을 설정한다. | |
| 143 | - * @param fileMg int | |
| 144 | - */ | |
| 145 | - public void setFileMg(int fileMg) {
| |
| 146 | - this.fileMg = fileMg; | |
| 147 | - } | |
| 148 | -} |
--- base/src/main/java/egovframework/com/ems/service/DirectMailService.java
... | ... | @@ -1,17 +0,0 @@ |
| 1 | -package egovframework.com.ems.service; | |
| 2 | - | |
| 3 | -public interface DirectMailService {
| |
| 4 | - | |
| 5 | - public String sendMail(MailMessageVO vo) throws Exception; | |
| 6 | - | |
| 7 | - /** | |
| 8 | - * 메일발송 목록을 가져온다. | |
| 9 | - * @param checkId 중복여부 확인대상 아이디 | |
| 10 | - * @return 사용가능여부(아이디 사용회수 int) | |
| 11 | - * @throws Exception | |
| 12 | - */ | |
| 13 | - public String sendManageMail(MailMessageVO vo) throws Exception; | |
| 14 | - | |
| 15 | - //G메일 발송 | |
| 16 | - public String sendGMail(MailMessageVO vo) throws Exception; | |
| 17 | -} |
--- base/src/main/java/egovframework/com/ems/service/MailMessageVO.java
... | ... | @@ -1,85 +0,0 @@ |
| 1 | -package egovframework.com.ems.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import java.util.List; | |
| 5 | - | |
| 6 | -import org.apache.commons.lang.builder.ToStringBuilder; | |
| 7 | - | |
| 8 | -@SuppressWarnings("serial")
| |
| 9 | -public class MailMessageVO implements Serializable {
| |
| 10 | - | |
| 11 | - private String sendSe = ""; | |
| 12 | - | |
| 13 | - private String senderEmail = ""; | |
| 14 | - | |
| 15 | - private String senderName = ""; | |
| 16 | - | |
| 17 | - private String subject = ""; | |
| 18 | - | |
| 19 | - private String content = ""; | |
| 20 | - | |
| 21 | - private List<String> emails = null; | |
| 22 | - | |
| 23 | - private String receptorEmail = ""; | |
| 24 | - | |
| 25 | - public String getSendSe() {
| |
| 26 | - return sendSe; | |
| 27 | - } | |
| 28 | - | |
| 29 | - public void setSendSe(String sendSe) {
| |
| 30 | - this.sendSe = sendSe; | |
| 31 | - } | |
| 32 | - | |
| 33 | - public String getContent() {
| |
| 34 | - return content; | |
| 35 | - } | |
| 36 | - | |
| 37 | - public void setContent(String content) {
| |
| 38 | - this.content = content; | |
| 39 | - } | |
| 40 | - | |
| 41 | - public String getSenderEmail() {
| |
| 42 | - return senderEmail; | |
| 43 | - } | |
| 44 | - | |
| 45 | - public void setSenderEmail(String senderEmail) {
| |
| 46 | - this.senderEmail = senderEmail; | |
| 47 | - } | |
| 48 | - | |
| 49 | - public String getSenderName() {
| |
| 50 | - return senderName; | |
| 51 | - } | |
| 52 | - | |
| 53 | - public void setSenderName(String senderName) {
| |
| 54 | - this.senderName = senderName; | |
| 55 | - } | |
| 56 | - | |
| 57 | - public String getSubject() {
| |
| 58 | - return subject; | |
| 59 | - } | |
| 60 | - | |
| 61 | - public void setSubject(String subject) {
| |
| 62 | - this.subject = subject; | |
| 63 | - } | |
| 64 | - | |
| 65 | - public List<String> getEmails() {
| |
| 66 | - return emails; | |
| 67 | - } | |
| 68 | - | |
| 69 | - public void setEmails(List<String> emails) {
| |
| 70 | - this.emails = emails; | |
| 71 | - } | |
| 72 | - | |
| 73 | - public String getReceptorEmail() {
| |
| 74 | - return receptorEmail; | |
| 75 | - } | |
| 76 | - | |
| 77 | - public void setReceptorEmail(String receptorEmail) {
| |
| 78 | - this.receptorEmail = receptorEmail; | |
| 79 | - } | |
| 80 | - | |
| 81 | - public String toString() {
| |
| 82 | - return ToStringBuilder.reflectionToString(this); | |
| 83 | - } | |
| 84 | - | |
| 85 | -} |
--- base/src/main/java/egovframework/com/ems/service/impl/DirectMailMapper.java
... | ... | @@ -1,15 +0,0 @@ |
| 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
... | ... | @@ -1,236 +0,0 @@ |
| 1 | -package egovframework.com.ems.service.impl; | |
| 2 | - | |
| 3 | -import java.util.Arrays; | |
| 4 | -import java.util.List; | |
| 5 | - | |
| 6 | -import java.util.ArrayList; | |
| 7 | -import java.util.Properties; | |
| 8 | - | |
| 9 | -import javax.annotation.Resource; | |
| 10 | -import javax.mail.Authenticator; | |
| 11 | -import javax.mail.Message; | |
| 12 | -import javax.mail.PasswordAuthentication; | |
| 13 | -import javax.mail.Session; | |
| 14 | -import javax.mail.Transport; | |
| 15 | -import javax.mail.internet.InternetAddress; | |
| 16 | -import javax.mail.internet.MimeMessage; | |
| 17 | -import javax.mail.internet.MimeUtility; | |
| 18 | - | |
| 19 | -import org.springframework.stereotype.Service; | |
| 20 | - | |
| 21 | -import egovframework.com.cmm.service.Globals; | |
| 22 | -import egovframework.com.ems.service.DirectMailService; | |
| 23 | -import egovframework.com.ems.service.MailMessageVO; | |
| 24 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 25 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 26 | -import egovframework.com.utl.fcc.service.EgovStringUtil; | |
| 27 | - | |
| 28 | -@Service("directMailService")
| |
| 29 | -public class DirectMailServiceImpl extends EgovAbstractServiceImpl implements DirectMailService {
| |
| 30 | - | |
| 31 | - @Resource(name="directMailMapper") | |
| 32 | - private DirectMailMapper directMailMapper; | |
| 33 | - | |
| 34 | - @Resource(name = "propertiesService") | |
| 35 | - protected EgovPropertyService propertiesService; | |
| 36 | - | |
| 37 | - /** | |
| 38 | - * MailMessageVO mvo = new MailMessageVO(); //메일발송 VO생성 | |
| 39 | - mvo.setSenderEmail("a@a.com"); //보내는 사람 이메일 없을경우 Globals.EmailAdress 의 관리자 메일로 전송됨
| |
| 40 | - | |
| 41 | - List<String> mails = new ArrayList<String>(); //받을메일주소 배열 | |
| 42 | - mails.add(mberManageVO.getMberEmailAdres()); //받을메일주소 추가 | |
| 43 | - | |
| 44 | - mvo.setEmails(mails); //받을 메일주소 배열 set | |
| 45 | - mvo.setSubject(" 아이디를 알려드립니다."); //메일제목
| |
| 46 | - mvo.setContent("홍길동님의 아이디는 \"" + mberManageVO.getMberId() + "\"입니다."); //메일 내용
| |
| 47 | - | |
| 48 | - String strResult = messageService.sendMail(mvo); //전송결과 리턴 - 리턴값이 공백 if(EgovStringUtil.isEmpty(strResult)) 이면 정상 발송 , 나머지는 에러발생) | |
| 49 | - System.out.println("아이디 이메일발송결과 : [" + mberManageVO.getMberId() + "/" + mberManageVO.getMberEmailAdres() + "] " + strResult);
| |
| 50 | - | |
| 51 | - * | |
| 52 | - */ | |
| 53 | - | |
| 54 | - //메일발송 회원 목록을 가져온다. | |
| 55 | - public String sendManageMail(MailMessageVO mailMessageVO) {
| |
| 56 | - | |
| 57 | - List<MailMessageVO> mailList = directMailMapper.selectEmsMberList(mailMessageVO); | |
| 58 | - MailMessageVO mailVO = null; | |
| 59 | - | |
| 60 | - //메일이벤트 발송 | |
| 61 | - MailMessageVO mvo = new MailMessageVO(); //메일발송 VO생성 | |
| 62 | - List<String> mails = new ArrayList<String>(); //받을메일주소 배열 | |
| 63 | - | |
| 64 | - for(int i=0; i < mailList.size(); i++) {
| |
| 65 | - mailVO = mailList.get(i); | |
| 66 | - mails.add(mailVO.getReceptorEmail()); | |
| 67 | - } | |
| 68 | - mvo.setEmails(mails); | |
| 69 | - | |
| 70 | - mvo.setSenderEmail(mailMessageVO.getSenderEmail()); | |
| 71 | - mvo.setSenderName(mailMessageVO.getSenderName()); | |
| 72 | - mvo.setSubject(mailMessageVO.getSubject()); | |
| 73 | - mvo.setContent(mailMessageVO.getContent()); | |
| 74 | - | |
| 75 | - return sendMail(mvo); | |
| 76 | - } | |
| 77 | - | |
| 78 | - public String sendMail(MailMessageVO vo) {
| |
| 79 | - | |
| 80 | - String result = ""; | |
| 81 | - | |
| 82 | - List<String> toList = EmailFilterAddress(vo.getEmails()); | |
| 83 | - if(toList.size() > 0) {
| |
| 84 | - Properties props = new Properties(); | |
| 85 | - props.put("mail.smtp.host", Globals.EMAIL_HOST);
| |
| 86 | - Session sess = Session.getDefaultInstance(props, null); | |
| 87 | - | |
| 88 | - try {
| |
| 89 | - | |
| 90 | - if(EgovStringUtil.isEmpty(vo.getSenderEmail())) {
| |
| 91 | - vo.setSenderEmail(Globals.EMAIL_ADDRESS); | |
| 92 | - vo.setSenderName(Globals.EMAIL_NAME); | |
| 93 | - } | |
| 94 | - | |
| 95 | - if(EgovStringUtil.isEmpty(vo.getSenderName())) {
| |
| 96 | - vo.setSenderEmail(vo.getSenderEmail()); | |
| 97 | - } | |
| 98 | - | |
| 99 | - Message msg = new MimeMessage(sess); | |
| 100 | - InternetAddress from = new InternetAddress(vo.getSenderEmail(), vo.getSenderName(), "UTF-8"); | |
| 101 | - msg.setHeader("content-type", "text/html;charset=UTF-8");
| |
| 102 | - msg.setFrom(from); | |
| 103 | - //InternetAddress[] address = {new InternetAddress("", "")};
| |
| 104 | - InternetAddress[] address = new InternetAddress[toList.size()]; | |
| 105 | - for(int i=0;i < toList.size();i++) {
| |
| 106 | - address[i] = new InternetAddress(toList.get(i)); | |
| 107 | - } | |
| 108 | - msg.setRecipients(Message.RecipientType.TO, address); | |
| 109 | - msg.setSubject(MimeUtility.encodeText(vo.getSubject(), "UTF-8", "B")); | |
| 110 | - msg.setContent(vo.getContent(), "text/html;charset=UTF-8"); | |
| 111 | - msg.setSentDate(new java.util.Date()); | |
| 112 | - | |
| 113 | - Transport.send(msg); | |
| 114 | - | |
| 115 | - } catch(Exception mex) {
| |
| 116 | - result = mex.getMessage(); | |
| 117 | - } | |
| 118 | - } else {
| |
| 119 | - result = "받는 사람이 없습니다."; | |
| 120 | - } | |
| 121 | - | |
| 122 | - return result; | |
| 123 | - } | |
| 124 | - | |
| 125 | - private List<String> EmailFilterAddress(List<String> to) {
| |
| 126 | - List<String> newTo = new ArrayList<String>(); | |
| 127 | - for(int i=0;i < to.size();i++) {
| |
| 128 | - if(!EgovStringUtil.isEmpty(to.get(i))) {
| |
| 129 | - newTo.add(to.get(i)); | |
| 130 | - } | |
| 131 | - } | |
| 132 | - | |
| 133 | - return newTo; | |
| 134 | - } | |
| 135 | - | |
| 136 | - //g메일발송 | |
| 137 | - public String sendGMail(MailMessageVO vo) throws Exception{
| |
| 138 | - String successYn = "Y"; | |
| 139 | - | |
| 140 | - /* | |
| 141 | - String mailProtocol = "smtp"; | |
| 142 | - String mailHost = propertiesService.getString("mail.host");
| |
| 143 | - String mailPort = propertiesService.getString("mail.port");
| |
| 144 | - String mailId = propertiesService.getString("mail.id");
| |
| 145 | - String mailPassword = propertiesService.getString("mail.password");
| |
| 146 | - | |
| 147 | - String fromName = propertiesService.getString("mail.fromName");
| |
| 148 | - String fromEmail = mailId; // 보내는 사람 메일 | |
| 149 | - String toName = vo.getSenderName(); | |
| 150 | - String toEmail = vo.getSenderEmail(); // 받는사람메일 | |
| 151 | - String mailTitle = vo.getSubject(); | |
| 152 | - String mailContents = vo.getContent(); | |
| 153 | - String debugMode = "false"; | |
| 154 | - String authMode = "true"; | |
| 155 | - | |
| 156 | - boolean debug = Boolean.valueOf(debugMode).booleanValue(); | |
| 157 | - Properties mailProps = new Properties(); | |
| 158 | - mailProps.put("mail.smtp.starttls.enable", "true");
| |
| 159 | - mailProps.setProperty("mail.transport.protocol", mailProtocol);
| |
| 160 | - mailProps.put("mail.debug", debugMode);
| |
| 161 | - mailProps.put("mail.smtp.host", mailHost);
| |
| 162 | - mailProps.put("mail.smtp.port", mailPort);
| |
| 163 | - mailProps.put("mail.smtp.connectiontimeout", "5000");
| |
| 164 | - mailProps.put("mail.smtp.timeout", "5000");
| |
| 165 | - mailProps.put("mail.smtp.auth", authMode);
| |
| 166 | - | |
| 167 | - Session msgSession = null; | |
| 168 | - | |
| 169 | - if(authMode.equals("true")) {
| |
| 170 | - Authenticator auth = new MyAuthentication(mailId, mailPassword); | |
| 171 | - msgSession = Session.getInstance(mailProps, auth); | |
| 172 | - } else {
| |
| 173 | - msgSession = Session.getInstance(mailProps, null); | |
| 174 | - } | |
| 175 | - | |
| 176 | - msgSession.setDebug(debug); | |
| 177 | - | |
| 178 | - MimeMessage msg = new MimeMessage(msgSession); | |
| 179 | - msg.setFrom(new InternetAddress(fromEmail, fromName)); | |
| 180 | - msg.setRecipient(Message.RecipientType.TO, new InternetAddress(toEmail, toName)); | |
| 181 | - msg.setSubject(mailTitle); | |
| 182 | - msg.setContent(mailContents, "text/html; charset=utf-8"); | |
| 183 | - | |
| 184 | - // 스태틱함수로 직접 보내지 않고 객체를 이용해서 보내고 객체를 닫아준다. | |
| 185 | - Transport t = msgSession.getTransport(mailProtocol); | |
| 186 | - | |
| 187 | - try {
| |
| 188 | - t.connect(); | |
| 189 | - t.sendMessage(msg, msg.getAllRecipients()); | |
| 190 | - }catch(Exception e){
| |
| 191 | - e.printStackTrace(); | |
| 192 | - successYn = "N"; | |
| 193 | - }finally {
| |
| 194 | - t.close(); | |
| 195 | - } | |
| 196 | - */ | |
| 197 | - /* | |
| 198 | - ApiClient defaultClient = new ApiClient(); | |
| 199 | - defaultClient.setUsername("nsdevkr");
| |
| 200 | - defaultClient.setPassword("9CFBBE9E-B9E6-CE8C-9928-9BF8C119F5AF");
| |
| 201 | - TransactionalEmailApi apiInstance = new TransactionalEmailApi(defaultClient); | |
| 202 | - EmailRecipient emailRecipient = new EmailRecipient(); | |
| 203 | - emailRecipient.email(vo.getSenderEmail()); //받는사람 이메일 | |
| 204 | - emailRecipient.name(vo.getSenderName()); //받는사람 이름 | |
| 205 | - List<EmailRecipient> emailRecipientList = Arrays.asList(emailRecipient); | |
| 206 | - EmailFrom emailFrom = new EmailFrom(); | |
| 207 | - emailFrom.emailAddressId("8394"); //변경금지(Clicksend에 인증된 이메일 ID)
| |
| 208 | - emailFrom.name("한국외국어대학교");
| |
| 209 | - Email email = new Email(); | |
| 210 | - email.to(emailRecipientList); | |
| 211 | - email.from(emailFrom); | |
| 212 | - email.subject(vo.getSubject()); | |
| 213 | - email.body(vo.getContent()); | |
| 214 | - try {
| |
| 215 | - apiInstance.emailSendPost(email); | |
| 216 | - //String result = apiInstance.emailSendPost(email); | |
| 217 | - //System.out.println(result); | |
| 218 | - } catch (ApiException e) {
| |
| 219 | - System.err.println("Exception when calling TransactionalEmailApi#emailSendPost");
| |
| 220 | - e.printStackTrace(); | |
| 221 | - } | |
| 222 | - */ | |
| 223 | - return successYn; | |
| 224 | - } | |
| 225 | - | |
| 226 | - class MyAuthentication extends Authenticator {
| |
| 227 | - PasswordAuthentication pa; | |
| 228 | - public MyAuthentication(String mailId, String mailPass) {
| |
| 229 | - pa = new PasswordAuthentication(mailId, mailPass); | |
| 230 | - } | |
| 231 | - public PasswordAuthentication getPasswordAuthentication() {
| |
| 232 | - return pa; | |
| 233 | - } | |
| 234 | - } | |
| 235 | - | |
| 236 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtnschdulinfoService.java
... | ... | @@ -1,16 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.util.Map; | |
| 5 | - | |
| 6 | - | |
| 7 | -public interface ComtnschdulinfoService {
| |
| 8 | - | |
| 9 | - //COMTNSCHDULINFO 목록을 월별로 조회한다. | |
| 10 | - List selectComtnschdulinfoList_S(ComtnschdulinfoVO searchVO) throws Exception; | |
| 11 | - | |
| 12 | - //COMTNSCHDULINFO 목록을 조회한다. | |
| 13 | - List selectComtnschdulinfoList_D(ComtnschdulinfoVO searchVO) throws Exception; | |
| 14 | - | |
| 15 | - | |
| 16 | -} |
--- base/src/main/java/egovframework/com/evt/service/ComtnschdulinfoVO.java
... | ... | @@ -1,395 +0,0 @@ |
| 1 | -package egovframework.com.evt.service; | |
| 2 | - | |
| 3 | -import java.io.Serializable; | |
| 4 | -import java.math.BigDecimal; | |
| 5 | -import java.util.List; | |
| 6 | -import java.util.ArrayList; | |
| 7 | - | |
| 8 | -import javax.annotation.Resource; | |
| 9 | - | |
| 10 | -import egovframework.com.cmm.ComDefaultVO; | |
| 11 | -import org.apache.commons.collections.Factory; | |
| 12 | -import org.apache.commons.collections.ListUtils; | |
| 13 | -import egovframework.com.cmm.service.FileVO; | |
| 14 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 15 | - | |
| 16 | - | |
| 17 | - | |
| 18 | -public class ComtnschdulinfoVO extends ComDefaultVO {
| |
| 19 | - | |
| 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 파일경로 | |
| 51 | - private String storeWebPath = "/attachfiles/event/"; | |
| 52 | - | |
| 53 | - //SCHDUL_ID | |
| 54 | - private java.lang.String schdulId; | |
| 55 | - | |
| 56 | - //SCHDUL_CL_CODE | |
| 57 | - private java.lang.String schdulClCode; | |
| 58 | - | |
| 59 | - //SCHDUL_BGNDE | |
| 60 | - private java.lang.String schdulBgnde; | |
| 61 | - | |
| 62 | - //SCHDUL_ENDDE | |
| 63 | - private java.lang.String schdulEndde; | |
| 64 | - | |
| 65 | - //SCHDUL_NM | |
| 66 | - private java.lang.String schdulNm; | |
| 67 | - | |
| 68 | - //SCHDUL_STRE_FILE_NM | |
| 69 | - private java.lang.String schdulStreFileNm; | |
| 70 | - | |
| 71 | - //SCHDUL_CN | |
| 72 | - private java.lang.String schdulCn; | |
| 73 | - | |
| 74 | - //SCHDUL_CHARGER_ID | |
| 75 | - private java.lang.String schdulChargerId; | |
| 76 | - | |
| 77 | - //REPTIT_AT | |
| 78 | - private java.lang.String reptitAt; | |
| 79 | - | |
| 80 | - //INQIRE_CO | |
| 81 | - private java.math.BigDecimal inqireCo = BigDecimal.ZERO; | |
| 82 | - | |
| 83 | - //TOTAL_CO | |
| 84 | - private double totalCo = 0; | |
| 85 | - | |
| 86 | - //PRESNATN_DE | |
| 87 | - private java.lang.String presnatnDe; | |
| 88 | - | |
| 89 | - //UPEND_STRE_FILE_NM | |
| 90 | - private java.lang.String upendStreFileNm; | |
| 91 | - | |
| 92 | - //MIDDLE_STRE_FILE_NM | |
| 93 | - private java.lang.String middleStreFileNm; | |
| 94 | - | |
| 95 | - //LPT_STRE_FILE_NM | |
| 96 | - private java.lang.String lptStreFileNm; | |
| 97 | - | |
| 98 | - //REQST_ID | |
| 99 | - private java.lang.String reqstId; | |
| 100 | - | |
| 101 | - //REQST_FORM | |
| 102 | - private String reqstForm; | |
| 103 | - | |
| 104 | - //PRZWNER_NMPR | |
| 105 | - private Integer przwnerNmpr; | |
| 106 | - | |
| 107 | - //TRGT_URL | |
| 108 | - private String trgtUrl; | |
| 109 | - private Boolean isError; | |
| 110 | - private String errorMessage; | |
| 111 | - private Boolean state; | |
| 112 | - private String wner; | |
| 113 | - | |
| 114 | - private String fileGroupId; | |
| 115 | - | |
| 116 | - public String getSearchDate() {
| |
| 117 | - return searchDate; | |
| 118 | - } | |
| 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) {
| |
| 201 | - this.storeWebPath = storeWebPath; | |
| 202 | - } | |
| 203 | - | |
| 204 | - public String getSchdulId() {
| |
| 205 | - return schdulId; | |
| 206 | - } | |
| 207 | - | |
| 208 | - public void setSchdulId(String schdulId) {
| |
| 209 | - this.schdulId = schdulId; | |
| 210 | - } | |
| 211 | - | |
| 212 | - public String getSchdulClCode() {
| |
| 213 | - return schdulClCode; | |
| 214 | - } | |
| 215 | - | |
| 216 | - public void setSchdulClCode(String schdulClCode) {
| |
| 217 | - this.schdulClCode = schdulClCode; | |
| 218 | - } | |
| 219 | - | |
| 220 | - public String getSchdulBgnde() {
| |
| 221 | - return schdulBgnde; | |
| 222 | - } | |
| 223 | - | |
| 224 | - public void setSchdulBgnde(String schdulBgnde) {
| |
| 225 | - this.schdulBgnde = schdulBgnde; | |
| 226 | - } | |
| 227 | - | |
| 228 | - public String getSchdulEndde() {
| |
| 229 | - return schdulEndde; | |
| 230 | - } | |
| 231 | - | |
| 232 | - public void setSchdulEndde(String schdulEndde) {
| |
| 233 | - this.schdulEndde = schdulEndde; | |
| 234 | - } | |
| 235 | - | |
| 236 | - public String getSchdulNm() {
| |
| 237 | - return schdulNm; | |
| 238 | - } | |
| 239 | - | |
| 240 | - public void setSchdulNm(String schdulNm) {
| |
| 241 | - this.schdulNm = schdulNm; | |
| 242 | - } | |
| 243 | - | |
| 244 | - public String getSchdulStreFileNm() {
| |
| 245 | - return schdulStreFileNm; | |
| 246 | - } | |
| 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) {
| |
| 257 | - this.schdulCn = schdulCn; | |
| 258 | - } | |
| 259 | - | |
| 260 | - public String getSchdulChargerId() {
| |
| 261 | - return schdulChargerId; | |
| 262 | - } | |
| 263 | - | |
| 264 | - public void setSchdulChargerId(String schdulChargerId) {
| |
| 265 | - this.schdulChargerId = schdulChargerId; | |
| 266 | - } | |
| 267 | - | |
| 268 | - public String getReptitAt() {
| |
| 269 | - return reptitAt; | |
| 270 | - } | |
| 271 | - | |
| 272 | - public void setReptitAt(String reptitAt) {
| |
| 273 | - this.reptitAt = reptitAt; | |
| 274 | - } | |
| 275 | - | |
| 276 | - public BigDecimal getInqireCo() {
| |
| 277 | - return inqireCo; | |
| 278 | - } | |
| 279 | - | |
| 280 | - public void setInqireCo(BigDecimal inqireCo) {
| |
| 281 | - this.inqireCo = inqireCo; | |
| 282 | - } | |
| 283 | - | |
| 284 | - public double getTotalCo() {
| |
| 285 | - return totalCo; | |
| 286 | - } | |
| 287 | - | |
| 288 | - public void setTotalCo(double totalCo) {
| |
| 289 | - this.totalCo = totalCo; | |
| 290 | - } | |
| 291 | - | |
| 292 | - public String getPresnatnDe() {
| |
| 293 | - return presnatnDe; | |
| 294 | - } | |
| 295 | - | |
| 296 | - public void setPresnatnDe(String presnatnDe) {
| |
| 297 | - this.presnatnDe = presnatnDe; | |
| 298 | - } | |
| 299 | - | |
| 300 | - public String getUpendStreFileNm() {
| |
| 301 | - return upendStreFileNm; | |
| 302 | - } | |
| 303 | - | |
| 304 | - public void setUpendStreFileNm(String upendStreFileNm) {
| |
| 305 | - this.upendStreFileNm = upendStreFileNm; | |
| 306 | - } | |
| 307 | - | |
| 308 | - public String getMiddleStreFileNm() {
| |
| 309 | - return middleStreFileNm; | |
| 310 | - } | |
| 311 | - | |
| 312 | - public void setMiddleStreFileNm(String middleStreFileNm) {
| |
| 313 | - this.middleStreFileNm = middleStreFileNm; | |
| 314 | - } | |
| 315 | - | |
| 316 | - public String getLptStreFileNm() {
| |
| 317 | - return lptStreFileNm; | |
| 318 | - } | |
| 319 | - | |
| 320 | - public void setLptStreFileNm(String lptStreFileNm) {
| |
| 321 | - this.lptStreFileNm = lptStreFileNm; | |
| 322 | - } | |
| 323 | - | |
| 324 | - public String getReqstId() {
| |
| 325 | - return reqstId; | |
| 326 | - } | |
| 327 | - | |
| 328 | - public void setReqstId(String reqstId) {
| |
| 329 | - this.reqstId = reqstId; | |
| 330 | - } | |
| 331 | - | |
| 332 | - public String getReqstForm() {
| |
| 333 | - return reqstForm; | |
| 334 | - } | |
| 335 | - | |
| 336 | - public void setReqstForm(String reqstForm) {
| |
| 337 | - this.reqstForm = reqstForm; | |
| 338 | - } | |
| 339 | - | |
| 340 | - public Integer getPrzwnerNmpr() {
| |
| 341 | - return przwnerNmpr; | |
| 342 | - } | |
| 343 | - | |
| 344 | - public void setPrzwnerNmpr(Integer przwnerNmpr) {
| |
| 345 | - this.przwnerNmpr = przwnerNmpr; | |
| 346 | - } | |
| 347 | - | |
| 348 | - public String getTrgtUrl() {
| |
| 349 | - return trgtUrl; | |
| 350 | - } | |
| 351 | - | |
| 352 | - public void setTrgtUrl(String trgtUrl) {
| |
| 353 | - this.trgtUrl = trgtUrl; | |
| 354 | - } | |
| 355 | - | |
| 356 | - public Boolean getError() {
| |
| 357 | - return isError; | |
| 358 | - } | |
| 359 | - | |
| 360 | - public void setError(Boolean error) {
| |
| 361 | - isError = error; | |
| 362 | - } | |
| 363 | - | |
| 364 | - public String getErrorMessage() {
| |
| 365 | - return errorMessage; | |
| 366 | - } | |
| 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 | - } | |
| 395 | -} |
--- base/src/main/java/egovframework/com/evt/service/impl/ComtnschdulinfoMapper.java
... | ... | @@ -1,17 +0,0 @@ |
| 1 | -package egovframework.com.evt.service.impl; | |
| 2 | - | |
| 3 | -import egovframework.com.evt.service.ComtnschdulinfoVO; | |
| 4 | -import egovframework.rte.psl.dataaccess.mapper.Mapper; | |
| 5 | - | |
| 6 | -import java.util.List; | |
| 7 | - | |
| 8 | -@Mapper("comtnschdulinfoMapper") | |
| 9 | -public interface ComtnschdulinfoMapper { | |
| 10 | - | |
| 11 | - //COMTNSCHDULINFO 목록을 월별로 조회한다. | |
| 12 | - public List selectComtnschdulinfoList_S(ComtnschdulinfoVO searchVO) throws Exception; | |
| 13 | - | |
| 14 | - //COMTNSCHDULINFO 목록을 조회한다. | |
| 15 | - public List selectComtnschdulinfoList_D(ComtnschdulinfoVO searchVO) throws Exception; | |
| 16 | - | |
| 17 | -} |
--- base/src/main/java/egovframework/com/evt/service/impl/ComtnschdulinfoServiceImpl.java
... | ... | @@ -1,42 +0,0 @@ |
| 1 | -package egovframework.com.evt.service.impl; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | - | |
| 5 | -import javax.annotation.Resource; | |
| 6 | - | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | - | |
| 9 | -import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl; | |
| 10 | -import egovframework.rte.fdl.idgnr.EgovIdGnrService; | |
| 11 | -import egovframework.com.cmm.service.FileMngService; | |
| 12 | -import egovframework.com.evt.service.ComtnschdulinfoService; | |
| 13 | -import egovframework.com.evt.service.ComtnschdulinfoVO; | |
| 14 | - | |
| 15 | -@Service("comtnschdulinfoService")
| |
| 16 | -public class ComtnschdulinfoServiceImpl extends EgovAbstractServiceImpl implements ComtnschdulinfoService {
| |
| 17 | - | |
| 18 | - @Resource(name="comtnschdulinfoMapper") | |
| 19 | - private ComtnschdulinfoMapper comtnschdulinfoMapper; | |
| 20 | - | |
| 21 | - /** ID Generation */ | |
| 22 | - @Resource(name="eventInfoIdGnrService") | |
| 23 | - private EgovIdGnrService egovIdGnrService; | |
| 24 | - | |
| 25 | - /** ID Generation - cka */ | |
| 26 | - @Resource(name="eventFormAnwperIdGnrService") | |
| 27 | - private EgovIdGnrService egovIdEventFormAnwperService; | |
| 28 | - | |
| 29 | - @Resource(name = "fileMngService") | |
| 30 | - private FileMngService fileMngService; | |
| 31 | - | |
| 32 | - //COMTNSCHDULINFO 목록을 조회한다. | |
| 33 | - public List selectComtnschdulinfoList_S(ComtnschdulinfoVO searchVO) throws Exception {
| |
| 34 | - return comtnschdulinfoMapper.selectComtnschdulinfoList_S(searchVO); | |
| 35 | - } | |
| 36 | - | |
| 37 | - //COMTNSCHDULINFO 목록을 조회한다. | |
| 38 | - public List selectComtnschdulinfoList_D(ComtnschdulinfoVO searchVO) throws Exception {
| |
| 39 | - return comtnschdulinfoMapper.selectComtnschdulinfoList_D(searchVO); | |
| 40 | - } | |
| 41 | - | |
| 42 | -} |
--- base/src/main/java/egovframework/com/evt/web/ComtnschdulinfoController.java
... | ... | @@ -1,198 +0,0 @@ |
| 1 | -package egovframework.com.evt.web; | |
| 2 | - | |
| 3 | -import java.util.List; | |
| 4 | -import java.util.Map; | |
| 5 | - | |
| 6 | -import javax.annotation.Resource; | |
| 7 | -import javax.servlet.http.HttpServletRequest; | |
| 8 | -import javax.servlet.http.HttpServletResponse; | |
| 9 | - | |
| 10 | -import org.springframework.stereotype.Controller; | |
| 11 | -import org.springframework.ui.Model; | |
| 12 | -import org.springframework.ui.ModelMap; | |
| 13 | -import org.springframework.web.bind.annotation.ModelAttribute; | |
| 14 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 15 | - | |
| 16 | -import egovframework.rte.fdl.property.EgovPropertyService; | |
| 17 | -import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 18 | - | |
| 19 | -import egovframework.com.cmm.service.CmmUseService; | |
| 20 | -import egovframework.com.cmm.EgovMessageSource; | |
| 21 | -import egovframework.com.evt.service.ComtnschdulinfoService; | |
| 22 | -import egovframework.com.evt.service.ComtnschdulinfoVO; | |
| 23 | -import egovframework.com.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 24 | -import egovframework.com.sym.sit.service.SiteManageService; | |
| 25 | -import egovframework.com.sym.sit.service.SiteManageVO; | |
| 26 | - | |
| 27 | -/****************************************************** | |
| 28 | - * @Class Name : ComtnschdulinfoController.java | |
| 29 | - * @Program name : egovframework.com.evt.web | |
| 30 | - * @Descriptopn : 충청남도교육연구정보원 스마트충남 기능 개선 구축 | |
| 31 | - * @version : 1.0.0 | |
| 32 | - * @author : 이호영 | |
| 33 | - * @created date : 2012. 2. 9. | |
| 34 | - * Modification log | |
| 35 | - * ===================================================== | |
| 36 | - * date name description | |
| 37 | - * ----------------------------------------------------- | |
| 38 | - * 2012. 2. 9. 이호영 first generated | |
| 39 | -*********************************************************/ | |
| 40 | - | |
| 41 | -@Controller | |
| 42 | -public class ComtnschdulinfoController { | |
| 43 | - | |
| 44 | - @Resource(name = "comtnschdulinfoService") | |
| 45 | - private ComtnschdulinfoService comtnschdulinfoService; | |
| 46 | - | |
| 47 | - /** EgovPropertyService */ | |
| 48 | - @Resource(name = "propertiesService") | |
| 49 | - protected EgovPropertyService propertiesService; | |
| 50 | - | |
| 51 | - @Resource(name="cmmUseService") | |
| 52 | - private CmmUseService cmmUseService; | |
| 53 | - | |
| 54 | - @Resource(name = "propertiesService") | |
| 55 | - protected EgovPropertyService propertyService; | |
| 56 | - | |
| 57 | - @Resource(name = "egovMessageSource") | |
| 58 | - EgovMessageSource egovMessageSource; | |
| 59 | - | |
| 60 | - @Resource(name = "siteManageService") | |
| 61 | - SiteManageService siteManageService; | |
| 62 | - | |
| 63 | - //COMTNSCHDULINFO 목록을 조회한다. (달력형태) | |
| 64 | - @RequestMapping(value="/evt/selectSchdulinfoCalendar.do") | |
| 65 | - public String selectComtnschdulinfoList(@ModelAttribute("searchVO") ComtnschdulinfoVO searchVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 66 | - | |
| 67 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 68 | - model.addAttribute("siteInfo", siteVO); | |
| 69 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 70 | - | |
| 71 | - searchVO.setSiteId(siteVO.getSiteId()); | |
| 72 | - | |
| 73 | - java.util.Calendar cal = java.util.Calendar.getInstance(); | |
| 74 | - | |
| 75 | - //오늘날짜(기본) | |
| 76 | - int iYear = cal.get(java.util.Calendar.YEAR); | |
| 77 | - int iMonth = cal.get(java.util.Calendar.MONTH); | |
| 78 | - int iDay = cal.get(java.util.Calendar.DATE); | |
| 79 | - searchVO.setSearchDay(iDay); | |
| 80 | - | |
| 81 | - //최초 오늘날짜 셋팅 한다. | |
| 82 | - if(searchVO.getSearchYear()==0 && searchVO.getSearchMonth()==0){ | |
| 83 | - searchVO.setSearchYear(iYear); | |
| 84 | - searchVO.setSearchMonth(iMonth); | |
| 85 | - searchVO.setSearchDay(iDay); | |
| 86 | - } | |
| 87 | - | |
| 88 | - //공통코드 일정종류 | |
| 89 | - CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); | |
| 90 | - voComCode = new CmmnDetailCodeVO(); | |
| 91 | - voComCode.setCodeId("COM020"); | |
| 92 | - List<?> listComCode = cmmUseService.selectCmmCodeDetail(voComCode); | |
| 93 | - model.addAttribute("schdulSe", listComCode); | |
| 94 | - | |
| 95 | - //검색 설정 | |
| 96 | - String sSearchDate = ""; | |
| 97 | - sSearchDate += Integer.toString(searchVO.getSearchYear()); | |
| 98 | - int nMonth = searchVO.getSearchMonth()+1; //달력에서는 0이 1월을 의미 | |
| 99 | - sSearchDate += Integer.toString(nMonth).length() == 1 ? "0" + Integer.toString(nMonth) :Integer.toString(nMonth); | |
| 100 | - searchVO.setSearchDate(sSearchDate); | |
| 101 | - | |
| 102 | - List<?> comtnschdulinfoList = comtnschdulinfoService.selectComtnschdulinfoList_S(searchVO); | |
| 103 | - | |
| 104 | - model.addAttribute("resultCnt", comtnschdulinfoList.size()); | |
| 105 | - model.addAttribute("resultList", comtnschdulinfoList); | |
| 106 | - return "evt/ComtnschdulinfoCalendar"; | |
| 107 | - } | |
| 108 | - | |
| 109 | - //COMTNSCHDULINFO 목록을 조회한다. (리스트형태) | |
| 110 | - @RequestMapping(value="/evt/selectSchdulinfoList.do") | |
| 111 | - public String selectSchdulinfoCalendar(@ModelAttribute("searchVO") ComtnschdulinfoVO searchVO, Map<String, Object> commandMap, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 112 | - | |
| 113 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 114 | - model.addAttribute("siteInfo", siteVO); | |
| 115 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 116 | - | |
| 117 | - searchVO.setSiteId(siteVO.getSiteId()); | |
| 118 | - | |
| 119 | - //공통코드 일정종류 | |
| 120 | - CmmnDetailCodeVO voComCode = new CmmnDetailCodeVO(); | |
| 121 | - voComCode = new CmmnDetailCodeVO(); | |
| 122 | - voComCode.setCodeId("COM020"); | |
| 123 | - model.addAttribute("schdulSe", cmmUseService.selectCmmCodeDetail(voComCode)); | |
| 124 | - | |
| 125 | - /** EgovPropertyService.sample */ | |
| 126 | - searchVO.setPageUnit(propertiesService.getInt("pageUnit")); | |
| 127 | - searchVO.setPageSize(propertiesService.getInt("pageSize")); | |
| 128 | - | |
| 129 | - /** pageing */ | |
| 130 | - PaginationInfo paginationInfo = new PaginationInfo(); | |
| 131 | - paginationInfo.setCurrentPageNo(searchVO.getPageIndex()); | |
| 132 | - paginationInfo.setRecordCountPerPage(searchVO.getPageUnit()); | |
| 133 | - paginationInfo.setPageSize(searchVO.getPageSize()); | |
| 134 | - | |
| 135 | - searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 136 | - searchVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 137 | - searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 138 | - | |
| 139 | - //이벤트 웹경로. | |
| 140 | - model.addAttribute("EventFileStoreWebPath", propertyService.getString("Event.fileStoreWebPath")); | |
| 141 | - | |
| 142 | - String menuId = (String)commandMap.get("menuId"); | |
| 143 | - if(!(menuId==null || "".equals(menuId))){ | |
| 144 | - searchVO.setSearchCondition("99"); | |
| 145 | - } | |
| 146 | - | |
| 147 | - model.addAttribute("resultList", comtnschdulinfoService.selectComtnschdulinfoList_D(searchVO)); | |
| 148 | - | |
| 149 | - int totCnt = 0; //comtnschdulinfoService.selectComtnschdulinfoListTotCnt(searchVO); | |
| 150 | - paginationInfo.setTotalRecordCount(totCnt); | |
| 151 | - model.addAttribute("paginationInfo", paginationInfo); | |
| 152 | - | |
| 153 | - return "evt/ComtnschdulinfoList"; | |
| 154 | - } | |
| 155 | - | |
| 156 | - //이벤트 상세내용을 조회한다. | |
| 157 | - @RequestMapping("/evt/selectComtnschdulinfo.do") | |
| 158 | - public String selectComtnschdulinfo(@ModelAttribute("searchVO") ComtnschdulinfoVO comtnschdulinfoVO, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 159 | - | |
| 160 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 161 | - model.addAttribute("siteInfo", siteVO); | |
| 162 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 163 | - | |
| 164 | - int evtCheck = 0; | |
| 165 | - /* | |
| 166 | - ComtnschdulinfoVO comtnschdulinfoList = comtnschdulinfoService.selectComtnschdulinfo(comtnschdulinfoVO); | |
| 167 | - model.addAttribute("comtnschdulinfoVO", comtnschdulinfoList); | |
| 168 | - */ | |
| 169 | - | |
| 170 | - return "evt/ComtnschdulinfoView"; | |
| 171 | - } | |
| 172 | - | |
| 173 | - //신청이벤트를 출력한다. | |
| 174 | - @RequestMapping("/evt/selectComtnschdulForm.do") | |
| 175 | - public String selectComtnschdulForm(ComtnschdulinfoVO comtnschdulinfoVO, @ModelAttribute("searchVO") ComtnschdulinfoVO searchVO, Model model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 176 | - | |
| 177 | - SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 178 | - model.addAttribute("siteInfo", siteVO); | |
| 179 | - model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 180 | - /* | |
| 181 | - if(StringUtils.isEmpty(comtnschdulinfoVO.getSchdulId())) { | |
| 182 | - comtnschdulinfoVO.setIsError(true); | |
| 183 | - comtnschdulinfoVO.setErrorMessage("올바른 경로로 접근하세요"); | |
| 184 | - } | |
| 185 | - | |
| 186 | - if(!comtnschdulinfoVO.getIsError()) { | |
| 187 | - if(comtnschdulinfoService.isAnswerDuplicate(comtnschdulinfoVO)) { | |
| 188 | - comtnschdulinfoVO.setIsError(true); | |
| 189 | - comtnschdulinfoVO.setErrorMessage("이미 참여하셨습니다."); | |
| 190 | - } | |
| 191 | - } | |
| 192 | - | |
| 193 | - model.addAttribute("comtnschdulForm", comtnschdulinfoService.selectComtnschdulForm(comtnschdulinfoVO)); | |
| 194 | - */ | |
| 195 | - return "evt/ComtnschdulEventForm"; | |
| 196 | - } | |
| 197 | - | |
| 198 | -} |
+++ base/src/main/java/egovframework/com/front/cop/bbs/web/BBSCommentController.java
... | ... | @@ -0,0 +1,293 @@ |
| 1 | +package egovframework.com.front.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.module.cop.bbs.service.CommentVO; | |
| 20 | +import egovframework.module.cop.bbs.service.BBSCommentService; | |
| 21 | +import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 22 | +import egovframework.module.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/front/cop/bbs/web/BBSManageController.java
... | ... | @@ -0,0 +1,796 @@ |
| 1 | +package egovframework.com.front.cop.bbs.web; | |
| 2 | + | |
| 3 | +import java.io.PrintWriter; | |
| 4 | +import java.util.List; | |
| 5 | +import java.util.Map; | |
| 6 | + | |
| 7 | +import javax.annotation.Resource; | |
| 8 | + | |
| 9 | +import egovframework.module.cop.bbs.service.*; | |
| 10 | +import net.sf.json.JSONObject; | |
| 11 | + | |
| 12 | +import org.apache.log4j.Logger; | |
| 13 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 14 | +import org.springframework.stereotype.Controller; | |
| 15 | +import org.springframework.ui.ModelMap; | |
| 16 | +import org.springframework.validation.BindingResult; | |
| 17 | +import org.springframework.web.bind.annotation.ModelAttribute; | |
| 18 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 19 | +import org.springframework.web.multipart.MultipartFile; | |
| 20 | +import org.springframework.web.multipart.MultipartHttpServletRequest; | |
| 21 | +import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 22 | + | |
| 23 | +import egovframework.com.cmm.EgovMessageSource; | |
| 24 | +import egovframework.com.cmm.service.CmmUseService; | |
| 25 | +import egovframework.com.cmm.service.FileMngService; | |
| 26 | +import egovframework.com.cmm.service.FileMngUtil; | |
| 27 | +import egovframework.com.cmm.service.FileVO; | |
| 28 | +import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 29 | +import egovframework.module.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 30 | +import egovframework.module.sym.sit.service.SiteManageService; | |
| 31 | +import egovframework.module.sym.sit.service.SiteManageVO; | |
| 32 | +import egovframework.module.uat.uia.service.LoginVO; | |
| 33 | +import egovframework.rte.fdl.property.EgovPropertyService; | |
| 34 | +import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; | |
| 35 | +import egovframework.module.uss.ivp.service.IndvdlestbsService; | |
| 36 | +import egovframework.module.uss.ivp.service.IndvdlestbsVO; | |
| 37 | +import egovframework.module.utl.fcc.service.EgovHttpUtil; | |
| 38 | +import egovframework.module.utl.fcc.service.EgovStringUtil; | |
| 39 | +import egovframework.module.utl.sim.service.EgovClntInfo; | |
| 40 | + | |
| 41 | +import javax.servlet.http.HttpServletRequest; | |
| 42 | +import javax.servlet.http.HttpServletResponse; | |
| 43 | + | |
| 44 | + | |
| 45 | +//게시물 관리를 위한 컨트롤러 클래스 | |
| 46 | +@Controller("EgovBBSManageController") | |
| 47 | +public class BBSManageController { | |
| 48 | + | |
| 49 | + @Resource(name = "bbsManageService") | |
| 50 | + private BBSManageService bbsMngService; | |
| 51 | + | |
| 52 | + @Resource(name = "bbsAttributeManageService") | |
| 53 | + private BBSAttributeManageService bbsAttrbService; | |
| 54 | + | |
| 55 | + @Resource(name = "bbsCtgryService") | |
| 56 | + private BBSCtgryService ctgryService; | |
| 57 | + | |
| 58 | + @Resource(name = "siteManageService") | |
| 59 | + SiteManageService siteManageService; | |
| 60 | + | |
| 61 | + @Resource(name = "fileMngService") | |
| 62 | + private FileMngService fileMngService; | |
| 63 | + | |
| 64 | + @Resource(name = "fileMngUtil") | |
| 65 | + private FileMngUtil fileUtil; | |
| 66 | + | |
| 67 | + @Resource(name = "propertiesService") | |
| 68 | + protected EgovPropertyService propertyService; | |
| 69 | + | |
| 70 | + @Resource(name = "egovMessageSource") | |
| 71 | + EgovMessageSource egovMessageSource; | |
| 72 | + | |
| 73 | + @Resource(name = "cmmUseService") | |
| 74 | + private CmmUseService cmmUseService; | |
| 75 | + | |
| 76 | + @Resource(name = "indvdlestbsService") | |
| 77 | + private IndvdlestbsService indvdlestbsService; | |
| 78 | + | |
| 79 | + @Resource(name = "bbsCtgryMasterService") | |
| 80 | + private BBSCtgryMasterService bbsCtgryMasterService; | |
| 81 | + | |
| 82 | + /** EgovPropertyService */ | |
| 83 | + @Resource(name = "propertiesService") | |
| 84 | + protected EgovPropertyService propertiesService; | |
| 85 | + | |
| 86 | + @Autowired | |
| 87 | + private DefaultBeanValidator beanValidator; | |
| 88 | + | |
| 89 | + Logger log = Logger.getLogger(this.getClass()); | |
| 90 | + | |
| 91 | + //XSS 방지 처리. | |
| 92 | + protected String unscript(String data) { | |
| 93 | + if(data == null || data.trim().equals("")) { | |
| 94 | + return ""; | |
| 95 | + } | |
| 96 | + | |
| 97 | + String ret = data; | |
| 98 | + | |
| 99 | + ret = ret.replaceAll("<(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "<script"); | |
| 100 | + ret = ret.replaceAll("</(S|s)(C|c)(R|r)(I|i)(P|p)(T|t)", "</script"); | |
| 101 | + | |
| 102 | + ret = ret.replaceAll("<(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "<object"); | |
| 103 | + ret = ret.replaceAll("</(O|o)(B|b)(J|j)(E|e)(C|c)(T|t)", "</object"); | |
| 104 | + | |
| 105 | + ret = ret.replaceAll("<(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "<applet"); | |
| 106 | + ret = ret.replaceAll("</(A|a)(P|p)(P|p)(L|l)(E|e)(T|t)", "</applet"); | |
| 107 | + | |
| 108 | + ret = ret.replaceAll("<(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 109 | + ret = ret.replaceAll("</(E|e)(M|m)(B|b)(E|e)(D|d)", "<embed"); | |
| 110 | + | |
| 111 | + ret = ret.replaceAll("<(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 112 | + ret = ret.replaceAll("</(F|f)(O|o)(R|r)(M|m)", "<form"); | |
| 113 | + | |
| 114 | + return ret; | |
| 115 | + } | |
| 116 | + | |
| 117 | + | |
| 118 | + //게시물에 대한 목록을 조회한다. | |
| 119 | + @RequestMapping(value = "/cop/bbs/selectBoardList.do") | |
| 120 | + public String selectBoardArticles(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 121 | + | |
| 122 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 123 | + model.addAttribute("siteInfo", siteVO); | |
| 124 | + | |
| 125 | + PaginationInfo paginationInfo = new PaginationInfo(); | |
| 126 | + | |
| 127 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 128 | + vo.setBbsId(boardVO.getBbsId()); | |
| 129 | + vo.setSiteId(siteVO.getSiteId()); | |
| 130 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 131 | + | |
| 132 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 133 | + | |
| 134 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 135 | + if(master != null) { | |
| 136 | + int SE_CODE = 1; | |
| 137 | + if(user != null) { | |
| 138 | + SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 139 | + model.addAttribute("USER_INFO", user); | |
| 140 | + | |
| 141 | + //교재&사전 | |
| 142 | + if("BBSMSTR_000000000005".equals(boardVO.getBbsId())){ | |
| 143 | + //좋아요 목록 | |
| 144 | + IndvdlestbsVO indvdlestbsVO = new IndvdlestbsVO(); | |
| 145 | + indvdlestbsVO.setUserId(user.getId()); | |
| 146 | + indvdlestbsVO.setSiteId(siteVO.getSiteId()); | |
| 147 | + indvdlestbsVO.setTrgetTyCode("BOOK_LIKE"); | |
| 148 | + model.addAttribute("wishList", indvdlestbsService.selectIvpList(indvdlestbsVO)); | |
| 149 | + } | |
| 150 | + } | |
| 151 | + | |
| 152 | + if(SE_CODE >= 10) { | |
| 153 | + //boardVO.setAdminAt("Y"); | |
| 154 | + } | |
| 155 | + | |
| 156 | + // 페이징 정보 설정 | |
| 157 | + boardVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 158 | + boardVO.setPageSize(propertyService.getInt("pageSize")); | |
| 159 | + boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 160 | + | |
| 161 | + if("BBSA02".equals(master.getBbsAttrbCode())) { | |
| 162 | + if(EgovStringUtil.isEmpty(boardVO.getViewType())){ | |
| 163 | + boardVO.setViewType("photo"); | |
| 164 | + } | |
| 165 | + | |
| 166 | + if("photo".equals(boardVO.getViewType())){ | |
| 167 | + // 페이징 정보 설정 | |
| 168 | + boardVO.setPageUnit(propertyService.getInt("photoPageUnit")); | |
| 169 | + boardVO.setPageSize(propertyService.getInt("photoPageSize")); | |
| 170 | + } | |
| 171 | + } | |
| 172 | + | |
| 173 | + //공지게시물 가져오기 | |
| 174 | + BoardVO noticeVO = new BoardVO(); | |
| 175 | + noticeVO.setBbsId(boardVO.getBbsId()); | |
| 176 | + noticeVO.setCommentUseAt(master.getCommentUseAt()); | |
| 177 | + noticeVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 178 | + noticeVO.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 179 | + noticeVO.setSearchNoticeAt("Y"); | |
| 180 | + noticeVO.setFirstIndex(0); | |
| 181 | + | |
| 182 | + model.addAttribute("noticeList", bbsMngService.selectBoardArticles(noticeVO)); | |
| 183 | + | |
| 184 | + paginationInfo.setCurrentPageNo(boardVO.getPageIndex()); | |
| 185 | + paginationInfo.setRecordCountPerPage(boardVO.getPageUnit()); | |
| 186 | + paginationInfo.setPageSize(boardVO.getPageSize()); | |
| 187 | + | |
| 188 | + boardVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 189 | + boardVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 190 | + boardVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 191 | + | |
| 192 | + boardVO.setCommentUseAt(master.getCommentUseAt()); | |
| 193 | + boardVO.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 194 | + | |
| 195 | + List<BoardVO> resultList = bbsMngService.selectBoardArticles(boardVO); | |
| 196 | + int totCnt = bbsMngService.selectBoardArticlesCnt(boardVO); | |
| 197 | + | |
| 198 | + paginationInfo.setTotalRecordCount(totCnt); | |
| 199 | + | |
| 200 | + if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 201 | + CtgryVO ctgry = new CtgryVO(); | |
| 202 | + ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 203 | + model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 204 | + model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 205 | + } | |
| 206 | + | |
| 207 | + model.addAttribute("resultList", resultList); | |
| 208 | + model.addAttribute("resultCnt", totCnt); | |
| 209 | + model.addAttribute("brdMstrVO", master); | |
| 210 | + model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 211 | + model.addAttribute("paginationInfo", paginationInfo); | |
| 212 | + request.getSession().removeAttribute("sessionCommentVO"); | |
| 213 | + | |
| 214 | + return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeList"; | |
| 215 | + } | |
| 216 | + | |
| 217 | + return null; | |
| 218 | + } | |
| 219 | + | |
| 220 | + //게시물에 대한 상세 정보를 조회한다. | |
| 221 | + @RequestMapping(value = "/cop/bbs/selectBoardArticle.do") | |
| 222 | + public String selectBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 223 | + | |
| 224 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 225 | + model.addAttribute("siteInfo", siteVO); | |
| 226 | + | |
| 227 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 228 | + vo.setBbsId(boardVO.getBbsId()); | |
| 229 | + vo.setSiteId(siteVO.getSiteId()); | |
| 230 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 231 | + | |
| 232 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 233 | + | |
| 234 | + if(master != null) { | |
| 235 | + int SE_CODE = 1; | |
| 236 | + model.addAttribute("brdMstrVO", master); | |
| 237 | + | |
| 238 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 239 | + if(user != null) { | |
| 240 | + SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 241 | + boardVO.setFrstRegisterId(user.getId()); | |
| 242 | + model.addAttribute("USER_INFO", user); | |
| 243 | + | |
| 244 | + //교재&사전 | |
| 245 | + if("BBSMSTR_000000000005".equals(boardVO.getBbsId())){ | |
| 246 | + //좋아요 목록 | |
| 247 | + IndvdlestbsVO indvdlestbsVO = new IndvdlestbsVO(); | |
| 248 | + indvdlestbsVO.setUserId(user.getId()); | |
| 249 | + indvdlestbsVO.setSiteId(siteVO.getSiteId()); | |
| 250 | + indvdlestbsVO.setTrgetTyCode("BOOK_LIKE"); | |
| 251 | + indvdlestbsVO.setTrgetId(boardVO.getNttNo().toString()); | |
| 252 | + model.addAttribute("wishList", indvdlestbsService.selectIvpList(indvdlestbsVO)); | |
| 253 | + } | |
| 254 | + } | |
| 255 | + | |
| 256 | + if(SE_CODE >= 10) { | |
| 257 | + boardVO.setAdminAt("Y"); | |
| 258 | + } | |
| 259 | + | |
| 260 | + if(SE_CODE >= Integer.parseInt(master.getInqireAuthor())){ | |
| 261 | + // 조회수 증가 여부 지정 | |
| 262 | + boardVO.setPlusCount(true); | |
| 263 | + boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 264 | + boardVO.setBbsAttrbCode(master.getBbsAttrbCode()); | |
| 265 | + BoardVO dbVO = bbsMngService.selectBoardArticle(boardVO); | |
| 266 | + model.addAttribute("board", dbVO); | |
| 267 | + | |
| 268 | + model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 269 | + return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeInqire"; | |
| 270 | + } else { | |
| 271 | + model.addAttribute("message", egovMessageSource.getMessage("fail.common.select")); | |
| 272 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 273 | + } | |
| 274 | + } | |
| 275 | + | |
| 276 | + model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 277 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 278 | + } | |
| 279 | + | |
| 280 | + //게시물 등록을 위한 등록페이지로 이동한다. | |
| 281 | + @RequestMapping(value = "/cop/bbs/addBoardArticle.do") | |
| 282 | + public String addBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 283 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 284 | + if(user == null) { | |
| 285 | + return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 286 | + } | |
| 287 | + /* | |
| 288 | + LoginVO user = new LoginVO(); | |
| 289 | + user.setUserSe("10"); | |
| 290 | + user.setId("admin"); | |
| 291 | + user.setName("관리자"); | |
| 292 | + */ | |
| 293 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 294 | + model.addAttribute("siteInfo", siteVO); | |
| 295 | + | |
| 296 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 297 | + vo.setBbsId(boardVO.getBbsId()); | |
| 298 | + vo.setSiteId(siteVO.getSiteId()); | |
| 299 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 300 | + | |
| 301 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 302 | + | |
| 303 | + if(master != null) { | |
| 304 | + int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 305 | + if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 306 | + if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 307 | + CtgryVO ctgry = new CtgryVO(); | |
| 308 | + ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 309 | + model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 310 | + | |
| 311 | + model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 312 | + } | |
| 313 | + | |
| 314 | + model.addAttribute("brdMstrVO", master); | |
| 315 | + | |
| 316 | + BoardVO board = new BoardVO(); | |
| 317 | + model.addAttribute("board", board); | |
| 318 | + | |
| 319 | + request.getSession().setAttribute("sessionVO", boardVO); | |
| 320 | + | |
| 321 | + /*user.setUserSe("10"); | |
| 322 | + user.setId("admin"); | |
| 323 | + user.setName("관리자");*/ | |
| 324 | + model.addAttribute("USER_INFO", user); | |
| 325 | + model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 326 | + return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 327 | + } else { | |
| 328 | + model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 329 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 330 | + } | |
| 331 | + } | |
| 332 | + | |
| 333 | + model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 334 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 335 | + } | |
| 336 | + | |
| 337 | + //게시물을 등록한다. | |
| 338 | + @RequestMapping(value = "/cop/bbs/insertBoardArticle.do") | |
| 339 | + public String insertBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 340 | + | |
| 341 | + if(request.getSession().getAttribute("sessionVO") == null) { | |
| 342 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 343 | + } | |
| 344 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 345 | + | |
| 346 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 347 | + vo.setBbsId(boardVO.getBbsId()); | |
| 348 | + | |
| 349 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 350 | + vo.setSiteId(siteVO.getSiteId()); | |
| 351 | + | |
| 352 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 353 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 354 | + | |
| 355 | + if(master != null) { | |
| 356 | + int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 357 | + if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())) { | |
| 358 | + String atchFileId = ""; | |
| 359 | + | |
| 360 | + List<FileVO> result = null; | |
| 361 | + | |
| 362 | + final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 363 | + if(!files.isEmpty()) { | |
| 364 | + result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, "", | |
| 365 | + siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 366 | + atchFileId = fileMngService.insertFileInfs(result); | |
| 367 | + } | |
| 368 | + | |
| 369 | + | |
| 370 | + boardVO.setAtchFileId(atchFileId); | |
| 371 | + boardVO.setFrstRegisterId(user.getId()); | |
| 372 | + boardVO.setNtcrNm(user.getName()); | |
| 373 | + boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 374 | + boardVO.setCreatIp(EgovClntInfo.getClntIP(request)); | |
| 375 | + boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 376 | + /*boardVO.setUseAt("Y"); | |
| 377 | + boardVO.setOthbcAt("Y"); | |
| 378 | + boardVO.setNoticeAt("N");*/ | |
| 379 | + | |
| 380 | + bbsMngService.insertBoardArticle(boardVO, master); | |
| 381 | + } | |
| 382 | + } | |
| 383 | + | |
| 384 | + request.getSession().removeAttribute("sessionVO"); | |
| 385 | + | |
| 386 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 387 | + } | |
| 388 | + | |
| 389 | + //게시물에 대한 답변 등록을 위한 등록페이지로 이동한다. | |
| 390 | + @RequestMapping(value = "/cop/bbs/addReplyBoardArticle.do") | |
| 391 | + public String addReplyBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 392 | + | |
| 393 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 394 | + if(user == null) { | |
| 395 | + return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 396 | + } | |
| 397 | + | |
| 398 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 399 | + model.addAttribute("siteInfo", siteVO); | |
| 400 | + | |
| 401 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 402 | + vo.setBbsId(boardVO.getBbsId()); | |
| 403 | + vo.setSiteId(siteVO.getSiteId()); | |
| 404 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 405 | + | |
| 406 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 407 | + | |
| 408 | + if(master != null) { | |
| 409 | + int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 410 | + if(SE_CODE >= Integer.parseInt(master.getAnswerAuthor())){ | |
| 411 | + model.addAttribute("brdMstrVO", master); | |
| 412 | + | |
| 413 | + BoardVO selectVO = new BoardVO(); | |
| 414 | + selectVO.setBbsId(master.getBbsId()); | |
| 415 | + selectVO.setNttNo(boardVO.getNttNo()); | |
| 416 | + selectVO.setAdminAt("Y"); | |
| 417 | + | |
| 418 | + selectVO = bbsMngService.selectBoardArticle(selectVO); | |
| 419 | + | |
| 420 | + BoardVO board = new BoardVO(); | |
| 421 | + board.setCtgryId(selectVO.getCtgryId()); | |
| 422 | + //board.setOrdrCode(selectVO.getOrdrCode()); | |
| 423 | + //board.setOrdrCodeDp(BigDecimal.valueOf(selectVO.getOrdrCodeDp().longValue() + 1)); | |
| 424 | + | |
| 425 | + if("BBSA11".equals(master.getBbsAttrbCode())) { | |
| 426 | + | |
| 427 | + board.setNttNo(selectVO.getNttNo()); | |
| 428 | + board.setNttSj(selectVO.getNttSj()); | |
| 429 | + board.setNttCn(selectVO.getNttCn()); | |
| 430 | + board.setEstnData(selectVO.getEstnData()); | |
| 431 | + /* | |
| 432 | + if(!EgovStringUtil.isEmpty(selectVO.getEstnData())) { | |
| 433 | + board.setNttCn(selectVO.getEstnParseData().getString("cn")); | |
| 434 | + } | |
| 435 | + */ | |
| 436 | + board.setAtchFileId(selectVO.getEstnAtchFileId()); | |
| 437 | + board.setProcessSttusCode(selectVO.getProcessSttusCode()); | |
| 438 | + | |
| 439 | + CmmnDetailCodeVO codeVO = new CmmnDetailCodeVO(); | |
| 440 | + codeVO.setCodeId("COM108"); | |
| 441 | + model.addAttribute("qaCodeList", cmmUseService.selectCmmCodeDetail(codeVO)); | |
| 442 | + } | |
| 443 | + | |
| 444 | + model.addAttribute("board", board); | |
| 445 | + | |
| 446 | + request.getSession().setAttribute("sessionVO", boardVO); | |
| 447 | + | |
| 448 | + model.addAttribute("USER_INFO", user); | |
| 449 | + model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 450 | + return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 451 | + } else { | |
| 452 | + model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 453 | + return "forward:/cop//bbs/selectBoardList.do"; | |
| 454 | + } | |
| 455 | + } | |
| 456 | + | |
| 457 | + model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 458 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 459 | + } | |
| 460 | + | |
| 461 | + //게시물에 대한 답변을 등록한다. | |
| 462 | + @RequestMapping(value = "/cop/bbs/replyBoardArticle.do") | |
| 463 | + public String replyBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 464 | + | |
| 465 | + if(request.getSession().getAttribute("sessionVO") == null) { | |
| 466 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 467 | + } | |
| 468 | + | |
| 469 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 470 | + | |
| 471 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 472 | + vo.setBbsId(boardVO.getBbsId()); | |
| 473 | + | |
| 474 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 475 | + vo.setSiteId(siteVO.getSiteId()); | |
| 476 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 477 | + | |
| 478 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 479 | + | |
| 480 | + if(master != null) { | |
| 481 | + int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 482 | + if(SE_CODE >= Integer.parseInt(master.getAnswerAuthor())){ | |
| 483 | + if(SE_CODE >= 10) { | |
| 484 | + boardVO.setAdminAt("Y"); | |
| 485 | + } | |
| 486 | + | |
| 487 | + String atchFileId = boardVO.getAtchFileId();; | |
| 488 | + | |
| 489 | + final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 490 | + | |
| 491 | + | |
| 492 | + if("BBSA11".equals(master.getBbsAttrbCode())) { | |
| 493 | + if(!files.isEmpty()) { | |
| 494 | + if(EgovStringUtil.isEmpty(atchFileId)) { | |
| 495 | + List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, | |
| 496 | + siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 497 | + atchFileId = fileMngService.insertFileInfs(result); | |
| 498 | + } else { | |
| 499 | + FileVO fvo = new FileVO(); | |
| 500 | + fvo.setAtchFileId(atchFileId); | |
| 501 | + int cnt = fileMngService.getMaxFileSN(fvo); | |
| 502 | + List<FileVO> _result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, cnt, atchFileId, | |
| 503 | + siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 504 | + fileMngService.updateFileInfs(_result); | |
| 505 | + } | |
| 506 | + boardVO.setEstnAtchFileId(atchFileId); | |
| 507 | + } | |
| 508 | + | |
| 509 | + boardVO.setLastAnswrrId(user.getId()); | |
| 510 | + boardVO.setLastAnswrrNm(user.getName()); | |
| 511 | + | |
| 512 | + JSONObject jObj = new JSONObject(); | |
| 513 | + //jObj.put("cn", boardVO.getNttCn()); | |
| 514 | + jObj.put("cn", boardVO.getEstnData()); | |
| 515 | + boardVO.setEstnData(jObj.toString()); | |
| 516 | + | |
| 517 | + bbsMngService.updateBoardArticle(boardVO, master, true); | |
| 518 | + } else { | |
| 519 | + if(!files.isEmpty()) { | |
| 520 | + List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, "", | |
| 521 | + siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 522 | + atchFileId = fileMngService.insertFileInfs(result); | |
| 523 | + } | |
| 524 | + | |
| 525 | + boardVO.setAtchFileId(atchFileId); | |
| 526 | + boardVO.setFrstRegisterId(user.getId()); | |
| 527 | + boardVO.setNtcrNm(user.getName()); | |
| 528 | + boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 529 | + boardVO.setCreatIp(EgovClntInfo.getClntIP(request)); | |
| 530 | + | |
| 531 | + boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 532 | + bbsMngService.replyBoardArticle(boardVO, master); | |
| 533 | + } | |
| 534 | + } | |
| 535 | + } | |
| 536 | + | |
| 537 | + request.getSession().removeAttribute("sessionVO"); | |
| 538 | + | |
| 539 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 540 | + } | |
| 541 | + | |
| 542 | + //게시물 수정을 위한 수정페이지로 이동한다. | |
| 543 | + @RequestMapping(value = "/cop/bbs/forUpdateBoardArticle.do") | |
| 544 | + public String selectBoardArticleForUpdt(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 545 | + | |
| 546 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 547 | + if(user == null) { | |
| 548 | + return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 549 | + } | |
| 550 | + | |
| 551 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 552 | + model.addAttribute("siteInfo", siteVO); | |
| 553 | + | |
| 554 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 555 | + vo.setBbsId(boardVO.getBbsId()); | |
| 556 | + vo.setSiteId(siteVO.getSiteId()); | |
| 557 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 558 | + | |
| 559 | + boardVO.setFrstRegisterId(user.getId()); | |
| 560 | + | |
| 561 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 562 | + | |
| 563 | + if(master != null) { | |
| 564 | + int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 565 | + if(SE_CODE >= 10) { | |
| 566 | + boardVO.setAdminAt("Y"); | |
| 567 | + } | |
| 568 | + | |
| 569 | + if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 570 | + if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 571 | + CtgryVO ctgry = new CtgryVO(); | |
| 572 | + ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 573 | + model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 574 | + | |
| 575 | + model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 576 | + } | |
| 577 | + | |
| 578 | + boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 579 | + BoardVO dataVO = bbsMngService.selectBoardArticle(boardVO); | |
| 580 | + | |
| 581 | + model.addAttribute("brdMstrVO", master); | |
| 582 | + model.addAttribute("board", dataVO); | |
| 583 | + | |
| 584 | + request.getSession().setAttribute("sessionVO", boardVO); | |
| 585 | + | |
| 586 | + model.addAttribute("USER_INFO", user); | |
| 587 | + model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 588 | + return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 589 | + } else { | |
| 590 | + model.addAttribute("message", egovMessageSource.getMessage("fail.auth.regist")); | |
| 591 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 592 | + } | |
| 593 | + } | |
| 594 | + | |
| 595 | + model.addAttribute("message", egovMessageSource.getMessage("fail.auth.access")); | |
| 596 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 597 | + } | |
| 598 | + | |
| 599 | + //게시물에 대한 내용을 수정한다. | |
| 600 | + @RequestMapping(value = "/cop/bbs/updateBoardArticle.do") | |
| 601 | + public String updateBoardArticle(final MultipartHttpServletRequest multiRequest, @ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 602 | + | |
| 603 | + if(request.getSession().getAttribute("sessionVO") == null) { | |
| 604 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 605 | + } | |
| 606 | + | |
| 607 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 608 | + String atchFileId = boardVO.getAtchFileId(); | |
| 609 | + | |
| 610 | + beanValidator.validate(board, bindingResult); | |
| 611 | + | |
| 612 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 613 | + vo.setBbsId(boardVO.getBbsId()); | |
| 614 | + | |
| 615 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 616 | + vo.setSiteId(siteVO.getSiteId()); | |
| 617 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 618 | + | |
| 619 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 620 | + | |
| 621 | + if(bindingResult.hasErrors()) { | |
| 622 | + | |
| 623 | + if(master != null) { | |
| 624 | + if(!EgovStringUtil.isEmpty(master.getCtgrymasterId())) { | |
| 625 | + CtgryVO ctgry = new CtgryVO(); | |
| 626 | + ctgry.setCtgrymasterId(master.getCtgrymasterId()); | |
| 627 | + model.addAttribute("boardCateList", ctgryService.selectComtnbbsctgryList(ctgry)); | |
| 628 | + | |
| 629 | + model.addAttribute("boardCateLevel", ctgryService.selectComtnbbsctgryLevel(ctgry)); | |
| 630 | + } | |
| 631 | + | |
| 632 | + model.addAttribute("siteInfo", siteVO); | |
| 633 | + | |
| 634 | + boardVO.setCtgrymasterId(master.getCtgrymasterId()); | |
| 635 | + BoardVO dataVO = bbsMngService.selectBoardArticle(boardVO); | |
| 636 | + | |
| 637 | + model.addAttribute("brdMstrVO", master); | |
| 638 | + model.addAttribute("board", dataVO); | |
| 639 | + | |
| 640 | + model.addAttribute("USER_INFO", user); | |
| 641 | + model.addAttribute("BbsFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.bbs.fileStoreWebPathByWebFile")); | |
| 642 | + return propertyService.getString("publish.sourc.bbs.fileStoreWebPathByJspFile") + master.getSourcId() + "/EgovNoticeRegist"; | |
| 643 | + } | |
| 644 | + | |
| 645 | + } | |
| 646 | + | |
| 647 | + if(master != null) { | |
| 648 | + int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 649 | + if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())) { | |
| 650 | + | |
| 651 | + final Map<String, MultipartFile> files = multiRequest.getFileMap(); | |
| 652 | + if(!files.isEmpty()) { | |
| 653 | + if(EgovStringUtil.isEmpty(atchFileId)) { | |
| 654 | + List<FileVO> result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, | |
| 655 | + siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 656 | + atchFileId = fileMngService.insertFileInfs(result); | |
| 657 | + boardVO.setAtchFileId(atchFileId); | |
| 658 | + } else { | |
| 659 | + FileVO fvo = new FileVO(); | |
| 660 | + fvo.setAtchFileId(atchFileId); | |
| 661 | + int cnt = fileMngService.getMaxFileSN(fvo); | |
| 662 | + List<FileVO> _result = fileUtil.parseBoardFileInf(Long.parseLong(master.getPosblAtchFileSize()) * 1024 * 1024, files, 0, atchFileId, | |
| 663 | + siteManageService.selectSiteServiceInfo(request).getSiteId(), boardVO.getBbsId(), boardVO.getLa(), boardVO.getLo()); | |
| 664 | + fileMngService.updateFileInfs(_result); | |
| 665 | + } | |
| 666 | + } | |
| 667 | + | |
| 668 | + if(!"".equals(atchFileId)) { | |
| 669 | + FileVO fvo = new FileVO(); | |
| 670 | + fvo.setAtchFileId(atchFileId); | |
| 671 | + List<FileVO> dbFiles = fileMngService.selectFileInfs(fvo); | |
| 672 | + if(dbFiles == null || dbFiles.size() == 0) { | |
| 673 | + boardVO.setAtchFileId(""); | |
| 674 | + boardVO.setFileGroupId(""); | |
| 675 | + } | |
| 676 | + } | |
| 677 | + | |
| 678 | + if(SE_CODE >= 10) { | |
| 679 | + boardVO.setAdminAt("Y"); | |
| 680 | + } | |
| 681 | + boardVO.setLastUpdusrId(user.getId()); | |
| 682 | + boardVO.setNttCn(unscript(boardVO.getNttCn())); // XSS 방지 | |
| 683 | + boardVO.setEstnData(EgovHttpUtil.getEstnParseData(request)); | |
| 684 | + | |
| 685 | + bbsMngService.updateBoardArticle(boardVO, master, false); | |
| 686 | + } | |
| 687 | + } | |
| 688 | + | |
| 689 | + request.getSession().removeAttribute("sessionVO"); | |
| 690 | + | |
| 691 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 692 | + } | |
| 693 | + | |
| 694 | + //게시물에 대한 내용을 삭제한다. | |
| 695 | + @RequestMapping(value = "/cop/bbs/deleteBoardArticle.do") | |
| 696 | + public String deleteBoardArticle(@ModelAttribute("searchVO") BoardVO boardVO, BoardVO board, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 697 | + | |
| 698 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 699 | + if(user == null) { | |
| 700 | + return "redirect:" + EgovUserDetailsHelper.getRedirectLoginUrl(); | |
| 701 | + } | |
| 702 | + | |
| 703 | + BoardMasterVO vo = new BoardMasterVO(); | |
| 704 | + vo.setBbsId(boardVO.getBbsId()); | |
| 705 | + | |
| 706 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 707 | + vo.setSiteId(siteVO.getSiteId()); | |
| 708 | + vo.setSysTyCode(siteVO.getSysTyCode()); | |
| 709 | + | |
| 710 | + BoardMasterVO master = bbsAttrbService.selectBBSMasterInf(vo); | |
| 711 | + | |
| 712 | + if(master != null) { | |
| 713 | + int SE_CODE = Integer.parseInt(user.getUserSe()); | |
| 714 | + if(SE_CODE >= Integer.parseInt(master.getRegistAuthor())){ | |
| 715 | + if(SE_CODE >= 10) { | |
| 716 | + boardVO.setAdminAt("Y"); | |
| 717 | + } | |
| 718 | + | |
| 719 | + board.setLastUpdusrId(user.getId()); | |
| 720 | + bbsMngService.deleteBoardArticle(board, master); | |
| 721 | + } | |
| 722 | + } | |
| 723 | + | |
| 724 | + return "forward:/cop/bbs/selectBoardList.do"; | |
| 725 | + } | |
| 726 | + | |
| 727 | + | |
| 728 | + //[관리용-공통] 게시판 마스터 목록을 조회한다. | |
| 729 | + @RequestMapping("/cop/com/selectAllBBSMasterManageInfs.do") | |
| 730 | + public String selectAllBBSMasterManageInfs(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 731 | + | |
| 732 | + LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 733 | + if(!EgovStringUtil.isEmpty(loginVO.getSiteId())) { | |
| 734 | + boardMasterVO.setSiteId(loginVO.getSiteId()); | |
| 735 | + } | |
| 736 | + | |
| 737 | + boardMasterVO.setPageUnit(propertyService.getInt("pageUnit")); | |
| 738 | + boardMasterVO.setPageSize(propertyService.getInt("pageSize")); | |
| 739 | + | |
| 740 | + PaginationInfo paginationInfo = new PaginationInfo(); | |
| 741 | + | |
| 742 | + paginationInfo.setCurrentPageNo(boardMasterVO.getPageIndex()); | |
| 743 | + paginationInfo.setRecordCountPerPage(boardMasterVO.getPageUnit()); | |
| 744 | + paginationInfo.setPageSize(boardMasterVO.getPageSize()); | |
| 745 | + | |
| 746 | + boardMasterVO.setFirstIndex(paginationInfo.getFirstRecordIndex()); | |
| 747 | + boardMasterVO.setLastIndex(paginationInfo.getLastRecordIndex()); | |
| 748 | + boardMasterVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage()); | |
| 749 | + | |
| 750 | + if(!EgovStringUtil.isEmpty(boardMasterVO.getSiteId())) { | |
| 751 | + List<BoardMasterVO> list = bbsAttrbService.selectAllBBSMasterManageInfs(boardMasterVO); | |
| 752 | + int totCnt = bbsAttrbService.selectAllBBSMasterManageInfsCnt(boardMasterVO); | |
| 753 | + | |
| 754 | + paginationInfo.setTotalRecordCount(totCnt); | |
| 755 | + | |
| 756 | + model.addAttribute("resultList", list); | |
| 757 | + model.addAttribute("resultCnt", totCnt); | |
| 758 | + } | |
| 759 | + | |
| 760 | + model.addAttribute("paginationInfo", paginationInfo); | |
| 761 | + | |
| 762 | + return "cop/com/selectAllBBSMasterManageInfs"; | |
| 763 | + } | |
| 764 | + | |
| 765 | + //게시물을 관리한다. | |
| 766 | + @RequestMapping(value = "/cop/bbs/manageArticle.do") | |
| 767 | + public void manageArticle(@ModelAttribute("searchVO") BoardVO boardVO, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 768 | + | |
| 769 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 770 | + boardVO.setLastUpdusrId(user.getId()); | |
| 771 | + | |
| 772 | + if("Move".equals(boardVO.getRegistAction())) { | |
| 773 | + bbsMngService.updateBoardArticlesManageMove(boardVO); | |
| 774 | + } else if("Copy".equals(boardVO.getRegistAction())) { | |
| 775 | + bbsMngService.updateBoardArticlesManageCopy(boardVO); | |
| 776 | + } else if("Hide".equals(boardVO.getRegistAction())) { | |
| 777 | + bbsMngService.updateBoardArticlesManageHide(boardVO); | |
| 778 | + } else if("Remove".equals(boardVO.getRegistAction())) { | |
| 779 | + bbsMngService.deleteCompleteBoardArticle(boardVO); | |
| 780 | + } else if("Repair".equals(boardVO.getRegistAction())) { | |
| 781 | + bbsMngService.repairBoardArticle(boardVO); | |
| 782 | + } | |
| 783 | + | |
| 784 | + | |
| 785 | + JSONObject jo = new JSONObject(); | |
| 786 | + jo.put("message", egovMessageSource.getMessage("success.request.msg")); | |
| 787 | + | |
| 788 | + response.setContentType("text/javascript; charset=utf-8"); | |
| 789 | + PrintWriter printwriter = response.getWriter(); | |
| 790 | + printwriter.println(jo.toString()); | |
| 791 | + printwriter.flush(); | |
| 792 | + printwriter.close(); | |
| 793 | + } | |
| 794 | + | |
| 795 | + | |
| 796 | +} |
+++ base/src/main/java/egovframework/com/front/cop/cmy/web/BBSAttributeManageController.java
... | ... | @@ -0,0 +1,249 @@ |
| 1 | +package egovframework.com.front.cop.cmy.web; | |
| 2 | + | |
| 3 | +import javax.annotation.Resource; | |
| 4 | +import javax.servlet.http.HttpServletRequest; | |
| 5 | +import javax.servlet.http.HttpServletResponse; | |
| 6 | + | |
| 7 | +import egovframework.module.cop.bbs.service.CtgryMasterVO; | |
| 8 | +import org.apache.log4j.Logger; | |
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 10 | +import org.springframework.stereotype.Controller; | |
| 11 | +import org.springframework.ui.ModelMap; | |
| 12 | +import org.springframework.validation.BindingResult; | |
| 13 | +import org.springframework.web.bind.annotation.ModelAttribute; | |
| 14 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 15 | +import org.springmodules.validation.commons.DefaultBeanValidator; | |
| 16 | + | |
| 17 | +import egovframework.com.cmm.service.CmmUseService; | |
| 18 | +import egovframework.module.cop.bbs.service.BoardMasterVO; | |
| 19 | +import egovframework.module.cop.bbs.service.BBSCtgryMasterService; | |
| 20 | +import egovframework.module.cop.bbs.service.BBSAttributeManageService; | |
| 21 | +import egovframework.com.sec.ram.security.userdetails.util.EgovUserDetailsHelper; | |
| 22 | +import egovframework.module.sym.ccm.cde.service.CmmnDetailCodeVO; | |
| 23 | +import egovframework.module.sym.sit.service.SiteManageService; | |
| 24 | +import egovframework.module.sym.sit.service.SiteManageVO; | |
| 25 | +import egovframework.module.uat.uia.service.LoginVO; | |
| 26 | +import egovframework.rte.fdl.property.EgovPropertyService; | |
| 27 | + | |
| 28 | +import egovframework.module.cop.cmy.service.CommunityMnuVO; | |
| 29 | +import egovframework.module.cop.cmy.service.CommunityUser; | |
| 30 | +import egovframework.module.cop.cmy.service.EgovCommunityManageService; | |
| 31 | +import egovframework.rte.fdl.cmmn.exception.EgovBizException; | |
| 32 | +//게시판 속성관리를 위한 컨트롤러 클래스 | |
| 33 | +@Controller("EgovBBSAttributeManageController") | |
| 34 | +public class BBSAttributeManageController { | |
| 35 | + | |
| 36 | + @Resource(name = "bbsAttributeManageService") | |
| 37 | + private BBSAttributeManageService bbsAttrbService; | |
| 38 | + | |
| 39 | + @Resource(name = "cmmUseService") | |
| 40 | + private CmmUseService cmmUseService; | |
| 41 | + | |
| 42 | + @Resource(name = "bbsCtgryMasterService") | |
| 43 | + private BBSCtgryMasterService bbsCtgryMasterService; | |
| 44 | + | |
| 45 | + @Resource(name = "propertiesService") | |
| 46 | + protected EgovPropertyService propertyService; | |
| 47 | + | |
| 48 | + @Autowired | |
| 49 | + private DefaultBeanValidator beanValidator; | |
| 50 | + | |
| 51 | + @Resource(name = "EgovCommunityManageService") | |
| 52 | + private EgovCommunityManageService cmmntyService; // 커뮤니티 관리자 권한 확인 | |
| 53 | + | |
| 54 | + @Resource(name = "siteManageService") | |
| 55 | + SiteManageService siteManageService; | |
| 56 | + | |
| 57 | + | |
| 58 | + Logger log = Logger.getLogger(this.getClass()); | |
| 59 | + | |
| 60 | + | |
| 61 | + //커뮤니티 관리자 및 동호회 운영자 권한을 확인한다. | |
| 62 | + protected void checkAuthority(BoardMasterVO boardMaster, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 63 | + | |
| 64 | + Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated(request, response); | |
| 65 | + if (!isAuthenticated) { | |
| 66 | + throw new EgovBizException("인증된 사용자 정보가 존재하지 않습니다."); | |
| 67 | + } | |
| 68 | + | |
| 69 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 70 | + | |
| 71 | + String targetId = boardMaster.getTrgetId(); | |
| 72 | + | |
| 73 | + if (targetId.startsWith("CMMNTY_")) { | |
| 74 | + CommunityUser cmmntyUser = new CommunityUser(); | |
| 75 | + | |
| 76 | + cmmntyUser.setCmmntyId(boardMaster.getTrgetId()); | |
| 77 | + cmmntyUser.setEmplyrId(user.getId()); | |
| 78 | + | |
| 79 | + if (!cmmntyService.isManager(cmmntyUser)) { | |
| 80 | + throw new EgovBizException("해당 커뮤니티 관리자만 사용하실 수 있습니다."); | |
| 81 | + } | |
| 82 | + } else { | |
| 83 | + throw new EgovBizException("대상ID 정보가 정확하지 않습니다."); | |
| 84 | + } | |
| 85 | + } | |
| 86 | + | |
| 87 | + //신규 게시판 마스터 등록을 위한 등록페이지로 이동한다. | |
| 88 | + @RequestMapping("/cop/cmy/bbs/addBBSMaster.do") | |
| 89 | + public String addBBSMaster(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 90 | + | |
| 91 | + checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 92 | + | |
| 93 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 94 | + model.addAttribute("siteInfo", siteVO); | |
| 95 | + model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 96 | + | |
| 97 | + CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 98 | + vo.setCodeId("COM912"); | |
| 99 | + model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 100 | + | |
| 101 | + model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 102 | + | |
| 103 | + CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); | |
| 104 | + ctgrymasterVO.setFirstIndex(0); | |
| 105 | + ctgrymasterVO.setRecordCountPerPage(999999999); | |
| 106 | + model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO)); | |
| 107 | + | |
| 108 | + model.addAttribute("boardMaster", cmmntyMnu); | |
| 109 | + | |
| 110 | + request.getSession().setAttribute("sessionVO", cmmntyMnu); | |
| 111 | + | |
| 112 | + return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 113 | + } | |
| 114 | + | |
| 115 | + //신규 게시판 마스터 정보를 등록한다. | |
| 116 | + @RequestMapping("/cop/cmy/bbs/insertBBSMasterInf.do") | |
| 117 | + public String insertBBSMasterInf(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, BindingResult bindingResult, HttpServletRequest request, HttpServletResponse response, ModelMap model) throws Exception { | |
| 118 | + | |
| 119 | + checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 120 | + | |
| 121 | + if(request.getSession().getAttribute("sessionVO") == null) { | |
| 122 | + return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 123 | + } | |
| 124 | + | |
| 125 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 126 | + cmmntyMnu.setSiteId(siteVO.getSiteId()); | |
| 127 | + cmmntyMnu.setSysTyCode(siteVO.getSysTyCode()); | |
| 128 | + | |
| 129 | + LoginVO loginVO = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 130 | + | |
| 131 | + beanValidator.validate(cmmntyMnu, bindingResult); | |
| 132 | + if(bindingResult.hasErrors()) { | |
| 133 | + | |
| 134 | + CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 135 | + vo.setCodeId("COM912"); | |
| 136 | + model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 137 | + | |
| 138 | + model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 139 | + | |
| 140 | + CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); | |
| 141 | + ctgrymasterVO.setFirstIndex(0); | |
| 142 | + ctgrymasterVO.setRecordCountPerPage(999999999); | |
| 143 | + model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO)); | |
| 144 | + | |
| 145 | + model.addAttribute("siteInfo", siteVO); | |
| 146 | + model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 147 | + | |
| 148 | + return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 149 | + } | |
| 150 | + | |
| 151 | + cmmntyMnu.setFrstRegisterId(loginVO.getId()); | |
| 152 | + cmmntyMnu.setRegistSeCode("REGC06"); | |
| 153 | + cmmntyService.insertBBSMasterInf(cmmntyMnu); | |
| 154 | + | |
| 155 | + request.getSession().removeAttribute("sessionVO"); | |
| 156 | + | |
| 157 | + | |
| 158 | + return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 159 | + } | |
| 160 | + | |
| 161 | + //게시판 마스터 상세내용을 조회한다. | |
| 162 | + @RequestMapping("/cop/cmy/bbs/SelectBBSMasterInf.do") | |
| 163 | + public String selectBBSMasterInf(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 164 | + | |
| 165 | + checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 166 | + | |
| 167 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 168 | + model.addAttribute("siteInfo", siteVO); | |
| 169 | + model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 170 | + cmmntyMnu.setSiteId(siteVO.getSiteId()); | |
| 171 | + cmmntyMnu.setSysTyCode(siteVO.getSysTyCode()); | |
| 172 | + | |
| 173 | + CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 174 | + vo.setCodeId("COM912"); | |
| 175 | + model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 176 | + | |
| 177 | + model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 178 | + | |
| 179 | + model.addAttribute("boardMaster", cmmntyService.selectCmmntyMasterInf(cmmntyMnu)); | |
| 180 | + | |
| 181 | + request.getSession().setAttribute("sessionVO", cmmntyMnu); | |
| 182 | + | |
| 183 | + return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 184 | + } | |
| 185 | + | |
| 186 | + //게시판 마스터 정보를 수정한다. | |
| 187 | + @RequestMapping("/cop/cmy/bbs/updateBBSMasterInf.do") | |
| 188 | + public String updateBBSMasterInf(@ModelAttribute("searchVO") CommunityMnuVO cmmntyMnu, BindingResult bindingResult, ModelMap model, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 189 | + | |
| 190 | + checkAuthority(cmmntyMnu, request, response); // server-side 권한 확인 | |
| 191 | + | |
| 192 | + if(request.getSession().getAttribute("sessionVO") == null) { | |
| 193 | + return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 194 | + } | |
| 195 | + | |
| 196 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 197 | + cmmntyMnu.setSiteId(siteVO.getSiteId()); | |
| 198 | + cmmntyMnu.setSysTyCode(siteVO.getSysTyCode()); | |
| 199 | + | |
| 200 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 201 | + | |
| 202 | + beanValidator.validate(cmmntyMnu, bindingResult); | |
| 203 | + if(bindingResult.hasErrors()) { | |
| 204 | + | |
| 205 | + CmmnDetailCodeVO vo = new CmmnDetailCodeVO(); | |
| 206 | + vo.setCodeId("COM912"); | |
| 207 | + model.addAttribute("attrbList", cmmUseService.selectCmmCodeDetail(vo)); | |
| 208 | + | |
| 209 | + model.addAttribute("authList", cmmntyService.selectAuthorAllList(null)); | |
| 210 | + | |
| 211 | + CtgryMasterVO ctgrymasterVO = new CtgryMasterVO(); | |
| 212 | + ctgrymasterVO.setFirstIndex(0); | |
| 213 | + ctgrymasterVO.setRecordCountPerPage(999999999); | |
| 214 | + model.addAttribute("ctgrymasterList", bbsCtgryMasterService.selectComtnbbsctgrymasterList(ctgrymasterVO)); | |
| 215 | + | |
| 216 | + model.addAttribute("siteInfo", siteVO); | |
| 217 | + model.addAttribute("LytFileStoreWebPathByWebFile", propertyService.getString("publish.tmplat.lyt.fileStoreWebPathByWebFile")); | |
| 218 | + | |
| 219 | + return "cop/cmy/bbs/EgovBoardMstrRegist"; | |
| 220 | + } | |
| 221 | + | |
| 222 | + cmmntyMnu.setLastUpdusrId(user.getId()); | |
| 223 | + cmmntyService.updateBBSMasterInf(cmmntyMnu); | |
| 224 | + | |
| 225 | + request.getSession().removeAttribute("sessionVO"); | |
| 226 | + | |
| 227 | + return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 228 | + } | |
| 229 | + | |
| 230 | + //게시판 마스터 정보를 삭제한다. | |
| 231 | + @RequestMapping("/cop/cmy/bbs/DeleteBBSMasterInf.do") | |
| 232 | + public String deleteBBSMasterInf(@ModelAttribute("searchVO") BoardMasterVO boardMasterVO, @ModelAttribute("boardMaster") BoardMasterVO boardMaster, HttpServletRequest request, HttpServletResponse response) throws Exception { | |
| 233 | + | |
| 234 | + checkAuthority(boardMasterVO, request, response); // server-side 권한 확인 | |
| 235 | + | |
| 236 | + SiteManageVO siteVO = siteManageService.selectSiteServiceInfo(request); | |
| 237 | + boardMaster.setSiteId(siteVO.getSiteId()); | |
| 238 | + boardMaster.setSysTyCode(siteVO.getSysTyCode()); | |
| 239 | + | |
| 240 | + LoginVO user = EgovUserDetailsHelper.getAuthenticatedUser(request, response); | |
| 241 | + | |
| 242 | + boardMaster.setLastUpdusrId(user.getId()); | |
| 243 | + bbsAttrbService.deleteBBSMasterInf(boardMaster); | |
| 244 | + | |
| 245 | + return "forward:/cop/cmy/selectCmmntyMasterInfs.do"; | |
| 246 | + } | |
| 247 | + | |
| 248 | + | |
| 249 | +} |
+++ base/src/main/java/egovframework/com/front/cop/cmy/web/BBSCommentController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/cop/cmy/web/BBSManageController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/cop/cmy/web/CommunityManageController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/cop/cmy/web/TemplateServiceController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/cop/com/web/EgovConfirmController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/cop/com/web/EgovCopUserInfController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/evt/web/ComtnschdulinfoController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/msi/web/ContentsServiceController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/msi/web/SearchServiceController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/msi/web/TemplateServiceController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/sym/log/web/EgovLogManageController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/sym/log/web/EgovWebLogInterceptor.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/uat/sso/filter/EgovSSOFilter.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/uat/uia/web/EgovLoginController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/uss/ion/bnr/web/BannerController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/uss/ion/pwm/web/PopupController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/uss/ivp/web/EgovIndvdlestbsController.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/com/front/uss/umt/web/EgovUserInfoController.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/BBSCommentController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCommentController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCtgryController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCtgryController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCtgryMasterController.java
+++ base/src/main/java/egovframework/com/mng/cop/bbs/web/BBSCtgryMasterController.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/ems/web/UserEmsMngController.java
+++ base/src/main/java/egovframework/com/mng/ems/web/UserEmsMngController.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/msi/web/EgovTemplateController.java
+++ base/src/main/java/egovframework/com/mng/msi/web/EgovTemplateController.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/ccm/web/CcmCmmnClCodeManageController.java
+++ base/src/main/java/egovframework/com/mng/sym/ccm/web/CcmCmmnClCodeManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sym/ccm/web/CcmCmmnCodeManageController.java
+++ base/src/main/java/egovframework/com/mng/sym/ccm/web/CcmCmmnCodeManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/sym/ccm/web/CcmCmmnDetailCodeManageController.java
+++ base/src/main/java/egovframework/com/mng/sym/ccm/web/CcmCmmnDetailCodeManageController.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/pwm/web/PopupManageController.java
+++ base/src/main/java/egovframework/com/mng/uss/ion/pwm/web/PopupManageController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/mng/uss/ion/sit/web/LinkSiteManageController.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/service/ColumVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/msi/service/ContentsServiceVO.java
| This diff is skipped because there are too many other diffs. |
--- 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/msi/web/SearchServiceController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/msi/web/TemplateServiceController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/ram/security/common/EgovSessionMapping.java
+++ base/src/main/java/egovframework/com/sec/ram/security/common/EgovSessionMapping.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/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/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/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/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/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/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/rnc/service/EgovNameCheck.java
+++ base/src/main/java/egovframework/com/sec/rnc/service/EgovNameCheck.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/rnc/service/EgovRlnmManageService.java
+++ base/src/main/java/egovframework/com/sec/rnc/service/EgovRlnmManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/rnc/service/EgovSocketClient.java
+++ base/src/main/java/egovframework/com/sec/rnc/service/EgovSocketClient.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/rnc/service/EgovTimedSocket.java
+++ base/src/main/java/egovframework/com/sec/rnc/service/EgovTimedSocket.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/rnc/service/RealhpVO.java
+++ base/src/main/java/egovframework/com/sec/rnc/service/RealhpVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sec/rnc/service/impl/EgovRlnmManageServiceImpl.java
+++ base/src/main/java/egovframework/com/sec/rnc/service/impl/EgovRlnmManageServiceImpl.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/ScrinStatsService.java
| This diff is skipped because there are too many other diffs. |
--- 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
| 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/cca/service/CcmCmmnCodeManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/cca/service/CmmnCodeVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/cca/service/impl/CcmCmmnCodeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/cca/service/impl/CmmnCodeManageMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/ccc/service/CcmCmmnClCodeManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/ccc/service/CmmnClCodeVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/ccc/service/impl/CcmCmmnClCodeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/ccc/service/impl/CmmnClCodeManageMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/cde/service/CcmCmmnDetailCodeManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/cde/service/CmmnDetailCodeVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/cde/service/impl/CcmCmmnDetailCodeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/ccm/cde/service/impl/CmmnDetailCodeManageMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/DataUseLog.java
| This diff is skipped because there are too many other diffs. |
--- 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
| This diff is skipped because there are too many other diffs. |
--- 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/LoginInfoService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/log/service/LoginInfoVO.java
| This diff is skipped because there are too many other diffs. |
--- 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/WebLog.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
| This diff is skipped because there are too many other diffs. |
--- 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/MpmHistoryService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/mpm/service/MpmService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/mpm/service/MpmVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/mpm/service/impl/MpmHistoryMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/mpm/service/impl/MpmHistoryServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/mpm/service/impl/MpmMapper.java
| This diff is skipped because there are too many other diffs. |
--- 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/sym/sit/service/SiteMainContentsManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/sit/service/SiteManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/sit/service/SiteManageVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/sit/service/impl/SiteManageMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/sym/sit/service/impl/SiteManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- 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/LoginService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uat/uia/service/LoginVO.java
| This diff is skipped because there are too many other diffs. |
--- 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/LoginMapper.java
| This diff is skipped because there are too many other diffs. |
--- 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
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/bnr/service/BannerService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/bnr/service/BannerVO.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/bnr/service/impl/BannerMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/bnr/service/impl/BannerServiceImpl.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/bnr/web/BannerController.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/pwm/service/PopupManageService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/pwm/service/PopupManageVO.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
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/pwm/service/impl/PopupMapper.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/ion/pwm/web/PopupController.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
| 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/IndvdlestbsService.java
| This diff is skipped because there are too many other diffs. |
--- 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/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
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/uss/umt/service/UserDefaultVO.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
| 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
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/cas/service/EgovMessageUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/cas/service/EgovSessionCookieUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovDateUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovFormBasedFileUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovFormBasedFileVo.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovFormBasedUUID.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovFormatCheckUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovHttpUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovNumberCheckUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovNumberUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovQrCodeUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovSsoSecureEncryptUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovStringUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/EgovUtilTestService.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/fcc/service/MapUtil.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/sim/service/EgovClntInfo.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/sim/service/EgovCrypTo.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/sim/service/EgovFileScrty.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/java/egovframework/com/utl/sim/service/ProcessOutputThread.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/BBSAttributeManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/BBSCommentService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/BBSCtgryMasterService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/BBSCtgryService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/BBSManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/BoardMasterVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/BoardVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/CommentVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/CtgryMasterVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/CtgryVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSAttributeManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSAttributeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSCommentMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSCommentServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSCtgryMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSCtgryMasterMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSCtgryMasterServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSCtgryServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/bbs/service/impl/BBSManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/Community.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/CommunityMnu.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/CommunityMnuVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/CommunityUser.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/CommunityUserVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/CommunityVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/EgovCommunityManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/impl/CommunityManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/cmy/service/impl/EgovCommunityManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BBSUseInfoManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BbsSourcHistoryService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BbsSourcService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BbsSourcVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BbsTmplatHistoryService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BbsTmplatService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BbsTmplatVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/BoardUseInfVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/ConfirmHistoryVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/ConfirmManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/LytSourcHistoryService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/LytSourcService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/LytSourcVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/LytTmplatHistoryService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/LytTmplatService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/LytTmplatVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/UserInfManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/UserInfVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BBSUseInfoManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BBSUseInfoManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsSourcHistoryMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsSourcHistoryServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsSourcMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsSourcServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsTmplatHistoryMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsTmplatHistoryServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsTmplatMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/BbsTmplatServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/ConfirmManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/ConfirmManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytSourcHistoryMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytSourcHistoryServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytSourcMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytSourcServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytTmplatHistoryMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytTmplatHistoryServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytTmplatMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/LytTmplatServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/UserInfManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/cop/com/service/impl/UserInfManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/ems/service/DirectMailService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/ems/service/MailMessageVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/ems/service/impl/DirectMailMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/ems/service/impl/DirectMailServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/evt/service/ComtnschdulinfoService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/evt/service/ComtnschdulinfoVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/evt/service/impl/ComtnschdulinfoMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/evt/service/impl/ComtnschdulinfoServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/msi/service/ColumVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/msi/service/ContentsServiceVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sms/service/SmsInfoService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sms/service/SmsSenderService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sms/service/SmsVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sms/service/impl/SmsInfoServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sms/service/impl/SmsMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sms/service/impl/SmsSenderServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sts/service/ScrinStatsService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sts/service/StatsVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sts/service/WebLogSummary.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sts/service/impl/ScrinStatsMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sts/service/impl/ScrinStatsServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cca/service/CcmCmmnCodeManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cca/service/CmmnCodeVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cca/service/impl/CcmCmmnCodeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cca/service/impl/CmmnCodeManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/ccc/service/CcmCmmnClCodeManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/ccc/service/CmmnClCodeVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/ccc/service/impl/CcmCmmnClCodeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/ccc/service/impl/CmmnClCodeManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cde/service/CcmCmmnDetailCodeManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cde/service/CmmnDetailCodeVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cde/service/impl/CcmCmmnDetailCodeManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/ccm/cde/service/impl/CmmnDetailCodeManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/DataUseLog.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/EgovLogManageAspect.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/EgovLogManageScheduling.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/LogManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/LoginInfoService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/LoginInfoVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/LoginLog.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/WebLog.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/impl/LogManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/impl/LogManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/impl/LoginInfoMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/log/service/impl/LoginInfoServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/mpm/service/MpmHistoryService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/mpm/service/MpmService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/mpm/service/MpmVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/mpm/service/impl/MpmHistoryMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/mpm/service/impl/MpmHistoryServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/mpm/service/impl/MpmMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/mpm/service/impl/MpmServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/sit/service/SiteMainContentsManageVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/sit/service/SiteManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/sit/service/SiteManageVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/sit/service/impl/SiteManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/sym/sit/service/impl/SiteManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uat/uia/service/LoginService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uat/uia/service/LoginVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uat/uia/service/LogoutService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uat/uia/service/impl/LoginMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uat/uia/service/impl/LoginServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/bnr/service/BannerService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/bnr/service/BannerVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/bnr/service/impl/BannerMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/bnr/service/impl/BannerServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/pwm/service/PopupManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/pwm/service/PopupManageVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/pwm/service/impl/PopupManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/pwm/service/impl/PopupMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/sit/service/LinkSiteManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/sit/service/LinkSiteManageVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/sit/service/impl/LinkSiteManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ion/sit/service/impl/LinkSiteManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ivp/service/IndvdlestbsService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ivp/service/IndvdlestbsVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ivp/service/impl/IndvdlestbsMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/ivp/service/impl/IndvdlestbsServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/umt/service/UserDefaultVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/umt/service/UserManageService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/umt/service/UserManageVO.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/umt/service/impl/UserManageMapper.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/uss/umt/service/impl/UserManageServiceImpl.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/cas/service/EgovMessageUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/cas/service/EgovSessionCookieUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovDateUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovFormBasedFileUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovFormBasedFileVo.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovFormBasedUUID.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovFormatCheckUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovHttpUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovNumberCheckUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovNumberUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovQrCodeUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovSsoSecureEncryptUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovStringUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/EgovUtilTestService.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/fcc/service/MapUtil.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/sim/service/EgovClntInfo.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/sim/service/EgovCrypTo.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/sim/service/EgovFileScrty.java
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/java/egovframework/module/utl/sim/service/ProcessOutputThread.java
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cmm/sym/ccm/CmmnClCodeManage_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cmm/sym/ccm/CmmnClCodeManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cmm/sym/ccm/CmmnCodeManage_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cmm/sym/ccm/CmmnCodeManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cmm/sym/ccm/CmmnDetailCodeManage_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cmm/sym/ccm/CmmnDetailCodeManage_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cmm/use/CmmUse_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cmm/use/CmmUse_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSComment_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSComment_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSCtgryMaster_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSCtgryMaster_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSCtgry_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSCtgry_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSMaster_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/BBSMaster_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/bbs/Board_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/bbs/Board_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/cmy/Cmmnty_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/cmy/Cmmnty_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/BBSUse_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/BBSUse_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsSourcHistory_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsSourcHistory_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsSourc_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsSourc_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsTmplatHistory_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsTmplatHistory_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsTmplat_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/BbsTmplat_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
+++ 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/LytSourcHistory_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/LytSourcHistory_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/LytSourc_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/LytSourc_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/LytTmplatHistory_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/LytTmplatHistory_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/cop/com/LytTmplat_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/cop/com/LytTmplat_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
+++ 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
+++ 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/sms/Sms_SQL.xml
+++ 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
+++ 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
+++ 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
+++ 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/sym/mpm/MpmHistory_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/sym/mpm/MpmHistory_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/sym/mpm/Mpm_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/sym/mpm/Mpm_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/sym/sit/SiteManage_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/sym/sit/SiteManage_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
+++ 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/bnr/Banner_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/uss/ion/bnr/Banner_SQL.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/mapper/mysql/uss/ion/pwm/Popup_SQL.xml
+++ base/src/main/resources/egovframework/mapper/mysql/uss/ion/pwm/Popup_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
+++ 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
+++ 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
+++ 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-aspect.xml
+++ base/src/main/resources/egovframework/spring/context-aspect.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/spring/context-egovuserdetailshelper.xml
+++ base/src/main/resources/egovframework/spring/context-egovuserdetailshelper.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/spring/context-syslogaop.xml
+++ base/src/main/resources/egovframework/spring/context-syslogaop.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/resources/egovframework/spring/context-transaction.xml
+++ base/src/main/resources/egovframework/spring/context-transaction.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-interceptor.xml
+++ base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-interceptor.xml
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-loginaop.xml
+++ base/src/main/webapp/WEB-INF/config/egovframework/springmvc/egov-com-loginaop.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/cmm/sec/ram/EgovGroupManage.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/sec/ram/EgovGroupManage.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/ChangePassword.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/ChangePasswordComplete.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovIdSearch.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovIdSearchComplete.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovLoginUsr.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovPasswordSearch.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovPasswordSearchComplete.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovUserIdPwRegistDn.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovUserRegistDn.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uat/uia/EgovUserRequestRegistDn.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovCertificate.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovIdDplctCnfirm.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovSelectMber.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovSelectMber_old.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovStplatCnfirm.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovUserConfirm.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovUserInsert.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovUserInsertComplete.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovUserPasswordUpdate.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovUserSecsn.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovUserUpdate.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/EgovUserUpdateForm.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/MailAuth.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cmm/uss/umt/userUpdateStnum.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyAdresDplct.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyClosing.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyInfo.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyInfs.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyMainPage.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyMsg.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyNmDplct.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyRegist.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyStplat.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyUpdt.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyUserBySelf.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmmntyUserSecsn.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCmybbsMstrList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/EgovCommntyBoardList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/bbs/EgovBoardMstrRegist.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/bbs/cmy_001/EgovCommentList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/bbs/cmy_001/EgovNoticeInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/bbs/cmy_001/EgovNoticeList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/cmy/bbs/cmy_001/EgovNoticeRegist.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/com/EgovConfirmList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/com/EgovConfmInfUpdt.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/com/EgovUserList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/com/EgovUserListPop.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/sms/EgovSmsInfoDetail.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/sms/EgovSmsInfoList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/sms/EgovSmsInfoRegist.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/sms/addSms.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/sns/SendSns.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/svc/EgovAppLoginResultXml.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/svc/EgovNotifyArticleXml.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulEventFinish.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulEventForm.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulEventPop.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulEventResult.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulEventUser.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulinfoCalendar.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulinfoList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulinfoRegister.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/ComtnschdulinfoView.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/evt/popupList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyAdresDplct.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyClosing.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyInfo.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyInfs.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyMainPage.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyMsg.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyNmDplct.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyRegist.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyStplat.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyUpdt.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyUserBySelf.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmmntyUserSecsn.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCmybbsMstrList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/EgovCommntyBoardList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/bbs/EgovBoardMstrRegist.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/bbs/cmy_001/EgovCommentList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/bbs/cmy_001/EgovNoticeInqire.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/bbs/cmy_001/EgovNoticeList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/cmy/bbs/cmy_001/EgovNoticeRegist.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/com/EgovConfirmList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/com/EgovConfmInfUpdt.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/com/EgovUserList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/com/EgovUserListPop.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/cop/com/selectAllBBSMasterManageInfs.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/cop/com/selectAllBBSMasterManageInfs.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulEventFinish.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulEventForm.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulEventPop.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulEventResult.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulEventUser.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulinfoCalendar.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulinfoList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulinfoRegister.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/ComtnschdulinfoView.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/evt/popupList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/cmm/tmplatBottom.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/cmm/tmplatHead.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/cntntsService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/mma/index.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/mma/tmplatBottom.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/mma/tmplatHead.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/sch/tmplatBottom.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/sch/tmplatHead.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/siteMap.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/svc/bbsSearchService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/svc/boardMoreService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/svc/boardService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/svc/eventService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/svc/linkSiteService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/svc/popupService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/msi/svc/searchBoardService.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sch/EgovBbsSearch.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sch/EgovCmySearch.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sch/EgovTotalSearch.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sch/EgovVodSearch.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sch/scheduleCalendar.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sch/scheduleCalendar.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sch/todaySchedule.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sch/todayScheduleAjax.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovLoginLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovLoginLogList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovSysHistInqire.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovSysHistList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovSysHistRegist.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovSysHistUpdt.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovSysLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovSysLogList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovTrsmrcvLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovTrsmrcvLogList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovTrsmrcvLogRegist.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovUserLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovUserLogList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovWebLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/sym/log/EgovWebLogList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/ChangePassword.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/ChangePasswordComplete.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovIdSearch.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovIdSearchComplete.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovLoginUsr.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovPasswordSearch.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovPasswordSearchComplete.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovUserIdPwRegistDn.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovUserRegistDn.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uat/uia/EgovUserRequestRegistDn.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/bnr/BannerList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/bnr/BannerList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/000.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/010.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/020.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/030.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/040.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/051.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/052.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/053.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/054.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/055.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/056.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/057.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/058.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/059.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/060.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/999.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/ion/pwn/popupList.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovCertificate.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovIdDplctCnfirm.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovSelectMber.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovSelectMber_old.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovStplatCnfirm.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovUserConfirm.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovUserInsert.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovUserInsertComplete.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovUserPasswordUpdate.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovUserSecsn.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovUserUpdate.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/EgovUserUpdateForm.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/MailAuth.jsp
| This diff is skipped because there are too many other diffs. |
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/front/uss/umt/userUpdateStnum.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/evt/ComtneventAswperView.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/evt/ComtneventAswperView.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/evt/ComtnschdulEventResult.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/evt/ComtnschdulEventResult.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/mng/evt/ComtnschdulinfoMngRegister.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/mng/evt/ComtnschdulinfoMngRegister.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/cmm/tmplatBottom.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/cmm/tmplatHead.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/cntntsService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/mma/index.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/mma/tmplatBottom.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/mma/tmplatHead.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/sch/tmplatBottom.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/sch/tmplatHead.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/siteMap.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/svc/bbsSearchService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/svc/boardMoreService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/svc/boardService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/svc/eventService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/svc/linkSiteService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/svc/popupService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/msi/svc/searchBoardService.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sch/EgovBbsSearch.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sch/EgovCmySearch.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sch/EgovTotalSearch.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sch/EgovVodSearch.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sch/todaySchedule.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sch/todayScheduleAjax.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/BBSTMP_0000000000001/NoticeInqire.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/BBSTMP_0000000000001/NoticeInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/BBSTMP_0000000000001/NoticeList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/BBSTMP_0000000000001/NoticeList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/BBSTMP_0000000000001/NoticeRegist.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/BBSTMP_0000000000001/NoticeRegist.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/sourc/BBSSRC_0000000000001/NoticeInqire.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/sourc/BBSSRC_0000000000001/NoticeInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/sourc/BBSSRC_0000000000001/NoticeList.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/bbs/sourc/BBSSRC_0000000000001/NoticeList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/lyt/sit/LTYTMP_0000000000001/tmplatBottom.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/lyt/sit/LTYTMP_0000000000001/tmplatBottom.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/lyt/sit/LTYTMP_0000000000001/tmplatHead.jsp
+++ base/src/main/webapp/WEB-INF/jsp/egovframework/str/cre/lyt/sit/LTYTMP_0000000000001/tmplatHead.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovLoginLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovLoginLogList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovSysHistInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovSysHistList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovSysHistRegist.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovSysHistUpdt.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovSysLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovSysLogList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovTrsmrcvLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovTrsmrcvLogList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovTrsmrcvLogRegist.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovUserLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovUserLogList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovWebLogInqire.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/sym/log/EgovWebLogList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/000.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/010.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/020.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/030.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/040.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/051.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/052.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/053.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/054.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/055.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/056.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/057.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/058.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/059.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/060.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/999.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/WEB-INF/jsp/egovframework/uss/ion/pwn/popupList.jsp
| This diff is skipped because there are too many other diffs. |
--- base/src/main/webapp/index.jsp
+++ base/src/main/webapp/index.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?