egovframework.rfc3.openapi30.web
Class OpenApiBoardDataController

java.lang.Object
  extended by egovframework.rfc3.openapi30.web.OpenApiBoardDataController

@Controller
@Service(value="OpenApiBoardDataController")
@SessionAttributes(types=SessionVO.class)
@RequestMapping(value={"","/","/{contextPath}/"})
public class OpenApiBoardDataController
extends java.lang.Object

게시판에 대한 controller 클래스를 정의한다.

Since:
2011.04.25
Version:
egovframework RFC 3.0
Author:
개발팀 양민욱
See Also:
 << 개정이력(Modification Information) >>
   
       수정일      수정자                   수정내용
  --------------  --------        ---------------------------
  2011.04.25  양민욱         rfc3 iam 참조

 

Constructor Summary
OpenApiBoardDataController()
           
 
Method Summary
 java.lang.String boardCleanerFilter(BoardVO boardVO, BoardEtcVO boardEtcVO, BoardDataVO boardDataVO, CommentVO commentVO, java.lang.String filterIdx, java.lang.String rootPath, java.lang.String uploadPath, java.lang.String command, java.util.List<BoardFileVO> boardFileVOList, javax.servlet.http.HttpServletRequest request)
          Data 보드클리너 필터
 java.lang.String boardDataFileDelete(BoardFileVO boardFileVO, BoardSearchVO boardSearchVO, org.springframework.validation.BindingResult bindingResult, org.springframework.web.bind.support.SessionStatus status, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
          오픈 API 첨부파일 삭제
 java.lang.String filterData(BoardEtcVO boardEtcVO, BoardDataVO boardDataVO, CommentVO commentVO, java.lang.String command, java.util.List<BoardFileVO> boardFileVOList, javax.servlet.http.HttpServletRequest request)
          각 정보별 플래그에 따른 필터링 처리
static boolean getDecoderCheck(java.lang.String filename)
           
 java.lang.String getRestMode()
           
 void insertDataFile(BoardDataVO boardDataVO, java.util.List<BoardFileVO> boardFileVOList, BoardEtcVO boardEtcVO)
          첨부파일 DB 정보를 INSERT하면서 이미지 파일인 경우 썸네일을 생성한다.
 boolean isGranted(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String ssoKey, java.lang.String resouceName, java.lang.String resouceValue)
          권한 체크
 java.lang.String onlineFilterData(BoardEtcVO boardEtcVO, BoardDataVO boardDataVO, CommentVO commentVO, javax.servlet.http.HttpServletRequest request)
          각 정보별 플래그에 따른 필터링 처리
 java.lang.String openApiAuthKeyValidate(java.lang.String authApiKey, org.springframework.ui.ModelMap model)
          인증키 검사
 boolean replyOfficer(java.lang.String boardId, long dataSid)
          답변 부서 여부
 void setRestMode(java.lang.String restMode)
           
 org.springframework.web.servlet.ModelAndView showException(java.lang.Exception ex)
          해당 controller 안에서 전역 에러 처리
 java.lang.String viewBoardDataDeleteAct(BoardDataVO boardDataVO, BoardVO boardVO, BoardSearchVO boardSearchVO, org.springframework.validation.BindingResult bindingResult, org.springframework.web.bind.support.SessionStatus status, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
          오픈 API 게시물 삭제
 java.lang.String viewBoardDataList(BoardVO boardVO, BoardSearchVO boardSearchVO, LoginVO loginVO, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
          오픈 api(xml,json) 게시물 목록
 java.lang.String viewBoardDataListRss(BoardVO boardVO, BoardSearchVO boardSearchVO, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
          RSS 게시물 목록
 java.lang.String viewBoardDataUpdateAct(BoardDataVO boardDataVO, BoardVO boardVO, BoardSearchVO boardSearchVO, org.springframework.validation.BindingResult bindingResult, org.springframework.web.bind.support.SessionStatus status, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
          오픈 API 게시물 수정 액션
 java.lang.String viewBoardDataView(BoardDataVO boardDataVO, BoardVO boardVO, BoardSearchVO boardSearchVO, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
          오픈 api(xml,json) 게시판 글보기
 java.lang.String viewBoardDataWriteAct(BoardDataVO boardDataVO, BoardVO boardVO, BoardSearchVO boardSearchVO, org.springframework.validation.BindingResult bindingResult, org.springframework.web.bind.support.SessionStatus status, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
          오픈 API 게시물 등록 액션
 java.lang.String viewScheduleDataList(BoardVO boardVO, BoardSearchVO boardSearchVO, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenApiBoardDataController

public OpenApiBoardDataController()
Method Detail

getRestMode

public java.lang.String getRestMode()

setRestMode

public void setRestMode(java.lang.String restMode)

viewBoardDataList

@RequestMapping(value="/board/openApi/list.*")
public java.lang.String viewBoardDataList(@ModelAttribute(value="boardVO")
                                                         BoardVO boardVO,
                                                         @ModelAttribute(value="boardSearchVO")
                                                         BoardSearchVO boardSearchVO,
                                                         @ModelAttribute(value="loginVO")
                                                         LoginVO loginVO,
                                                         javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response,
                                                         org.springframework.ui.ModelMap model)
                                   throws java.lang.Exception
오픈 api(xml,json) 게시물 목록

Throws:
java.lang.Exception

viewScheduleDataList

@RequestMapping(value="/schedule/openApi/list.*")
public java.lang.String viewScheduleDataList(@ModelAttribute(value="boardVO")
                                                            BoardVO boardVO,
                                                            @ModelAttribute(value="boardSearchVO")
                                                            BoardSearchVO boardSearchVO,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response,
                                                            org.springframework.ui.ModelMap model)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

viewBoardDataListRss

@RequestMapping(value="/board/openApi/rss.*")
public java.lang.String viewBoardDataListRss(@ModelAttribute(value="boardVO")
                                                            BoardVO boardVO,
                                                            @ModelAttribute(value="boardSearchVO")
                                                            BoardSearchVO boardSearchVO,
                                                            javax.servlet.http.HttpServletRequest request,
                                                            javax.servlet.http.HttpServletResponse response,
                                                            org.springframework.ui.ModelMap model)
                                      throws java.lang.Exception
RSS 게시물 목록

Throws:
java.lang.Exception

viewBoardDataView

@RequestMapping(value={"/board/openApi/view.*","/schedule/OpenApi/view.*"})
public java.lang.String viewBoardDataView(@ModelAttribute(value="boardDataVO")
                                                         BoardDataVO boardDataVO,
                                                         @ModelAttribute(value="boardVO")
                                                         BoardVO boardVO,
                                                         @ModelAttribute(value="boardSearchVO")
                                                         BoardSearchVO boardSearchVO,
                                                         javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response,
                                                         org.springframework.ui.ModelMap model)
                                   throws java.lang.Exception
오픈 api(xml,json) 게시판 글보기

Parameters:
boardDataVO -
boardVO -
boardSearchVO -
request -
response -
model -
Returns:
Throws:
java.lang.Exception

viewBoardDataWriteAct

@RequestMapping(value={"/board/openApi/writeAct.*","/scheduleOpenApi/writeAct.*"})
public java.lang.String viewBoardDataWriteAct(@ModelAttribute(value="boardDataVO")
                                                             BoardDataVO boardDataVO,
                                                             @ModelAttribute(value="boardVO")
                                                             BoardVO boardVO,
                                                             @ModelAttribute(value="boardSearchVO")
                                                             BoardSearchVO boardSearchVO,
                                                             org.springframework.validation.BindingResult bindingResult,
                                                             org.springframework.web.bind.support.SessionStatus status,
                                                             javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response,
                                                             org.springframework.ui.ModelMap model)
                                       throws java.lang.Exception
오픈 API 게시물 등록 액션

Parameters:
boardDataVO -
boardVO -
boardSearchVO -
bindingResult -
status -
request -
response -
model -
Returns:
Throws:
java.lang.Exception

viewBoardDataUpdateAct

@RequestMapping(value={"/board/openApi/updateAct.*","/scheduleOpenApi/updateAct.*"})
public java.lang.String viewBoardDataUpdateAct(@ModelAttribute(value="boardDataVO")
                                                              BoardDataVO boardDataVO,
                                                              @ModelAttribute(value="boardVO")
                                                              BoardVO boardVO,
                                                              @ModelAttribute(value="boardSearchVO")
                                                              BoardSearchVO boardSearchVO,
                                                              org.springframework.validation.BindingResult bindingResult,
                                                              org.springframework.web.bind.support.SessionStatus status,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response,
                                                              org.springframework.ui.ModelMap model)
                                        throws java.lang.Exception
오픈 API 게시물 수정 액션

Parameters:
boardDataVO -
boardVO -
boardSearchVO -
bindingResult -
status -
request -
response -
model -
Returns:
Throws:
java.lang.Exception

viewBoardDataDeleteAct

@RequestMapping(value={"/board/openApi/deleteAct.*","/scheduleOpenApi/deleteAct.*"})
public java.lang.String viewBoardDataDeleteAct(@ModelAttribute(value="boardDataVO")
                                                              BoardDataVO boardDataVO,
                                                              @ModelAttribute(value="boardVO")
                                                              BoardVO boardVO,
                                                              @ModelAttribute(value="boardSearchVO")
                                                              BoardSearchVO boardSearchVO,
                                                              org.springframework.validation.BindingResult bindingResult,
                                                              org.springframework.web.bind.support.SessionStatus status,
                                                              javax.servlet.http.HttpServletRequest request,
                                                              javax.servlet.http.HttpServletResponse response,
                                                              org.springframework.ui.ModelMap model)
                                        throws java.lang.Exception
오픈 API 게시물 삭제

Parameters:
boardDataVO -
boardVO -
boardSearchVO -
bindingResult -
status -
request -
response -
model -
Returns:
Throws:
java.lang.Exception

boardDataFileDelete

@RequestMapping(value={"/board/openApi/deleteFile.*","/scheduleOpenApi/deleteFile.*"})
public java.lang.String boardDataFileDelete(@ModelAttribute(value="boardFileVO")
                                                           BoardFileVO boardFileVO,
                                                           @ModelAttribute(value="boardSearchVO")
                                                           BoardSearchVO boardSearchVO,
                                                           org.springframework.validation.BindingResult bindingResult,
                                                           org.springframework.web.bind.support.SessionStatus status,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response,
                                                           org.springframework.ui.ModelMap model)
                                     throws java.lang.Exception
오픈 API 첨부파일 삭제

Parameters:
boardFileVO -
boardSearchVO -
bindingResult -
status -
request -
response -
model -
Returns:
Throws:
java.lang.Exception

replyOfficer

public boolean replyOfficer(java.lang.String boardId,
                            long dataSid)
                     throws java.lang.Exception
답변 부서 여부

Parameters:
boardId -
dataSid -
Returns:
Throws:
java.lang.Exception

isGranted

public boolean isGranted(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         java.lang.String ssoKey,
                         java.lang.String resouceName,
                         java.lang.String resouceValue)
                  throws java.lang.Exception
권한 체크

Parameters:
request -
response -
ssoKey -
resouceName -
resouceValue -
Returns:
Throws:
java.lang.Exception

openApiAuthKeyValidate

public java.lang.String openApiAuthKeyValidate(java.lang.String authApiKey,
                                               org.springframework.ui.ModelMap model)
                                        throws java.lang.Exception
인증키 검사

Parameters:
authApiKey -
model -
Returns:
Throws:
java.lang.Exception

onlineFilterData

public java.lang.String onlineFilterData(BoardEtcVO boardEtcVO,
                                         BoardDataVO boardDataVO,
                                         CommentVO commentVO,
                                         javax.servlet.http.HttpServletRequest request)
                                  throws java.lang.Exception
각 정보별 플래그에 따른 필터링 처리

Parameters:
boardEtcVO -
boardDataVO -
rootPath -
uploadPath -
command -
Returns:
Throws:
java.lang.Exception

boardCleanerFilter

public java.lang.String boardCleanerFilter(BoardVO boardVO,
                                           BoardEtcVO boardEtcVO,
                                           BoardDataVO boardDataVO,
                                           CommentVO commentVO,
                                           java.lang.String filterIdx,
                                           java.lang.String rootPath,
                                           java.lang.String uploadPath,
                                           java.lang.String command,
                                           java.util.List<BoardFileVO> boardFileVOList,
                                           javax.servlet.http.HttpServletRequest request)
                                    throws java.lang.Exception
Data 보드클리너 필터

Parameters:
게시물 - Data
Returns:
String 필터링 정보
Throws:
java.lang.Exception

filterData

public java.lang.String filterData(BoardEtcVO boardEtcVO,
                                   BoardDataVO boardDataVO,
                                   CommentVO commentVO,
                                   java.lang.String command,
                                   java.util.List<BoardFileVO> boardFileVOList,
                                   javax.servlet.http.HttpServletRequest request)
                            throws java.lang.Exception
각 정보별 플래그에 따른 필터링 처리

Parameters:
boardEtcVO -
boardDataVO -
rootPath -
uploadPath -
command -
Returns:
Throws:
java.lang.Exception

insertDataFile

public void insertDataFile(BoardDataVO boardDataVO,
                           java.util.List<BoardFileVO> boardFileVOList,
                           BoardEtcVO boardEtcVO)
                    throws java.lang.Exception
첨부파일 DB 정보를 INSERT하면서 이미지 파일인 경우 썸네일을 생성한다.

Parameters:
boardDataVO -
boardFileVOList -
Throws:
java.lang.Exception

getDecoderCheck

public static boolean getDecoderCheck(java.lang.String filename)
Parameters:
filename -
Returns:

showException

@ExceptionHandler(value=java.lang.Exception.class)
public org.springframework.web.servlet.ModelAndView showException(java.lang.Exception ex)
해당 controller 안에서 전역 에러 처리

Returns: