검색엔진 연동관련 소스 반입하여 추가
This commit is contained in:
parent
cd5f598fff
commit
966bfcadb2
27
pom.xml
27
pom.xml
@ -83,6 +83,11 @@
|
||||
<artifactId>egovframework.rte.fdl.property</artifactId>
|
||||
<version>${egovframework.rte.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>egovframework.rte</groupId>
|
||||
<artifactId>egovframework.rte.fdl.security</artifactId>
|
||||
<version>${egovframework.rte.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
@ -120,6 +125,22 @@
|
||||
<artifactId>egovframework.rte.fdl.crypto</artifactId>
|
||||
<version>${egovframework.rte.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi</artifactId>
|
||||
<version>5.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-ooxml</artifactId>
|
||||
<version>3.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-httpclient</groupId>
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<version>3.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- fileupload -->
|
||||
<dependency>
|
||||
@ -263,7 +284,11 @@
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.8.7</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20201115</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
207
src/main/java/cmm/Constant.java
Normal file
207
src/main/java/cmm/Constant.java
Normal file
@ -0,0 +1,207 @@
|
||||
package cmm;
|
||||
|
||||
|
||||
/**
|
||||
* 상수 정의
|
||||
* @author Kdmistrator
|
||||
*
|
||||
*/
|
||||
public class Constant {
|
||||
public static final String ENCODING_UTF8 = "UTF-8";
|
||||
//public static final String NAVER_API_CLIENT_ID = "8eXEekRgHTb5SgAJNqOT"; // server//사용하지 말것
|
||||
//public static final String NAVER_API_CLIENT_ID = "E2NR9PXuVJf6GHnnaGrs"; // local //사용하지 말것
|
||||
//public static final String GOOGLE_API_KEY = "AIzaSyBs9SeIzKKCM392GpdqxORkHDItauzm7WA"; // 사용하지 말것
|
||||
|
||||
// FCM Server key
|
||||
public static final String FCM_SERVER_SEND_URL = "https://fcm.googleapis.com/fcm/send";
|
||||
public static final String FCM_SERVER_KEY = "AAAAYRjFhhA:APA91bHcWX8Uan5cc1MuXGvwPQdgcmmRwiuYlO_-FA_o-ysoHBvFlwiGUqApNIWCUbsbSTGbKwEVKqPu8WZV5GH7nbVjo5wWXtXyUzn9PfRdEjEsuhK_XhdLEJ5rH714pnBeu-KNgUxm";
|
||||
public static final String FCM_SEND_YN = "N";
|
||||
|
||||
// kccf home key
|
||||
public static final String KCCF_HOME_KEY = "kccf.home";
|
||||
|
||||
// com/context-properties.xml 의 ams 서버관련 키값
|
||||
public static final String AMS_SERVER_KEY = "ams.server";
|
||||
public static final String AMS_FILE_PATH_KEY = "ams.file.url.path";
|
||||
public static final String AMS_ASSETS_PATH_KEY = "ams.assets.url.path";
|
||||
public static final String AMS_THUMBNAIL_PATH_KEY = "ams.thumbnail.url.path";
|
||||
public static final String NFS_DOC_KEY = "ams.doc.path";
|
||||
|
||||
// upload 경로
|
||||
public static final String UPLOAD_HOME_KEY = "file.upload.home"; // 서버경로 (upload폴더 상위경로) : 로컬 개발시 upload 파일이 로컬에 존재하지 않을 경우 사용
|
||||
|
||||
//pdfview
|
||||
public static final String PDF_VIEW_KEY = "pdf.view.path";
|
||||
|
||||
// com/context-properties.xml 의 nas 서버관련 키값
|
||||
public static final String NFS_NAS_KEY = "ams.nas.path";
|
||||
|
||||
// 나클립스 동영상 플레이어 주소
|
||||
public static final String MEDIA_PLAYER_KEY = "naclips.server";
|
||||
public static final String MEDIA_PLAYER_VOD_KEY = "naclips.vod.path";
|
||||
public static final String MEDIA_PLAYER_AUDIO_KEY = "naclips.audio.path";
|
||||
|
||||
public static final String [] AREA_CODE_ARRAY = {"02", "051", "053", "032", "062", "042", "052", "044" , "031" , "033" , "043" , "041" , "063", "061" , "054" , "055" , "064" , "070", "0505"};
|
||||
public static final String [] MOBILE_CODE_ARRAY = {"010", "011", "016", "017", "018", "019"};
|
||||
|
||||
public static final String [] DF_SIDO_CODE_ARRAY = {"11","26","27","28","29","30","31","41","42","43","44","45","46","47","48","49"};
|
||||
public static final String [] DF_SIDO_NAME_ARRAY = {"서울","부산","대구","인천","광주","대전","울산","경기","강원","충북","충남","전북","전남","경북","경남","제주"};
|
||||
|
||||
public static final String [] AIS_SIDO_NAME_ARRAY = {"서울","부산","대구","인천","광주","대전","울산","경기","강원","충북","충남","전북","전남","경북","경남","제주","세종","북한","전국"};
|
||||
public static final String [] AIS_SIDO_PARAM_NAME_ARRAY = {"서울특별시","부산광역시","대구광역시","인천광역시","광주광역시","대전광역시","울산광역시","경기도","강원도","충청북도","충청남도","전라북도","전라남도","경상북도","경상남도","제주특별자치도","세종특별자치시","북한","전국"};
|
||||
|
||||
public static final String [] SIDO_NAME_ARRAY = {"서울특별시","부산광역시","대구광역시","인천광역시","광주광역시","대전광역시","울산광역시","경기도","강원도","충청북도","충청남도","전라북도","전라남도","경상북도","경상남도","세종특별자치시","제주특별자치도"};
|
||||
|
||||
public static final String [] DF_DISS_CODE_ARRAY = {"1","2","3","4","5"};
|
||||
public static final String [] DF_DISS_NAME_ARRAY = {"감기","눈병","식중독","천식","피부병"};
|
||||
|
||||
public static final String [] FCST_TIME_ARRAY = {"03","06","09","12","15","18","21","00"};
|
||||
public static final String [][] FCST_TIME_MAPPING_ARRAY = {{"01","02","03"}, {"04","05","06"},{"07","08","09"},{"10","11","12"},{"13","14","15"},{"16","17","18"},{"19","20","21"},{"22","23","00"}};
|
||||
|
||||
public static final String [] GIA_COTENT_TYPE_ID_ARRAY = {"12","14","15","25","28","32","38","39"};
|
||||
public static final String [] GIA_COTENT_TYPE_NAME_ARRAY = {"관광지","문화시설","축제/공연/행사","여행코스","레포츠","숙박","쇼핑","음식"};
|
||||
// 축제/공연/행사 -> 공연ㆍ행사
|
||||
|
||||
public static final String [] DF_COUNCIL_CODE_ARRAY = {"GW","GG","GB","GN","GJ","DG","DJ","BU","SU","SJ","US","IC","JB","JN","JJ","CB","CN"};
|
||||
public static final String [] AMS_ASSET_TYPE_ARRAY = {"이미지","동영상","오디오","문서","링크"};
|
||||
public static final String [] AMS_CATEGORY_ARRAY = {"A","B","C","D","E","F","G","H","I"};
|
||||
|
||||
public static final String USE_AT_Y = "Y";
|
||||
public static final String USE_AT_N = "N";
|
||||
|
||||
public static final String CMS_SERIES_DEFAULT = "마을신앙";
|
||||
|
||||
public static final String QNA_ANSW_N = "답변대기";
|
||||
public static final String QNA_ANSW_Y = "답변완료";
|
||||
public static final String QNA_PROC_P = "2";
|
||||
public static final String QNA_PROC_C = "3";
|
||||
|
||||
public static final String VIEW_TYPE_L = "L"; //목록
|
||||
public static final String VIEW_TYPE_D = "D"; //상세
|
||||
|
||||
|
||||
public static final String LOGIN_HIS_TYPE_I = "I";
|
||||
public static final String LOGIN_HIS_TYPE_O = "O";
|
||||
|
||||
public static final String CODE_ID_COM004 = "COM004"; // 게시판
|
||||
public static final String CODE_ID_COM013 = "COM013"; // 회원상태
|
||||
public static final String CODE_ID_COM034 = "COM034"; // 이용자
|
||||
public static final String CODE_ID_FMS004 = "FMS004"; // 테마
|
||||
public static final String CODE_ID_FMS005 = "FMS005"; // 시리즈
|
||||
public static final String CODE_ID_FMS006 = "FMS006"; // 시대
|
||||
public static final String CODE_ID_FMS007 = "FMS007"; // 자료유형
|
||||
public static final String CODE_ID_FMS008 = "FMS008"; // 콘텐츠유형
|
||||
public static final String CODE_ID_FMS009 = "FMS009"; // 지역
|
||||
public static final String CODE_ID_FMS012 = "FMS012"; // 자료유형(대분류)
|
||||
public static final String CODE_ID_FMS013 = "FMS013"; // 자료유형(중분류)
|
||||
public static final String CODE_ID_FMS014 = "FMS014"; // 주제분야(대주제)
|
||||
public static final String CODE_ID_FMS015 = "FMS015"; // 주제분야(중주제)
|
||||
public static final String CODE_ID_FMS016 = "FMS016"; // 지역문화정보
|
||||
public static final String CODE_ID_FMS017 = "FMS017"; // 배너위치
|
||||
public static final String CODE_ID_FMS018 = "FMS018"; // 문화원 지역
|
||||
public static final String CODE_ID_FMS019 = "FMS019"; // 지역문화 PICK(자산유형)
|
||||
public static final String CODE_ID_FMS020 = "FMS020"; // 로고위치
|
||||
|
||||
public static final String [] ASSETS_CLASS_ARRAY = {"기획","일반","특화","기타"}; //콘텐츠유형
|
||||
public static final String [] ASSETS_CLASS_ARRAY_PICK = {"일반","특화"}; // 지역문화Pick 콘텐츠유형
|
||||
public static final String [] ASSETS_TYPE_ARRAY_PICK = {"문서", "이미지", "동영상", "오디오", "링크"}; // 지역문화Pick 자산유형 ("웹툰" 제외)
|
||||
public static final String [] ASSETS_TYPE_ARRAY_PICK_ALL = {"문서", "이미지", "동영상", "오디오", "링크", "웹툰"};
|
||||
|
||||
public static final String RES_SEARCHTYPE = "문화원소장"; // 소장자료 검색조건
|
||||
|
||||
public static final String CODE_ID_COM013_P = "P"; // 회원 가입승인상태
|
||||
public static final String CODE_ID_COM013_D = "D"; // 회원삭제 상태
|
||||
|
||||
public static final String CODE_ID_FMS017_M01 = "M01"; // 배너위치 메인
|
||||
public static final String CODE_ID_FMS017_M02 = "M02"; // 배너위치 PICK
|
||||
public static final String CODE_ID_FMS017_M99 = "M99"; // 배너위치 문화원
|
||||
|
||||
public static final int BBS_ID_NOTICE_MAIN_VIEW = 3;
|
||||
public static final int BBS_ID_QNA_MAIN_VIEW = 4;
|
||||
public static final int BBS_ID_CUL_MAIN_VIEW = 2;
|
||||
|
||||
public static final String BASE_DISTANCE = "10";
|
||||
|
||||
public static final int CMM_CONTENTS_LIMIT_CNT = 6; // 지역문화Pick 목록 이미지 개수 변경 (2019.10.02)
|
||||
public static final int CMM_TAGS_LIMIT_CNT = 9;
|
||||
public static final int CMM_CONTENTS_SMALL_LIMIT_CNT = 2;
|
||||
|
||||
public static final String RECOMMEND_YN_Y = "Y";
|
||||
public static final String RECOMMEND_YN_N = "N";
|
||||
|
||||
public static final String HAVE_DETAIL_CONDITION_Y = "Y";
|
||||
public static final String HAVE_DETAIL_CONDITION_N = "N";
|
||||
|
||||
public static final String SEARCH_TYPE_1 = "1";
|
||||
public static final String SEARCH_TYPE_2 = "2";
|
||||
|
||||
public static final String BBS_TOP_YN_Y = "Y";
|
||||
public static final int BBS_TOP_CNT = 4;
|
||||
|
||||
public static final String PMS_CONT_TYPE_G = "EXT_GIA_INFO"; // 한국관광공사
|
||||
public static final String PMS_CONT_TYPE_C = "CMM_COUNCIL_INFO"; // 문화원
|
||||
|
||||
public static final String CONTENT_TYPE_A = "A"; // 지역문화 PICK
|
||||
public static final String CONTENT_TYPE_B = "B"; // BBS
|
||||
public static final String CONTENT_TYPE_C = "C"; // 지역문화이야기
|
||||
public static final String CONTENT_TYPE_G = "G"; // 지역문화체험 -한국관광공사 api
|
||||
public static final String CONTENT_TYPE_I = "I"; // 문화원
|
||||
public static final String CONTENT_TYPE_P = "P"; // 지역문화포스트
|
||||
public static final String CONTENT_TYPE_T = "T"; // 지역문화툰
|
||||
|
||||
public static final String ACTIVITY_TYPE_B = "B"; // 스크랩
|
||||
public static final String ACTIVITY_TYPE_O = "O"; // 최근열람
|
||||
|
||||
public static final String[] M_TYPE_ARRAY = {"이미지","동영상","오디오","링크"};
|
||||
public static final String M_TYPE_I = "I"; // 이미지
|
||||
public static final String M_TYPE_V = "V"; // 비디오(동영상)
|
||||
public static final String M_TYPE_A = "A"; // 오디오
|
||||
|
||||
// 사용 구분
|
||||
public static final String UA_TYPE_W = "W"; // 웹
|
||||
public static final String UA_TYPE_M = "M"; // 모바일웹
|
||||
public static final String UA_TYPE_A = "A"; // 앱
|
||||
public static final String UA_TYPE_R = "R"; // RIS
|
||||
|
||||
|
||||
public static final String BBS_ID_NOTICE = "BBSMSTR_000000000001"; // 공지사항
|
||||
public static final String BBS_ID_FAQ = "BBSMSTR_000000000002"; // FAQ
|
||||
public static final String BBS_ID_CUL = "BBSMSTR_000000000003"; // 문화원소식
|
||||
public static final String BBS_ID_OUR = "BBSMSTR_000000000004"; // 우리문화
|
||||
|
||||
public static final String [] BBS_ID_ARRAY = {BBS_ID_NOTICE,BBS_ID_FAQ,BBS_ID_CUL,BBS_ID_OUR};
|
||||
public static final String [] BBS_NAME_ARRAY = {"공지사항","FAQ","문화원소식","우리문화"};
|
||||
|
||||
public static final String [] BBS_MAIN_CUL_TYPE_ARRAY1 = {"공지","뉴스"};
|
||||
public static final String [] BBS_MAIN_CUL_TYPE_ARRAY2 = {"행사","축제"};
|
||||
|
||||
public static final String AUTH_GROUP_DEFAULT_ID = "GROUP_00000000000000";
|
||||
public static final String AUTH_ORGNZT_DEFAULT_ID = "ORGNZT_0000000000000";
|
||||
|
||||
public static final String AUTH_ROLE_ANONYMOUS = "ROLE_ANONYMOUS";
|
||||
public static final String AUTH_ROLE_KDM = "ROLE_KDM";
|
||||
public static final String AUTH_ROLE_KDM_URL = "/kdm/usr/kdmMgrList.do";
|
||||
public static final String AUTH_ROLE_SYM = "ROLE_SYM";
|
||||
public static final String AUTH_ROLE_SYM_URL = "/kdm/usr/kdmMgrList.do";
|
||||
|
||||
public static final String[] INTERCEPTOR_PASS_PATH_ARRAY = {"kdm"};
|
||||
|
||||
public static final String ANDROID = "android";
|
||||
public static final String IOS = "ios";
|
||||
public static final String PREFIX_M = "/m";
|
||||
|
||||
public static final String SCHEDULER_EXT_DF_INFO = "건강질병관리";
|
||||
public static final String SCHEDULER_EXT_FD_INFO = "문화정보";
|
||||
public static final String SCHEDULER_EXT_GIA_INFO = "관광정보";
|
||||
public static final String SCHEDULER_MAIN_A_INFO = "메인 지역문화PICK";
|
||||
public static final String SCHEDULER_MAIN_C_INFO = "메인 지역문화이야기";
|
||||
public static final String SCHEDULER_MAIN_G_INFO = "메인 지역문화정보";
|
||||
public static final String SCHEDULER_MAIN_P_INFO = "메인 지역문화포스트";
|
||||
public static final String SCHEDULER_MEDIA_HST_INFO = "월별 지방문화원 인기자료";
|
||||
|
||||
public static final String [] SCHEDULER_NAME_ARRAY = {SCHEDULER_EXT_DF_INFO,SCHEDULER_EXT_FD_INFO,SCHEDULER_EXT_GIA_INFO};
|
||||
|
||||
public static enum META_OG_TYPE { website, article };
|
||||
|
||||
public static final String [] NCULTURE_URL_ARRAY = {"www","www1","www2","cms","cms1","cms2","ams","ams1","ams2","vod","vod1","vod2","api","api1","api2","app","app1","app2","vr","cms-dev","ams-dev","kccf-jira","kccf-wiki","kccf-ci","cloud","kccf2019","doc","webzine","docs","minio","minio-dev","port-dev","app-dev","api-dev","vod-dev","newcms","ncms","ncms-dev","ncms-test","newcms-dev","ams-test","ci","local"};
|
||||
}
|
||||
203
src/main/java/cmm/service/CmmActivityHstVO.java
Normal file
203
src/main/java/cmm/service/CmmActivityHstVO.java
Normal file
@ -0,0 +1,203 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmActivityHstVO extends CmmVO {
|
||||
|
||||
private int Id;
|
||||
private String jsessionId;
|
||||
private int contentId;
|
||||
private String contentType;
|
||||
private String linkUrl;
|
||||
private String mainImg = "";
|
||||
private String title = "";
|
||||
private String summary = "";
|
||||
private String theme = "";
|
||||
private String series = "";
|
||||
private String firstTopic = "";
|
||||
private String secondTopic = "";
|
||||
private String firstClass = "";
|
||||
private String secondClass = "";
|
||||
private String firstCategory = "";
|
||||
private String secondCategory = "";
|
||||
private String sidoName = "";
|
||||
private String sigunguName = "";
|
||||
private String couName = "";
|
||||
private String groupName = "";
|
||||
private String tags = "";
|
||||
private Date createDt;
|
||||
private String useAt = "";
|
||||
private String uaType = "";
|
||||
private String copyright = "";
|
||||
private String zipCode = "";
|
||||
private String tel = "";
|
||||
public int getId() {
|
||||
return Id;
|
||||
}
|
||||
public void setId(int id) {
|
||||
Id = id;
|
||||
}
|
||||
public String getJsessionId() {
|
||||
return jsessionId;
|
||||
}
|
||||
public void setJsessionId(String jsessionId) {
|
||||
this.jsessionId = jsessionId;
|
||||
}
|
||||
public int getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(int contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
public String getLinkUrl() {
|
||||
return linkUrl;
|
||||
}
|
||||
public void setLinkUrl(String linkUrl) {
|
||||
this.linkUrl = linkUrl;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
public String getSeries() {
|
||||
return series;
|
||||
}
|
||||
public void setSeries(String series) {
|
||||
this.series = series;
|
||||
}
|
||||
public String getFirstTopic() {
|
||||
return firstTopic;
|
||||
}
|
||||
public void setFirstTopic(String firstTopic) {
|
||||
this.firstTopic = firstTopic;
|
||||
}
|
||||
public String getSecondTopic() {
|
||||
return secondTopic;
|
||||
}
|
||||
public void setSecondTopic(String secondTopic) {
|
||||
this.secondTopic = secondTopic;
|
||||
}
|
||||
public String getFirstClass() {
|
||||
return firstClass;
|
||||
}
|
||||
public void setFirstClass(String firstClass) {
|
||||
this.firstClass = firstClass;
|
||||
}
|
||||
public String getSecondClass() {
|
||||
return secondClass;
|
||||
}
|
||||
public void setSecondClass(String secondClass) {
|
||||
this.secondClass = secondClass;
|
||||
}
|
||||
public String getFirstCategory() {
|
||||
return firstCategory;
|
||||
}
|
||||
public void setFirstCategory(String firstCategory) {
|
||||
this.firstCategory = firstCategory;
|
||||
}
|
||||
public String getSecondCategory() {
|
||||
return secondCategory;
|
||||
}
|
||||
public void setSecondCategory(String secondCategory) {
|
||||
this.secondCategory = secondCategory;
|
||||
}
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String getGroupName() {
|
||||
return groupName;
|
||||
}
|
||||
public void setGroupName(String groupName) {
|
||||
this.groupName = groupName;
|
||||
}
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
public Date getCreateDt() {
|
||||
return createDt;
|
||||
}
|
||||
public void setCreateDt(Date createDt) {
|
||||
this.createDt = createDt;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getUaType() {
|
||||
return uaType;
|
||||
}
|
||||
public void setUaType(String uaType) {
|
||||
this.uaType = uaType;
|
||||
}
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
public String getZipCode() {
|
||||
return zipCode;
|
||||
}
|
||||
public void setZipCode(String zipCode) {
|
||||
this.zipCode = zipCode;
|
||||
}
|
||||
public String getTel() {
|
||||
return tel;
|
||||
}
|
||||
public void setTel(String tel) {
|
||||
this.tel = tel;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
35
src/main/java/cmm/service/CmmAmsAssetCouncilVO.java
Normal file
35
src/main/java/cmm/service/CmmAmsAssetCouncilVO.java
Normal file
@ -0,0 +1,35 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmAmsAssetCouncilVO extends CmmVO {
|
||||
|
||||
private String id = null;
|
||||
private String mediaId = null;
|
||||
private String couName = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
46
src/main/java/cmm/service/CmmAmsAssetKeywordsVO.java
Normal file
46
src/main/java/cmm/service/CmmAmsAssetKeywordsVO.java
Normal file
@ -0,0 +1,46 @@
|
||||
package cmm.service;
|
||||
|
||||
|
||||
public class CmmAmsAssetKeywordsVO{
|
||||
|
||||
private String id = null;
|
||||
private String dataType ="";
|
||||
private String refId = "";
|
||||
private String keyName = "";
|
||||
|
||||
private String mediaId = null;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
public String getRefId() {
|
||||
return refId;
|
||||
}
|
||||
public void setRefId(String refId) {
|
||||
this.refId = refId;
|
||||
}
|
||||
public String getKeyName() {
|
||||
return keyName;
|
||||
}
|
||||
public void setKeyName(String keyName) {
|
||||
this.keyName = keyName;
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
82
src/main/java/cmm/service/CmmAmsAssetMediaOcrVO.java
Normal file
82
src/main/java/cmm/service/CmmAmsAssetMediaOcrVO.java
Normal file
@ -0,0 +1,82 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
/**
|
||||
* @Class Name : CmmAmsAssetMediaOcrVO.java
|
||||
* @author ecplaza
|
||||
* @since 2019-10-14
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmAmsAssetMediaOcrVO extends CmmVO {
|
||||
|
||||
private String id="";
|
||||
private String mediaId = "";
|
||||
private String firstPageNum="";
|
||||
private String lastPageNum="";
|
||||
private String orderNum="";
|
||||
private String fileName="";
|
||||
private String ocrText="";
|
||||
private String createdAt = "";
|
||||
private String updatedAt = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
public String getFirstPageNum() {
|
||||
return firstPageNum;
|
||||
}
|
||||
public void setFirstPageNum(String firstPageNum) {
|
||||
this.firstPageNum = firstPageNum;
|
||||
}
|
||||
public String getLastPageNum() {
|
||||
return lastPageNum;
|
||||
}
|
||||
public void setLastPageNum(String lastPageNum) {
|
||||
this.lastPageNum = lastPageNum;
|
||||
}
|
||||
public String getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
public void setOrderNum(String orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
public String getOcrText() {
|
||||
return ocrText;
|
||||
}
|
||||
public void setOcrText(String ocrText) {
|
||||
this.ocrText = ocrText;
|
||||
}
|
||||
public String getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(String createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
public String getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
public void setUpdatedAt(String updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
}
|
||||
811
src/main/java/cmm/service/CmmAmsAssetMediaVO.java
Normal file
811
src/main/java/cmm/service/CmmAmsAssetMediaVO.java
Normal file
@ -0,0 +1,811 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
/**
|
||||
* @Class Name : CmmAmsAssetMediaVO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-05-11O
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmAmsAssetMediaVO extends CmmVO {
|
||||
|
||||
private String id = "";
|
||||
private String assetId = "";
|
||||
private String interfaceId = "";
|
||||
private String mgntNo = "";
|
||||
private String assetType = "";
|
||||
private String title = "";
|
||||
private String firstClass = "";
|
||||
private String secondClass = "";
|
||||
private String firstClassNm = "";
|
||||
private String secondClassNm = "";
|
||||
private String subtitle = "";
|
||||
private String mainImg = "";
|
||||
private String mainImg2 = "";
|
||||
private String summary = "";
|
||||
private String addition = "";
|
||||
private String orignlFileName = "";
|
||||
private String streFileName = "";
|
||||
private String fileSize = "";
|
||||
private String width = "";
|
||||
private String height = "";
|
||||
private String imgAlt = "";
|
||||
private String mediaType = "";
|
||||
private String playerAt = "";
|
||||
private String playTime = "";
|
||||
private String volume = "";
|
||||
private String totalPage = "";
|
||||
private String isbn = "";
|
||||
private String linkData = "";
|
||||
private String websiteName = "";
|
||||
private String linkUseAt = "";
|
||||
private String makingDate = "";
|
||||
private String filmingLocation = "";
|
||||
private String subtitleAt = "";
|
||||
private String subtitleOrgFileName = "";
|
||||
private String subtitleStreFileName = "";
|
||||
private String subtitleDesc = "";
|
||||
private String publisher = "";
|
||||
private String genyear = "";
|
||||
private String author = "";
|
||||
private String provider = "";
|
||||
private String sourceAt = "";
|
||||
private String source = "";
|
||||
private String copyright = "";
|
||||
private String retentionPeriod = "";
|
||||
private String copyrightMgntDepart = "";
|
||||
private String thirdCopyright = "";
|
||||
private String cclType = "";
|
||||
private String orgOpenAt = "";
|
||||
private Date createdAt = null;
|
||||
private Date updatedAt = null;
|
||||
private Date deletedAt = null;
|
||||
private String useAt = "";
|
||||
private String remarksDesc = "";
|
||||
private String recommendYn = "";
|
||||
private String sidoName = "";
|
||||
private String sigunguName = "";
|
||||
|
||||
private String mediaId = "";
|
||||
private String assetClass = "";
|
||||
private String firstCategoryNm = "";
|
||||
private String secondCategoryNm = "";
|
||||
private String couName = "";
|
||||
private String keyName = "";
|
||||
private String tags = "";
|
||||
private String tagsName = "";
|
||||
private String trsAge = "";
|
||||
private String age = "";
|
||||
private String chronologicalStart = "";
|
||||
private String chronologicalEnd = "";
|
||||
private String firstCategory = "";
|
||||
private String secondCategory = "";
|
||||
private String theme = "";
|
||||
private String series = "";
|
||||
private String sojangCouncil = "";
|
||||
private String sojangCouncilNm = "";
|
||||
private String sojangCouncilNmTot = "";
|
||||
private String sojangLocation = "";
|
||||
private String linkNm = "";
|
||||
|
||||
private String assetTypeNm = "";
|
||||
private String groupId = "";
|
||||
private String groupName = "";
|
||||
private String mcnt = "";
|
||||
private String ocrSplitNum = "";
|
||||
private List<CmmAmsAssetMediaOcrVO> ocrList = null;
|
||||
private String tableOfContents = "";
|
||||
private List<CmmAmsDocTableOfContentsVO> tableOfContentsList = null;
|
||||
private String contentId = "";
|
||||
private String linkUrl = "";
|
||||
private String orderIdx = "";
|
||||
|
||||
List<CmmCmsVO> sidoList = null;
|
||||
List<String> contentIdList;
|
||||
private String [] codeIdList;
|
||||
private String [] assetTypeList;
|
||||
//private String [] userGroupList;
|
||||
//private String [] ageList;
|
||||
//private String [] assetClassList;
|
||||
private String [] councilList;
|
||||
private String [] categoryList;
|
||||
private String [] classList;
|
||||
private String [] assetClassArray;
|
||||
private String [] pickAssetTypeArray;
|
||||
private String reSearch;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getAssetId() {
|
||||
return assetId;
|
||||
}
|
||||
public void setAssetId(String assetId) {
|
||||
this.assetId = assetId;
|
||||
}
|
||||
public String getInterfaceId() {
|
||||
return interfaceId;
|
||||
}
|
||||
public void setInterfaceId(String interfaceId) {
|
||||
this.interfaceId = interfaceId;
|
||||
}
|
||||
public String getAssetType() {
|
||||
return assetType;
|
||||
}
|
||||
public void setAssetType(String assetType) {
|
||||
this.assetType = assetType;
|
||||
}
|
||||
|
||||
public String getMgntNo() {
|
||||
return mgntNo;
|
||||
}
|
||||
public void setMgntNo(String mgntNo) {
|
||||
this.mgntNo = mgntNo;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getFirstClass() {
|
||||
return firstClass;
|
||||
}
|
||||
public void setFirstClass(String firstClass) {
|
||||
this.firstClass = firstClass;
|
||||
}
|
||||
public String getSecondClass() {
|
||||
return secondClass;
|
||||
}
|
||||
public void setSecondClass(String secondClass) {
|
||||
this.secondClass = secondClass;
|
||||
}
|
||||
public String getFirstClassNm() {
|
||||
return firstClassNm;
|
||||
}
|
||||
public void setFirstClassNm(String firstClassNm) {
|
||||
this.firstClassNm = firstClassNm;
|
||||
}
|
||||
public String getSecondClassNm() {
|
||||
return secondClassNm;
|
||||
}
|
||||
public void setSecondClassNm(String secondClassNm) {
|
||||
this.secondClassNm = secondClassNm;
|
||||
}
|
||||
public String getSubtitle() {
|
||||
return subtitle;
|
||||
}
|
||||
public void setSubtitle(String subtitle) {
|
||||
this.subtitle = subtitle;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getMainImg2() {
|
||||
return mainImg2;
|
||||
}
|
||||
public void setMainImg2(String mainImg2) {
|
||||
this.mainImg2 = mainImg2;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getAddition() {
|
||||
return addition;
|
||||
}
|
||||
public void setAddition(String addition) {
|
||||
this.addition = addition;
|
||||
}
|
||||
public String getOrignlFileName() {
|
||||
return orignlFileName;
|
||||
}
|
||||
public void setOrignlFileName(String orignlFileName) {
|
||||
this.orignlFileName = orignlFileName;
|
||||
}
|
||||
public String getStreFileName() {
|
||||
return streFileName;
|
||||
}
|
||||
public void setStreFileName(String streFileName) {
|
||||
this.streFileName = streFileName;
|
||||
}
|
||||
public String getFileSize() {
|
||||
return fileSize;
|
||||
}
|
||||
public void setFileSize(String fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
}
|
||||
public String getWidth() {
|
||||
return width;
|
||||
}
|
||||
public void setWidth(String width) {
|
||||
this.width = width;
|
||||
}
|
||||
public String getHeight() {
|
||||
return height;
|
||||
}
|
||||
public void setHeight(String height) {
|
||||
this.height = height;
|
||||
}
|
||||
public String getImgAlt() {
|
||||
return imgAlt;
|
||||
}
|
||||
public void setImgAlt(String imgAlt) {
|
||||
this.imgAlt = imgAlt;
|
||||
}
|
||||
public String getMediaType() {
|
||||
return mediaType;
|
||||
}
|
||||
public void setMediaType(String mediaType) {
|
||||
this.mediaType = mediaType;
|
||||
}
|
||||
public String getPlayerAt() {
|
||||
return playerAt;
|
||||
}
|
||||
public void setPlayerAt(String playerAt) {
|
||||
this.playerAt = playerAt;
|
||||
}
|
||||
public String getPlayTime() {
|
||||
return playTime;
|
||||
}
|
||||
public void setPlayTime(String playTime) {
|
||||
this.playTime = playTime;
|
||||
}
|
||||
public String getVolume() {
|
||||
return volume;
|
||||
}
|
||||
public void setVolume(String volume) {
|
||||
this.volume = volume;
|
||||
}
|
||||
public String getTotalPage() {
|
||||
return totalPage;
|
||||
}
|
||||
public void setTotalPage(String totalPage) {
|
||||
this.totalPage = totalPage;
|
||||
}
|
||||
public String getIsbn() {
|
||||
return isbn;
|
||||
}
|
||||
public void setIsbn(String isbn) {
|
||||
this.isbn = isbn;
|
||||
}
|
||||
public String getLinkData() {
|
||||
return linkData;
|
||||
}
|
||||
public void setLinkData(String linkData) {
|
||||
this.linkData = linkData;
|
||||
}
|
||||
public String getWebsiteName() {
|
||||
return websiteName;
|
||||
}
|
||||
public void setWebsiteName(String websiteName) {
|
||||
this.websiteName = websiteName;
|
||||
}
|
||||
public String getLinkUseAt() {
|
||||
return linkUseAt;
|
||||
}
|
||||
public void setLinkUseAt(String linkUseAt) {
|
||||
this.linkUseAt = linkUseAt;
|
||||
}
|
||||
public String getMakingDate() {
|
||||
return makingDate;
|
||||
}
|
||||
public void setMakingDate(String makingDate) {
|
||||
this.makingDate = makingDate;
|
||||
}
|
||||
public String getFilmingLocation() {
|
||||
return filmingLocation;
|
||||
}
|
||||
public void setFilmingLocation(String filmingLocation) {
|
||||
this.filmingLocation = filmingLocation;
|
||||
}
|
||||
public String getSubtitleAt() {
|
||||
return subtitleAt;
|
||||
}
|
||||
public void setSubtitleAt(String subtitleAt) {
|
||||
this.subtitleAt = subtitleAt;
|
||||
}
|
||||
public String getSubtitleOrgFileName() {
|
||||
return subtitleOrgFileName;
|
||||
}
|
||||
public void setSubtitleOrgFileName(String subtitleOrgFileName) {
|
||||
this.subtitleOrgFileName = subtitleOrgFileName;
|
||||
}
|
||||
public String getSubtitleStreFileName() {
|
||||
return subtitleStreFileName;
|
||||
}
|
||||
public void setSubtitleStreFileName(String subtitleStreFileName) {
|
||||
this.subtitleStreFileName = subtitleStreFileName;
|
||||
}
|
||||
public String getSubtitleDesc() {
|
||||
return subtitleDesc;
|
||||
}
|
||||
public void setSubtitleDesc(String subtitleDesc) {
|
||||
this.subtitleDesc = subtitleDesc;
|
||||
}
|
||||
public String getPublisher() {
|
||||
return publisher;
|
||||
}
|
||||
public void setPublisher(String publisher) {
|
||||
this.publisher = publisher;
|
||||
}
|
||||
public String getGenyear() {
|
||||
return genyear;
|
||||
}
|
||||
public void setGenyear(String genyear) {
|
||||
this.genyear = genyear;
|
||||
}
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
public String getProvider() {
|
||||
return provider;
|
||||
}
|
||||
public void setProvider(String provider) {
|
||||
this.provider = provider;
|
||||
}
|
||||
public String getSourceAt() {
|
||||
return sourceAt;
|
||||
}
|
||||
public void setSourceAt(String sourceAt) {
|
||||
this.sourceAt = sourceAt;
|
||||
}
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
public String getRetentionPeriod() {
|
||||
return retentionPeriod;
|
||||
}
|
||||
public void setRetentionPeriod(String retentionPeriod) {
|
||||
this.retentionPeriod = retentionPeriod;
|
||||
}
|
||||
public String getCopyrightMgntDepart() {
|
||||
return copyrightMgntDepart;
|
||||
}
|
||||
public void setCopyrightMgntDepart(String copyrightMgntDepart) {
|
||||
this.copyrightMgntDepart = copyrightMgntDepart;
|
||||
}
|
||||
public String getThirdCopyright() {
|
||||
return thirdCopyright;
|
||||
}
|
||||
public void setThirdCopyright(String thirdCopyright) {
|
||||
this.thirdCopyright = thirdCopyright;
|
||||
}
|
||||
public String getCclType() {
|
||||
return cclType;
|
||||
}
|
||||
public void setCclType(String cclType) {
|
||||
this.cclType = cclType;
|
||||
}
|
||||
public String getOrgOpenAt() {
|
||||
return orgOpenAt;
|
||||
}
|
||||
public void setOrgOpenAt(String orgOpenAt) {
|
||||
this.orgOpenAt = orgOpenAt;
|
||||
}
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
public Date getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
public void setDeletedAt(Date deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getRemarksDesc() {
|
||||
return remarksDesc;
|
||||
}
|
||||
public void setRemarksDesc(String remarksDesc) {
|
||||
this.remarksDesc = remarksDesc;
|
||||
}
|
||||
public String getRecommendYn() {
|
||||
return recommendYn;
|
||||
}
|
||||
public void setRecommendYn(String recommendYn) {
|
||||
this.recommendYn = recommendYn;
|
||||
}
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
public String getAssetClass() {
|
||||
return assetClass;
|
||||
}
|
||||
public void setAssetClass(String assetClass) {
|
||||
this.assetClass = assetClass;
|
||||
}
|
||||
public String getFirstCategoryNm() {
|
||||
return firstCategoryNm;
|
||||
}
|
||||
public void setFirstCategoryNm(String firstCategoryNm) {
|
||||
this.firstCategoryNm = firstCategoryNm;
|
||||
}
|
||||
public String getSecondCategoryNm() {
|
||||
return secondCategoryNm;
|
||||
}
|
||||
public void setSecondCategoryNm(String secondCategoryNm) {
|
||||
this.secondCategoryNm = secondCategoryNm;
|
||||
}
|
||||
public List<CmmCmsVO> getSidoList() {
|
||||
return sidoList;
|
||||
}
|
||||
public void setSidoList(List<CmmCmsVO> sidoList) {
|
||||
this.sidoList = sidoList;
|
||||
}
|
||||
public List<String> getContentIdList() {
|
||||
return contentIdList;
|
||||
}
|
||||
public void setContentIdList(List<String> contentIdList) {
|
||||
this.contentIdList = contentIdList;
|
||||
}
|
||||
public String[] getCodeIdList() {
|
||||
String[] ret = null;
|
||||
if (this.codeIdList != null) {
|
||||
ret = new String[codeIdList.length];
|
||||
for (int i = 0; i < codeIdList.length; i++) {
|
||||
ret[i] = this.codeIdList[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCodeIdList(String[] codeIdList) {
|
||||
// 수정
|
||||
this.codeIdList = new String[codeIdList.length];
|
||||
for(int i = 0; i < codeIdList.length; ++i)
|
||||
this.codeIdList[i] = codeIdList[i];
|
||||
}
|
||||
|
||||
public String[] getAssetTypeList() {
|
||||
String[] ret = null;
|
||||
if (this.assetTypeList != null) {
|
||||
ret = new String[assetTypeList.length];
|
||||
for (int i = 0; i < assetTypeList.length; i++) {
|
||||
ret[i] = this.assetTypeList[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setAssetTypeList(String[] assetTypeList) {
|
||||
// 수정
|
||||
this.assetTypeList = new String[assetTypeList.length];
|
||||
for(int i = 0; i < assetTypeList.length; ++i)
|
||||
this.assetTypeList[i] = assetTypeList[i];
|
||||
}
|
||||
// public String[] getUserGroupList() {
|
||||
// return userGroupList;
|
||||
// }
|
||||
// public void setUserGroupList(String[] userGroupList) {
|
||||
// this.userGroupList = userGroupList;
|
||||
// }
|
||||
// public String[] getAgeList() {
|
||||
// return ageList;
|
||||
// }
|
||||
// public void setAgeList(String[] ageList) {
|
||||
// this.ageList = ageList;
|
||||
// }
|
||||
// public String[] getAssetClassList() {
|
||||
// return assetClassList;
|
||||
// }
|
||||
// public void setAssetClassList(String[] assetClassList) {
|
||||
// this.assetClassList = assetClassList;
|
||||
// }
|
||||
public String[] getCouncilList() {
|
||||
String[] ret = null;
|
||||
if (this.councilList != null) {
|
||||
ret = new String[councilList.length];
|
||||
for (int i = 0; i < councilList.length; i++) {
|
||||
ret[i] = this.councilList[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCouncilList(String[] councilList) {
|
||||
// 수정
|
||||
this.councilList = new String[councilList.length];
|
||||
for(int i = 0; i < councilList.length; ++i)
|
||||
this.councilList[i] = councilList[i];
|
||||
}
|
||||
|
||||
public String[] getCategoryList() {
|
||||
String[] ret = null;
|
||||
if (this.categoryList != null) {
|
||||
ret = new String[categoryList.length];
|
||||
for (int i = 0; i < categoryList.length; i++) {
|
||||
ret[i] = this.categoryList[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCategoryList(String[] categoryList) {
|
||||
// 수정
|
||||
this.categoryList = new String[categoryList.length];
|
||||
for(int i = 0; i < categoryList.length; ++i)
|
||||
this.categoryList[i] = categoryList[i];
|
||||
}
|
||||
|
||||
public String[] getClassList() {
|
||||
String[] ret = null;
|
||||
if (this.classList != null) {
|
||||
ret = new String[classList.length];
|
||||
for (int i = 0; i < classList.length; i++) {
|
||||
ret[i] = this.classList[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setClassList(String[] classList) {
|
||||
this.classList = new String[classList.length];
|
||||
for(int i = 0; i < classList.length; ++i)
|
||||
this.classList[i] = classList[i];
|
||||
}
|
||||
|
||||
public String[] getAssetClassArray() {
|
||||
String[] ret = null;
|
||||
if (this.assetClassArray != null) {
|
||||
ret = new String[assetClassArray.length];
|
||||
for (int i = 0; i < assetClassArray.length; i++) {
|
||||
ret[i] = this.assetClassArray[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setAssetClassArray(String[] assetClassArray) {
|
||||
// 수정
|
||||
this.assetClassArray = new String[assetClassArray.length];
|
||||
for(int i = 0; i < assetClassArray.length; ++i)
|
||||
this.assetClassArray[i] = assetClassArray[i];
|
||||
}
|
||||
|
||||
|
||||
public String[] getPickAssetTypeArray() {
|
||||
String[] ret = null;
|
||||
if (this.pickAssetTypeArray != null) {
|
||||
ret = new String[pickAssetTypeArray.length];
|
||||
for (int i = 0; i < pickAssetTypeArray.length; i++) {
|
||||
ret[i] = this.pickAssetTypeArray[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setPickAssetTypeArray(String[] pickAssetTypeArray) {
|
||||
this.pickAssetTypeArray = new String[pickAssetTypeArray.length];
|
||||
for(int i = 0; i < pickAssetTypeArray.length; ++i)
|
||||
this.pickAssetTypeArray[i] = pickAssetTypeArray[i];
|
||||
}
|
||||
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String getKeyName() {
|
||||
return keyName;
|
||||
}
|
||||
public void setKeyName(String keyName) {
|
||||
this.keyName = keyName;
|
||||
}
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
public String getTagsName() {
|
||||
return tagsName;
|
||||
}
|
||||
public void setTagsName(String tagsName) {
|
||||
this.tagsName = tagsName;
|
||||
}
|
||||
public String getTrsAge() {
|
||||
return trsAge;
|
||||
}
|
||||
public void setTrsAge(String trsAge) {
|
||||
this.trsAge = trsAge;
|
||||
}
|
||||
public String getAge() {
|
||||
return age;
|
||||
}
|
||||
public void setAge(String age) {
|
||||
this.age = age;
|
||||
}
|
||||
public String getChronologicalStart() {
|
||||
return chronologicalStart;
|
||||
}
|
||||
public void setChronologicalStart(String chronologicalStart) {
|
||||
this.chronologicalStart = chronologicalStart;
|
||||
}
|
||||
public String getChronologicalEnd() {
|
||||
return chronologicalEnd;
|
||||
}
|
||||
public void setChronologicalEnd(String chronologicalEnd) {
|
||||
this.chronologicalEnd = chronologicalEnd;
|
||||
}
|
||||
public String getFirstCategory() {
|
||||
return firstCategory;
|
||||
}
|
||||
public void setFirstCategory(String firstCategory) {
|
||||
this.firstCategory = firstCategory;
|
||||
}
|
||||
public String getSecondCategory() {
|
||||
return secondCategory;
|
||||
}
|
||||
public void setSecondCategory(String secondCategory) {
|
||||
this.secondCategory = secondCategory;
|
||||
}
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
public String getSeries() {
|
||||
return series;
|
||||
}
|
||||
public void setSeries(String series) {
|
||||
this.series = series;
|
||||
}
|
||||
public String getSojangCouncil() {
|
||||
return sojangCouncil;
|
||||
}
|
||||
public void setSojangCouncil(String sojangCouncil) {
|
||||
this.sojangCouncil = sojangCouncil;
|
||||
}
|
||||
public String getSojangCouncilNm() {
|
||||
return sojangCouncilNm;
|
||||
}
|
||||
public void setSojangCouncilNm(String sojangCouncilNm) {
|
||||
this.sojangCouncilNm = sojangCouncilNm;
|
||||
}
|
||||
|
||||
public String getSojangCouncilNmTot() {
|
||||
return sojangCouncilNmTot;
|
||||
}
|
||||
public void setSojangCouncilNmTot(String sojangCouncilNmTot) {
|
||||
this.sojangCouncilNmTot = sojangCouncilNmTot;
|
||||
}
|
||||
public String getSojangLocation() {
|
||||
return sojangLocation;
|
||||
}
|
||||
public void setSojangLocation(String sojangLocation) {
|
||||
this.sojangLocation = sojangLocation;
|
||||
}
|
||||
|
||||
public String getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
public void setGroupId(String groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public String getGroupName() {
|
||||
return groupName;
|
||||
}
|
||||
public void setGroupName(String groupName) {
|
||||
this.groupName = groupName;
|
||||
}
|
||||
public String getMcnt() {
|
||||
return mcnt;
|
||||
}
|
||||
public void setMcnt(String mcnt) {
|
||||
this.mcnt = mcnt;
|
||||
}
|
||||
public String getOcrSplitNum() {
|
||||
return ocrSplitNum;
|
||||
}
|
||||
public void setOcrSplitNum(String ocrSplitNum) {
|
||||
this.ocrSplitNum = ocrSplitNum;
|
||||
}
|
||||
public List<CmmAmsAssetMediaOcrVO> getOcrList() {
|
||||
return ocrList;
|
||||
}
|
||||
public void setOcrList(List<CmmAmsAssetMediaOcrVO> ocrList) {
|
||||
this.ocrList = ocrList;
|
||||
}
|
||||
public String getTableOfContents() {
|
||||
return tableOfContents;
|
||||
}
|
||||
public void setTableOfContents(String tableOfContents) {
|
||||
this.tableOfContents = tableOfContents;
|
||||
}
|
||||
public List<CmmAmsDocTableOfContentsVO> getTableOfContentsList() {
|
||||
return tableOfContentsList;
|
||||
}
|
||||
public void setTableOfContentsList(
|
||||
List<CmmAmsDocTableOfContentsVO> tableOfContentsList) {
|
||||
this.tableOfContentsList = tableOfContentsList;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getLinkNm() {
|
||||
return linkNm;
|
||||
}
|
||||
public void setLinkNm(String linkNm) {
|
||||
this.linkNm = linkNm;
|
||||
}
|
||||
public String getAssetTypeNm() {
|
||||
return assetTypeNm;
|
||||
}
|
||||
public void setAssetTypeNm(String assetTypeNm) {
|
||||
this.assetTypeNm = assetTypeNm;
|
||||
}
|
||||
public String getLinkUrl() {
|
||||
return linkUrl;
|
||||
}
|
||||
public void setLinkUrl(String linkUrl) {
|
||||
this.linkUrl = linkUrl;
|
||||
}
|
||||
public String getOrderIdx() {
|
||||
return orderIdx;
|
||||
}
|
||||
public void setOrderIdx(String orderIdx) {
|
||||
this.orderIdx = orderIdx;
|
||||
}
|
||||
public String getReSearch() {
|
||||
return reSearch;
|
||||
}
|
||||
public void setReSearch(String reSearch) {
|
||||
this.reSearch = reSearch;
|
||||
}
|
||||
|
||||
}
|
||||
47
src/main/java/cmm/service/CmmAmsAssetTagsVO.java
Normal file
47
src/main/java/cmm/service/CmmAmsAssetTagsVO.java
Normal file
@ -0,0 +1,47 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
public class CmmAmsAssetTagsVO {
|
||||
private String id = null;
|
||||
private String dataType = "";
|
||||
private String refId = "";
|
||||
private String tagsName = "";
|
||||
|
||||
private String mediaId = null;
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
public String getRefId() {
|
||||
return refId;
|
||||
}
|
||||
public void setRefId(String refId) {
|
||||
this.refId = refId;
|
||||
}
|
||||
public String getTagsName() {
|
||||
return tagsName;
|
||||
}
|
||||
public void setTagsName(String tagsName) {
|
||||
this.tagsName = tagsName;
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
500
src/main/java/cmm/service/CmmAmsAssetsVO.java
Normal file
500
src/main/java/cmm/service/CmmAmsAssetsVO.java
Normal file
@ -0,0 +1,500 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
/**
|
||||
* @Class Name : CmmAmsAssetsVO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-05-11O
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmAmsAssetsVO extends CmmVO {
|
||||
|
||||
private String id = "";
|
||||
private String interfaceId = "";
|
||||
private String assetClass = "";
|
||||
private String firstCategory = "";
|
||||
private String secondCategory = "";
|
||||
private String firstCategoryNm = "";
|
||||
private String secondCategoryNm = "";
|
||||
private String mainImg = "";
|
||||
private String copyright = "";
|
||||
private String title = "";
|
||||
private String summary = "";
|
||||
private String volume = "";
|
||||
private String amount = "";
|
||||
private String trsAge = "";
|
||||
private String age = "";
|
||||
private String chronologicalStart = "";
|
||||
private String chronologicalEnd = "";
|
||||
private String theme = "";
|
||||
private String series = "";
|
||||
private String sojangCouncil = "";
|
||||
private String sojangLocation = "";
|
||||
private String remarksDesc = "";
|
||||
private Date createdAt = null;
|
||||
private Date updatedAt = null;
|
||||
private Date deletedAt = null;
|
||||
private String useAt = "";
|
||||
|
||||
|
||||
private String assetId = "";
|
||||
private String tags = "";
|
||||
private String mcnt = "";
|
||||
private String sojangCouncilNm = "";
|
||||
|
||||
private String imgCnt = "";
|
||||
private String vedioCnt = "";
|
||||
private String audioCnt = "";
|
||||
private String docCnt = "";
|
||||
private String linkCnt = "";
|
||||
|
||||
|
||||
List<CmmCmsVO> sidoList = null;
|
||||
List<String> contentIdList;
|
||||
private String [] codeIdList;
|
||||
private String [] assetTypeList;
|
||||
private String [] userGroupList;
|
||||
private String [] ageList;
|
||||
private String [] assetClassList;
|
||||
private String [] councilList;
|
||||
private String [] assetClassArray;
|
||||
|
||||
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getInterfaceId() {
|
||||
return interfaceId;
|
||||
}
|
||||
|
||||
public void setInterfaceId(String interfaceId) {
|
||||
this.interfaceId = interfaceId;
|
||||
}
|
||||
|
||||
public String getAssetClass() {
|
||||
return assetClass;
|
||||
}
|
||||
|
||||
public void setAssetClass(String assetClass) {
|
||||
this.assetClass = assetClass;
|
||||
}
|
||||
|
||||
public String getFirstCategory() {
|
||||
return firstCategory;
|
||||
}
|
||||
|
||||
public void setFirstCategory(String firstCategory) {
|
||||
this.firstCategory = firstCategory;
|
||||
}
|
||||
|
||||
public String getSecondCategory() {
|
||||
return secondCategory;
|
||||
}
|
||||
|
||||
public void setSecondCategory(String secondCategory) {
|
||||
this.secondCategory = secondCategory;
|
||||
}
|
||||
|
||||
public String getFirstCategoryNm() {
|
||||
return firstCategoryNm;
|
||||
}
|
||||
|
||||
public void setFirstCategoryNm(String firstCategoryNm) {
|
||||
this.firstCategoryNm = firstCategoryNm;
|
||||
}
|
||||
|
||||
public String getSecondCategoryNm() {
|
||||
return secondCategoryNm;
|
||||
}
|
||||
|
||||
public void setSecondCategoryNm(String secondCategoryNm) {
|
||||
this.secondCategoryNm = secondCategoryNm;
|
||||
}
|
||||
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
public String getVolume() {
|
||||
return volume;
|
||||
}
|
||||
|
||||
public void setVolume(String volume) {
|
||||
this.volume = volume;
|
||||
}
|
||||
|
||||
public String getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(String amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public String getTrsAge() {
|
||||
return trsAge;
|
||||
}
|
||||
|
||||
public void setTrsAge(String trsAge) {
|
||||
this.trsAge = trsAge;
|
||||
}
|
||||
|
||||
public String getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
public void setAge(String age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getChronologicalStart() {
|
||||
return chronologicalStart;
|
||||
}
|
||||
|
||||
public void setChronologicalStart(String chronologicalStart) {
|
||||
this.chronologicalStart = chronologicalStart;
|
||||
}
|
||||
|
||||
public String getChronologicalEnd() {
|
||||
return chronologicalEnd;
|
||||
}
|
||||
|
||||
public void setChronologicalEnd(String chronologicalEnd) {
|
||||
this.chronologicalEnd = chronologicalEnd;
|
||||
}
|
||||
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
|
||||
public String getSeries() {
|
||||
return series;
|
||||
}
|
||||
|
||||
public void setSeries(String series) {
|
||||
this.series = series;
|
||||
}
|
||||
|
||||
public String getSojangCouncil() {
|
||||
return sojangCouncil;
|
||||
}
|
||||
|
||||
public void setSojangCouncil(String sojangCouncil) {
|
||||
this.sojangCouncil = sojangCouncil;
|
||||
}
|
||||
|
||||
public String getSojangLocation() {
|
||||
return sojangLocation;
|
||||
}
|
||||
|
||||
public void setSojangLocation(String sojangLocation) {
|
||||
this.sojangLocation = sojangLocation;
|
||||
}
|
||||
|
||||
public String getRemarksDesc() {
|
||||
return remarksDesc;
|
||||
}
|
||||
|
||||
public void setRemarksDesc(String remarksDesc) {
|
||||
this.remarksDesc = remarksDesc;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Date getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Date deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
|
||||
|
||||
public String getAssetId() {
|
||||
return assetId;
|
||||
}
|
||||
|
||||
public void setAssetId(String assetId) {
|
||||
this.assetId = assetId;
|
||||
}
|
||||
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getMcnt() {
|
||||
return mcnt;
|
||||
}
|
||||
|
||||
public void setMcnt(String mcnt) {
|
||||
this.mcnt = mcnt;
|
||||
}
|
||||
|
||||
public String getSojangCouncilNm() {
|
||||
return sojangCouncilNm;
|
||||
}
|
||||
|
||||
public void setSojangCouncilNm(String sojangCouncilNm) {
|
||||
this.sojangCouncilNm = sojangCouncilNm;
|
||||
}
|
||||
|
||||
public String getImgCnt() {
|
||||
return imgCnt;
|
||||
}
|
||||
|
||||
public void setImgCnt(String imgCnt) {
|
||||
this.imgCnt = imgCnt;
|
||||
}
|
||||
|
||||
public String getVedioCnt() {
|
||||
return vedioCnt;
|
||||
}
|
||||
|
||||
public void setVedioCnt(String vedioCnt) {
|
||||
this.vedioCnt = vedioCnt;
|
||||
}
|
||||
|
||||
public String getAudioCnt() {
|
||||
return audioCnt;
|
||||
}
|
||||
|
||||
public void setAudioCnt(String audioCnt) {
|
||||
this.audioCnt = audioCnt;
|
||||
}
|
||||
|
||||
public String getDocCnt() {
|
||||
return docCnt;
|
||||
}
|
||||
|
||||
public void setDocCnt(String docCnt) {
|
||||
this.docCnt = docCnt;
|
||||
}
|
||||
|
||||
public String getLinkCnt() {
|
||||
return linkCnt;
|
||||
}
|
||||
|
||||
public void setLinkCnt(String linkCnt) {
|
||||
this.linkCnt = linkCnt;
|
||||
}
|
||||
|
||||
public List<CmmCmsVO> getSidoList() {
|
||||
List<CmmCmsVO> ret = null;
|
||||
if(this.sidoList != null){
|
||||
ret = new ArrayList<CmmCmsVO>();
|
||||
ret = this.sidoList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setSidoList(ArrayList<CmmCmsVO> cmmCmsSidoList) {
|
||||
this.sidoList = new ArrayList<CmmCmsVO> (cmmCmsSidoList.size());
|
||||
for(int i=0; i<cmmCmsSidoList.size(); ++i) {
|
||||
this.sidoList.add(i, cmmCmsSidoList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getAssetTypeList() {
|
||||
String[] ret = null;
|
||||
if(this.assetTypeList != null){
|
||||
ret = new String[assetTypeList.length];
|
||||
ret = this.assetTypeList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAssetTypeList(String[] assetTypeList) {
|
||||
this.assetTypeList = new String[assetTypeList.length];
|
||||
for(int i=0; i<assetTypeList.length; ++i) {
|
||||
this.assetTypeList[i] = assetTypeList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getUserGroupList() {
|
||||
String[] ret = null;
|
||||
if(this.userGroupList != null){
|
||||
ret = new String[userGroupList.length];
|
||||
ret = this.userGroupList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setUserGroupList(String[] userGroupList) {
|
||||
this.userGroupList = new String[userGroupList.length];
|
||||
for(int i=0; i<userGroupList.length; ++i) {
|
||||
this.userGroupList[i] = userGroupList[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String[] getAgeList() {
|
||||
String[] ret = null;
|
||||
if(this.ageList != null){
|
||||
ret = new String[ageList.length];
|
||||
ret = this.ageList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAgeList(String[] ageList) {
|
||||
this.ageList = new String[ageList.length];
|
||||
for(int i=0; i<ageList.length; ++i) {
|
||||
this.ageList[i] = ageList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getAssetClassList() {
|
||||
String[] ret = null;
|
||||
if(this.assetClassList != null){
|
||||
ret = new String[assetClassList.length];
|
||||
ret = this.assetClassList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAssetClassList(String[] assetClassList) {
|
||||
this.assetClassList = new String[assetClassList.length];
|
||||
for(int i=0; i<assetClassList.length; ++i) {
|
||||
this.assetClassList[i] = assetClassList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCouncilList() {
|
||||
String[] ret = null;
|
||||
if(this.councilList != null){
|
||||
ret = new String[councilList.length];
|
||||
ret = this.councilList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCouncilList(String[] councilList) {
|
||||
this.councilList = new String[councilList.length];
|
||||
for(int i=0; i<councilList.length; ++i) {
|
||||
this.councilList[i] = councilList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getContentIdList() {
|
||||
List<String> ret = null;
|
||||
if(this.contentIdList != null){
|
||||
ret = new ArrayList<String>();
|
||||
ret = this.contentIdList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setContentIdList(List<String> contentIdList) {
|
||||
this.contentIdList = new ArrayList<String> (contentIdList.size());
|
||||
for(int i=0; i<contentIdList.size(); ++i) {
|
||||
this.contentIdList.add(i, contentIdList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getAssetClassArray() {
|
||||
String[] ret = null;
|
||||
if(this.assetClassArray != null){
|
||||
ret = new String[assetClassArray.length];
|
||||
ret = this.assetClassArray;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAssetClassArray(String[] assetClassArray) {
|
||||
this.assetClassArray = new String[assetClassArray.length];
|
||||
for(int i=0; i<assetClassArray.length; ++i) {
|
||||
this.assetClassArray[i] = assetClassArray[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCodeIdList() {
|
||||
String[] ret = null;
|
||||
if(this.codeIdList != null){
|
||||
ret = new String[codeIdList.length];
|
||||
ret = this.codeIdList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCodeIdList(String[] codeIdList) {
|
||||
this.codeIdList = new String[codeIdList.length];
|
||||
for(int i=0; i<codeIdList.length; ++i) {
|
||||
this.codeIdList[i] = codeIdList[i];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
65
src/main/java/cmm/service/CmmAmsDocTableOfContentsVO.java
Normal file
65
src/main/java/cmm/service/CmmAmsDocTableOfContentsVO.java
Normal file
@ -0,0 +1,65 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
/**
|
||||
* @Class Name : CmmAmsDocTableOfContentsVO.java
|
||||
* @author ecplaza
|
||||
* @since 2019-10-08
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmAmsDocTableOfContentsVO {
|
||||
|
||||
private String title = "";
|
||||
private String pageNum = null;
|
||||
private Integer ocrFileNum = null;
|
||||
private List<String> errorList = null;
|
||||
|
||||
public CmmAmsDocTableOfContentsVO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public CmmAmsDocTableOfContentsVO(String title, String pageNum, Integer ocrFileNum, List<String> errorList) {
|
||||
super();
|
||||
this.title = title;
|
||||
this.pageNum = pageNum;
|
||||
this.ocrFileNum = ocrFileNum;
|
||||
this.errorList = errorList;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getPageNum() {
|
||||
return pageNum;
|
||||
}
|
||||
public void setPageNum(String pageNum) {
|
||||
this.pageNum = pageNum;
|
||||
}
|
||||
public Integer getOcrFileNum() {
|
||||
return ocrFileNum;
|
||||
}
|
||||
public void setOcrFileNum(Integer ocrFileNum) {
|
||||
this.ocrFileNum = ocrFileNum;
|
||||
}
|
||||
|
||||
public List<String> getErrorList() {
|
||||
return errorList;
|
||||
}
|
||||
|
||||
public void setErrorList(List<String> errorList) {
|
||||
this.errorList = errorList;
|
||||
}
|
||||
|
||||
}
|
||||
25
src/main/java/cmm/service/CmmApiService.java
Normal file
25
src/main/java/cmm/service/CmmApiService.java
Normal file
@ -0,0 +1,25 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
import cmm.util.DataMap;
|
||||
|
||||
|
||||
public interface CmmApiService {
|
||||
JSONObject getCultureinfoApiList(DataMap paramMap);
|
||||
JSONObject getDissForecastInfoList(DataMap paramMap);
|
||||
DataMap getCtprvnMesureSidoList(String sido, String dataTime);
|
||||
DataMap getForecastTimeDataList(String baseDate, String baseTime, String nx, String ny);
|
||||
DataMap getNaverApiGeocode(DataMap paramMap);
|
||||
DataMap getNaverApiReversegeocode(DataMap paramMap);
|
||||
DataMap getNaverApiJuso(DataMap paramMap);
|
||||
DataMap getNaverApiSearch(DataMap paramMap);
|
||||
List<DataMap> getToolsApiNews(DataMap paramMap);
|
||||
DataMap getGiaList(DataMap paramMap);
|
||||
DataMap getGiaDetailCommon(DataMap paramMap);
|
||||
DataMap getGiaDetailIntro(DataMap paramMap);
|
||||
DataMap getGiaDetailInfo(DataMap paramMap);
|
||||
DataMap getGiaDetailImage(DataMap paramMap);
|
||||
}
|
||||
26
src/main/java/cmm/service/CmmBbsService.java
Normal file
26
src/main/java/cmm/service/CmmBbsService.java
Normal file
@ -0,0 +1,26 @@
|
||||
package cmm.service;
|
||||
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.cmmn.exception.FdlException;
|
||||
|
||||
|
||||
public interface CmmBbsService {
|
||||
int selectCmmBbsListTotCnt(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
List<CmmBbsVO> selectCmmBbsList(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
List<CmmBbsVO> selectCmmBbsTopList(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
List<CmmBbsVO> selectCmmBbsCnList(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
List<CmmBbsVO> selectCmmBbsMainList(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
CmmBbsVO selectCmmBbsDetail(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
List<CmmBbsVO> selectPrevNextCmmBbsDetailList(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
String insertCmmBbs(CmmBbsVO cmmBbsVO, HttpServletRequest request) throws IOException, FdlException, EgovBizException;
|
||||
void updateCmmBbs(CmmBbsVO cmmBbsVO, HttpServletRequest request) throws IOException, EgovBizException;
|
||||
void deleteCmmBbs(CmmBbsVO cmmBbsVO, HttpServletRequest request) throws EgovBizException;
|
||||
|
||||
void updateLocalCultureRecommend(CmmBbsVO cmmBbsVO) throws EgovBizException;
|
||||
}
|
||||
422
src/main/java/cmm/service/CmmBbsVO.java
Normal file
422
src/main/java/cmm/service/CmmBbsVO.java
Normal file
@ -0,0 +1,422 @@
|
||||
package cmm.service;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmBbsVO extends CmmVO {
|
||||
|
||||
|
||||
private String nttId = "";
|
||||
private String bbsId = "";
|
||||
private long nttNo = 0L;
|
||||
private String nttSj = "";
|
||||
private String nttCn = "";
|
||||
private String answerAt = "N";
|
||||
private String answerCn = "";
|
||||
private String overview = "";
|
||||
private String parntscttNo = "0";
|
||||
private String answerLc = "0";
|
||||
private long sortOrdr = 0L;
|
||||
private int rdcnt = 0;
|
||||
private String useAt = "";
|
||||
private String ntceBgnde = "";
|
||||
private String ntceEndde = "";
|
||||
private String ntcrId = "";
|
||||
private String ntcrNm = "";
|
||||
private String password = "";
|
||||
private String atchFileId = "";
|
||||
private String atchFileNm = "";
|
||||
private Date frstRegistPnttm = null;
|
||||
private String frstRegisterId = "";
|
||||
private String frstRegisterNm = "";
|
||||
private Date lastUpdtPnttm = null;
|
||||
private String lastUpdusrId = "";
|
||||
private String lastUpdusrNm = "";
|
||||
private String gubun = "";
|
||||
private String topYn = "";
|
||||
private int topCnt = 0;
|
||||
private String notice = "";
|
||||
private String nttType ="";
|
||||
private String[] nttTypes ;
|
||||
|
||||
private String tel ="";
|
||||
private String zipCode="";
|
||||
private String address="";
|
||||
private String sidoName="";
|
||||
private String sigunguName="";
|
||||
private String latitude="";
|
||||
private String longitude="";
|
||||
private String mainImg="";
|
||||
private String mainImgOrignlFileNm="";
|
||||
private String thumAtchCtrl ="";
|
||||
List<String> nttIdList;
|
||||
|
||||
public String getNttType() {
|
||||
return nttType;
|
||||
}
|
||||
|
||||
public void setNttType(String nttType) {
|
||||
this.nttType = nttType;
|
||||
}
|
||||
|
||||
public String getNotice() {
|
||||
return notice;
|
||||
}
|
||||
|
||||
public void setNotice(String notice) {
|
||||
this.notice = notice;
|
||||
}
|
||||
|
||||
public String getNttId() {
|
||||
return this.nttId;
|
||||
}
|
||||
|
||||
public void setNttId(String nttId) {
|
||||
this.nttId = nttId;
|
||||
}
|
||||
|
||||
public String getBbsId() {
|
||||
return this.bbsId;
|
||||
}
|
||||
|
||||
public void setBbsId(String bbsId) {
|
||||
this.bbsId = bbsId;
|
||||
}
|
||||
|
||||
public long getNttNo() {
|
||||
return this.nttNo;
|
||||
}
|
||||
|
||||
public void setNttNo(long nttNo) {
|
||||
this.nttNo = nttNo;
|
||||
}
|
||||
|
||||
public String getNttSj() {
|
||||
return this.nttSj;
|
||||
}
|
||||
|
||||
public void setNttSj(String nttSj) {
|
||||
this.nttSj = nttSj;
|
||||
}
|
||||
|
||||
public String getNttCn() {
|
||||
return this.nttCn;
|
||||
}
|
||||
|
||||
public void setNttCn(String nttCn) {
|
||||
this.nttCn = nttCn;
|
||||
}
|
||||
|
||||
public String getAnswerAt() {
|
||||
return this.answerAt;
|
||||
}
|
||||
|
||||
public void setAnswerAt(String answerAt) {
|
||||
this.answerAt = answerAt;
|
||||
}
|
||||
|
||||
public String getAnswerCn() {
|
||||
return answerCn;
|
||||
}
|
||||
|
||||
public void setAnswerCn(String answerCn) {
|
||||
this.answerCn = answerCn;
|
||||
}
|
||||
|
||||
public String getOverview() {
|
||||
return overview;
|
||||
}
|
||||
|
||||
public void setOverview(String overview) {
|
||||
this.overview = overview;
|
||||
}
|
||||
|
||||
public String getParntscttNo() {
|
||||
return this.parntscttNo;
|
||||
}
|
||||
|
||||
public void setParntscttNo(String parntscttNo) {
|
||||
this.parntscttNo = parntscttNo;
|
||||
}
|
||||
|
||||
public String getAnswerLc() {
|
||||
return this.answerLc;
|
||||
}
|
||||
|
||||
public void setAnswerLc(String answerLc) {
|
||||
this.answerLc = answerLc;
|
||||
}
|
||||
|
||||
public long getSortOrdr() {
|
||||
return this.sortOrdr;
|
||||
}
|
||||
|
||||
public void setSortOrdr(long sortOrdr) {
|
||||
this.sortOrdr = sortOrdr;
|
||||
}
|
||||
|
||||
public int getRdcnt() {
|
||||
return this.rdcnt;
|
||||
}
|
||||
|
||||
public void setRdcnt(int rdcnt) {
|
||||
this.rdcnt = rdcnt;
|
||||
}
|
||||
|
||||
public String getUseAt() {
|
||||
return this.useAt;
|
||||
}
|
||||
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
|
||||
public String getNtceBgnde() {
|
||||
return this.ntceBgnde;
|
||||
}
|
||||
|
||||
public void setNtceBgnde(String ntceBgnde) {
|
||||
this.ntceBgnde = ntceBgnde;
|
||||
}
|
||||
|
||||
public String getNtceEndde() {
|
||||
return this.ntceEndde;
|
||||
}
|
||||
|
||||
public void setNtceEndde(String ntceEndde) {
|
||||
this.ntceEndde = ntceEndde;
|
||||
}
|
||||
|
||||
public String getNtcrId() {
|
||||
return this.ntcrId;
|
||||
}
|
||||
|
||||
public void setNtcrId(String ntcrId) {
|
||||
this.ntcrId = ntcrId;
|
||||
}
|
||||
|
||||
public String getNtcrNm() {
|
||||
return this.ntcrNm;
|
||||
}
|
||||
|
||||
public void setNtcrNm(String ntcrNm) {
|
||||
this.ntcrNm = ntcrNm;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return this.password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getAtchFileId() {
|
||||
return this.atchFileId;
|
||||
}
|
||||
|
||||
public void setAtchFileId(String atchFileId) {
|
||||
this.atchFileId = atchFileId;
|
||||
}
|
||||
|
||||
public String getAtchFileNm() {
|
||||
return atchFileNm;
|
||||
}
|
||||
|
||||
public void setAtchFileNm(String atchFileNm) {
|
||||
this.atchFileNm = atchFileNm;
|
||||
}
|
||||
|
||||
public Date getFrstRegistPnttm() {
|
||||
return this.frstRegistPnttm;
|
||||
}
|
||||
|
||||
public void setFrstRegistPnttm(Date frstRegistPnttm) {
|
||||
this.frstRegistPnttm = frstRegistPnttm;
|
||||
}
|
||||
|
||||
public String getFrstRegisterId() {
|
||||
return this.frstRegisterId;
|
||||
}
|
||||
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
public String getFrstRegisterNm() {
|
||||
return frstRegisterNm;
|
||||
}
|
||||
|
||||
public void setFrstRegisterNm(String frstRegisterNm) {
|
||||
this.frstRegisterNm = frstRegisterNm;
|
||||
}
|
||||
|
||||
public Date getLastUpdtPnttm() {
|
||||
return this.lastUpdtPnttm;
|
||||
}
|
||||
|
||||
public void setLastUpdtPnttm(Date lastUpdtPnttm) {
|
||||
this.lastUpdtPnttm = lastUpdtPnttm;
|
||||
}
|
||||
|
||||
public String getLastUpdusrId() {
|
||||
return this.lastUpdusrId;
|
||||
}
|
||||
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
|
||||
public String getLastUpdusrNm() {
|
||||
return lastUpdusrNm;
|
||||
}
|
||||
|
||||
public void setLastUpdusrNm(String lastUpdusrNm) {
|
||||
this.lastUpdusrNm = lastUpdusrNm;
|
||||
}
|
||||
|
||||
public String getGubun() {
|
||||
return gubun;
|
||||
}
|
||||
|
||||
public void setGubun(String gubun) {
|
||||
this.gubun = gubun;
|
||||
}
|
||||
|
||||
public String getTopYn() {
|
||||
return topYn;
|
||||
}
|
||||
|
||||
public void setTopYn(String topYn) {
|
||||
this.topYn = topYn;
|
||||
}
|
||||
|
||||
public int getTopCnt() {
|
||||
return topCnt;
|
||||
}
|
||||
|
||||
public void setTopCnt(int topCnt) {
|
||||
this.topCnt = topCnt;
|
||||
}
|
||||
|
||||
public String[] getNttTypes() {
|
||||
String[] ret = null;
|
||||
if(this.nttTypes != null){
|
||||
ret = new String[nttTypes.length];
|
||||
ret = this.nttTypes;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setNttTypes(String[] nttTypes) {
|
||||
this.nttTypes = new String[nttTypes.length];
|
||||
for(int i=0; i<nttTypes.length; ++i) {
|
||||
this.nttTypes[i] = nttTypes[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String getTel() {
|
||||
return tel;
|
||||
}
|
||||
|
||||
public void setTel(String tel) {
|
||||
this.tel = tel;
|
||||
}
|
||||
|
||||
public String getZipCode() {
|
||||
return zipCode;
|
||||
}
|
||||
|
||||
public void setZipCode(String zipCode) {
|
||||
this.zipCode = zipCode;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
|
||||
public String getMainImgOrignlFileNm() {
|
||||
return mainImgOrignlFileNm;
|
||||
}
|
||||
|
||||
public void setMainImgOrignlFileNm(String mainImgOrignlFileNm) {
|
||||
this.mainImgOrignlFileNm = mainImgOrignlFileNm;
|
||||
}
|
||||
|
||||
public String getThumAtchCtrl() {
|
||||
return thumAtchCtrl;
|
||||
}
|
||||
|
||||
public void setThumAtchCtrl(String thumAtchCtrl) {
|
||||
this.thumAtchCtrl = thumAtchCtrl;
|
||||
}
|
||||
|
||||
public List<String> getNttIdList() {
|
||||
return nttIdList;
|
||||
}
|
||||
|
||||
public void setNttIdList(List<String> nttIdList) {
|
||||
this.nttIdList = nttIdList;
|
||||
}
|
||||
|
||||
/**
|
||||
* toString()
|
||||
* @return String
|
||||
*/
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
23
src/main/java/cmm/service/CmmBbsValidator.java
Normal file
23
src/main/java/cmm/service/CmmBbsValidator.java
Normal file
@ -0,0 +1,23 @@
|
||||
package cmm.service;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.validation.Errors;
|
||||
import org.springframework.validation.ValidationUtils;
|
||||
import org.springframework.validation.Validator;
|
||||
|
||||
|
||||
@Component("cmmBbsValidator")
|
||||
public class CmmBbsValidator implements Validator {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public boolean supports(Class clazz) {
|
||||
return clazz.equals(CmmBbsVO.class);
|
||||
}
|
||||
@SuppressWarnings("unused")
|
||||
public void validate(Object obj, Errors errors) {
|
||||
CmmBbsVO vo = (CmmBbsVO) obj;
|
||||
ValidationUtils.rejectIfEmpty(errors, "nttSj", "field.required", "제목을 입력해주세요.");
|
||||
ValidationUtils.rejectIfEmpty(errors, "nttCn", "field.required", "내용을 입력해주세요.");
|
||||
}
|
||||
|
||||
}
|
||||
555
src/main/java/cmm/service/CmmCmsAssetsVO.java
Normal file
555
src/main/java/cmm/service/CmmCmsAssetsVO.java
Normal file
@ -0,0 +1,555 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
/**
|
||||
* @Class Name : CmmAmsAssetMediaVO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-05-11O
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmCmsAssetsVO extends CmmVO {
|
||||
|
||||
private String id = "";
|
||||
private String contentId = "";
|
||||
private String interfaceId = "";
|
||||
private String assetType = "";
|
||||
private String mainImg = "";
|
||||
private String orignlFileName = "";
|
||||
private String streFileName = "";
|
||||
private String title = "";
|
||||
private String subtitle = "";
|
||||
private String fileSize = "";
|
||||
private String filePath = "";
|
||||
private String fileExt = "";
|
||||
private String assetAlt = "";
|
||||
private String subtitleAt = "";
|
||||
private String subtitleOrgFileName = "";
|
||||
private String subtitleStreFileName = "";
|
||||
private String subtitleDesc = "";
|
||||
private String isSeries = "";
|
||||
private String firstClassNm = "";
|
||||
private String secondClassNm = "";
|
||||
private String summary = "";
|
||||
private String addition = "";
|
||||
private String lang = "";
|
||||
private String field = "";
|
||||
private String age = "";
|
||||
private String chronological = "";
|
||||
private String category = "";
|
||||
private String publisher = "";
|
||||
private String genyear = "";
|
||||
private String author = "";
|
||||
private String provider = "";
|
||||
private String sourceAt = "";
|
||||
private String source = "";
|
||||
private String sojangCouncil = "";
|
||||
private String sojangLocation = "";
|
||||
private String remarksDesc = "";
|
||||
private String copyright = "";
|
||||
private String retentionPeriod = "";
|
||||
private String copyrightMgntDepart = "";
|
||||
private String thirdCopyright = "";
|
||||
private String cclType = "";
|
||||
private String orgOpenAt = "";
|
||||
private String listOpenAt = "";
|
||||
private Date createdAt = null;
|
||||
private Date updatedAt = null;
|
||||
private Date deletedAt = null;
|
||||
private String useAt = "";
|
||||
private String linkData = "";
|
||||
private String assetClass = "";
|
||||
private String recommendYn = "";
|
||||
private String couName = "";
|
||||
private String address = "";
|
||||
private String userGroup = "";
|
||||
private String mgmtNo = "";
|
||||
List<CmmCmsVO> sidoList = null;
|
||||
List<String> contentIdList;
|
||||
private String [] codeIdList;
|
||||
private String [] assetTypeList;
|
||||
private String [] userGroupList;
|
||||
private String [] ageList;
|
||||
private String [] assetClassList;
|
||||
private String [] councilList;
|
||||
private String [] assetClassArray;
|
||||
|
||||
public String getAssetClass() {
|
||||
return assetClass;
|
||||
}
|
||||
public void setAssetClass(String assetClass) {
|
||||
this.assetClass = assetClass;
|
||||
}
|
||||
public String getLinkData() {
|
||||
return linkData;
|
||||
}
|
||||
public void setLinkData(String linkData) {
|
||||
this.linkData = linkData;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getInterfaceId() {
|
||||
return interfaceId;
|
||||
}
|
||||
public void setInterfaceId(String interfaceId) {
|
||||
this.interfaceId = interfaceId;
|
||||
}
|
||||
public String getAssetType() {
|
||||
return assetType;
|
||||
}
|
||||
public void setAssetType(String assetType) {
|
||||
this.assetType = assetType;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getOrignlFileName() {
|
||||
return orignlFileName;
|
||||
}
|
||||
public void setOrignlFileName(String orignlFileName) {
|
||||
this.orignlFileName = orignlFileName;
|
||||
}
|
||||
public String getStreFileName() {
|
||||
return streFileName;
|
||||
}
|
||||
public void setStreFileName(String streFileName) {
|
||||
this.streFileName = streFileName;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getSubtitle() {
|
||||
return subtitle;
|
||||
}
|
||||
public void setSubtitle(String subtitle) {
|
||||
this.subtitle = subtitle;
|
||||
}
|
||||
public String getFileSize() {
|
||||
return fileSize;
|
||||
}
|
||||
public void setFileSize(String fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
}
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
public String getFileExt() {
|
||||
return fileExt;
|
||||
}
|
||||
public void setFileExt(String fileExt) {
|
||||
this.fileExt = fileExt;
|
||||
}
|
||||
public String getAssetAlt() {
|
||||
return assetAlt;
|
||||
}
|
||||
public void setAssetAlt(String assetAlt) {
|
||||
this.assetAlt = assetAlt;
|
||||
}
|
||||
public String getSubtitleAt() {
|
||||
return subtitleAt;
|
||||
}
|
||||
public void setSubtitleAt(String subtitleAt) {
|
||||
this.subtitleAt = subtitleAt;
|
||||
}
|
||||
public String getSubtitleOrgFileName() {
|
||||
return subtitleOrgFileName;
|
||||
}
|
||||
public void setSubtitleOrgFileName(String subtitleOrgFileName) {
|
||||
this.subtitleOrgFileName = subtitleOrgFileName;
|
||||
}
|
||||
public String getSubtitleStreFileName() {
|
||||
return subtitleStreFileName;
|
||||
}
|
||||
public void setSubtitleStreFileName(String subtitleStreFileName) {
|
||||
this.subtitleStreFileName = subtitleStreFileName;
|
||||
}
|
||||
public String getSubtitleDesc() {
|
||||
return subtitleDesc;
|
||||
}
|
||||
public void setSubtitleDesc(String subtitleDesc) {
|
||||
this.subtitleDesc = subtitleDesc;
|
||||
}
|
||||
public String getIsSeries() {
|
||||
return isSeries;
|
||||
}
|
||||
public void setIsSeries(String isSeries) {
|
||||
this.isSeries = isSeries;
|
||||
}
|
||||
public String getFirstClassNm() {
|
||||
return firstClassNm;
|
||||
}
|
||||
public void setFirstClassNm(String firstClassNm) {
|
||||
this.firstClassNm = firstClassNm;
|
||||
}
|
||||
public String getSecondClassNm() {
|
||||
return secondClassNm;
|
||||
}
|
||||
public void setSecondClassNm(String secondClassNm) {
|
||||
this.secondClassNm = secondClassNm;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getAddition() {
|
||||
return addition;
|
||||
}
|
||||
public void setAddition(String addition) {
|
||||
this.addition = addition;
|
||||
}
|
||||
public String getLang() {
|
||||
return lang;
|
||||
}
|
||||
public void setLang(String lang) {
|
||||
this.lang = lang;
|
||||
}
|
||||
public String getField() {
|
||||
return field;
|
||||
}
|
||||
public void setField(String field) {
|
||||
this.field = field;
|
||||
}
|
||||
public String getAge() {
|
||||
return age;
|
||||
}
|
||||
public void setAge(String age) {
|
||||
this.age = age;
|
||||
}
|
||||
public String getChronological() {
|
||||
return chronological;
|
||||
}
|
||||
public void setChronological(String chronological) {
|
||||
this.chronological = chronological;
|
||||
}
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
public String getPublisher() {
|
||||
return publisher;
|
||||
}
|
||||
public void setPublisher(String publisher) {
|
||||
this.publisher = publisher;
|
||||
}
|
||||
public String getGenyear() {
|
||||
return genyear;
|
||||
}
|
||||
public void setGenyear(String genyear) {
|
||||
this.genyear = genyear;
|
||||
}
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
public String getProvider() {
|
||||
return provider;
|
||||
}
|
||||
public void setProvider(String provider) {
|
||||
this.provider = provider;
|
||||
}
|
||||
public String getSourceAt() {
|
||||
return sourceAt;
|
||||
}
|
||||
public void setSourceAt(String sourceAt) {
|
||||
this.sourceAt = sourceAt;
|
||||
}
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
public String getSojangCouncil() {
|
||||
return sojangCouncil;
|
||||
}
|
||||
public void setSojangCouncil(String sojangCouncil) {
|
||||
this.sojangCouncil = sojangCouncil;
|
||||
}
|
||||
public String getSojangLocation() {
|
||||
return sojangLocation;
|
||||
}
|
||||
public void setSojangLocation(String sojangLocation) {
|
||||
this.sojangLocation = sojangLocation;
|
||||
}
|
||||
|
||||
public String getRemarksDesc() {
|
||||
return remarksDesc;
|
||||
}
|
||||
public void setRemarksDesc(String remarksDesc) {
|
||||
this.remarksDesc = remarksDesc;
|
||||
}
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
public String getRetentionPeriod() {
|
||||
return retentionPeriod;
|
||||
}
|
||||
public void setRetentionPeriod(String retentionPeriod) {
|
||||
this.retentionPeriod = retentionPeriod;
|
||||
}
|
||||
public String getCopyrightMgntDepart() {
|
||||
return copyrightMgntDepart;
|
||||
}
|
||||
public void setCopyrightMgntDepart(String copyrightMgntDepart) {
|
||||
this.copyrightMgntDepart = copyrightMgntDepart;
|
||||
}
|
||||
public String getThirdCopyright() {
|
||||
return thirdCopyright;
|
||||
}
|
||||
public void setThirdCopyright(String thirdCopyright) {
|
||||
this.thirdCopyright = thirdCopyright;
|
||||
}
|
||||
public String getCclType() {
|
||||
return cclType;
|
||||
}
|
||||
public void setCclType(String cclType) {
|
||||
this.cclType = cclType;
|
||||
}
|
||||
public String getOrgOpenAt() {
|
||||
return orgOpenAt;
|
||||
}
|
||||
public void setOrgOpenAt(String orgOpenAt) {
|
||||
this.orgOpenAt = orgOpenAt;
|
||||
}
|
||||
public String getListOpenAt() {
|
||||
return listOpenAt;
|
||||
}
|
||||
public void setListOpenAt(String listOpenAt) {
|
||||
this.listOpenAt = listOpenAt;
|
||||
}
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
public Date getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
public void setDeletedAt(Date deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getRecommendYn() {
|
||||
return recommendYn;
|
||||
}
|
||||
public void setRecommendYn(String recommendYn) {
|
||||
this.recommendYn = recommendYn;
|
||||
}
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
public String getUserGroup() {
|
||||
return userGroup;
|
||||
}
|
||||
public void setUserGroup(String userGroup) {
|
||||
this.userGroup = userGroup;
|
||||
}
|
||||
|
||||
|
||||
public String getMgmtNo() {
|
||||
return mgmtNo;
|
||||
}
|
||||
public void setMgmtNo(String mgmtNo) {
|
||||
this.mgmtNo = mgmtNo;
|
||||
}
|
||||
public List<CmmCmsVO> getSidoList() {
|
||||
List<CmmCmsVO> ret = null;
|
||||
if(this.sidoList != null){
|
||||
ret = new ArrayList<CmmCmsVO>();
|
||||
ret = this.sidoList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setSidoList(ArrayList<CmmCmsVO> cmmCmsSidoList) {
|
||||
this.sidoList = new ArrayList<CmmCmsVO> (cmmCmsSidoList.size());
|
||||
for(int i=0; i<cmmCmsSidoList.size(); ++i) {
|
||||
this.sidoList.add(i, cmmCmsSidoList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getAssetTypeList() {
|
||||
String[] ret = null;
|
||||
if(this.assetTypeList != null){
|
||||
ret = new String[assetTypeList.length];
|
||||
ret = this.assetTypeList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAssetTypeList(String[] assetTypeList) {
|
||||
this.assetTypeList = new String[assetTypeList.length];
|
||||
for(int i=0; i<assetTypeList.length; ++i) {
|
||||
this.assetTypeList[i] = assetTypeList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getUserGroupList() {
|
||||
String[] ret = null;
|
||||
if(this.userGroupList != null){
|
||||
ret = new String[userGroupList.length];
|
||||
ret = this.userGroupList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setUserGroupList(String[] userGroupList) {
|
||||
this.userGroupList = new String[userGroupList.length];
|
||||
for(int i=0; i<userGroupList.length; ++i) {
|
||||
this.userGroupList[i] = userGroupList[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String[] getAgeList() {
|
||||
String[] ret = null;
|
||||
if(this.ageList != null){
|
||||
ret = new String[ageList.length];
|
||||
ret = this.ageList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAgeList(String[] ageList) {
|
||||
this.ageList = new String[ageList.length];
|
||||
for(int i=0; i<ageList.length; ++i) {
|
||||
this.ageList[i] = ageList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getAssetClassList() {
|
||||
String[] ret = null;
|
||||
if(this.assetClassList != null){
|
||||
ret = new String[assetClassList.length];
|
||||
ret = this.assetClassList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAssetClassList(String[] assetClassList) {
|
||||
this.assetClassList = new String[assetClassList.length];
|
||||
for(int i=0; i<assetClassList.length; ++i) {
|
||||
this.assetClassList[i] = assetClassList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCouncilList() {
|
||||
String[] ret = null;
|
||||
if(this.councilList != null){
|
||||
ret = new String[councilList.length];
|
||||
ret = this.councilList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCouncilList(String[] councilList) {
|
||||
this.councilList = new String[councilList.length];
|
||||
for(int i=0; i<councilList.length; ++i) {
|
||||
this.councilList[i] = councilList[i];
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getContentIdList() {
|
||||
List<String> ret = null;
|
||||
if(this.contentIdList != null){
|
||||
ret = new ArrayList<String>();
|
||||
ret = this.contentIdList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setContentIdList(List<String> contentIdList) {
|
||||
this.contentIdList = new ArrayList<String> (contentIdList.size());
|
||||
for(int i=0; i<contentIdList.size(); ++i) {
|
||||
this.contentIdList.add(i, contentIdList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getAssetClassArray() {
|
||||
String[] ret = null;
|
||||
if(this.assetClassArray != null){
|
||||
ret = new String[assetClassArray.length];
|
||||
ret = this.assetClassArray;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setAssetClassArray(String[] assetClassArray) {
|
||||
this.assetClassArray = new String[assetClassArray.length];
|
||||
for(int i=0; i<assetClassArray.length; ++i) {
|
||||
this.assetClassArray[i] = assetClassArray[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCodeIdList() {
|
||||
String[] ret = null;
|
||||
if(this.codeIdList != null){
|
||||
ret = new String[codeIdList.length];
|
||||
ret = this.codeIdList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCodeIdList(String[] codeIdList) {
|
||||
this.codeIdList = new String[codeIdList.length];
|
||||
for(int i=0; i<codeIdList.length; ++i) {
|
||||
this.codeIdList[i] = codeIdList[i];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
712
src/main/java/cmm/service/CmmCmsContentsVO.java
Normal file
712
src/main/java/cmm/service/CmmCmsContentsVO.java
Normal file
@ -0,0 +1,712 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
import cmm.util.DataMap;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmCmsContentsVO extends CmmVO {
|
||||
|
||||
private String id = null;
|
||||
private String theme = "";
|
||||
private String themeCd = "";
|
||||
private String themeNm = "";
|
||||
private String series = "";
|
||||
private String seriesCd = "";
|
||||
private String seriesNm = "";
|
||||
private String firstTopic = "";
|
||||
private String secondTopic = "";
|
||||
private String title = "";
|
||||
private String firstClass = "";
|
||||
private String firstClassNm = "";
|
||||
private String secondClass = "";
|
||||
private String secondClassNm = "";
|
||||
private String firstCategory = "";
|
||||
private String firstCategoryNm = "";
|
||||
private String secondCategory = "";
|
||||
private String secondCategoryNm = "";
|
||||
|
||||
private String sidoName1 = "";
|
||||
private String sigunguName1 = "";
|
||||
private String dongName1 = "";
|
||||
private String sidoName2 = "";
|
||||
private String sigunguName2 = "";
|
||||
private String dongName2 = "";
|
||||
private String latitude = "";
|
||||
private String longitude = "";
|
||||
private String trsSidoName = "";
|
||||
private String trsSigunguName = "";
|
||||
private String trsDongName = "";
|
||||
private String trsAge = "";
|
||||
private String age = "";
|
||||
private String chronologicalStart = "";
|
||||
private String chronologicalEnd = "";
|
||||
private String summary = "";
|
||||
private String description = "";
|
||||
private String addInformation = "";
|
||||
private String writerOpinion = "";
|
||||
private String writer = "";
|
||||
private String cclType = "";
|
||||
private String genyear = "";
|
||||
private Date deletedAt = null;
|
||||
private Date updatedAt = null;
|
||||
private Date createdAt = null;
|
||||
private String interfaceId = "";
|
||||
private String linkData = "";
|
||||
private String useAt = "";
|
||||
private String mainImg = "";
|
||||
private String recommendYn = "";
|
||||
|
||||
private String tags = "";
|
||||
private String couName = "";
|
||||
private int cnt = 0;
|
||||
|
||||
private String contentId;
|
||||
private String refType="";
|
||||
private String refDesc="";
|
||||
private String supLinkData="";
|
||||
private String keyName="";
|
||||
private String tagsName="";
|
||||
private String supType="";
|
||||
private String relDesc="";
|
||||
private String region="";
|
||||
private String code="";
|
||||
private String copyright="";
|
||||
List<String> contentIdList;
|
||||
List<String> tagsList;
|
||||
List<DataMap> topicList;
|
||||
List<DataMap> councilList;
|
||||
|
||||
private String [] categoryArray1;
|
||||
private String [] categoryArray2;
|
||||
private String [] categoryArray3;
|
||||
private String [] topicArray;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
|
||||
public String getThemeCd() {
|
||||
return themeCd;
|
||||
}
|
||||
|
||||
public void setThemeCd(String themeCd) {
|
||||
this.themeCd = themeCd;
|
||||
}
|
||||
|
||||
public String getThemeNm() {
|
||||
return themeNm;
|
||||
}
|
||||
|
||||
public void setThemeNm(String themeNm) {
|
||||
this.themeNm = themeNm;
|
||||
}
|
||||
|
||||
public String getSeries() {
|
||||
return series;
|
||||
}
|
||||
|
||||
public void setSeries(String series) {
|
||||
this.series = series;
|
||||
}
|
||||
|
||||
public String getSeriesCd() {
|
||||
return seriesCd;
|
||||
}
|
||||
|
||||
public void setSeriesCd(String seriesCd) {
|
||||
this.seriesCd = seriesCd;
|
||||
}
|
||||
|
||||
public String getSeriesNm() {
|
||||
return seriesNm;
|
||||
}
|
||||
|
||||
public void setSeriesNm(String seriesNm) {
|
||||
this.seriesNm = seriesNm;
|
||||
}
|
||||
|
||||
public String getFirstTopic() {
|
||||
return firstTopic;
|
||||
}
|
||||
|
||||
public void setFirstTopic(String firstTopic) {
|
||||
this.firstTopic = firstTopic;
|
||||
}
|
||||
|
||||
public String getSecondTopic() {
|
||||
return secondTopic;
|
||||
}
|
||||
|
||||
public void setSecondTopic(String secondTopic) {
|
||||
this.secondTopic = secondTopic;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getFirstClass() {
|
||||
return firstClass;
|
||||
}
|
||||
|
||||
public void setFirstClass(String firstClass) {
|
||||
this.firstClass = firstClass;
|
||||
}
|
||||
|
||||
public String getFirstClassNm() {
|
||||
return firstClassNm;
|
||||
}
|
||||
|
||||
public void setFirstClassNm(String firstClassNm) {
|
||||
this.firstClassNm = firstClassNm;
|
||||
}
|
||||
|
||||
public String getSecondClass() {
|
||||
return secondClass;
|
||||
}
|
||||
|
||||
public void setSecondClass(String secondClass) {
|
||||
this.secondClass = secondClass;
|
||||
}
|
||||
|
||||
public String getSecondClassNm() {
|
||||
return secondClassNm;
|
||||
}
|
||||
|
||||
public void setSecondClassNm(String secondClassNm) {
|
||||
this.secondClassNm = secondClassNm;
|
||||
}
|
||||
|
||||
public String getFirstCategory() {
|
||||
return firstCategory;
|
||||
}
|
||||
|
||||
public void setFirstCategory(String firstCategory) {
|
||||
this.firstCategory = firstCategory;
|
||||
}
|
||||
|
||||
public String getFirstCategoryNm() {
|
||||
return firstCategoryNm;
|
||||
}
|
||||
|
||||
public void setFirstCategoryNm(String firstCategoryNm) {
|
||||
this.firstCategoryNm = firstCategoryNm;
|
||||
}
|
||||
|
||||
public String getSecondCategory() {
|
||||
return secondCategory;
|
||||
}
|
||||
|
||||
public void setSecondCategory(String secondCategory) {
|
||||
this.secondCategory = secondCategory;
|
||||
}
|
||||
|
||||
public String getSecondCategoryNm() {
|
||||
return secondCategoryNm;
|
||||
}
|
||||
|
||||
public void setSecondCategoryNm(String secondCategoryNm) {
|
||||
this.secondCategoryNm = secondCategoryNm;
|
||||
}
|
||||
|
||||
public String getSidoName1() {
|
||||
return sidoName1;
|
||||
}
|
||||
|
||||
public void setSidoName1(String sidoName1) {
|
||||
this.sidoName1 = sidoName1;
|
||||
}
|
||||
|
||||
public String getSigunguName1() {
|
||||
return sigunguName1;
|
||||
}
|
||||
|
||||
public void setSigunguName1(String sigunguName1) {
|
||||
this.sigunguName1 = sigunguName1;
|
||||
}
|
||||
|
||||
public String getDongName1() {
|
||||
return dongName1;
|
||||
}
|
||||
|
||||
public void setDongName1(String dongName1) {
|
||||
this.dongName1 = dongName1;
|
||||
}
|
||||
|
||||
public String getSidoName2() {
|
||||
return sidoName2;
|
||||
}
|
||||
|
||||
public void setSidoName2(String sidoName2) {
|
||||
this.sidoName2 = sidoName2;
|
||||
}
|
||||
|
||||
public String getSigunguName2() {
|
||||
return sigunguName2;
|
||||
}
|
||||
|
||||
public void setSigunguName2(String sigunguName2) {
|
||||
this.sigunguName2 = sigunguName2;
|
||||
}
|
||||
|
||||
public String getDongName2() {
|
||||
return dongName2;
|
||||
}
|
||||
|
||||
public void setDongName2(String dongName2) {
|
||||
this.dongName2 = dongName2;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getTrsSidoName() {
|
||||
return trsSidoName;
|
||||
}
|
||||
|
||||
public void setTrsSidoName(String trsSidoName) {
|
||||
this.trsSidoName = trsSidoName;
|
||||
}
|
||||
|
||||
public String getTrsSigunguName() {
|
||||
return trsSigunguName;
|
||||
}
|
||||
|
||||
public void setTrsSigunguName(String trsSigunguName) {
|
||||
this.trsSigunguName = trsSigunguName;
|
||||
}
|
||||
|
||||
public String getTrsDongName() {
|
||||
return trsDongName;
|
||||
}
|
||||
|
||||
public void setTrsDongName(String trsDongName) {
|
||||
this.trsDongName = trsDongName;
|
||||
}
|
||||
|
||||
public String getTrsAge() {
|
||||
return trsAge;
|
||||
}
|
||||
|
||||
public void setTrsAge(String trsAge) {
|
||||
this.trsAge = trsAge;
|
||||
}
|
||||
|
||||
public String getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
public void setAge(String age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getChronologicalStart() {
|
||||
return chronologicalStart;
|
||||
}
|
||||
|
||||
public void setChronologicalStart(String chronologicalStart) {
|
||||
this.chronologicalStart = chronologicalStart;
|
||||
}
|
||||
|
||||
public String getChronologicalEnd() {
|
||||
return chronologicalEnd;
|
||||
}
|
||||
|
||||
public void setChronologicalEnd(String chronologicalEnd) {
|
||||
this.chronologicalEnd = chronologicalEnd;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getAddInformation() {
|
||||
return addInformation;
|
||||
}
|
||||
|
||||
public void setAddInformation(String addInformation) {
|
||||
this.addInformation = addInformation;
|
||||
}
|
||||
|
||||
public String getWriterOpinion() {
|
||||
return writerOpinion;
|
||||
}
|
||||
|
||||
public void setWriterOpinion(String writerOpinion) {
|
||||
this.writerOpinion = writerOpinion;
|
||||
}
|
||||
|
||||
public String getWriter() {
|
||||
return writer;
|
||||
}
|
||||
|
||||
public void setWriter(String writer) {
|
||||
this.writer = writer;
|
||||
}
|
||||
|
||||
public String getCclType() {
|
||||
return cclType;
|
||||
}
|
||||
|
||||
public void setCclType(String cclType) {
|
||||
this.cclType = cclType;
|
||||
}
|
||||
|
||||
public String getGenyear() {
|
||||
return genyear;
|
||||
}
|
||||
|
||||
public void setGenyear(String genyear) {
|
||||
this.genyear = genyear;
|
||||
}
|
||||
|
||||
public Date getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
public void setDeletedAt(Date deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public String getInterfaceId() {
|
||||
return interfaceId;
|
||||
}
|
||||
|
||||
public void setInterfaceId(String interfaceId) {
|
||||
this.interfaceId = interfaceId;
|
||||
}
|
||||
|
||||
public String getLinkData() {
|
||||
return linkData;
|
||||
}
|
||||
|
||||
public void setLinkData(String linkData) {
|
||||
this.linkData = linkData;
|
||||
}
|
||||
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
|
||||
public String getRecommendYn() {
|
||||
return recommendYn;
|
||||
}
|
||||
|
||||
public void setRecommendYn(String recommendYn) {
|
||||
this.recommendYn = recommendYn;
|
||||
}
|
||||
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
|
||||
public int getCnt() {
|
||||
return cnt;
|
||||
}
|
||||
|
||||
public void setCnt(int cnt) {
|
||||
this.cnt = cnt;
|
||||
}
|
||||
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
public String getRefType() {
|
||||
return refType;
|
||||
}
|
||||
|
||||
public void setRefType(String refType) {
|
||||
this.refType = refType;
|
||||
}
|
||||
|
||||
public String getRefDesc() {
|
||||
return refDesc;
|
||||
}
|
||||
|
||||
public void setRefDesc(String refDesc) {
|
||||
this.refDesc = refDesc;
|
||||
}
|
||||
|
||||
public String getSupLinkData() {
|
||||
return supLinkData;
|
||||
}
|
||||
|
||||
public void setSupLinkData(String supLinkData) {
|
||||
this.supLinkData = supLinkData;
|
||||
}
|
||||
|
||||
public String getKeyName() {
|
||||
return keyName;
|
||||
}
|
||||
|
||||
public void setKeyName(String keyName) {
|
||||
this.keyName = keyName;
|
||||
}
|
||||
|
||||
public String getTagsName() {
|
||||
return tagsName;
|
||||
}
|
||||
|
||||
public void setTagsName(String tagsName) {
|
||||
this.tagsName = tagsName;
|
||||
}
|
||||
|
||||
public String getSupType() {
|
||||
return supType;
|
||||
}
|
||||
|
||||
public void setSupType(String supType) {
|
||||
this.supType = supType;
|
||||
}
|
||||
|
||||
public String getRelDesc() {
|
||||
return relDesc;
|
||||
}
|
||||
|
||||
public void setRelDesc(String relDesc) {
|
||||
this.relDesc = relDesc;
|
||||
}
|
||||
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
|
||||
public List<String> getContentIdList() {
|
||||
List<String> ret = null;
|
||||
if(this.contentIdList != null){
|
||||
ret = new ArrayList<String>();
|
||||
ret = this.contentIdList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setContentIdList(List<String> contentIdList) {
|
||||
this.contentIdList = new ArrayList<String> (contentIdList.size());
|
||||
for(int i=0; i<contentIdList.size(); ++i) {
|
||||
this.contentIdList.add(i, contentIdList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public List<String> getTagsList() {
|
||||
List<String> ret = null;
|
||||
if(this.tagsList != null){
|
||||
ret = new ArrayList<String>();
|
||||
ret = this.tagsList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setTagsList(List<String> tagsList) {
|
||||
this.tagsList = new ArrayList<String> (tagsList.size());
|
||||
for(int i=0; i<tagsList.size(); ++i) {
|
||||
this.tagsList.add(i, tagsList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public List<DataMap> getTopicList() {
|
||||
List<DataMap> ret = null;
|
||||
if(this.topicList != null){
|
||||
ret = new ArrayList<DataMap>();
|
||||
ret = this.topicList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setTopicList(List<DataMap> topicList) {
|
||||
this.topicList = new ArrayList<DataMap> (topicList.size());
|
||||
for(int i=0; i<topicList.size(); ++i) {
|
||||
this.topicList.add(i, topicList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public List<DataMap> getCouncilList() {
|
||||
List<DataMap> ret = null;
|
||||
if(this.councilList != null){
|
||||
ret = new ArrayList<DataMap>();
|
||||
ret = this.councilList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCouncilList(List<DataMap> councilList) {
|
||||
this.councilList = new ArrayList<DataMap> (councilList.size());
|
||||
for(int i=0; i<councilList.size(); ++i) {
|
||||
this.councilList.add(i, councilList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCategoryArray1() {
|
||||
String[] ret = null;
|
||||
if(this.categoryArray1 != null){
|
||||
ret = new String[categoryArray1.length];
|
||||
ret = this.categoryArray1;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCategoryArray1(String[] categoryArray1) {
|
||||
this.categoryArray1 = new String[categoryArray1.length];
|
||||
for(int i=0; i<categoryArray1.length; ++i) {
|
||||
this.categoryArray1[i] = categoryArray1[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCategoryArray2() {
|
||||
String[] ret = null;
|
||||
if(this.categoryArray2 != null){
|
||||
ret = new String[categoryArray2.length];
|
||||
ret = this.categoryArray2;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCategoryArray2(String[] categoryArray2) {
|
||||
this.categoryArray2 = new String[categoryArray2.length];
|
||||
for(int i=0; i<categoryArray2.length; ++i) {
|
||||
this.categoryArray2[i] = categoryArray2[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCategoryArray3() {
|
||||
String[] ret = null;
|
||||
if(this.categoryArray3 != null){
|
||||
ret = new String[categoryArray3.length];
|
||||
ret = this.categoryArray3;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCategoryArray3(String[] categoryArray3) {
|
||||
this.categoryArray3 = new String[categoryArray3.length];
|
||||
for(int i=0; i<categoryArray3.length; ++i) {
|
||||
this.categoryArray3[i] = categoryArray3[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getTopicArray() {
|
||||
return topicArray;
|
||||
}
|
||||
|
||||
public void setTopicArray(String[] topicArray) {
|
||||
this.topicArray = topicArray;
|
||||
}
|
||||
|
||||
public String getRegion() {
|
||||
return region;
|
||||
}
|
||||
|
||||
public void setRegion(String region) {
|
||||
this.region = region;
|
||||
}
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
/**
|
||||
* toString()
|
||||
* @return String
|
||||
*/
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
|
||||
}
|
||||
192
src/main/java/cmm/service/CmmCmsCouncilsInfoVO.java
Normal file
192
src/main/java/cmm/service/CmmCmsCouncilsInfoVO.java
Normal file
@ -0,0 +1,192 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmCmsCouncilsInfoVO extends CmmVO {
|
||||
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String region = "";
|
||||
private String couName = "";
|
||||
private String councilNm = "";
|
||||
private String councilCd = "";
|
||||
private String postNo = "";
|
||||
private String address = "";
|
||||
private String frontTelNo = "";
|
||||
private String middleTelNo = "";
|
||||
private String endTelNo = "";
|
||||
private String phone = "";
|
||||
private String mainImg = "";
|
||||
private String summary = "";
|
||||
private String email = "";
|
||||
private String faxFrontTelNo = "";
|
||||
private String faxMiddleTelNo = "";
|
||||
private String faxEndTelNo = "";
|
||||
private String fax = "";
|
||||
private String url = "";
|
||||
private Date createdAt = null;
|
||||
private Date updatedAt = null;
|
||||
private String useAt = "";
|
||||
private String mainImgOrignlFileNm = "";
|
||||
private String atchCtrl ="";
|
||||
|
||||
public String getCouncilNm() {
|
||||
return councilNm;
|
||||
}
|
||||
public void setCouncilNm(String councilNm) {
|
||||
this.councilNm = councilNm;
|
||||
}
|
||||
public String getCouncilCd() {
|
||||
return councilCd;
|
||||
}
|
||||
public void setCouncilCd(String councilCd) {
|
||||
this.councilCd = councilCd;
|
||||
}
|
||||
public String getPostNo() {
|
||||
return postNo;
|
||||
}
|
||||
public void setPostNo(String postNo) {
|
||||
this.postNo = postNo;
|
||||
}
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
public String getFrontTelNo() {
|
||||
return frontTelNo;
|
||||
}
|
||||
public void setFrontTelNo(String frontTelNo) {
|
||||
this.frontTelNo = frontTelNo;
|
||||
}
|
||||
public String getMiddleTelNo() {
|
||||
return middleTelNo;
|
||||
}
|
||||
public void setMiddleTelNo(String middleTelNo) {
|
||||
this.middleTelNo = middleTelNo;
|
||||
}
|
||||
public String getEndTelNo() {
|
||||
return endTelNo;
|
||||
}
|
||||
public void setEndTelNo(String endTelNo) {
|
||||
this.endTelNo = endTelNo;
|
||||
}
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
public String getFaxFrontTelNo() {
|
||||
return faxFrontTelNo;
|
||||
}
|
||||
public void setFaxFrontTelNo(String faxFrontTelNo) {
|
||||
this.faxFrontTelNo = faxFrontTelNo;
|
||||
}
|
||||
public String getFaxMiddleTelNo() {
|
||||
return faxMiddleTelNo;
|
||||
}
|
||||
public void setFaxMiddleTelNo(String faxMiddleTelNo) {
|
||||
this.faxMiddleTelNo = faxMiddleTelNo;
|
||||
}
|
||||
public String getFaxEndTelNo() {
|
||||
return faxEndTelNo;
|
||||
}
|
||||
public void setFaxEndTelNo(String faxEndTelNo) {
|
||||
this.faxEndTelNo = faxEndTelNo;
|
||||
}
|
||||
public String getFax() {
|
||||
return fax;
|
||||
}
|
||||
public void setFax(String fax) {
|
||||
this.fax = fax;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getRegion() {
|
||||
return region;
|
||||
}
|
||||
public void setRegion(String region) {
|
||||
this.region = region;
|
||||
}
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getMainImgOrignlFileNm() {
|
||||
return mainImgOrignlFileNm;
|
||||
}
|
||||
public void setMainImgOrignlFileNm(String mainImgOrignlFileNm) {
|
||||
this.mainImgOrignlFileNm = mainImgOrignlFileNm;
|
||||
}
|
||||
public String getAtchCtrl() {
|
||||
return atchCtrl;
|
||||
}
|
||||
public void setAtchCtrl(String atchCtrl) {
|
||||
this.atchCtrl = atchCtrl;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
31
src/main/java/cmm/service/CmmCmsKeywordsVO.java
Normal file
31
src/main/java/cmm/service/CmmCmsKeywordsVO.java
Normal file
@ -0,0 +1,31 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
public class CmmCmsKeywordsVO{
|
||||
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String keyName = "";
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getKeyName() {
|
||||
return keyName;
|
||||
}
|
||||
public void setKeyName(String keyName) {
|
||||
this.keyName = keyName;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
45
src/main/java/cmm/service/CmmCmsReferenceDataVO.java
Normal file
45
src/main/java/cmm/service/CmmCmsReferenceDataVO.java
Normal file
@ -0,0 +1,45 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
public class CmmCmsReferenceDataVO {
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String refType = "";
|
||||
private String refDesc = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
public String getRefType() {
|
||||
return refType;
|
||||
}
|
||||
|
||||
public void setRefType(String refType) {
|
||||
this.refType = refType;
|
||||
}
|
||||
|
||||
public String getRefDesc() {
|
||||
return refDesc;
|
||||
}
|
||||
|
||||
public void setRefDesc(String refDesc) {
|
||||
this.refDesc = refDesc;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
37
src/main/java/cmm/service/CmmCmsRelatedDataVO.java
Normal file
37
src/main/java/cmm/service/CmmCmsRelatedDataVO.java
Normal file
@ -0,0 +1,37 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
public class CmmCmsRelatedDataVO {
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String relDesc = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
public String getRelDesc() {
|
||||
return relDesc;
|
||||
}
|
||||
|
||||
public void setRelDesc(String relDesc) {
|
||||
this.relDesc = relDesc;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
18
src/main/java/cmm/service/CmmCmsService.java
Normal file
18
src/main/java/cmm/service/CmmCmsService.java
Normal file
@ -0,0 +1,18 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
|
||||
public interface CmmCmsService {
|
||||
List<CmmActivityHstVO> selectCmmActivityHstOpList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
List<CmmActivityHstVO> selectCmmScrapList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
int selectCmmScrapListTotCnt(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
int selectCmmActivityHstOpListTotCnt(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
List<String> selectCmmCmsKeywordsList(List<CmmActivityHstVO> result) throws EgovBizException;
|
||||
List<DataMap> selectCmmCmsTagsList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
List<CmmActivityHstVO> selectCmmCmsPopularList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
void deleteAllCmmScrapInfo(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
}
|
||||
54
src/main/java/cmm/service/CmmCmsSupplementDataVO.java
Normal file
54
src/main/java/cmm/service/CmmCmsSupplementDataVO.java
Normal file
@ -0,0 +1,54 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
public class CmmCmsSupplementDataVO {
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String contentGroupId = "";
|
||||
private String supType = "";
|
||||
private String linkData = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
public String getContentGroupId() {
|
||||
return contentGroupId;
|
||||
}
|
||||
|
||||
public void setContentGroupId(String contentGroupId) {
|
||||
this.contentGroupId = contentGroupId;
|
||||
}
|
||||
|
||||
public String getSupType() {
|
||||
return supType;
|
||||
}
|
||||
|
||||
public void setSupType(String supType) {
|
||||
this.supType = supType;
|
||||
}
|
||||
|
||||
public String getLinkData() {
|
||||
return linkData;
|
||||
}
|
||||
|
||||
public void setLinkData(String linkData) {
|
||||
this.linkData = linkData;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
31
src/main/java/cmm/service/CmmCmsTagsVO.java
Normal file
31
src/main/java/cmm/service/CmmCmsTagsVO.java
Normal file
@ -0,0 +1,31 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
public class CmmCmsTagsVO {
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String tagsName = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getTagsName() {
|
||||
return tagsName;
|
||||
}
|
||||
public void setTagsName(String tagsName) {
|
||||
this.tagsName = tagsName;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
36
src/main/java/cmm/service/CmmCmsUserGroupVO.java
Normal file
36
src/main/java/cmm/service/CmmCmsUserGroupVO.java
Normal file
@ -0,0 +1,36 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
public class CmmCmsUserGroupVO {
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String userType = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
public String getUserType() {
|
||||
return userType;
|
||||
}
|
||||
|
||||
public void setUserType(String userType) {
|
||||
this.userType = userType;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
571
src/main/java/cmm/service/CmmCmsVO.java
Normal file
571
src/main/java/cmm/service/CmmCmsVO.java
Normal file
@ -0,0 +1,571 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmCmsVO extends CmmVO {
|
||||
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String theme = "";
|
||||
private String series = "";
|
||||
private String firstTopic = "";
|
||||
private String secondTopic = "";
|
||||
private String title = "";
|
||||
private String sidoName1 = "";
|
||||
private String sigunguName1 = "";
|
||||
private String dongName1 = "";
|
||||
private String sidoName2 = "";
|
||||
private String sigunguName2 = "";
|
||||
private String dongName2 = "";
|
||||
private String latitude = "";
|
||||
private String longitude = "";
|
||||
private String trsSidoName = "";
|
||||
private String trsSigunguName = "";
|
||||
private String trsDongName = "";
|
||||
private String field = "";
|
||||
private String age = "";
|
||||
private String chronological = "";
|
||||
private String summary = "";
|
||||
private String description = "";
|
||||
private String addInformation = "";
|
||||
private String writerOpinion = "";
|
||||
private String writer = "";
|
||||
private Date deletedAt = null;
|
||||
private Date updatedAt = null;
|
||||
private Date createdAt = null;
|
||||
private String interfaceId = "";
|
||||
private String linkData = "";
|
||||
private String recommendYn ="";
|
||||
private String useAt = "Y";
|
||||
private String mainImg = "";
|
||||
private String rdcnt = "";
|
||||
private String etcCol1;
|
||||
private String etcCol2;
|
||||
private String council = "";
|
||||
private String volume = "";
|
||||
private String author = "";
|
||||
private String publisher = "";
|
||||
private String genyear = "";
|
||||
private String amount = "";
|
||||
private String sidoName = "";
|
||||
private String sigunguName = "";
|
||||
private String category = "";
|
||||
private String keywords = "";
|
||||
private String count = "";
|
||||
private String haveFile = "";
|
||||
private String needDigital = "";
|
||||
private String desc = "";
|
||||
private String location = "";
|
||||
private String scan1 = "";
|
||||
private String scan1History = "";
|
||||
private String writerSelect = "";
|
||||
private String contentType = "";
|
||||
private String joinCnt = "";
|
||||
private String satisAvg = "";
|
||||
private String couName = "";
|
||||
private String orgOpenAt = "";
|
||||
private String listOpenAt = "";
|
||||
private String assetType = "";
|
||||
private String assetClass = "";
|
||||
private String uaType="";
|
||||
|
||||
|
||||
private String mediaId = null;
|
||||
|
||||
List <CmmCmsKeywordsVO> cmmCmsKeywordsList = null;
|
||||
List <CmmCmsTagsVO> cmmCmsTagsList = null;
|
||||
List <CmmCouncilInfoVO> cmmCouncilInfoList = null;
|
||||
List <CmmCmsSupplementDataVO> cmmCmsSupplementDataList = null;
|
||||
List <CmmCmsReferenceDataVO> cmmCmsReferenceDataList = null;
|
||||
List <CmmCmsRelatedDataVO> cmmCmsRelatedDataList = null;
|
||||
|
||||
|
||||
|
||||
|
||||
public String getRecommendYn() {
|
||||
return recommendYn;
|
||||
}
|
||||
public void setRecommendYn(String recommendYn) {
|
||||
this.recommendYn = recommendYn;
|
||||
}
|
||||
public String getAssetType() {
|
||||
return assetType;
|
||||
}
|
||||
public void setAssetType(String assetType) {
|
||||
this.assetType = assetType;
|
||||
}
|
||||
public String getOrgOpenAt() {
|
||||
return orgOpenAt;
|
||||
}
|
||||
public void setOrgOpenAt(String orgOpenAt) {
|
||||
this.orgOpenAt = orgOpenAt;
|
||||
}
|
||||
public String getListOpenAt() {
|
||||
return listOpenAt;
|
||||
}
|
||||
public void setListOpenAt(String listOpenAt) {
|
||||
this.listOpenAt = listOpenAt;
|
||||
}
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
public String getSeries() {
|
||||
return series;
|
||||
}
|
||||
public void setSeries(String series) {
|
||||
this.series = series;
|
||||
}
|
||||
public String getFirstTopic() {
|
||||
return firstTopic;
|
||||
}
|
||||
public void setFirstTopic(String firstTopic) {
|
||||
this.firstTopic = firstTopic;
|
||||
}
|
||||
public String getSecondTopic() {
|
||||
return secondTopic;
|
||||
}
|
||||
public void setSecondTopic(String secondTopic) {
|
||||
this.secondTopic = secondTopic;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getSidoName1() {
|
||||
return sidoName1;
|
||||
}
|
||||
public void setSidoName1(String sidoName1) {
|
||||
this.sidoName1 = sidoName1;
|
||||
}
|
||||
public String getSigunguName1() {
|
||||
return sigunguName1;
|
||||
}
|
||||
public void setSigunguName1(String sigunguName1) {
|
||||
this.sigunguName1 = sigunguName1;
|
||||
}
|
||||
public String getDongName1() {
|
||||
return dongName1;
|
||||
}
|
||||
public void setDongName1(String dongName1) {
|
||||
this.dongName1 = dongName1;
|
||||
}
|
||||
public String getSidoName2() {
|
||||
return sidoName2;
|
||||
}
|
||||
public void setSidoName2(String sidoName2) {
|
||||
this.sidoName2 = sidoName2;
|
||||
}
|
||||
public String getSigunguName2() {
|
||||
return sigunguName2;
|
||||
}
|
||||
public void setSigunguName2(String sigunguName2) {
|
||||
this.sigunguName2 = sigunguName2;
|
||||
}
|
||||
public String getDongName2() {
|
||||
return dongName2;
|
||||
}
|
||||
public void setDongName2(String dongName2) {
|
||||
this.dongName2 = dongName2;
|
||||
}
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
public String getTrsSidoName() {
|
||||
return trsSidoName;
|
||||
}
|
||||
public void setTrsSidoName(String trsSidoName) {
|
||||
this.trsSidoName = trsSidoName;
|
||||
}
|
||||
public String getTrsSigunguName() {
|
||||
return trsSigunguName;
|
||||
}
|
||||
public void setTrsSigunguName(String trsSigunguName) {
|
||||
this.trsSigunguName = trsSigunguName;
|
||||
}
|
||||
public String getTrsDongName() {
|
||||
return trsDongName;
|
||||
}
|
||||
public void setTrsDongName(String trsDongName) {
|
||||
this.trsDongName = trsDongName;
|
||||
}
|
||||
public String getField() {
|
||||
return field;
|
||||
}
|
||||
public void setField(String field) {
|
||||
this.field = field;
|
||||
}
|
||||
public String getAge() {
|
||||
return age;
|
||||
}
|
||||
public void setAge(String age) {
|
||||
this.age = age;
|
||||
}
|
||||
public String getChronological() {
|
||||
return chronological;
|
||||
}
|
||||
public void setChronological(String chronological) {
|
||||
this.chronological = chronological;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
public String getAddInformation() {
|
||||
return addInformation;
|
||||
}
|
||||
public void setAddInformation(String addInformation) {
|
||||
this.addInformation = addInformation;
|
||||
}
|
||||
public String getWriterOpinion() {
|
||||
return writerOpinion;
|
||||
}
|
||||
public void setWriterOpinion(String writerOpinion) {
|
||||
this.writerOpinion = writerOpinion;
|
||||
}
|
||||
public String getWriter() {
|
||||
return writer;
|
||||
}
|
||||
public void setWriter(String writer) {
|
||||
this.writer = writer;
|
||||
}
|
||||
public String getInterfaceId() {
|
||||
return interfaceId;
|
||||
}
|
||||
public void setInterfaceId(String interfaceId) {
|
||||
this.interfaceId = interfaceId;
|
||||
}
|
||||
public String getLinkData() {
|
||||
return linkData;
|
||||
}
|
||||
public void setLinkData(String linkData) {
|
||||
this.linkData = linkData;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getRdcnt() {
|
||||
return rdcnt;
|
||||
}
|
||||
public void setRdcnt(String rdcnt) {
|
||||
this.rdcnt = rdcnt;
|
||||
}
|
||||
public List<CmmCmsKeywordsVO> getCmmCmsKeywordsList() {
|
||||
List<CmmCmsKeywordsVO> ret = null;
|
||||
if(this.cmmCmsKeywordsList != null){
|
||||
ret = new ArrayList<CmmCmsKeywordsVO>();
|
||||
ret = this.cmmCmsKeywordsList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCmmCmsKeywordsList(ArrayList<CmmCmsKeywordsVO> cmmCmsKeywordsList) {
|
||||
this.cmmCmsKeywordsList = new ArrayList<CmmCmsKeywordsVO> (cmmCmsKeywordsList.size());
|
||||
for(int i=0; i<cmmCmsKeywordsList.size(); ++i) {
|
||||
this.cmmCmsKeywordsList.add(i, cmmCmsKeywordsList.get(i));
|
||||
}
|
||||
}
|
||||
public List<CmmCmsTagsVO> getCmmCmsTagsList() {
|
||||
List<CmmCmsTagsVO> ret = null;
|
||||
if(this.cmmCmsTagsList != null){
|
||||
ret = new ArrayList<CmmCmsTagsVO>();
|
||||
ret = this.cmmCmsTagsList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCmmCmsTagsList(ArrayList<CmmCmsTagsVO> cmmCmsTagsList) {
|
||||
this.cmmCmsTagsList = new ArrayList<CmmCmsTagsVO> (cmmCmsTagsList.size());
|
||||
for(int i=0; i<cmmCmsTagsList.size(); ++i) {
|
||||
this.cmmCmsTagsList.add(i, cmmCmsTagsList.get(i));
|
||||
}
|
||||
}
|
||||
public List<CmmCouncilInfoVO> getCmmCouncilInfoList() {
|
||||
List<CmmCouncilInfoVO> ret = null;
|
||||
if(this.cmmCouncilInfoList != null){
|
||||
ret = new ArrayList<CmmCouncilInfoVO>();
|
||||
ret = this.cmmCouncilInfoList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCmmCouncilInfoList(ArrayList<CmmCouncilInfoVO> cmmCouncilInfoList) {
|
||||
this.cmmCouncilInfoList = new ArrayList<CmmCouncilInfoVO> (cmmCouncilInfoList.size());
|
||||
for(int i=0; i<cmmCouncilInfoList.size(); ++i) {
|
||||
this.cmmCouncilInfoList.add(i, cmmCouncilInfoList.get(i));
|
||||
}
|
||||
}
|
||||
public List<CmmCmsSupplementDataVO> getCmmCmsSupplementDataList() {
|
||||
List<CmmCmsSupplementDataVO> ret = null;
|
||||
if(this.cmmCmsSupplementDataList != null){
|
||||
ret = new ArrayList<CmmCmsSupplementDataVO>();
|
||||
ret = this.cmmCmsSupplementDataList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCmmCmsSupplementDataList(ArrayList<CmmCmsSupplementDataVO> cmmCmsSupplementDataList) {
|
||||
this.cmmCmsSupplementDataList = new ArrayList<CmmCmsSupplementDataVO> (cmmCmsSupplementDataList.size());
|
||||
for(int i=0; i<cmmCmsSupplementDataList.size(); ++i) {
|
||||
this.cmmCmsSupplementDataList.add(i, cmmCmsSupplementDataList.get(i));
|
||||
}
|
||||
}
|
||||
public List<CmmCmsReferenceDataVO> getCmmCmsReferenceDataList() {
|
||||
List<CmmCmsReferenceDataVO> ret = null;
|
||||
if(this.cmmCmsReferenceDataList != null){
|
||||
ret = new ArrayList<CmmCmsReferenceDataVO>();
|
||||
ret = this.cmmCmsReferenceDataList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCmmCmsReferenceDataList(ArrayList<CmmCmsReferenceDataVO> cmmCmsReferenceDataList) {
|
||||
this.cmmCmsReferenceDataList = new ArrayList<CmmCmsReferenceDataVO> (cmmCmsReferenceDataList.size());
|
||||
for(int i=0; i<cmmCmsReferenceDataList.size(); ++i) {
|
||||
this.cmmCmsReferenceDataList.add(i, cmmCmsReferenceDataList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
public List<CmmCmsRelatedDataVO> getCmmCmsRelatedDataList() {
|
||||
List<CmmCmsRelatedDataVO> ret = null;
|
||||
if(this.cmmCmsRelatedDataList != null){
|
||||
ret = new ArrayList<CmmCmsRelatedDataVO>();
|
||||
ret = this.cmmCmsRelatedDataList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setCmmCmsRelatedDataList(ArrayList<CmmCmsRelatedDataVO> cmmCmsRelatedDataList) {
|
||||
this.cmmCmsRelatedDataList = new ArrayList<CmmCmsRelatedDataVO> (cmmCmsRelatedDataList.size());
|
||||
for(int i=0; i<cmmCmsRelatedDataList.size(); ++i) {
|
||||
this.cmmCmsRelatedDataList.add(i, cmmCmsRelatedDataList.get(i));
|
||||
}
|
||||
}
|
||||
public String getCouncil() {
|
||||
return council;
|
||||
}
|
||||
public void setCouncil(String council) {
|
||||
this.council = council;
|
||||
}
|
||||
public String getVolume() {
|
||||
return volume;
|
||||
}
|
||||
public void setVolume(String volume) {
|
||||
this.volume = volume;
|
||||
}
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
public String getPublisher() {
|
||||
return publisher;
|
||||
}
|
||||
public void setPublisher(String publisher) {
|
||||
this.publisher = publisher;
|
||||
}
|
||||
public String getGenyear() {
|
||||
return genyear;
|
||||
}
|
||||
public void setGenyear(String genyear) {
|
||||
this.genyear = genyear;
|
||||
}
|
||||
public String getAmount() {
|
||||
return amount;
|
||||
}
|
||||
public void setAmount(String amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
public String getKeywords() {
|
||||
return keywords;
|
||||
}
|
||||
public void setKeywords(String keywords) {
|
||||
this.keywords = keywords;
|
||||
}
|
||||
public String getCount() {
|
||||
return count;
|
||||
}
|
||||
public void setCount(String count) {
|
||||
this.count = count;
|
||||
}
|
||||
public String getHaveFile() {
|
||||
return haveFile;
|
||||
}
|
||||
public void setHaveFile(String haveFile) {
|
||||
this.haveFile = haveFile;
|
||||
}
|
||||
public String getNeedDigital() {
|
||||
return needDigital;
|
||||
}
|
||||
public void setNeedDigital(String needDigital) {
|
||||
this.needDigital = needDigital;
|
||||
}
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
public void setLocation(String location) {
|
||||
this.location = location;
|
||||
}
|
||||
public Date getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
public void setDeletedAt(Date deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
public String getScan1() {
|
||||
return scan1;
|
||||
}
|
||||
public void setScan1(String scan1) {
|
||||
this.scan1 = scan1;
|
||||
}
|
||||
public String getScan1History() {
|
||||
return scan1History;
|
||||
}
|
||||
public void setScan1History(String scan1History) {
|
||||
this.scan1History = scan1History;
|
||||
}
|
||||
public String getWriterSelect() {
|
||||
return writerSelect;
|
||||
}
|
||||
public void setWriterSelect(String writerSelect) {
|
||||
this.writerSelect = writerSelect;
|
||||
}
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
public String getJoinCnt() {
|
||||
return joinCnt;
|
||||
}
|
||||
public void setJoinCnt(String joinCnt) {
|
||||
this.joinCnt = joinCnt;
|
||||
}
|
||||
public String getSatisAvg() {
|
||||
return satisAvg;
|
||||
}
|
||||
public void setSatisAvg(String satisAvg) {
|
||||
this.satisAvg = satisAvg;
|
||||
}
|
||||
public String getEtcCol1() {
|
||||
return etcCol1;
|
||||
}
|
||||
public void setEtcCol1(String etcCol1) {
|
||||
this.etcCol1 = etcCol1;
|
||||
}
|
||||
public String getEtcCol2() {
|
||||
return etcCol2;
|
||||
}
|
||||
public void setEtcCol2(String etcCol2) {
|
||||
this.etcCol2 = etcCol2;
|
||||
}
|
||||
public String getAssetClass() {
|
||||
return assetClass;
|
||||
}
|
||||
public void setAssetClass(String assetClass) {
|
||||
this.assetClass = assetClass;
|
||||
}
|
||||
public String getUaType() {
|
||||
return uaType;
|
||||
}
|
||||
public void setUaType(String uaType) {
|
||||
this.uaType = uaType;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
|
||||
}
|
||||
274
src/main/java/cmm/service/CmmCouncilInfoVO.java
Normal file
274
src/main/java/cmm/service/CmmCouncilInfoVO.java
Normal file
@ -0,0 +1,274 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmCouncilInfoVO extends CmmVO {
|
||||
|
||||
private String id = null;
|
||||
private String region = "";
|
||||
private String couName = "";
|
||||
private String councilNm = "";
|
||||
private String councilCd = "";
|
||||
private String postNo = "";
|
||||
private String address = "";
|
||||
private String frontTelNo = "";
|
||||
private String middleTelNo = "";
|
||||
private String endTelNo = "";
|
||||
private String phone = "";
|
||||
private String mainImg = "";
|
||||
private String summary = "";
|
||||
private String email = "";
|
||||
private String faxFrontTelNo = "";
|
||||
private String faxMiddleTelNo = "";
|
||||
private String faxEndTelNo = "";
|
||||
private String fax = "";
|
||||
private String url = "";
|
||||
private Date createdAt = null;
|
||||
private Date updatedAt = null;
|
||||
private String useAt = "";
|
||||
private String mainImgOrignlFileNm = "";
|
||||
private String atchCtrl ="";
|
||||
|
||||
private String contentId = null;
|
||||
private String mediaId = null;
|
||||
|
||||
|
||||
// 지역문화지도에서 사용하기 위한 변수
|
||||
private String contentType = "";
|
||||
private String latitude = "";
|
||||
private String longitude = "";
|
||||
private String sidoName = "";
|
||||
private String sigunguName = "";
|
||||
private String cntnsStoryCnt = "0"; // 지역문화이야기 건수
|
||||
private String localCultureCnt = "0"; // 지역문화정보 건수(관광정보)
|
||||
private String councilCnt = "0"; // 소장자료 건수
|
||||
|
||||
private String linkNm = ""; //문화원 접속 URL
|
||||
private String siteStyle =""; //사이트 색상
|
||||
|
||||
public String getCouncilNm() {
|
||||
return councilNm;
|
||||
}
|
||||
public void setCouncilNm(String councilNm) {
|
||||
this.councilNm = councilNm;
|
||||
}
|
||||
public String getCouncilCd() {
|
||||
return councilCd;
|
||||
}
|
||||
public void setCouncilCd(String councilCd) {
|
||||
this.councilCd = councilCd;
|
||||
}
|
||||
public String getPostNo() {
|
||||
return postNo;
|
||||
}
|
||||
public void setPostNo(String postNo) {
|
||||
this.postNo = postNo;
|
||||
}
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
public String getFrontTelNo() {
|
||||
return frontTelNo;
|
||||
}
|
||||
public void setFrontTelNo(String frontTelNo) {
|
||||
this.frontTelNo = frontTelNo;
|
||||
}
|
||||
public String getMiddleTelNo() {
|
||||
return middleTelNo;
|
||||
}
|
||||
public void setMiddleTelNo(String middleTelNo) {
|
||||
this.middleTelNo = middleTelNo;
|
||||
}
|
||||
public String getEndTelNo() {
|
||||
return endTelNo;
|
||||
}
|
||||
public void setEndTelNo(String endTelNo) {
|
||||
this.endTelNo = endTelNo;
|
||||
}
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
public String getFaxFrontTelNo() {
|
||||
return faxFrontTelNo;
|
||||
}
|
||||
public void setFaxFrontTelNo(String faxFrontTelNo) {
|
||||
this.faxFrontTelNo = faxFrontTelNo;
|
||||
}
|
||||
public String getFaxMiddleTelNo() {
|
||||
return faxMiddleTelNo;
|
||||
}
|
||||
public void setFaxMiddleTelNo(String faxMiddleTelNo) {
|
||||
this.faxMiddleTelNo = faxMiddleTelNo;
|
||||
}
|
||||
public String getFaxEndTelNo() {
|
||||
return faxEndTelNo;
|
||||
}
|
||||
public void setFaxEndTelNo(String faxEndTelNo) {
|
||||
this.faxEndTelNo = faxEndTelNo;
|
||||
}
|
||||
public String getFax() {
|
||||
return fax;
|
||||
}
|
||||
public void setFax(String fax) {
|
||||
this.fax = fax;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getRegion() {
|
||||
return region;
|
||||
}
|
||||
public void setRegion(String region) {
|
||||
this.region = region;
|
||||
}
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getMainImgOrignlFileNm() {
|
||||
return mainImgOrignlFileNm;
|
||||
}
|
||||
public void setMainImgOrignlFileNm(String mainImgOrignlFileNm) {
|
||||
this.mainImgOrignlFileNm = mainImgOrignlFileNm;
|
||||
}
|
||||
public String getAtchCtrl() {
|
||||
return atchCtrl;
|
||||
}
|
||||
public void setAtchCtrl(String atchCtrl) {
|
||||
this.atchCtrl = atchCtrl;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
public String getMediaId() {
|
||||
return mediaId;
|
||||
}
|
||||
public void setMediaId(String mediaId) {
|
||||
this.mediaId = mediaId;
|
||||
}
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
public String getCntnsStoryCnt() {
|
||||
return cntnsStoryCnt;
|
||||
}
|
||||
public void setCntnsStoryCnt(String cntnsStoryCnt) {
|
||||
this.cntnsStoryCnt = cntnsStoryCnt;
|
||||
}
|
||||
public String getLocalCultureCnt() {
|
||||
return localCultureCnt;
|
||||
}
|
||||
public void setLocalCultureCnt(String localCultureCnt) {
|
||||
this.localCultureCnt = localCultureCnt;
|
||||
}
|
||||
public String getCouncilCnt() {
|
||||
return councilCnt;
|
||||
}
|
||||
public void setCouncilCnt(String councilCnt) {
|
||||
this.councilCnt = councilCnt;
|
||||
}
|
||||
public String getLinkNm() {
|
||||
return linkNm;
|
||||
}
|
||||
public void setLinkNm(String linkNm) {
|
||||
this.linkNm = linkNm;
|
||||
}
|
||||
public String getSiteStyle() {
|
||||
return siteStyle;
|
||||
}
|
||||
public void setSiteStyle(String siteStyle) {
|
||||
this.siteStyle = siteStyle;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
143
src/main/java/cmm/service/CmmCulturePostContentVO.java
Normal file
143
src/main/java/cmm/service/CmmCulturePostContentVO.java
Normal file
@ -0,0 +1,143 @@
|
||||
package cmm.service;
|
||||
|
||||
|
||||
public class CmmCulturePostContentVO {
|
||||
private int id;
|
||||
private int postId;
|
||||
private String contentId;
|
||||
private String contentType;
|
||||
private String theme;
|
||||
private String themeCd;
|
||||
private String themeNm;
|
||||
private String series;
|
||||
private String seriesCd;
|
||||
private String seriesNm;
|
||||
private String firstTopic;
|
||||
private String secondTopic;
|
||||
private String title;
|
||||
private String tagsName;
|
||||
|
||||
private String provider;
|
||||
private String genyear;
|
||||
private String firstCategoryNm;
|
||||
private String secondCategoryNm;
|
||||
private String publisher;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
public int getPostId() {
|
||||
return postId;
|
||||
}
|
||||
public void setPostId(int postId) {
|
||||
this.postId = postId;
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
public String getSeries() {
|
||||
return series;
|
||||
}
|
||||
public void setSeries(String series) {
|
||||
this.series = series;
|
||||
}
|
||||
public String getFirstTopic() {
|
||||
return firstTopic;
|
||||
}
|
||||
public void setFirstTopic(String firstTopic) {
|
||||
this.firstTopic = firstTopic;
|
||||
}
|
||||
public String getSecondTopic() {
|
||||
return secondTopic;
|
||||
}
|
||||
public void setSecondTopic(String secondTopic) {
|
||||
this.secondTopic = secondTopic;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getTagsName() {
|
||||
return tagsName;
|
||||
}
|
||||
public void setTagsName(String tagsName) {
|
||||
this.tagsName = tagsName;
|
||||
}
|
||||
public String getProvider() {
|
||||
return provider;
|
||||
}
|
||||
public void setProvider(String provider) {
|
||||
this.provider = provider;
|
||||
}
|
||||
public String getGenyear() {
|
||||
return genyear;
|
||||
}
|
||||
public void setGenyear(String genyear) {
|
||||
this.genyear = genyear;
|
||||
}
|
||||
public String getFirstCategoryNm() {
|
||||
return firstCategoryNm;
|
||||
}
|
||||
public void setFirstCategoryNm(String firstCategoryNm) {
|
||||
this.firstCategoryNm = firstCategoryNm;
|
||||
}
|
||||
public String getSecondCategoryNm() {
|
||||
return secondCategoryNm;
|
||||
}
|
||||
public void setSecondCategoryNm(String secondCategoryNm) {
|
||||
this.secondCategoryNm = secondCategoryNm;
|
||||
}
|
||||
public String getPublisher() {
|
||||
return publisher;
|
||||
}
|
||||
public void setPublisher(String publisher) {
|
||||
this.publisher = publisher;
|
||||
}
|
||||
public String getThemeCd() {
|
||||
return themeCd;
|
||||
}
|
||||
public void setThemeCd(String themeCd) {
|
||||
this.themeCd = themeCd;
|
||||
}
|
||||
public String getThemeNm() {
|
||||
return themeNm;
|
||||
}
|
||||
public void setThemeNm(String themeNm) {
|
||||
this.themeNm = themeNm;
|
||||
}
|
||||
public String getSeriesCd() {
|
||||
return seriesCd;
|
||||
}
|
||||
public void setSeriesCd(String seriesCd) {
|
||||
this.seriesCd = seriesCd;
|
||||
}
|
||||
public String getSeriesNm() {
|
||||
return seriesNm;
|
||||
}
|
||||
public void setSeriesNm(String seriesNm) {
|
||||
this.seriesNm = seriesNm;
|
||||
}
|
||||
|
||||
}
|
||||
220
src/main/java/cmm/service/CmmCulturePostVO.java
Normal file
220
src/main/java/cmm/service/CmmCulturePostVO.java
Normal file
@ -0,0 +1,220 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmCulturePostVO extends CmmVO {
|
||||
private String id = null;
|
||||
private String contentId = null;
|
||||
private String title = "";
|
||||
private String summary = "";
|
||||
private String mainImg = "";
|
||||
private String mainImgOrignlFileNm = "";
|
||||
private String useAt = "";
|
||||
private String beginAt = "";
|
||||
private String endAt = "";
|
||||
private Date createDt;
|
||||
private Date updateDt;
|
||||
private String [] contentIds = null;
|
||||
private String tags = "";
|
||||
private String backImg = "";
|
||||
private String backImgOrignlFileNm = "";
|
||||
private String openAt = "N";
|
||||
private String atchCtrl = "";
|
||||
private String atchCtrl2 = "";
|
||||
private String topFontStyle ="";
|
||||
private String bottomColorStyle ="";
|
||||
private String totCnt ="";
|
||||
private String copyright ="";
|
||||
|
||||
private String sortOrdr = ""; // 정렬순서 추가 (2019.10.25)
|
||||
|
||||
List<CmmCulturePostContentVO> kdmCulturePostContentList = null;
|
||||
List<CmmCmsContentsVO> culturePostContentList = null;
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getMainImgOrignlFileNm() {
|
||||
return mainImgOrignlFileNm;
|
||||
}
|
||||
public void setMainImgOrignlFileNm(String mainImgOrignlFileNm) {
|
||||
this.mainImgOrignlFileNm = mainImgOrignlFileNm;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getBeginAt() {
|
||||
return beginAt;
|
||||
}
|
||||
public void setBeginAt(String beginAt) {
|
||||
this.beginAt = beginAt;
|
||||
}
|
||||
public String getEndAt() {
|
||||
return endAt;
|
||||
}
|
||||
public void setEndAt(String endAt) {
|
||||
this.endAt = endAt;
|
||||
}
|
||||
public Date getCreateDt() {
|
||||
return createDt;
|
||||
}
|
||||
public void setCreateDt(Date createDt) {
|
||||
this.createDt = createDt;
|
||||
}
|
||||
public Date getUpdateDt() {
|
||||
return updateDt;
|
||||
}
|
||||
public void setUpdateDt(Date updateDt) {
|
||||
this.updateDt = updateDt;
|
||||
}
|
||||
public String[] getContentIds() {
|
||||
String[] ret = null;
|
||||
if (this.contentIds != null) {
|
||||
ret = new String[contentIds.length];
|
||||
for (int i = 0; i < contentIds.length; i++) {
|
||||
ret[i] = this.contentIds[i];
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public void setContentIds(String[] contentIds) {
|
||||
// 수정
|
||||
this.contentIds = new String[contentIds.length];
|
||||
for(int i = 0; i < contentIds.length; ++i)
|
||||
this.contentIds[i] = contentIds[i];
|
||||
}
|
||||
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
public List<CmmCulturePostContentVO> getKdmCulturePostContentList() {
|
||||
List<CmmCulturePostContentVO> cpc = null;
|
||||
if(this.kdmCulturePostContentList != null){
|
||||
cpc = new ArrayList<CmmCulturePostContentVO>();
|
||||
cpc = this.kdmCulturePostContentList;
|
||||
}
|
||||
|
||||
return cpc;
|
||||
}
|
||||
public void setKdmCulturePostContentList(ArrayList<CmmCulturePostContentVO> kdmCulturePostContentList) {
|
||||
this.kdmCulturePostContentList = new ArrayList<CmmCulturePostContentVO> (kdmCulturePostContentList.size());
|
||||
for(int i=0; i<kdmCulturePostContentList.size(); ++i) {
|
||||
this.kdmCulturePostContentList.add(i, kdmCulturePostContentList.get(i));
|
||||
}
|
||||
}
|
||||
public List<CmmCmsContentsVO> getCulturePostContentList() {
|
||||
List<CmmCmsContentsVO> cpc = null;
|
||||
if(this.culturePostContentList != null){
|
||||
cpc = new ArrayList<CmmCmsContentsVO>();
|
||||
cpc = this.culturePostContentList;
|
||||
}
|
||||
return cpc;
|
||||
}
|
||||
public void setCulturePostContentList(ArrayList<CmmCmsContentsVO> culturePostContentList) {
|
||||
this.culturePostContentList = new ArrayList<CmmCmsContentsVO> (culturePostContentList.size());
|
||||
for(int i=0; i<culturePostContentList.size(); ++i) {
|
||||
this.culturePostContentList.add(i, culturePostContentList.get(i));
|
||||
}
|
||||
}
|
||||
public String getBackImg() {
|
||||
return backImg;
|
||||
}
|
||||
public void setBackImg(String backImg) {
|
||||
this.backImg = backImg;
|
||||
}
|
||||
public String getBackImgOrignlFileNm() {
|
||||
return backImgOrignlFileNm;
|
||||
}
|
||||
public void setBackImgOrignlFileNm(String backImgOrignlFileNm) {
|
||||
this.backImgOrignlFileNm = backImgOrignlFileNm;
|
||||
}
|
||||
public String getOpenAt() {
|
||||
return openAt;
|
||||
}
|
||||
public void setOpenAt(String openAt) {
|
||||
this.openAt = openAt;
|
||||
}
|
||||
public String getAtchCtrl() {
|
||||
return atchCtrl;
|
||||
}
|
||||
public void setAtchCtrl(String atchCtrl) {
|
||||
this.atchCtrl = atchCtrl;
|
||||
}
|
||||
public String getAtchCtrl2() {
|
||||
return atchCtrl2;
|
||||
}
|
||||
public void setAtchCtrl2(String atchCtrl2) {
|
||||
this.atchCtrl2 = atchCtrl2;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
public String getTopFontStyle() {
|
||||
return topFontStyle;
|
||||
}
|
||||
public void setTopFontStyle(String topFontStyle) {
|
||||
this.topFontStyle = topFontStyle;
|
||||
}
|
||||
public String getBottomColorStyle() {
|
||||
return bottomColorStyle;
|
||||
}
|
||||
public void setBottomColorStyle(String bottomColorStyle) {
|
||||
this.bottomColorStyle = bottomColorStyle;
|
||||
}
|
||||
public String getTotCnt() {
|
||||
return totCnt;
|
||||
}
|
||||
public void setTotCnt(String totCnt) {
|
||||
this.totCnt = totCnt;
|
||||
}
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
public String getSortOrdr() {
|
||||
return sortOrdr;
|
||||
}
|
||||
public void setSortOrdr(String sortOrdr) {
|
||||
this.sortOrdr = sortOrdr;
|
||||
}
|
||||
}
|
||||
61
src/main/java/cmm/service/CmmExtWebzineSubscribeVO.java
Normal file
61
src/main/java/cmm/service/CmmExtWebzineSubscribeVO.java
Normal file
@ -0,0 +1,61 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmExtWebzineSubscribeVO extends CmmVO {
|
||||
|
||||
private String id = "";
|
||||
private String email = "";
|
||||
private Date createDt = null;
|
||||
private String useAt = "";
|
||||
List<String> contentIdList;
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
public Date getCreateDt() {
|
||||
return createDt;
|
||||
}
|
||||
public void setCreateDt(Date createDt) {
|
||||
this.createDt = createDt;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
|
||||
public List<String> getContentIdList() {
|
||||
List<String> ret = null;
|
||||
if(this.contentIdList != null){
|
||||
ret = new ArrayList<String>();
|
||||
ret = this.contentIdList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setContentIdList(List<String> contentIdList) {
|
||||
this.contentIdList = new ArrayList<String> (contentIdList.size());
|
||||
for(int i=0; i<contentIdList.size(); ++i) {
|
||||
this.contentIdList.add(i, contentIdList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
22
src/main/java/cmm/service/CmmFileService.java
Normal file
22
src/main/java/cmm/service/CmmFileService.java
Normal file
@ -0,0 +1,22 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
public interface CmmFileService {
|
||||
|
||||
public String uploadFile(HttpServletRequest request, FileManagementVO fileManagementVO) throws IOException, EgovBizException;
|
||||
public List<FileDetailVO> selectFileDetailList(String fileMstNo) throws IOException, EgovBizException;
|
||||
public FileDetailVO selectFileDetail(FileDetailVO fileDetailVO) throws IOException, EgovBizException;
|
||||
public FileDetailVO selectFileDetailFirst(String fileMstNo) throws IOException, EgovBizException;
|
||||
public boolean deleteAllFileDetailAndMaster(String fileMstNo) throws IOException, EgovBizException;
|
||||
public List<FileDetailVO> selectIconFileDownLoad(String atchFileId) throws IOException, EgovBizException;
|
||||
public String uploadFileOneAttMulti(HttpServletRequest request, FileManagementVO fileManagementVO, int cnt) throws IOException, EgovBizException;
|
||||
String uploadFileOneAttMulti(MultipartFile multipartFile, FileManagementVO fileManagementVO, int fileSn, String fileMstNo, String ctrlStr, String fileDtlNo, String path) throws IOException, EgovBizException;
|
||||
}
|
||||
12
src/main/java/cmm/service/CmmMenuManageService.java
Normal file
12
src/main/java/cmm/service/CmmMenuManageService.java
Normal file
@ -0,0 +1,12 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
|
||||
public interface CmmMenuManageService {
|
||||
List<DataMap> selectMenuHead(String authorCode) throws EgovBizException;
|
||||
List<DataMap> selectMenuLeft(String authorCode) throws EgovBizException;
|
||||
}
|
||||
90
src/main/java/cmm/service/CmmMetaVO.java
Normal file
90
src/main/java/cmm/service/CmmMetaVO.java
Normal file
@ -0,0 +1,90 @@
|
||||
package cmm.service;
|
||||
|
||||
import cmm.Constant;
|
||||
import cmm.util.CmmUtil;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmMetaVO {
|
||||
|
||||
private String title = "지역N문화";
|
||||
private String url = "http://www.nculture.org";
|
||||
private String image = "http://www.nculture.org/images/cmm/open-graph-image.jpg";
|
||||
private String imageType = "image/jpeg";
|
||||
private Integer imageWidth = null;
|
||||
private Integer imageHeight = null;
|
||||
private String description = "지방문화원이 생산,발굴한 독특하고 고유한 지역문화 콘텐츠 및 소장자료를 모든 국민이 향유할수 있도록 제공하는 지역문화 대표 포털";
|
||||
private String ogType = Constant.META_OG_TYPE.article.toString();
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
public void setImage(String image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public String getImageType() {
|
||||
return imageType;
|
||||
}
|
||||
|
||||
public void setImageType(String imageType) {
|
||||
this.imageType = imageType;
|
||||
}
|
||||
|
||||
public Integer getImageWidth() {
|
||||
return imageWidth;
|
||||
}
|
||||
|
||||
public void setImageWidth(Integer imageWidth) {
|
||||
this.imageWidth = imageWidth;
|
||||
}
|
||||
|
||||
public Integer getImageHeight() {
|
||||
return imageHeight;
|
||||
}
|
||||
|
||||
public void setImageHeight(Integer imageHeight) {
|
||||
this.imageHeight = imageHeight;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getOgType() {
|
||||
return ogType;
|
||||
}
|
||||
|
||||
public void setOgType(String ogType) {
|
||||
this.ogType = ogType;
|
||||
}
|
||||
|
||||
/**
|
||||
* toString()
|
||||
* @return String
|
||||
*/
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
|
||||
}
|
||||
20
src/main/java/cmm/service/CmmPmsMapContentsService.java
Normal file
20
src/main/java/cmm/service/CmmPmsMapContentsService.java
Normal file
@ -0,0 +1,20 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
/**
|
||||
* 맵 콘텐츠에 대한 서비스 인터페이스 클래스를 정의한다
|
||||
* @Class Name : CmmPmsMapContentsService.java
|
||||
* @author ecplaza
|
||||
* @since 2018-06-26
|
||||
* @version 1.0
|
||||
*/
|
||||
public interface CmmPmsMapContentsService {
|
||||
int selectCmmPmsMapCntnsStoryCnt(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException;
|
||||
int selectCmmPmsMapLocalCultureCnt(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException;
|
||||
List<CmmCouncilInfoVO> selectCmmPmsMapAoiCouncilInfoList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException;
|
||||
List<CmmPmsMapContentsVO> selectCmmPmsMapContentsList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException;
|
||||
List<CmmPmsMapContentsVO> selectCmmPmsMapContentsSearchList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException;
|
||||
}
|
||||
508
src/main/java/cmm/service/CmmPmsMapContentsVO.java
Normal file
508
src/main/java/cmm/service/CmmPmsMapContentsVO.java
Normal file
@ -0,0 +1,508 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
|
||||
/**
|
||||
* @Class Name : CmmPmsMapContentsVO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-06-26
|
||||
* @version 1.0
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmPmsMapContentsVO extends CmmVO {
|
||||
|
||||
private String id = "";
|
||||
private String contentType = "";
|
||||
private String contentId = "";
|
||||
private String contentTypeId = "";
|
||||
private String contentTypeName = "";
|
||||
private String copyright = "";
|
||||
private String title = "";
|
||||
private String summary = "";
|
||||
private String mainImage = "";
|
||||
private String linkData = "";
|
||||
private String latitude = "";
|
||||
private String longitude = "";
|
||||
private String sidoName = "";
|
||||
private String sigunguName = "";
|
||||
private String cat1 = "";
|
||||
private String cat1Name = "";
|
||||
private String cat2 = "";
|
||||
private String cat2Name = "";
|
||||
private String cat3 = "";
|
||||
private String cat3Name = "";
|
||||
private String zipCode = "";
|
||||
private String tel = "";
|
||||
private String firstTopic = "";
|
||||
private String secondTopic = "";
|
||||
private String firstClass = "";
|
||||
private String secondClass = "";
|
||||
private String age = "";
|
||||
private String genyear = "";
|
||||
private String chronologicalStart = "";
|
||||
private String chronologicalEnd = "";
|
||||
private String themeCd = "";
|
||||
private String themeNm = "";
|
||||
private String seriesCd = "";
|
||||
private String seriesNm = "";
|
||||
private String firstCategory = "";
|
||||
private String firstCategoryNm = "";
|
||||
private String secondCategory = "";
|
||||
private String secondCategoryNm = "";
|
||||
private String interfaceId = "";
|
||||
private String recommendYn = "";
|
||||
private String tagsName = "";
|
||||
private String addr1 = "";
|
||||
private String addr2 = "";
|
||||
private String ntceBgnde = "";
|
||||
private String ntceEndde = "";
|
||||
private String website = "";
|
||||
private String createdAt = "";
|
||||
private String updatedAt = "";
|
||||
private String councilCd = "";
|
||||
private String councilNm = "";
|
||||
private String councilCnt = "0";
|
||||
|
||||
|
||||
// 문화원 정보 목록
|
||||
List <CmmCouncilInfoVO> cmmCouncilInfoList = null;
|
||||
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
public String getContentTypeId() {
|
||||
return contentTypeId;
|
||||
}
|
||||
|
||||
public void setContentTypeId(String contentTypeId) {
|
||||
this.contentTypeId = contentTypeId;
|
||||
}
|
||||
|
||||
public String getContentTypeName() {
|
||||
return contentTypeName;
|
||||
}
|
||||
|
||||
public void setContentTypeName(String contentTypeName) {
|
||||
this.contentTypeName = contentTypeName;
|
||||
}
|
||||
|
||||
public String getCopyright() {
|
||||
return copyright;
|
||||
}
|
||||
|
||||
public void setCopyright(String copyright) {
|
||||
this.copyright = copyright;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
public String getMainImage() {
|
||||
return mainImage;
|
||||
}
|
||||
|
||||
public void setMainImage(String mainImage) {
|
||||
this.mainImage = mainImage;
|
||||
}
|
||||
|
||||
public String getLinkData() {
|
||||
return linkData;
|
||||
}
|
||||
|
||||
public void setLinkData(String linkData) {
|
||||
this.linkData = linkData;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
|
||||
public String getCat1() {
|
||||
return cat1;
|
||||
}
|
||||
|
||||
public void setCat1(String cat1) {
|
||||
this.cat1 = cat1;
|
||||
}
|
||||
|
||||
public String getCat1Name() {
|
||||
return cat1Name;
|
||||
}
|
||||
|
||||
public void setCat1Name(String cat1Name) {
|
||||
this.cat1Name = cat1Name;
|
||||
}
|
||||
|
||||
public String getCat2() {
|
||||
return cat2;
|
||||
}
|
||||
|
||||
public void setCat2(String cat2) {
|
||||
this.cat2 = cat2;
|
||||
}
|
||||
|
||||
public String getCat2Name() {
|
||||
return cat2Name;
|
||||
}
|
||||
|
||||
public void setCat2Name(String cat2Name) {
|
||||
this.cat2Name = cat2Name;
|
||||
}
|
||||
|
||||
public String getCat3() {
|
||||
return cat3;
|
||||
}
|
||||
|
||||
public void setCat3(String cat3) {
|
||||
this.cat3 = cat3;
|
||||
}
|
||||
|
||||
public String getCat3Name() {
|
||||
return cat3Name;
|
||||
}
|
||||
|
||||
public void setCat3Name(String cat3Name) {
|
||||
this.cat3Name = cat3Name;
|
||||
}
|
||||
|
||||
public String getZipCode() {
|
||||
return zipCode;
|
||||
}
|
||||
|
||||
public void setZipCode(String zipCode) {
|
||||
this.zipCode = zipCode;
|
||||
}
|
||||
|
||||
public String getTel() {
|
||||
return tel;
|
||||
}
|
||||
|
||||
public void setTel(String tel) {
|
||||
this.tel = tel;
|
||||
}
|
||||
|
||||
public String getFirstTopic() {
|
||||
return firstTopic;
|
||||
}
|
||||
|
||||
public void setFirstTopic(String firstTopic) {
|
||||
this.firstTopic = firstTopic;
|
||||
}
|
||||
|
||||
public String getSecondTopic() {
|
||||
return secondTopic;
|
||||
}
|
||||
|
||||
public void setSecondTopic(String secondTopic) {
|
||||
this.secondTopic = secondTopic;
|
||||
}
|
||||
|
||||
public String getFirstClass() {
|
||||
return firstClass;
|
||||
}
|
||||
|
||||
public void setFirstClass(String firstClass) {
|
||||
this.firstClass = firstClass;
|
||||
}
|
||||
|
||||
public String getSecondClass() {
|
||||
return secondClass;
|
||||
}
|
||||
|
||||
public void setSecondClass(String secondClass) {
|
||||
this.secondClass = secondClass;
|
||||
}
|
||||
|
||||
public String getAge() {
|
||||
return age;
|
||||
}
|
||||
|
||||
public void setAge(String age) {
|
||||
this.age = age;
|
||||
}
|
||||
|
||||
public String getGenyear() {
|
||||
return genyear;
|
||||
}
|
||||
|
||||
public void setGenyear(String genyear) {
|
||||
this.genyear = genyear;
|
||||
}
|
||||
|
||||
public String getChronologicalStart() {
|
||||
return chronologicalStart;
|
||||
}
|
||||
|
||||
public void setChronologicalStart(String chronologicalStart) {
|
||||
this.chronologicalStart = chronologicalStart;
|
||||
}
|
||||
|
||||
public String getChronologicalEnd() {
|
||||
return chronologicalEnd;
|
||||
}
|
||||
|
||||
public void setChronologicalEnd(String chronologicalEnd) {
|
||||
this.chronologicalEnd = chronologicalEnd;
|
||||
}
|
||||
|
||||
public String getThemeCd() {
|
||||
return themeCd;
|
||||
}
|
||||
|
||||
public void setThemeCd(String themeCd) {
|
||||
this.themeCd = themeCd;
|
||||
}
|
||||
|
||||
public String getThemeNm() {
|
||||
return themeNm;
|
||||
}
|
||||
|
||||
public void setThemeNm(String themeNm) {
|
||||
this.themeNm = themeNm;
|
||||
}
|
||||
|
||||
public String getSeriesCd() {
|
||||
return seriesCd;
|
||||
}
|
||||
|
||||
public void setSeriesCd(String seriesCd) {
|
||||
this.seriesCd = seriesCd;
|
||||
}
|
||||
|
||||
public String getSeriesNm() {
|
||||
return seriesNm;
|
||||
}
|
||||
|
||||
public void setSeriesNm(String seriesNm) {
|
||||
this.seriesNm = seriesNm;
|
||||
}
|
||||
|
||||
public String getFirstCategory() {
|
||||
return firstCategory;
|
||||
}
|
||||
|
||||
public void setFirstCategory(String firstCategory) {
|
||||
this.firstCategory = firstCategory;
|
||||
}
|
||||
|
||||
public String getFirstCategoryNm() {
|
||||
return firstCategoryNm;
|
||||
}
|
||||
|
||||
public void setFirstCategoryNm(String firstCategoryNm) {
|
||||
this.firstCategoryNm = firstCategoryNm;
|
||||
}
|
||||
|
||||
public String getSecondCategory() {
|
||||
return secondCategory;
|
||||
}
|
||||
|
||||
public void setSecondCategory(String secondCategory) {
|
||||
this.secondCategory = secondCategory;
|
||||
}
|
||||
|
||||
public String getSecondCategoryNm() {
|
||||
return secondCategoryNm;
|
||||
}
|
||||
|
||||
public void setSecondCategoryNm(String secondCategoryNm) {
|
||||
this.secondCategoryNm = secondCategoryNm;
|
||||
}
|
||||
|
||||
public String getInterfaceId() {
|
||||
return interfaceId;
|
||||
}
|
||||
|
||||
public void setInterfaceId(String interfaceId) {
|
||||
this.interfaceId = interfaceId;
|
||||
}
|
||||
|
||||
public String getRecommendYn() {
|
||||
return recommendYn;
|
||||
}
|
||||
|
||||
public void setRecommendYn(String recommendYn) {
|
||||
this.recommendYn = recommendYn;
|
||||
}
|
||||
|
||||
public String getTagsName() {
|
||||
return tagsName;
|
||||
}
|
||||
|
||||
public void setTagsName(String tagsName) {
|
||||
this.tagsName = tagsName;
|
||||
}
|
||||
|
||||
public String getAddr1() {
|
||||
return addr1;
|
||||
}
|
||||
|
||||
public void setAddr1(String addr1) {
|
||||
this.addr1 = addr1;
|
||||
}
|
||||
|
||||
public String getAddr2() {
|
||||
return addr2;
|
||||
}
|
||||
|
||||
public void setAddr2(String addr2) {
|
||||
this.addr2 = addr2;
|
||||
}
|
||||
|
||||
public String getNtceBgnde() {
|
||||
return ntceBgnde;
|
||||
}
|
||||
|
||||
public void setNtceBgnde(String ntceBgnde) {
|
||||
this.ntceBgnde = ntceBgnde;
|
||||
}
|
||||
|
||||
public String getNtceEndde() {
|
||||
return ntceEndde;
|
||||
}
|
||||
|
||||
public void setNtceEndde(String ntceEndde) {
|
||||
this.ntceEndde = ntceEndde;
|
||||
}
|
||||
|
||||
public String getWebsite() {
|
||||
return website;
|
||||
}
|
||||
|
||||
public void setWebsite(String website) {
|
||||
this.website = website;
|
||||
}
|
||||
|
||||
public String getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(String createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public String getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(String updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public String getCouncilCd() {
|
||||
return councilCd;
|
||||
}
|
||||
|
||||
public void setCouncilCd(String councilCd) {
|
||||
this.councilCd = councilCd;
|
||||
}
|
||||
|
||||
public String getCouncilNm() {
|
||||
return councilNm;
|
||||
}
|
||||
|
||||
public void setCouncilNm(String councilNm) {
|
||||
this.councilNm = councilNm;
|
||||
}
|
||||
|
||||
public String getCouncilCnt() {
|
||||
return councilCnt;
|
||||
}
|
||||
|
||||
public void setCouncilCnt(String councilCnt) {
|
||||
this.councilCnt = councilCnt;
|
||||
}
|
||||
|
||||
|
||||
public List<CmmCouncilInfoVO> getCmmCouncilInfoList() {
|
||||
List<CmmCouncilInfoVO> ret = null;
|
||||
if(this.cmmCouncilInfoList != null){
|
||||
ret = new ArrayList<CmmCouncilInfoVO>();
|
||||
ret = this.cmmCouncilInfoList;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCmmCouncilInfoList(List<CmmCouncilInfoVO> cmmCouncilInfoList) {
|
||||
this.cmmCouncilInfoList = new ArrayList<CmmCouncilInfoVO> (cmmCouncilInfoList.size());
|
||||
for(int i=0; i<cmmCouncilInfoList.size(); ++i) {
|
||||
this.cmmCouncilInfoList.add(i, cmmCouncilInfoList.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* toString()
|
||||
* @return String
|
||||
*/
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
162
src/main/java/cmm/service/CmmScrapInfoVO.java
Normal file
162
src/main/java/cmm/service/CmmScrapInfoVO.java
Normal file
@ -0,0 +1,162 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmScrapInfoVO extends CmmVO {
|
||||
|
||||
private int Id;
|
||||
private String jsessionId;
|
||||
private int contentId;
|
||||
private String contentType;
|
||||
private String linkUrl;
|
||||
private String mainImg = "";
|
||||
private String title = "";
|
||||
private String summary = "";
|
||||
private String theme = "";
|
||||
private String series = "";
|
||||
private String firstTopic = "";
|
||||
private String secondTopic = "";
|
||||
private String firstClass = "";
|
||||
private String secondClass = "";
|
||||
private String sidoName = "";
|
||||
private String sigunguName = "";
|
||||
private String couName = "";
|
||||
private String tags = "";
|
||||
private Date createDt;
|
||||
private String useAt = "";
|
||||
private String uaType = "";
|
||||
|
||||
public int getId() {
|
||||
return Id;
|
||||
}
|
||||
public void setId(int id) {
|
||||
Id = id;
|
||||
}
|
||||
public String getJsessionId() {
|
||||
return jsessionId;
|
||||
}
|
||||
public void setJsessionId(String jsessionId) {
|
||||
this.jsessionId = jsessionId;
|
||||
}
|
||||
public int getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(int contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
public String getLinkUrl() {
|
||||
return linkUrl;
|
||||
}
|
||||
public void setLinkUrl(String linkUrl) {
|
||||
this.linkUrl = linkUrl;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
public String getSeries() {
|
||||
return series;
|
||||
}
|
||||
public void setSeries(String series) {
|
||||
this.series = series;
|
||||
}
|
||||
public String getFirstTopic() {
|
||||
return firstTopic;
|
||||
}
|
||||
public void setFirstTopic(String firstTopic) {
|
||||
this.firstTopic = firstTopic;
|
||||
}
|
||||
public String getSecondTopic() {
|
||||
return secondTopic;
|
||||
}
|
||||
public void setSecondTopic(String secondTopic) {
|
||||
this.secondTopic = secondTopic;
|
||||
}
|
||||
public String getFirstClass() {
|
||||
return firstClass;
|
||||
}
|
||||
public void setFirstClass(String firstClass) {
|
||||
this.firstClass = firstClass;
|
||||
}
|
||||
public String getSecondClass() {
|
||||
return secondClass;
|
||||
}
|
||||
public void setSecondClass(String secondClass) {
|
||||
this.secondClass = secondClass;
|
||||
}
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
public String getCouName() {
|
||||
return couName;
|
||||
}
|
||||
public void setCouName(String couName) {
|
||||
this.couName = couName;
|
||||
}
|
||||
public String getTags() {
|
||||
return tags;
|
||||
}
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
public Date getCreateDt() {
|
||||
return createDt;
|
||||
}
|
||||
public void setCreateDt(Date createDt) {
|
||||
this.createDt = createDt;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public String getUaType() {
|
||||
return uaType;
|
||||
}
|
||||
public void setUaType(String uaType) {
|
||||
this.uaType = uaType;
|
||||
}
|
||||
public String toString() {
|
||||
return CmmUtil.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
146
src/main/java/cmm/service/CmmService.java
Normal file
146
src/main/java/cmm/service/CmmService.java
Normal file
@ -0,0 +1,146 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.cmmn.exception.FdlException;
|
||||
|
||||
|
||||
public interface CmmService {
|
||||
List<DataMap> selectCmmActivityHstAllListTotCnt(DataMap paramMap) throws EgovBizException;
|
||||
int selectSatisfactionTotCnt(DataMap paramMap) throws EgovBizException;
|
||||
int selectCmmPscHstTotCnt(DataMap paramMap) throws EgovBizException;
|
||||
DataMap selectCmmPscHstDetail(DataMap paramMap) throws EgovBizException;
|
||||
DataMap selectCmmPmsPostRandom(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 상세정보
|
||||
* pick 레이어 사용(좌측 상단)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
DataMap selectCmmAmsAssetsDetail(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 미디어 그룹 목록 Cnt
|
||||
* pick 레이어 사용(좌측 목록)Cnt
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selectCmmAmsAssetsMediaGroupListCnt(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 미디어 그룹 목록
|
||||
* pick 레이어 사용(좌측 목록)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selectCmmAmsAssetsMediaGroupList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectCmmAmsAssetsMediaList(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 미디어 상세정보
|
||||
* pick 레이어 사용(완문보기 상세정보)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
DataMap selectCmmAmsAssetsMediaDetail(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 미디어 상세정보 (미디어의 INTERFACE_ID 값으로 조회)
|
||||
* pick 레이어 사용(완문보기 상세정보)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
DataMap selectCmmAmsAssetsMediaDetailByInterfaceId(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 미디어 OCR 목록
|
||||
* pick 레이어 사용(문서 완문보기)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selectCmmAmsAssetsMediaOcrList(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 상세 연관태그 목록
|
||||
* pick 레이어 사용(상세 정보의 연관태그)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selectCmmAmsAssetsTagsList(DataMap paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 상세 연속자료 목록 총 수
|
||||
* pick 레이어 사용(상세 정보의 연속자료 목록 총 수)
|
||||
* @param param
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
int selectCmmAmsAssetsContinueListTotCnt(CmmVO param) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 상세 연속자료 목록
|
||||
* pick 레이어 사용(상세 정보의 연속자료 목록)
|
||||
* @param param
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selectCmmAmsAssetsContinueList(CmmVO param) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 상세 연관 지역문화이야기 목록
|
||||
* pick 레이어 사용(지역문화이야기 목록)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selectCmmAmsAssetsThemesContentsList(List paramMap) throws EgovBizException;
|
||||
/**
|
||||
* 에셋 상세 다른문화원 소장자료 목록
|
||||
* pick 레이어 사용(다른문화원 소장자료 목록)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selectCmmAmsAssetsDiffSojangList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectCmmAmsAssetsOriginViewList(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
int selectCmmAmsAssetsOriginViewListAjaxCnt(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectCmmAmsAssetsOriginViewListAjax(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
DataMap selectCmmAmsAssetsOriginViewDetail(DataMap paramMap) throws EgovBizException;
|
||||
int selectCmmScrapCnt(DataMap paramMap) throws EgovBizException;
|
||||
void insertSatisfaction(DataMap paramMap) throws EgovBizException;
|
||||
void insertCmmSchedulerHst(DataMap paramMap) throws FdlException ,EgovBizException;
|
||||
void insertCmmPscHst(DataMap paramMap) throws EgovBizException;
|
||||
void updateCmmPscHst(DataMap paramMap) throws EgovBizException;
|
||||
void insertCmmScrap(DataMap paramMap) throws EgovBizException;
|
||||
void insertCmmActivityHst(DataMap paramMap) throws EgovBizException;
|
||||
void updateCmmActivityHst(DataMap paramMap) throws EgovBizException;
|
||||
void deleteCmmScrapInfo(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
/**
|
||||
* 모바일 디바이스 정보 목록
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws EgovBizException
|
||||
*/
|
||||
List<DataMap> selecCmmMobileDeviceInfoList(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
void insertCmmActivityMediaHst(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
List<DataMap> selectCmmAmsAssetsTagKeyList(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
DataMap selectCmmAmsAssetsMediaDetail2(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
int selectCmmWebzineCnfirm(DataMap paramMap) throws EgovBizException;
|
||||
void insertCmmWebzineSubScribe(DataMap paramMap) throws EgovBizException;
|
||||
|
||||
void insertCmmMainData(String gubun) throws FdlException ,EgovBizException;
|
||||
DataMap insertCmmExtGiaMainInfo(String contentType) throws FdlException;
|
||||
|
||||
DataMap selectCmmPscHst(String jsessionId) throws EgovBizException;
|
||||
|
||||
public DataMap getMainLogo() throws EgovBizException;
|
||||
|
||||
}
|
||||
111
src/main/java/cmm/service/CmmThemeVO.java
Normal file
111
src/main/java/cmm/service/CmmThemeVO.java
Normal file
@ -0,0 +1,111 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmThemeVO extends CmmVO {
|
||||
private String id = null;
|
||||
private String themeCd = "";
|
||||
private String themeNm = "";
|
||||
private String seriesCd = "";
|
||||
private String seriesNm = "";
|
||||
private String seriesDesc = "";
|
||||
private String mainImg = "";
|
||||
private String mainImgOrignlFileNm = "";
|
||||
private String mainDesc = "";
|
||||
private String linkUrl = "";
|
||||
private String useAt = "";
|
||||
private Date createDt;
|
||||
private Date updateDt;
|
||||
private String atchCtrl = "";
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getThemeCd() {
|
||||
return themeCd;
|
||||
}
|
||||
public void setThemeCd(String themeCd) {
|
||||
this.themeCd = themeCd;
|
||||
}
|
||||
public String getThemeNm() {
|
||||
return themeNm;
|
||||
}
|
||||
public void setThemeNm(String themeNm) {
|
||||
this.themeNm = themeNm;
|
||||
}
|
||||
public String getSeriesCd() {
|
||||
return seriesCd;
|
||||
}
|
||||
public void setSeriesCd(String seriesCd) {
|
||||
this.seriesCd = seriesCd;
|
||||
}
|
||||
|
||||
public String getSeriesNm() {
|
||||
return seriesNm;
|
||||
}
|
||||
public void setSeriesNm(String seriesNm) {
|
||||
this.seriesNm = seriesNm;
|
||||
}
|
||||
public String getSeriesDesc() {
|
||||
return seriesDesc;
|
||||
}
|
||||
public void setSeriesDesc(String seriesDesc) {
|
||||
this.seriesDesc = seriesDesc;
|
||||
}
|
||||
public String getMainImg() {
|
||||
return mainImg;
|
||||
}
|
||||
public void setMainImg(String mainImg) {
|
||||
this.mainImg = mainImg;
|
||||
}
|
||||
public String getMainImgOrignlFileNm() {
|
||||
return mainImgOrignlFileNm;
|
||||
}
|
||||
public void setMainImgOrignlFileNm(String mainImgOrignlFileNm) {
|
||||
this.mainImgOrignlFileNm = mainImgOrignlFileNm;
|
||||
}
|
||||
public String getMainDesc() {
|
||||
return mainDesc;
|
||||
}
|
||||
public void setMainDesc(String mainDesc) {
|
||||
this.mainDesc = mainDesc;
|
||||
}
|
||||
public String getLinkUrl() {
|
||||
return linkUrl;
|
||||
}
|
||||
public void setLinkUrl(String linkUrl) {
|
||||
this.linkUrl = linkUrl;
|
||||
}
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
public Date getCreateDt() {
|
||||
return createDt;
|
||||
}
|
||||
public void setCreateDt(Date createDt) {
|
||||
this.createDt = createDt;
|
||||
}
|
||||
public Date getUpdateDt() {
|
||||
return updateDt;
|
||||
}
|
||||
public void setUpdateDt(Date updateDt) {
|
||||
this.updateDt = updateDt;
|
||||
}
|
||||
|
||||
public String getAtchCtrl() {
|
||||
return atchCtrl;
|
||||
}
|
||||
|
||||
public void setAtchCtrl(String atchCtrl) {
|
||||
this.atchCtrl = atchCtrl;
|
||||
}
|
||||
}
|
||||
24
src/main/java/cmm/service/ExtService.java
Normal file
24
src/main/java/cmm/service/ExtService.java
Normal file
@ -0,0 +1,24 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
|
||||
public interface ExtService {
|
||||
List<DataMap> selectExtSigunguList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectExtSigunguList2(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectExtGisSigunguList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectExtGisDongList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectExtSidoMapMappingList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectExtDfInfoList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectExtAisInfoList(String sido, String sigungu) throws EgovBizException;
|
||||
List<DataMap> selectExtFtdInfoList(DataMap paramMap) throws EgovBizException;
|
||||
List<DataMap> selectCulRelatedNews(DataMap paramMap) throws EgovBizException;
|
||||
DataMap selectExtGiaDetail(String contentId, String contentTypeId) throws EgovBizException;
|
||||
DataMap insertExtDfInfo();
|
||||
DataMap insertExtFdInfo();
|
||||
DataMap insertExtGiaInfo(String contentTypeId);
|
||||
DataMap insertMediaHstInfo();
|
||||
}
|
||||
142
src/main/java/cmm/service/FileDetailVO.java
Normal file
142
src/main/java/cmm/service/FileDetailVO.java
Normal file
@ -0,0 +1,142 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class FileDetailVO implements Serializable {
|
||||
|
||||
private String atchFileId;
|
||||
|
||||
private String fileSn;
|
||||
|
||||
private String fileStreCours;
|
||||
|
||||
private String streFileNm;
|
||||
|
||||
private String orignlFileNm;
|
||||
|
||||
private String fileExtsn;
|
||||
|
||||
private String fileCn;
|
||||
|
||||
private String fileTyp;
|
||||
|
||||
private BigDecimal fileSize;
|
||||
|
||||
private byte[] fileData;
|
||||
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
|
||||
|
||||
public String getAtchFileId() {
|
||||
return atchFileId;
|
||||
}
|
||||
|
||||
|
||||
public void setAtchFileId(String atchFileId) {
|
||||
this.atchFileId = atchFileId;
|
||||
}
|
||||
|
||||
|
||||
public String getFileSn() {
|
||||
return fileSn;
|
||||
}
|
||||
|
||||
|
||||
public void setFileSn(String fileSn) {
|
||||
this.fileSn = fileSn;
|
||||
}
|
||||
|
||||
|
||||
public String getFileStreCours() {
|
||||
return fileStreCours;
|
||||
}
|
||||
|
||||
|
||||
public void setFileStreCours(String fileStreCours) {
|
||||
this.fileStreCours = fileStreCours;
|
||||
}
|
||||
|
||||
|
||||
public String getStreFileNm() {
|
||||
return streFileNm;
|
||||
}
|
||||
|
||||
|
||||
public void setStreFileNm(String streFileNm) {
|
||||
this.streFileNm = streFileNm;
|
||||
}
|
||||
|
||||
|
||||
public String getOrignlFileNm() {
|
||||
return orignlFileNm;
|
||||
}
|
||||
|
||||
|
||||
public void setOrignlFileNm(String orignlFileNm) {
|
||||
this.orignlFileNm = orignlFileNm;
|
||||
}
|
||||
|
||||
|
||||
public String getFileExtsn() {
|
||||
return fileExtsn;
|
||||
}
|
||||
|
||||
|
||||
public void setFileExtsn(String fileExtsn) {
|
||||
this.fileExtsn = fileExtsn;
|
||||
}
|
||||
|
||||
|
||||
public String getFileCn() {
|
||||
return fileCn;
|
||||
}
|
||||
|
||||
|
||||
public void setFileCn(String fileCn) {
|
||||
this.fileCn = fileCn;
|
||||
}
|
||||
|
||||
|
||||
public String getFileTyp() {
|
||||
return fileTyp;
|
||||
}
|
||||
|
||||
|
||||
public void setFileTyp(String fileTyp) {
|
||||
this.fileTyp = fileTyp;
|
||||
}
|
||||
|
||||
|
||||
public BigDecimal getFileSize() {
|
||||
return fileSize;
|
||||
}
|
||||
|
||||
|
||||
public void setFileSize(BigDecimal fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
}
|
||||
|
||||
public byte[] getFileData() {
|
||||
byte[] ret = null;
|
||||
if(this.fileData != null){
|
||||
ret = new byte[fileData.length];
|
||||
ret = this.fileData;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setFileData(byte[] fileData) {
|
||||
this.fileData = new byte[fileData.length];
|
||||
for(int i=0; i<fileData.length; ++i) {
|
||||
this.fileData[i] = fileData[i];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
109
src/main/java/cmm/service/FileManagementVO.java
Normal file
109
src/main/java/cmm/service/FileManagementVO.java
Normal file
@ -0,0 +1,109 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class FileManagementVO implements Serializable {
|
||||
private String fdMstNo = "atchFileNo";
|
||||
private String fdDtlNo = "atchDtlNo";
|
||||
private String fdFile = "atchFile";
|
||||
private String fdTitle;
|
||||
private String fdCtrl = "atchCtrl";
|
||||
private boolean isMulti = false;
|
||||
private boolean isSaveToDisk = true;
|
||||
private String fileClssCd;
|
||||
private String fileAuthCd = AUTH_CD_ALL;
|
||||
private int index = 0;
|
||||
|
||||
public static final String AUTH_CD_OWNER = "O";
|
||||
public static final String AUTH_CD_GROUP = "G";
|
||||
public static final String AUTH_CD_ALL = "A";
|
||||
|
||||
private ArrayList<String> fdFileArray = null;
|
||||
|
||||
public FileManagementVO(){
|
||||
}
|
||||
|
||||
public FileManagementVO (boolean isMulti){
|
||||
this.isMulti = isMulti;
|
||||
}
|
||||
public String getFdMstNo() {
|
||||
return fdMstNo;
|
||||
}
|
||||
public void setFdMstNo(String fdMstNo) {
|
||||
this.fdMstNo = fdMstNo;
|
||||
}
|
||||
public String getFdDtlNo() {
|
||||
return fdDtlNo;
|
||||
}
|
||||
public void setFdDtlNo(String fdDtlNo) {
|
||||
this.fdDtlNo = fdDtlNo;
|
||||
}
|
||||
public String getFdFile() {
|
||||
return fdFile;
|
||||
}
|
||||
public void setFdFile(String fdFile) {
|
||||
this.fdFile = fdFile;
|
||||
}
|
||||
public String getFdTitle() {
|
||||
return fdTitle;
|
||||
}
|
||||
public void setFdTitle(String fdTitle) {
|
||||
this.fdTitle = fdTitle;
|
||||
}
|
||||
public String getFdCtrl() {
|
||||
return fdCtrl;
|
||||
}
|
||||
public void setFdCtrl(String fdCtrl) {
|
||||
this.fdCtrl = fdCtrl;
|
||||
}
|
||||
public boolean isMulti() {
|
||||
return isMulti;
|
||||
}
|
||||
public void setMulti(boolean isMulti) {
|
||||
this.isMulti = isMulti;
|
||||
}
|
||||
public String getFileClssCd() {
|
||||
return fileClssCd;
|
||||
}
|
||||
public void setFileClssCd(String fileClssCd) {
|
||||
this.fileClssCd = fileClssCd;
|
||||
}
|
||||
public String getFileAuthCd() {
|
||||
return fileAuthCd;
|
||||
}
|
||||
public void setFileAuthCd(String fileAuthCd) {
|
||||
this.fileAuthCd = fileAuthCd;
|
||||
}
|
||||
public int getIndex() {
|
||||
return index;
|
||||
}
|
||||
public void setIndex(int index) {
|
||||
this.index = index;
|
||||
}
|
||||
public boolean isSaveToDisk() {
|
||||
return isSaveToDisk;
|
||||
}
|
||||
public void setSaveToDisk(boolean isSaveToDisk) {
|
||||
this.isSaveToDisk = isSaveToDisk;
|
||||
}
|
||||
|
||||
public ArrayList<String> getFdFileArray() {
|
||||
ArrayList<String> ret = null;
|
||||
if(this.fdFileArray != null){
|
||||
ret = new ArrayList<String>();
|
||||
ret = this.fdFileArray;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setFdFileArray(ArrayList<String> fdFileArray) {
|
||||
this.fdFileArray = new ArrayList<String> (fdFileArray.size());
|
||||
for(int i=0; i<fdFileArray.size(); ++i) {
|
||||
this.fdFileArray.add(i, fdFileArray.get(i));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
40
src/main/java/cmm/service/FileMasterVO.java
Normal file
40
src/main/java/cmm/service/FileMasterVO.java
Normal file
@ -0,0 +1,40 @@
|
||||
package cmm.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class FileMasterVO implements Serializable {
|
||||
|
||||
private String atchFileId;
|
||||
|
||||
private Date creatDt;
|
||||
|
||||
private String useAt;
|
||||
|
||||
public String getAtchFileId() {
|
||||
return atchFileId;
|
||||
}
|
||||
|
||||
public void setAtchFileId(String atchFileId) {
|
||||
this.atchFileId = atchFileId;
|
||||
}
|
||||
|
||||
public Date getCreatDt() {
|
||||
return creatDt;
|
||||
}
|
||||
|
||||
public void setCreatDt(Date creatDt) {
|
||||
this.creatDt = creatDt;
|
||||
}
|
||||
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
95
src/main/java/cmm/service/SchedulerService.java
Normal file
95
src/main/java/cmm/service/SchedulerService.java
Normal file
@ -0,0 +1,95 @@
|
||||
package cmm.service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.cmmn.exception.FdlException;
|
||||
|
||||
@Service("schedulerService")
|
||||
public class SchedulerService {
|
||||
@Resource(name = "extService")
|
||||
private ExtService extService;
|
||||
|
||||
@Resource(name = "cmmService")
|
||||
private CmmService cmmService;
|
||||
|
||||
public void setExtDfInfo() {
|
||||
// 국민건강보험공단 예측진료정보
|
||||
extService.insertExtDfInfo();
|
||||
}
|
||||
|
||||
public void setMainInfo() throws EgovBizException, FdlException{
|
||||
// 이달의 지역문화정보
|
||||
String gubun = "G";
|
||||
cmmService.insertCmmMainData(gubun);
|
||||
}
|
||||
|
||||
public void setMediaHstInfo() {
|
||||
//월별 지방문화원 인기자료
|
||||
extService.insertMediaHstInfo();
|
||||
}
|
||||
|
||||
public void setExtGiaInfo1() {
|
||||
// 관광정보[관광지]
|
||||
String gubun = "12";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
public void setExtGiaInfo2() {
|
||||
// 관광정보[문화시설]
|
||||
String gubun = "14";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
public void setExtGiaInfo3() {
|
||||
// 관광정보[축제/공연/행사]
|
||||
String gubun = "15";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
public void setExtGiaInfo4() {
|
||||
// 관광정보[여행코스]
|
||||
String gubun = "25";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
public void setExtGiaInfo5() {
|
||||
// 관광정보[레포츠]
|
||||
String gubun = "28";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
public void setExtGiaInfo6() {
|
||||
// 관광정보[숙박]
|
||||
String gubun = "32";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
public void setExtGiaInfo7() {
|
||||
// 관광정보[쇼핑]
|
||||
String gubun = "38";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
public void setExtGiaInfo8() {
|
||||
// 관광정보[음식]
|
||||
String gubun = "39";
|
||||
extService.insertExtGiaInfo(gubun);
|
||||
}
|
||||
|
||||
/*
|
||||
public void setExtFdInfo() {
|
||||
// 공연전시정보
|
||||
DataMap schedulerHstMap = extService.insertExtFdInfo();
|
||||
try {
|
||||
cmmService.insertCmmSchedulerHst(schedulerHstMap);
|
||||
} catch (EgovBizException ex1) {
|
||||
LOGGER.error("fail in insertCmmSchedulerHst()", ex1);
|
||||
} catch (Exception ex2) {
|
||||
LOGGER.error("fail in insertCmmSchedulerHst()", ex2);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
1409
src/main/java/cmm/service/impl/CmmApiServiceImpl.java
Normal file
1409
src/main/java/cmm/service/impl/CmmApiServiceImpl.java
Normal file
File diff suppressed because it is too large
Load Diff
66
src/main/java/cmm/service/impl/CmmBbsDAO.java
Normal file
66
src/main/java/cmm/service/impl/CmmBbsDAO.java
Normal file
@ -0,0 +1,66 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.TransactionException;
|
||||
|
||||
import cmm.service.CmmBbsVO;
|
||||
import cmm.service.CmmCmsContentsVO;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
|
||||
/**
|
||||
* 게시판 관리에 대한 데이터 접근 클래스를 정의한다.
|
||||
* @Class Name : CmmBbsDAO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-04-16
|
||||
* @version 1.0
|
||||
*/
|
||||
@Repository("cmmBbsDAO")
|
||||
public class CmmBbsDAO extends EgovComAbstractDAO {
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmBbsListTotCnt(CmmBbsVO cmmBbsVO) throws DataAccessException{
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmBbsDAO.selectCmmBbsListTotCnt", cmmBbsVO);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmBbsVO> selectCmmBbsList(CmmBbsVO cmmBbsVO) throws DataAccessException{
|
||||
return (List<CmmBbsVO>)list("cmmBbsDAO.selectCmmBbsList", cmmBbsVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmBbsVO> selectCmmBbsTopList(CmmBbsVO cmmBbsVO) throws DataAccessException{
|
||||
return (List<CmmBbsVO>)list("cmmBbsDAO.selectCmmBbsTopList", cmmBbsVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmBbsVO> selectCmmBbsCnList(CmmBbsVO cmmBbsVO) throws DataAccessException{
|
||||
return (List<CmmBbsVO>)list("cmmBbsDAO.selectCmmBbsCnList", cmmBbsVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmBbsVO> selectCmmBbsMainList(CmmBbsVO cmmBbsVO) throws DataAccessException{
|
||||
return (List<CmmBbsVO>)list("cmmBbsDAO.selectCmmBbsMainList", cmmBbsVO);
|
||||
}
|
||||
public CmmBbsVO selectCmmBbsDetail(CmmBbsVO cmmBbsVO) throws DataAccessException{
|
||||
//return (CmmBbsVO)select("cmmBbsDAO.selectCmmBbsDetail", cmmBbsVO);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmBbsVO> selectPrevNextCmmBbsDetailList(CmmBbsVO cmmBbsVO) throws DataAccessException{
|
||||
return (List<CmmBbsVO>)list("cmmBbsDAO.selectPrevNextCmmBbsDetailList", cmmBbsVO);
|
||||
}
|
||||
public void insertCmmBbs(CmmBbsVO cmmBbsVO) throws TransactionException{
|
||||
insert("cmmBbsDAO.insertCmmBbs", cmmBbsVO);
|
||||
}
|
||||
public void updateCmmBbs(CmmBbsVO cmmBbsVO) throws TransactionException{
|
||||
update("cmmBbsDAO.updateCmmBbs", cmmBbsVO);
|
||||
}
|
||||
public void deleteCmmBbs(CmmBbsVO cmmBbsVO) throws TransactionException{
|
||||
update("cmmBbsDAO.deleteCmmBbs", cmmBbsVO);
|
||||
}
|
||||
public void updateCmmBbsReadCnt(CmmBbsVO cmmBbsVO) throws TransactionException{
|
||||
update("cmmBbsDAO.updateCmmBbsReadCnt", cmmBbsVO);
|
||||
}
|
||||
public void updateLocalCultureRecommend(CmmBbsVO cmmBbsVO) throws TransactionException{
|
||||
update("cmmBbsDAO.updateLocalCultureRecommend",cmmBbsVO);
|
||||
}
|
||||
}
|
||||
132
src/main/java/cmm/service/impl/CmmBbsServiceImpl.java
Normal file
132
src/main/java/cmm/service/impl/CmmBbsServiceImpl.java
Normal file
@ -0,0 +1,132 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import cmm.Constant;
|
||||
import cmm.service.CmmBbsService;
|
||||
import cmm.service.CmmBbsVO;
|
||||
import cmm.service.CmmCmsContentsVO;
|
||||
import cmm.service.CmmFileService;
|
||||
import cmm.service.FileManagementVO;
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.DateUtil;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.cmmn.exception.FdlException;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
|
||||
|
||||
/**
|
||||
* 게시판 관리에 대한 서비스 클래스를 구현한다.
|
||||
* @Class Name : CmmBbsServiceImpl.java
|
||||
* @author ecplaza
|
||||
* @since 2018-04-16
|
||||
* @version 1.0
|
||||
*/
|
||||
@Service("cmmBbsService")
|
||||
public class CmmBbsServiceImpl extends EgovAbstractServiceImpl implements CmmBbsService {
|
||||
|
||||
/** LOGGER */
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CmmBbsServiceImpl.class);
|
||||
|
||||
/** cmmBbsDAO */
|
||||
@Resource(name="cmmBbsDAO")
|
||||
private CmmBbsDAO cmmBbsDAO;
|
||||
|
||||
/** egovNttIdGnrService */
|
||||
@Resource(name = "egovNttIdGnrService")
|
||||
private EgovIdGnrService nttIdgenService;
|
||||
|
||||
/** CmmFileService */
|
||||
@Resource(name = "cmmFileService")
|
||||
private CmmFileService cmmFileService;
|
||||
|
||||
public int selectCmmBbsListTotCnt(CmmBbsVO cmmBbsVO) throws EgovBizException{
|
||||
return (Integer)cmmBbsDAO.selectCmmBbsListTotCnt(cmmBbsVO);
|
||||
}
|
||||
public List<CmmBbsVO> selectCmmBbsList(CmmBbsVO cmmBbsVO) throws EgovBizException{
|
||||
return (List<CmmBbsVO>)cmmBbsDAO.selectCmmBbsList(cmmBbsVO);
|
||||
}
|
||||
public List<CmmBbsVO> selectCmmBbsTopList(CmmBbsVO cmmBbsVO) throws EgovBizException{
|
||||
return (List<CmmBbsVO>)cmmBbsDAO.selectCmmBbsTopList(cmmBbsVO);
|
||||
}
|
||||
public List<CmmBbsVO> selectCmmBbsCnList(CmmBbsVO cmmBbsVO) throws EgovBizException{
|
||||
return (List<CmmBbsVO>)cmmBbsDAO.selectCmmBbsCnList(cmmBbsVO);
|
||||
}
|
||||
public List<CmmBbsVO> selectCmmBbsMainList(CmmBbsVO cmmBbsVO) throws EgovBizException{
|
||||
cmmBbsVO.setSearchStartStr(DateUtil.getNowString("yyyyMMddHHmm"));// 쿼리에서 비교할 때는 분단위까지 비교
|
||||
return (List<CmmBbsVO>)cmmBbsDAO.selectCmmBbsMainList(cmmBbsVO);
|
||||
}
|
||||
public CmmBbsVO selectCmmBbsDetail(CmmBbsVO cmmBbsVO) throws EgovBizException{
|
||||
cmmBbsDAO.updateCmmBbsReadCnt(cmmBbsVO);
|
||||
CmmBbsVO rsVo = (CmmBbsVO)cmmBbsDAO.selectCmmBbsDetail(cmmBbsVO);
|
||||
if(rsVo != null && !rsVo.getBbsId().equals(Constant.BBS_ID_NOTICE)){
|
||||
if( !StringUtils.isBlank(rsVo.getNtceBgnde()) ){
|
||||
rsVo.setNtceBgnde(DateUtil.getDateFormatString(rsVo.getNtceBgnde()));
|
||||
}
|
||||
if( !StringUtils.isBlank(rsVo.getNtceEndde()) ){
|
||||
rsVo.setNtceEndde(DateUtil.getDateFormatString(rsVo.getNtceEndde()));
|
||||
}
|
||||
if(cmmBbsVO.isBr()){
|
||||
rsVo.setNttCn(CmmUtil.escapeNewlineToBr(rsVo.getNttCn()));
|
||||
}
|
||||
}
|
||||
return rsVo;
|
||||
}
|
||||
public List<CmmBbsVO> selectPrevNextCmmBbsDetailList(CmmBbsVO cmmBbsVO) throws EgovBizException{
|
||||
return (List<CmmBbsVO>)cmmBbsDAO.selectPrevNextCmmBbsDetailList(cmmBbsVO);
|
||||
}
|
||||
public String insertCmmBbs(CmmBbsVO cmmBbsVO, HttpServletRequest request) throws IOException, FdlException, EgovBizException{
|
||||
if( !StringUtils.isBlank(cmmBbsVO.getNtceBgnde()) ){
|
||||
cmmBbsVO.setNtceBgnde(cmmBbsVO.getNtceBgnde().replaceAll("-", ""));
|
||||
}
|
||||
if( !StringUtils.isBlank(cmmBbsVO.getNtceEndde()) ){
|
||||
cmmBbsVO.setNtceEndde(cmmBbsVO.getNtceEndde().replaceAll("-", ""));
|
||||
}
|
||||
cmmBbsVO.setNttSj(CmmUtil.unscript(cmmBbsVO.getNttSj())); // XSS 방지
|
||||
cmmBbsVO.setAtchFileId(cmmFileService.uploadFile(request, new FileManagementVO(true)));
|
||||
String id = String.valueOf(nttIdgenService.getNextLongId()).trim();
|
||||
cmmBbsVO.setNttId(id);
|
||||
cmmBbsDAO.insertCmmBbs(cmmBbsVO);
|
||||
|
||||
return id;
|
||||
}
|
||||
public void updateCmmBbs(CmmBbsVO cmmBbsVO, HttpServletRequest request) throws IOException, EgovBizException{
|
||||
if( !StringUtils.isBlank(cmmBbsVO.getNtceBgnde()) ){
|
||||
cmmBbsVO.setNtceBgnde(cmmBbsVO.getNtceBgnde().replaceAll("-", ""));
|
||||
}
|
||||
if( !StringUtils.isBlank(cmmBbsVO.getNtceEndde()) ){
|
||||
cmmBbsVO.setNtceEndde(cmmBbsVO.getNtceEndde().replaceAll("-", ""));
|
||||
}
|
||||
cmmBbsVO.setNttSj(CmmUtil.unscript(cmmBbsVO.getNttSj())); // XSS 방지
|
||||
cmmBbsVO.setAtchFileId(cmmFileService.uploadFile(request, new FileManagementVO(true)));
|
||||
cmmBbsDAO.updateCmmBbs(cmmBbsVO);
|
||||
}
|
||||
public void deleteCmmBbs(CmmBbsVO cmmBbsVO, HttpServletRequest request) throws EgovBizException{
|
||||
cmmBbsDAO.deleteCmmBbs(cmmBbsVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLocalCultureRecommend(CmmBbsVO cmmBbsVO)
|
||||
throws EgovBizException {
|
||||
String idStr = cmmBbsVO.getNttIdList().get(0).substring(0);
|
||||
String idArr[] = idStr.split(",");
|
||||
List<String> idList = new ArrayList<String>();
|
||||
for(int i=0; i<idArr.length; i++){
|
||||
idList.add(idArr[i]);
|
||||
}
|
||||
cmmBbsVO.setNttIdList(idList);
|
||||
cmmBbsDAO.updateLocalCultureRecommend(cmmBbsVO);
|
||||
}
|
||||
}
|
||||
66
src/main/java/cmm/service/impl/CmmCmsDAO.java
Normal file
66
src/main/java/cmm/service/impl/CmmCmsDAO.java
Normal file
@ -0,0 +1,66 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import cmm.service.CmmActivityHstVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
/**
|
||||
* CMS 콘텐츠관리에 대한 데이터 접근 클래스를 정의한다
|
||||
* @Class Name : CmmCmsDAO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-05-11
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ --------- --------- -------------------------------
|
||||
* @ 2018-05-11 ecplaza 최초생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("cmmCmsDAO")
|
||||
public class CmmCmsDAO extends EgovComAbstractDAO {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmActivityHstVO> selectCmmScrapList(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException{
|
||||
return (List<CmmActivityHstVO>)list("cmmCmsDAO.selectCmmScrapList",cmmActivityHstVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmActivityHstVO> selectCmmActivityHstOpList(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException {
|
||||
return (List<CmmActivityHstVO>)list("cmmCmsDAO.selectCmmActivityHstOpList",cmmActivityHstVO);
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmScrapListTotCnt(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmCmsDAO.selectCmmScrapListTotCnt", cmmActivityHstVO);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmActivityHstOpListTotCnt(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmCmsDAO.selectCmmActivityHstOpListTotCnt", cmmActivityHstVO);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<String> selectCmmCmsKeywordsList(List<Integer> contentId) throws DataAccessException {
|
||||
return (List<String>)list("cmmCmsDAO.selectCmmCmsKeywordsList",contentId);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmCmsTagsList(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmCmsDAO.selectCmmCmsTagsList",cmmActivityHstVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmActivityHstVO> selectCmmCmsPopularList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (List<CmmActivityHstVO>)list("cmmCmsDAO.selectCmmCmsPopularList",cmmActivityHstVO);
|
||||
}
|
||||
public void deleteAllCmmScrapInfo(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
delete("cmmDAO.deleteCmmScrapInfo", cmmActivityHstVO);
|
||||
}
|
||||
}
|
||||
76
src/main/java/cmm/service/impl/CmmCmsServiceImpl.java
Normal file
76
src/main/java/cmm/service/impl/CmmCmsServiceImpl.java
Normal file
@ -0,0 +1,76 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import cmm.service.CmmActivityHstVO;
|
||||
import cmm.service.CmmCmsService;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.com.cmm.service.impl.CmmUseDAO;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
|
||||
|
||||
/**
|
||||
* CMS 콘텐츠관리에 대한 서비스 클래스를 구현한다
|
||||
* @Class Name : CmmCmsServiceImpl.java
|
||||
* @author ecplaza
|
||||
* @since 2018-05-11
|
||||
* @version 1.0
|
||||
*/
|
||||
@Service("cmmCmsService")
|
||||
public class CmmCmsServiceImpl extends EgovAbstractServiceImpl implements CmmCmsService {
|
||||
|
||||
/** LOGGER */
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CmmCmsServiceImpl.class);
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
/** cmmCmsDAO */
|
||||
@Resource(name="cmmCmsDAO")
|
||||
private CmmCmsDAO cmmCmsDAO;
|
||||
|
||||
/** cmmUseDAO */
|
||||
@Resource(name="cmmUseDAO")
|
||||
private CmmUseDAO cmmUseDAO;
|
||||
|
||||
public List<CmmActivityHstVO> selectCmmScrapList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (List<CmmActivityHstVO>)cmmCmsDAO.selectCmmScrapList(cmmActivityHstVO);
|
||||
}
|
||||
public List<CmmActivityHstVO> selectCmmActivityHstOpList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (List<CmmActivityHstVO>)cmmCmsDAO.selectCmmActivityHstOpList(cmmActivityHstVO);
|
||||
}
|
||||
public int selectCmmScrapListTotCnt(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (Integer)cmmCmsDAO.selectCmmScrapListTotCnt(cmmActivityHstVO);
|
||||
}
|
||||
public int selectCmmActivityHstOpListTotCnt(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (Integer)cmmCmsDAO.selectCmmActivityHstOpListTotCnt(cmmActivityHstVO);
|
||||
}
|
||||
public List<String> selectCmmCmsKeywordsList(List<CmmActivityHstVO> result) throws EgovBizException{
|
||||
List<Integer> contentId = new ArrayList<Integer>();
|
||||
for(int i=0; i< result.size(); i++){
|
||||
contentId.add(result.get(i).getId());
|
||||
}
|
||||
return cmmCmsDAO.selectCmmCmsKeywordsList(contentId);
|
||||
}
|
||||
public List<DataMap> selectCmmCmsTagsList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return cmmCmsDAO.selectCmmCmsTagsList(cmmActivityHstVO);
|
||||
}
|
||||
public List<CmmActivityHstVO> selectCmmCmsPopularList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return cmmCmsDAO.selectCmmCmsPopularList(cmmActivityHstVO);
|
||||
}
|
||||
|
||||
public void deleteAllCmmScrapInfo(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
cmmCmsDAO.deleteAllCmmScrapInfo(cmmActivityHstVO);
|
||||
}
|
||||
}
|
||||
339
src/main/java/cmm/service/impl/CmmDAO.java
Normal file
339
src/main/java/cmm/service/impl/CmmDAO.java
Normal file
@ -0,0 +1,339 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.TransactionException;
|
||||
|
||||
import cmm.Constant;
|
||||
import cmm.util.CmmVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
|
||||
/**
|
||||
* 공통에 대한 데이터 접근 클래스를 정의한다.
|
||||
* @Class Name : CmmDAO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-04-16
|
||||
* @version 1.0
|
||||
*/
|
||||
@Repository("cmmDAO")
|
||||
public class CmmDAO extends EgovComAbstractDAO {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectMenuHead(String authorCode) throws DataAccessException {
|
||||
return (List<DataMap>) list("cmmDAO.selectMenuHead", authorCode);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectMenuLeft(String authorCode) throws DataAccessException {
|
||||
return (List<DataMap>) list("cmmDAO.selectMenuLeft", authorCode);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmActivityHstAllListTotCnt(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmActivityHstAllListTotCnt",paramMap);
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectSatisfactionTotCnt(DataMap paramMap) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmDAO.selectSatisfactionTotCnt", paramMap);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmPscHstTotCnt(DataMap paramMap) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmDAO.selectCmmPscHstTotCnt", paramMap);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
public DataMap selectCmmPscHstDetail(DataMap paramMap) throws DataAccessException {
|
||||
//return (DataMap)select("cmmDAO.selectCmmPscHstDetail", paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
public DataMap selectCmmPmsPostRandom(DataMap paramMap) throws DataAccessException {
|
||||
//return (DataMap)select("cmmDAO.selectCmmPmsPostRandom", paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
/**
|
||||
* 에셋 상세정보
|
||||
* pick 레이어 사용(좌측 상단 및 상세 정보)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
public DataMap selectCmmAmsAssetsDetail(DataMap paramMap) throws DataAccessException {
|
||||
paramMap.put("searchAssetClassArray", Constant.ASSETS_CLASS_ARRAY_PICK);
|
||||
|
||||
//return (DataMap)select("cmmDAO.selectCmmAmsAssetsDetail", paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 그룹 목록
|
||||
* pick 레이어 사용(좌측 목록)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsMediaGroupListCnt(DataMap paramMap) throws DataAccessException {
|
||||
paramMap.put("searchAssetClassArray", Constant.ASSETS_CLASS_ARRAY_PICK);
|
||||
paramMap.put("searchAssetTypeArray", Constant.ASSETS_TYPE_ARRAY_PICK);
|
||||
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsMediaGroupListCnt",paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 그룹 목록
|
||||
* pick 레이어 사용(좌측 목록)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsMediaGroupList(DataMap paramMap) throws DataAccessException {
|
||||
paramMap.put("searchAssetClassArray", Constant.ASSETS_CLASS_ARRAY_PICK);
|
||||
paramMap.put("searchAssetTypeArray", Constant.ASSETS_TYPE_ARRAY_PICK);
|
||||
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsMediaGroupList",paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsMediaList(DataMap paramMap) throws DataAccessException {
|
||||
paramMap.put("searchAssetClassArray", Constant.ASSETS_CLASS_ARRAY_PICK);
|
||||
paramMap.put("searchAssetTypeArray", Constant.ASSETS_TYPE_ARRAY_PICK);
|
||||
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsMediaList",paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 상세정보
|
||||
* pick 레이어 사용(완문보기 상세정보)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
public DataMap selectCmmAmsAssetsMediaDetail(DataMap paramMap) throws DataAccessException {
|
||||
//return (DataMap)select("cmmDAO.selectCmmAmsAssetsMediaDetail", paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 상세정보(미디어의 INTERFACE_ID 값으로 조회)
|
||||
* pick 레이어 사용(완문보기 상세정보)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
public DataMap selectCmmAmsAssetsMediaDetailByInterfaceId(DataMap paramMap) throws DataAccessException {
|
||||
//return (DataMap)select("cmmDAO.selectCmmAmsAssetsMediaDetailByInterfaceId", paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 OCR 목록
|
||||
* pick 레이어 사용(문서 완문보기)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsMediaOcrList(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsMediaOcrList",paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연관태그 목록
|
||||
* pick 레이어 사용(상세 정보의 연관태그)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsTagsList(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsTagsList",paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연속자료 목록 총 수
|
||||
* pick 레이어 사용(상세 정보의 연속자료 목록 총 수)
|
||||
* @param param
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
public int selectCmmAmsAssetsContinueListTotCnt(CmmVO param) throws DataAccessException {
|
||||
param.setSearchAssetClassArray(Constant.ASSETS_CLASS_ARRAY_PICK);
|
||||
param.setSearchAssetTypeArray(Constant.ASSETS_TYPE_ARRAY_PICK);
|
||||
|
||||
//return (Integer)select("cmmDAO.selectCmmAmsAssetsContinueListTotCnt",param);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연속자료 목록
|
||||
* pick 레이어 사용(상세 정보의 연속자료 목록)
|
||||
* @param param
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsContinueList(CmmVO param) throws DataAccessException {
|
||||
param.setSearchAssetClassArray(Constant.ASSETS_CLASS_ARRAY_PICK);
|
||||
param.setSearchAssetTypeArray(Constant.ASSETS_TYPE_ARRAY_PICK);
|
||||
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsContinueList",param);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연관 지역문화이야기 목록
|
||||
* pick 레이어 사용(지역문화이야기 목록)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsThemesContentsList(List paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsThemesContentsList",paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 다른문화원 소장자료 목록
|
||||
* pick 레이어 사용(다른문화원 소장자료 목록)
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsDiffSojangList(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsDiffSojangList",paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsOriginViewList(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsOriginViewList",paramMap);
|
||||
}
|
||||
|
||||
public int selectCmmAmsAssetsOriginViewListAjaxCnt(DataMap paramMap) throws DataAccessException {
|
||||
//return (Integer)select("cmmDAO.selectCmmAmsAssetsOriginViewListAjaxCnt", paramMap);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsOriginViewListAjax(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsOriginViewListAjax",paramMap);
|
||||
}
|
||||
|
||||
public DataMap selectCmmAmsAssetsOriginViewDetail(DataMap paramMap) throws DataAccessException {
|
||||
//return (DataMap)select("cmmDAO.selectCmmAmsAssetsOriginViewDetail",paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmScrapCnt(DataMap paramMap) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmDAO.selectCmmScrapCnt", paramMap);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
public void insertSatisfaction(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertSatisfaction", paramMap);
|
||||
}
|
||||
public void insertCmmSchedulerHst(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmSchedulerHst", paramMap);
|
||||
}
|
||||
public void insertCmmPscHst(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmPscHst", paramMap);
|
||||
}
|
||||
public void updateCmmPscHst(DataMap paramMap) throws TransactionException {
|
||||
update("cmmDAO.updateCmmPscHst", paramMap);
|
||||
}
|
||||
public void insertCmmScrapTypeA(DataMap paramMap) throws TransactionException{
|
||||
insert("cmmDAO.insertCmmScrapTypeA", paramMap);
|
||||
}
|
||||
public void insertCmmScrapTypeB(DataMap paramMap) throws TransactionException{
|
||||
insert("cmmDAO.insertCmmScrapTypeB", paramMap);
|
||||
}
|
||||
public void insertCmmScrapTypeC(DataMap paramMap) throws TransactionException{
|
||||
insert("cmmDAO.insertCmmScrapTypeC", paramMap);
|
||||
}
|
||||
public void insertCmmScrapTypeG(DataMap paramMap) throws TransactionException{
|
||||
insert("cmmDAO.insertCmmScrapTypeG", paramMap);
|
||||
}
|
||||
public void insertCmmScrapTypeI(DataMap paramMap) throws TransactionException{
|
||||
insert("cmmDAO.insertCmmScrapTypeI", paramMap);
|
||||
}
|
||||
public void insertCmmScrapTypeP(DataMap paramMap) throws TransactionException{
|
||||
insert("cmmDAO.insertCmmScrapTypeP", paramMap);
|
||||
}
|
||||
public void insertCmmScrapTypeT(DataMap paramMap) throws TransactionException{
|
||||
insert("cmmDAO.insertCmmScrapTypeT", paramMap);
|
||||
}
|
||||
public void insertCmmActivityHstTypeA(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeA", paramMap);
|
||||
}
|
||||
public void insertCmmActivityHstTypeB(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeB", paramMap);
|
||||
}
|
||||
public void insertCmmActivityHstTypeC(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeC", paramMap);
|
||||
}
|
||||
/* 미사용 주석처리 (2019.12.06)
|
||||
public void insertCmmActivityHstTypeL(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeL", paramMap);
|
||||
}
|
||||
*/
|
||||
public void insertCmmActivityHstTypeG(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeG", paramMap);
|
||||
}
|
||||
public void insertCmmActivityHstTypeI(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeI", paramMap);
|
||||
}
|
||||
public void insertCmmActivityHstTypeP(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeP", paramMap);
|
||||
}
|
||||
public void insertCmmActivityHstTypeT(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityHstTypeT", paramMap);
|
||||
}
|
||||
public void updateCmmActivityHst(DataMap paramMap) throws TransactionException {
|
||||
delete("cmmDAO.updateCmmActivityHst", paramMap);
|
||||
}
|
||||
public void deleteCmmScrapInfo(DataMap paramMap) throws TransactionException{
|
||||
delete("cmmDAO.deleteCmmScrapInfo", paramMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* 모바일 디바이스 정보 목록
|
||||
* @param paramMap
|
||||
* @return
|
||||
* @throws DataAccessException
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selecCmmMobileDeviceInfoList(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selecCmmMobileDeviceInfoList",paramMap);
|
||||
}
|
||||
|
||||
public void insertCmmActivityMediaHst(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmActivityMediaHst", paramMap);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCmmAmsAssetsTagKeyList(DataMap paramMap) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectCmmAmsAssetsTagKeyList",paramMap);
|
||||
}
|
||||
|
||||
public DataMap selectCmmAmsAssetsMediaDetail2(DataMap paramMap) throws DataAccessException {
|
||||
//return (DataMap)select("cmmDAO.selectCmmAmsAssetsMediaDetail2", paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmWebzineCnfirm(DataMap paramMap) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmDAO.selectCmmWebzineCnfirm", paramMap);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
public void insertCmmWebzineSubScribe(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmWebzineSubScribe", paramMap);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectMainExtGiaList(DataMap param) throws DataAccessException {
|
||||
return (List<DataMap>)list("cmmDAO.selectMainExtGiaList", param);
|
||||
}
|
||||
|
||||
public void deleteCmmMainExtGiaData(DataMap paramMap) throws TransactionException{
|
||||
delete("cmmDAO.deleteCmmMainExtGiaData", paramMap);
|
||||
}
|
||||
|
||||
public void insertCmmMainData(DataMap paramMap) throws TransactionException {
|
||||
insert("cmmDAO.insertCmmMainData", paramMap);
|
||||
}
|
||||
|
||||
public DataMap getMainLogo() throws DataAccessException {
|
||||
//return (DataMap)select("cmmDAO.getMainLogo");
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
}
|
||||
79
src/main/java/cmm/service/impl/CmmFileDAO.java
Normal file
79
src/main/java/cmm/service/impl/CmmFileDAO.java
Normal file
@ -0,0 +1,79 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.TransactionException;
|
||||
|
||||
import cmm.service.FileDetailVO;
|
||||
import cmm.service.FileMasterVO;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
|
||||
/**
|
||||
* CmmFileDAO
|
||||
*/
|
||||
@Repository("cmmFileDAO")
|
||||
public class CmmFileDAO extends EgovComAbstractDAO
|
||||
{
|
||||
public void insertFileMaster(FileMasterVO fileMasterVO) throws TransactionException
|
||||
{
|
||||
insert("cmmFileDAO.insertFileMasterXXX", fileMasterVO);
|
||||
}
|
||||
public int getMaxFileSN(FileDetailVO fileDetailVO) throws DataAccessException {
|
||||
//return (Integer) select("cmmFileDAO.getMaxFileSN", fileDetailVO);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
public void deleteFileDetail(FileDetailVO fileDetailVO) throws TransactionException
|
||||
{
|
||||
delete("cmmFileDAO.deleteFileDetailXXX", fileDetailVO);
|
||||
}
|
||||
public void insertFileDetail(FileDetailVO fileDetailVO) throws TransactionException
|
||||
{
|
||||
insert("cmmFileDAO.insertFileDetailXXX", fileDetailVO);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<FileDetailVO> selectFileDetailList(String atchFileId) throws DataAccessException
|
||||
{
|
||||
return (List<FileDetailVO>)list("cmmFileDAO.selectFileDetailList", atchFileId);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public BigDecimal selectFileMasterCount(String atchFileId) throws DataAccessException
|
||||
{
|
||||
//return (BigDecimal)getSqlMapClientTemplate().queryForObject("cmmFileDAO.selectFileMasterCount", atchFileId);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public BigDecimal selectFileDetailCount(String atchFileId) throws DataAccessException
|
||||
{
|
||||
//return (BigDecimal)getSqlMapClientTemplate().queryForObject("cmmFileDAO.selectFileDetailCount", atchFileId);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
public FileDetailVO selectFileDetail(FileDetailVO fileDetailVOParam) throws DataAccessException{
|
||||
//return (FileDetailVO) select("cmmFileDAO.selectFileDetail", fileDetailVOParam);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
public FileDetailVO selectFileDetailFirst(String atchFileId) throws DataAccessException{
|
||||
//return (FileDetailVO)select("cmmFileDAO.selectFileDetailFirst", atchFileId);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
public void alternateFileDetail(FileDetailVO fileDetailVO) throws TransactionException {
|
||||
update("cmmFileDAO.alternateFileDetail", fileDetailVO);
|
||||
}
|
||||
|
||||
public void deleteFileMaster(String atchFileId) throws TransactionException {
|
||||
delete("cmmFileDAO.deleteFileMasterXXX", atchFileId);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<FileDetailVO> selectIconFileDownLoad(String atchFileId) throws DataAccessException {
|
||||
return (List<FileDetailVO>) list("cmmFileDAO.selectFileDetailList", atchFileId);
|
||||
}
|
||||
}
|
||||
377
src/main/java/cmm/service/impl/CmmFileServiceImpl.java
Normal file
377
src/main/java/cmm/service/impl/CmmFileServiceImpl.java
Normal file
@ -0,0 +1,377 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
|
||||
import cmm.service.CmmFileService;
|
||||
import cmm.service.FileDetailVO;
|
||||
import cmm.service.FileManagementVO;
|
||||
import cmm.service.FileMasterVO;
|
||||
import cmm.util.DateUtil;
|
||||
import cmm.util.FileUtil;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.cmmn.exception.FdlException;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
|
||||
@Service("cmmFileService")
|
||||
public class CmmFileServiceImpl extends EgovAbstractServiceImpl implements CmmFileService {
|
||||
|
||||
@Resource(name = "cmmFileDAO")
|
||||
private CmmFileDAO cmmFileDAO;
|
||||
|
||||
@Resource(name = "egovFileIdGnrService")
|
||||
private EgovIdGnrService idgenService;
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CmmFileServiceImpl.class);
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public String uploadFile(HttpServletRequest request, FileManagementVO fileManagementVO) throws IOException, EgovBizException {
|
||||
MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest)request;
|
||||
|
||||
|
||||
final Map<String, MultipartFile> files = multiRequest.getFileMap();
|
||||
|
||||
String fileMstNo = null;
|
||||
String path = propertiesService.getString("file.upload.path") + DateUtil.getNowString(DateUtil.DATE_DB_FORMAT)+"/";
|
||||
File file = new File(path);
|
||||
file.setExecutable(false, true);
|
||||
file.setReadable(true);
|
||||
file.setWritable(false,true);
|
||||
if (!file.exists()) {
|
||||
file.mkdirs();
|
||||
}
|
||||
List<MultipartFile> fileList = multiRequest.getFiles(fileManagementVO.getFdFile());
|
||||
|
||||
int index = fileManagementVO.getIndex();
|
||||
if (fileList == null) {
|
||||
LOGGER.debug("No file attached.");
|
||||
return null;
|
||||
}
|
||||
|
||||
LOGGER.debug("CHANG CHECK POINT FILE LIST : " + fileList + ", fdFile : " + fileManagementVO.getFdFile());
|
||||
if (StringUtils.isNotEmpty(fileManagementVO.getFdMstNo())) {
|
||||
String[] fileMstNoArr = multiRequest.getParameterValues(fileManagementVO.getFdMstNo());
|
||||
if (fileMstNoArr != null) {
|
||||
if (StringUtils.isNotEmpty(fileMstNoArr[index])) {
|
||||
fileMstNo = fileMstNoArr[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fileManagementVO.isMulti() == false) {
|
||||
String ctrlStr = null;
|
||||
String title = null;
|
||||
if (fileManagementVO.getFdCtrl() != null) {
|
||||
ctrlStr = multiRequest.getParameterValues(fileManagementVO.getFdCtrl())[index];
|
||||
}
|
||||
if (fileManagementVO.getFdTitle() != null) {
|
||||
title = multiRequest.getParameterValues(fileManagementVO.getFdTitle())[index];
|
||||
}
|
||||
if (FileUtil.ORDER_FLAG_DELETE.equals(ctrlStr)) {
|
||||
FileDetailVO fileDetailVO = cmmFileDAO.selectFileDetailFirst(fileMstNo);
|
||||
if (fileDetailVO != null) {
|
||||
this.deleteFile(fileDetailVO.getFileStreCours(), fileDetailVO.getStreFileNm());
|
||||
this.deleteFileDetail(fileDetailVO);
|
||||
}
|
||||
} else if (FileUtil.ORDER_FLAG_RETRIEVE.equals(ctrlStr)) {
|
||||
} else {
|
||||
FileDetailVO fileDetailVONew = null;
|
||||
if (fileList.size() > 0) {
|
||||
MultipartFile multipartFile = fileList.get(index);
|
||||
fileDetailVONew = this.saveFile(multipartFile, fileManagementVO, fileMstNo, path, null);
|
||||
}
|
||||
if (fileDetailVONew != null) {
|
||||
fileMstNo = fileDetailVONew.getAtchFileId();
|
||||
FileDetailVO fileDetailVO = cmmFileDAO.selectFileDetailFirst(fileMstNo);
|
||||
if (fileDetailVO != null) {
|
||||
this.deleteFile(fileDetailVO.getFileStreCours(), fileDetailVO.getStreFileNm());
|
||||
fileDetailVONew.setFileSn(fileDetailVO.getFileSn());
|
||||
this.alternateFileDetail(fileDetailVONew);
|
||||
} else {
|
||||
//fileDetailVONew.setAtchFileId(idgenService.getNextStringId());
|
||||
int newMaxFileSN = cmmFileDAO.getMaxFileSN(fileDetailVONew);
|
||||
fileDetailVONew.setFileSn(Integer.toString(newMaxFileSN - 1));
|
||||
|
||||
this.createNewFileDetail(fileDetailVONew);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (int i = 0; i < fileList.size(); i++) {
|
||||
String ctrlStr = multiRequest.getParameterValues(fileManagementVO.getFdCtrl())[i];
|
||||
String title = null;
|
||||
String fileDtlNo = null;
|
||||
if (fileManagementVO.getFdTitle() != null) {
|
||||
title = multiRequest.getParameterValues(fileManagementVO.getFdTitle())[i];
|
||||
}
|
||||
if (fileManagementVO.getFdDtlNo() != null) {
|
||||
fileDtlNo = multiRequest.getParameterValues(fileManagementVO.getFdDtlNo())[i];
|
||||
}
|
||||
if (FileUtil.ORDER_FLAG_INSERT.equals(ctrlStr)) {
|
||||
MultipartFile multipartFile = fileList.get(i);
|
||||
FileDetailVO fileDetailVO = this.saveFile(multipartFile, fileManagementVO, fileMstNo, path, title);
|
||||
if (fileDetailVO == null) {
|
||||
continue;
|
||||
}
|
||||
fileMstNo = fileDetailVO.getAtchFileId();
|
||||
int newMaxFileSN = cmmFileDAO.getMaxFileSN(fileDetailVO);
|
||||
fileDetailVO.setFileSn(Integer.toString(newMaxFileSN));
|
||||
this.createNewFileDetail(fileDetailVO);
|
||||
} else if (FileUtil.ORDER_FLAG_UPDATE.equals(ctrlStr)) {
|
||||
MultipartFile multipartFile = fileList.get(i);
|
||||
FileDetailVO fileDetailVONew = this.saveFile(multipartFile, fileManagementVO, fileMstNo, path, title);
|
||||
FileDetailVO fileDetailVO = null;
|
||||
if (fileDetailVONew == null) {
|
||||
|
||||
} else {
|
||||
fileMstNo = fileDetailVONew.getAtchFileId();
|
||||
fileDetailVONew.setFileSn(fileDtlNo);
|
||||
fileDetailVO = cmmFileDAO.selectFileDetail(fileDetailVONew);
|
||||
if (fileDetailVO != null) {
|
||||
this.deleteFile(fileDetailVO.getFileStreCours(), fileDetailVO.getStreFileNm());
|
||||
fileDetailVONew.setAtchFileId(fileDetailVO.getAtchFileId());
|
||||
this.alternateFileDetail(fileDetailVONew);
|
||||
} else {
|
||||
int newMaxFileSN = cmmFileDAO.getMaxFileSN(fileDetailVONew);
|
||||
fileDetailVONew.setFileSn(Integer.toString(newMaxFileSN - 1));
|
||||
this.createNewFileDetail(fileDetailVONew);
|
||||
}
|
||||
}
|
||||
} else if (FileUtil.ORDER_FLAG_DELETE.equals(ctrlStr)) {
|
||||
FileDetailVO fileDetailVO = new FileDetailVO();
|
||||
fileDetailVO.setAtchFileId(fileMstNo);
|
||||
fileDetailVO.setFileSn(fileDtlNo);
|
||||
fileDetailVO = cmmFileDAO.selectFileDetail(fileDetailVO);
|
||||
if(fileManagementVO.isSaveToDisk()) {
|
||||
this.deleteFile(fileDetailVO.getFileStreCours(), fileDetailVO.getStreFileNm());
|
||||
}
|
||||
this.deleteFileDetail(fileDetailVO);
|
||||
}
|
||||
}
|
||||
}
|
||||
return fileMstNo;
|
||||
}
|
||||
public String uploadFileOneAttMulti(HttpServletRequest request, FileManagementVO fileManagementVO, int cnt) throws IOException, EgovBizException {
|
||||
MultipartHttpServletRequest multiRequest = (MultipartHttpServletRequest)request;
|
||||
|
||||
String fileMstNo = null;
|
||||
String fileReturnMstNo = null;
|
||||
String path = propertiesService.getString("file.upload.path") + DateUtil.getNowString(DateUtil.DATE_DB_FORMAT)+"/";
|
||||
File file = new File(path);
|
||||
file.setExecutable(false, true);
|
||||
file.setReadable(true);
|
||||
file.setWritable(false,true);
|
||||
if (!file.exists()) {
|
||||
file.mkdirs();
|
||||
}
|
||||
|
||||
for(int i = 1; i <= cnt; i++){
|
||||
MultipartFile multipartFile = multiRequest.getFile("atchFile0"+i);
|
||||
|
||||
String ctrlStr = multiRequest.getParameter("atchCtrl0"+i);
|
||||
String fileDtlNo = null;
|
||||
fileDtlNo = multiRequest.getParameter("atchDtlNo0"+i);
|
||||
if(multipartFile != null){
|
||||
if((fileManagementVO.getFdMstNo() != null) && (!"".equals(fileManagementVO.getFdMstNo()))){
|
||||
fileMstNo = fileManagementVO.getFdMstNo();
|
||||
}
|
||||
fileMstNo = uploadFileOneAttMulti(multipartFile, fileManagementVO, i, fileMstNo, ctrlStr, fileDtlNo, path);
|
||||
|
||||
if(!"".equals(fileMstNo)){
|
||||
fileReturnMstNo = fileMstNo;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return fileReturnMstNo;
|
||||
}
|
||||
|
||||
public String uploadFileOneAttMulti(MultipartFile multipartFile, FileManagementVO fileManagementVO, int fileSn, String fileMstNo, String ctrlStr, String fileDtlNo, String path) throws IOException, EgovBizException {
|
||||
|
||||
String fileReturnMstNo = fileMstNo;
|
||||
if (FileUtil.ORDER_FLAG_DELETE.equals(ctrlStr)) {
|
||||
FileDetailVO fileDetailVONew = new FileDetailVO();
|
||||
fileDetailVONew.setFileSn(Integer.toString(fileSn));
|
||||
fileDetailVONew.setAtchFileId(fileReturnMstNo);
|
||||
FileDetailVO fileDetailVO = cmmFileDAO.selectFileDetail(fileDetailVONew);
|
||||
if (fileDetailVO != null) {
|
||||
this.deleteFile(fileDetailVO.getFileStreCours(), fileDetailVO.getStreFileNm());
|
||||
this.deleteFileDetail(fileDetailVO);
|
||||
}
|
||||
} else if (FileUtil.ORDER_FLAG_RETRIEVE.equals(ctrlStr)) {
|
||||
} else {
|
||||
FileDetailVO fileDetailVONew = null;
|
||||
fileDetailVONew = this.saveFile(multipartFile, fileManagementVO, fileReturnMstNo, path, null);
|
||||
if (fileDetailVONew != null) {
|
||||
fileDetailVONew.setFileSn(Integer.toString(fileSn));
|
||||
FileDetailVO fileDetailVO = cmmFileDAO.selectFileDetail(fileDetailVONew);
|
||||
if (fileDetailVO != null) {
|
||||
this.deleteFile(fileDetailVO.getFileStreCours(), fileDetailVO.getStreFileNm());
|
||||
fileDetailVONew.setFileSn(Integer.toString(fileSn));
|
||||
this.alternateFileDetail(fileDetailVONew);
|
||||
} else {
|
||||
fileReturnMstNo = fileDetailVONew.getAtchFileId();
|
||||
fileDetailVONew.setFileSn(Integer.toString(fileSn));
|
||||
this.createNewFileDetail(fileDetailVONew);
|
||||
}
|
||||
}
|
||||
}
|
||||
return fileReturnMstNo;
|
||||
}
|
||||
private boolean deleteFile(String filePath, String fileNm) {
|
||||
File file;
|
||||
try {
|
||||
file = new File(filePath, fileNm);
|
||||
if (file.exists()) {
|
||||
file.delete();
|
||||
}
|
||||
} catch(NullPointerException ex) {
|
||||
LOGGER.error("Error in deleteFile()" , ex);
|
||||
return false;
|
||||
} catch(SecurityException ex) {
|
||||
LOGGER.error("Error in deleteFile()" , ex);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private FileDetailVO saveFile(MultipartFile multipartFile, FileManagementVO fileManagementVO, String fileMstNo, String path, String title) throws IOException, EgovBizException {
|
||||
FileMasterVO fileMasterVO = null;
|
||||
String saveFilename = "";
|
||||
@SuppressWarnings("unused")
|
||||
File file = null;
|
||||
String filename = multipartFile.getOriginalFilename();
|
||||
String filepath = "";
|
||||
|
||||
if (StringUtils.isEmpty(filename)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String fileExt = filename.substring(filename.lastIndexOf(".") + 1);
|
||||
|
||||
if (fileManagementVO.isSaveToDisk()) {
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
String today = formatter.format(new java.util.Date());
|
||||
saveFilename = today + UUID.randomUUID().toString() +"."+ fileExt;
|
||||
filepath = path;
|
||||
LOGGER.debug("["+ fileManagementVO.getFdFile() +"]: "+ multipartFile.getName()
|
||||
+", "+ filename
|
||||
+", "+ saveFilename
|
||||
);
|
||||
|
||||
multipartFile.transferTo(new File(path, saveFilename));
|
||||
}
|
||||
|
||||
if (fileMstNo == null) {
|
||||
fileMasterVO = this.createNewFileMaster(fileManagementVO);
|
||||
fileMstNo = fileMasterVO.getAtchFileId();
|
||||
} else {
|
||||
BigDecimal cnt = cmmFileDAO.selectFileMasterCount(fileMstNo);
|
||||
if (cnt.equals(BigDecimal.valueOf(0))) {
|
||||
fileMasterVO = this.createNewFileMaster(fileManagementVO);
|
||||
fileMstNo = fileMasterVO.getAtchFileId();
|
||||
}
|
||||
}
|
||||
|
||||
FileDetailVO fileDetailVO = new FileDetailVO();
|
||||
fileDetailVO.setAtchFileId(fileMstNo);
|
||||
fileDetailVO.setOrignlFileNm(filename);
|
||||
fileDetailVO.setFileStreCours(filepath);
|
||||
fileDetailVO.setStreFileNm(saveFilename);
|
||||
fileDetailVO.setFileExtsn(fileExt);
|
||||
fileDetailVO.setFileSize(BigDecimal.valueOf(multipartFile.getSize()));
|
||||
|
||||
if (fileManagementVO.isSaveToDisk() == false) {
|
||||
fileDetailVO.setFileData(multipartFile.getBytes());
|
||||
}
|
||||
|
||||
return fileDetailVO;
|
||||
}
|
||||
|
||||
public boolean deleteAllFileDetailAndMaster(String fileMstNo) throws IOException, EgovBizException {
|
||||
|
||||
if (fileMstNo == null) {
|
||||
return false;
|
||||
}
|
||||
List<FileDetailVO> fileDetailVOList = cmmFileDAO.selectFileDetailList(fileMstNo);
|
||||
for (FileDetailVO fileDetailVO : fileDetailVOList) {
|
||||
this.deleteFile(fileDetailVO.getFileStreCours(), fileDetailVO.getStreFileNm());
|
||||
this.deleteFileDetail(fileDetailVO);
|
||||
}
|
||||
this.deleteFileMaster(fileMstNo);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void deleteFileMaster(String fileMstNo) throws IOException, EgovBizException {
|
||||
cmmFileDAO.deleteFileMaster(fileMstNo);
|
||||
}
|
||||
|
||||
private void deleteFileDetail(FileDetailVO fileDetailVO) throws IOException, EgovBizException {
|
||||
cmmFileDAO.deleteFileDetail(fileDetailVO);
|
||||
}
|
||||
|
||||
private void alternateFileDetail(FileDetailVO fileDetailVO) throws IOException, EgovBizException {
|
||||
cmmFileDAO.alternateFileDetail(fileDetailVO);
|
||||
}
|
||||
|
||||
private void createNewFileDetail(FileDetailVO fileDetailVO) throws IOException, EgovBizException {
|
||||
cmmFileDAO.insertFileDetail(fileDetailVO);
|
||||
}
|
||||
|
||||
private FileMasterVO createNewFileMaster(FileManagementVO fileManagementVO) throws IOException, EgovBizException {
|
||||
FileMasterVO fileMasterVO = new FileMasterVO();
|
||||
try {
|
||||
fileMasterVO.setAtchFileId(idgenService.getNextStringId());
|
||||
} catch (FdlException e) {
|
||||
LOGGER.error("fail in createNewFileMaster() getNextStringId()", e);
|
||||
}
|
||||
cmmFileDAO.insertFileMaster(fileMasterVO);
|
||||
return fileMasterVO;
|
||||
}
|
||||
|
||||
public List<FileDetailVO> selectFileDetailList(String atchFileId) throws IOException, EgovBizException {
|
||||
if (atchFileId == null) {
|
||||
return null;
|
||||
}
|
||||
return cmmFileDAO.selectFileDetailList(atchFileId);
|
||||
}
|
||||
public FileDetailVO selectFileDetail(FileDetailVO fileDetailVOParam) throws IOException, EgovBizException {
|
||||
return cmmFileDAO.selectFileDetail(fileDetailVOParam);
|
||||
}
|
||||
public BigDecimal selectFileDetailCount(String fileMstNo) throws IOException, EgovBizException {
|
||||
return cmmFileDAO.selectFileDetailCount(fileMstNo);
|
||||
}
|
||||
public FileDetailVO selectFileDetailFirst(String atchFileId) throws IOException, EgovBizException {
|
||||
if (atchFileId == null) {
|
||||
return null;
|
||||
}
|
||||
return cmmFileDAO.selectFileDetailFirst(atchFileId);
|
||||
}
|
||||
public List<FileDetailVO> selectIconFileDownLoad(String atchFileId) throws IOException, EgovBizException {
|
||||
return cmmFileDAO.selectIconFileDownLoad(atchFileId);
|
||||
}
|
||||
}
|
||||
31
src/main/java/cmm/service/impl/CmmMenuManageServiceImpl.java
Normal file
31
src/main/java/cmm/service/impl/CmmMenuManageServiceImpl.java
Normal file
@ -0,0 +1,31 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import cmm.service.CmmMenuManageService;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
@Service("cmmMenuManageService")
|
||||
public class CmmMenuManageServiceImpl extends EgovAbstractServiceImpl implements CmmMenuManageService{
|
||||
|
||||
@Resource(name="cmmDAO")
|
||||
private CmmDAO cmmDAO;
|
||||
|
||||
@Override
|
||||
@Cacheable(value="menu", key="{#authorCode}")
|
||||
public List<DataMap> selectMenuHead(String authorCode) throws EgovBizException{
|
||||
return cmmDAO.selectMenuHead(authorCode);
|
||||
}
|
||||
@Override
|
||||
@Cacheable(value="menu", key="{#authorCode}")
|
||||
public List<DataMap> selectMenuLeft(String authorCode) throws EgovBizException{
|
||||
return cmmDAO.selectMenuLeft(authorCode);
|
||||
}
|
||||
}
|
||||
59
src/main/java/cmm/service/impl/CmmPmsMapContentsDAO.java
Normal file
59
src/main/java/cmm/service/impl/CmmPmsMapContentsDAO.java
Normal file
@ -0,0 +1,59 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.service.CmmCouncilInfoVO;
|
||||
import cmm.service.CmmPmsMapContentsVO;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
|
||||
/**
|
||||
* 맵 콘텐츠에 대한 데이터 접근 클래스를 정의한다
|
||||
* @Class Name : CmmPmsMapContentsDAO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-06-26
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ --------- --------- -------------------------------
|
||||
* @ 2018-06-26 ecplaza 최초생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("cmmPmsMapContentsDAO")
|
||||
public class CmmPmsMapContentsDAO extends EgovComAbstractDAO {
|
||||
@SuppressWarnings("unchecked")
|
||||
public String selectCouncilNm(String councilCd) throws DataAccessException{
|
||||
//return (String)getSqlMapClientTemplate().queryForObject("cmmPmsMapContentsDAO.selectCouncilNm", councilCd);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmPmsMapCntnsStoryCnt(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmPmsMapContentsDAO.selectCmmPmsMapCntnsStoryCnt", cmmPmsMapContentsVO);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectCmmPmsMapLocalCultureCnt(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("cmmPmsMapContentsDAO.selectCmmPmsMapLocalCultureCnt", cmmPmsMapContentsVO);
|
||||
return 0; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmCouncilInfoVO> selectCmmPmsMapAoiCouncilInfoList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws DataAccessException{
|
||||
return (List<CmmCouncilInfoVO>)list("cmmPmsMapContentsDAO.selectCmmPmsMapAoiCouncilInfoList", cmmPmsMapContentsVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmPmsMapContentsVO> selectCmmPmsMapContentsList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws DataAccessException{
|
||||
return (List<CmmPmsMapContentsVO>)list("cmmPmsMapContentsDAO.selectCmmPmsMapContentsList", cmmPmsMapContentsVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmPmsMapContentsVO> selectCmmPmsMapContentsSearchList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws DataAccessException{
|
||||
return (List<CmmPmsMapContentsVO>)list("cmmPmsMapContentsDAO.selectCmmPmsMapContentsSearchList", cmmPmsMapContentsVO);
|
||||
}
|
||||
}
|
||||
104
src/main/java/cmm/service/impl/CmmPmsMapContentsServiceImpl.java
Normal file
104
src/main/java/cmm/service/impl/CmmPmsMapContentsServiceImpl.java
Normal file
@ -0,0 +1,104 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.service.CmmCouncilInfoVO;
|
||||
import cmm.service.CmmPmsMapContentsService;
|
||||
import cmm.service.CmmPmsMapContentsVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
|
||||
/**
|
||||
* 맵 콘텐츠에 대한 서비스 클래스를 구현한다
|
||||
* @Class Name : CmmPmsMapContentsServiceImpl.java
|
||||
* @author ecplaza
|
||||
* @since 2018-06-26
|
||||
* @version 1.0
|
||||
*/
|
||||
@Service("cmmPmsMapContentsService")
|
||||
public class CmmPmsMapContentsServiceImpl extends EgovAbstractServiceImpl implements CmmPmsMapContentsService {
|
||||
|
||||
/** LOGGER */
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CmmPmsMapContentsServiceImpl.class);
|
||||
|
||||
/** cmmPmsMapContentsDAO */
|
||||
@Resource(name="cmmPmsMapContentsDAO")
|
||||
private CmmPmsMapContentsDAO cmmPmsMapContentsDAO;
|
||||
|
||||
@Override
|
||||
public int selectCmmPmsMapCntnsStoryCnt(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException {
|
||||
return cmmPmsMapContentsDAO.selectCmmPmsMapCntnsStoryCnt(cmmPmsMapContentsVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int selectCmmPmsMapLocalCultureCnt(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException {
|
||||
return cmmPmsMapContentsDAO.selectCmmPmsMapLocalCultureCnt(cmmPmsMapContentsVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CmmCouncilInfoVO> selectCmmPmsMapAoiCouncilInfoList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException{
|
||||
return (List<CmmCouncilInfoVO>)cmmPmsMapContentsDAO.selectCmmPmsMapAoiCouncilInfoList(cmmPmsMapContentsVO);
|
||||
}
|
||||
@Override
|
||||
public List<CmmPmsMapContentsVO> selectCmmPmsMapContentsList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException{
|
||||
List<CmmPmsMapContentsVO> cmmPmsMapContentsList = (List<CmmPmsMapContentsVO>)cmmPmsMapContentsDAO.selectCmmPmsMapContentsList(cmmPmsMapContentsVO);
|
||||
|
||||
/*
|
||||
* 쿼리에서 문화원명 구하도록 수정되어 주석처리 (2020.02.06)
|
||||
*
|
||||
// COUNTIL_CD 값이 '||' 로 연결되어 있는 경우 각각의 문화원명 구하기 (2020.02.05)
|
||||
DataMap councilData = new DataMap(); // 문화원코드-문화원명 맵 (불필요한 DB 호출을 방지하기 위하여 사용)
|
||||
for (int i=0; cmmPmsMapContentsList != null && i<cmmPmsMapContentsList.size(); i++) {
|
||||
CmmPmsMapContentsVO vo = cmmPmsMapContentsList.get(i);
|
||||
String councilCd = vo.getCouncilCd();
|
||||
String councilNm = vo.getCouncilNm();
|
||||
if (StringUtils.isNotEmpty(councilCd) && councilCd.indexOf("||") > 0) {
|
||||
boolean isNumberDiff = true;
|
||||
String[] cdArr = councilCd.split("\\|\\|"); // 문화원 코드 배열
|
||||
if (StringUtils.isNotEmpty(councilNm)) {
|
||||
String[] nmArr = councilNm.split(","); // 문화원명 배열
|
||||
if (cdArr.length == nmArr.length) { // 문화원 코드 개수와 문화원명 개수가 동일한 경우 (쿼리에서 문화원명 구한 경우)
|
||||
isNumberDiff = false;
|
||||
}
|
||||
}
|
||||
if (isNumberDiff) {
|
||||
councilNm = "";
|
||||
for (int j=0; cdArr!=null && j<cdArr.length; j++) {
|
||||
String currCouncilCd = cdArr[j];
|
||||
if (StringUtils.isEmpty(councilData.getString(currCouncilCd))) { // councilData 맵에 문화원 정보 없을 경우에만 DB에서 조회
|
||||
String currCouncilNm = cmmPmsMapContentsDAO.selectCouncilNm(currCouncilCd);
|
||||
LOGGER.info("selectCmmPmsMapContentsList() selectCouncilNm... currCouncilCd={}, currCouncilNm={}", currCouncilCd, currCouncilNm);
|
||||
councilData.setString(currCouncilCd, currCouncilNm);
|
||||
}
|
||||
|
||||
if (j > 0) councilNm += ",";
|
||||
councilNm += councilData.getString(currCouncilCd);
|
||||
}
|
||||
}
|
||||
LOGGER.info("selectCmmPmsMapContentsList() i={}, cdArr={}, councilNm={}",i, cdArr==null ? cdArr : Arrays.toString(cdArr), councilNm);
|
||||
vo.setCouncilNm(councilNm);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
return cmmPmsMapContentsList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CmmPmsMapContentsVO> selectCmmPmsMapContentsSearchList(CmmPmsMapContentsVO cmmPmsMapContentsVO) throws EgovBizException{
|
||||
List<CmmPmsMapContentsVO> cmmPmsMapContentsList = (List<CmmPmsMapContentsVO>)cmmPmsMapContentsDAO.selectCmmPmsMapContentsSearchList(cmmPmsMapContentsVO);
|
||||
return cmmPmsMapContentsList;
|
||||
}
|
||||
}
|
||||
559
src/main/java/cmm/service/impl/CmmServiceImpl.java
Normal file
559
src/main/java/cmm/service/impl/CmmServiceImpl.java
Normal file
@ -0,0 +1,559 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.TransactionException;
|
||||
|
||||
import cmm.Constant;
|
||||
import cmm.service.CmmService;
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
import cmm.util.DataMap;
|
||||
import cmm.util.DateUtil;
|
||||
import egovframework.com.cmm.service.impl.CmmUseDAO;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.cmmn.exception.FdlException;
|
||||
import egovframework.rte.fdl.idgnr.EgovIdGnrService;
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
|
||||
/**
|
||||
* 공통 서비스 클래스를 구현한다.
|
||||
* @Class Name : CmmServiceImpl.java
|
||||
* @author ecplaza
|
||||
* @since 2018-04-18
|
||||
* @version 1.0
|
||||
*/
|
||||
@Service("cmmService")
|
||||
public class CmmServiceImpl extends EgovAbstractServiceImpl implements CmmService {
|
||||
|
||||
/** LOGGER */
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CmmServiceImpl.class);
|
||||
|
||||
/** EgovPropertyService */
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
/** cmmDAO */
|
||||
@Resource(name="cmmDAO")
|
||||
private CmmDAO cmmDAO;
|
||||
|
||||
/** cmmUseDAO */
|
||||
@Resource(name="cmmUseDAO")
|
||||
private CmmUseDAO cmmUseDAO;
|
||||
|
||||
/** egovSchedulerHstIdGnrService */
|
||||
@Resource(name = "egovSchedulerHstIdGnrService")
|
||||
private EgovIdGnrService schedulerHstIdGnrService;
|
||||
|
||||
@Override
|
||||
public List<DataMap> selectCmmActivityHstAllListTotCnt(DataMap paramMap) throws EgovBizException{
|
||||
return (List<DataMap>)cmmDAO.selectCmmActivityHstAllListTotCnt(paramMap);
|
||||
}
|
||||
@Override
|
||||
public int selectSatisfactionTotCnt(DataMap paramMap) throws EgovBizException{
|
||||
return (Integer)cmmDAO.selectSatisfactionTotCnt(paramMap);
|
||||
}
|
||||
@Override
|
||||
public int selectCmmPscHstTotCnt(DataMap paramMap) throws EgovBizException{
|
||||
return (Integer)cmmDAO.selectCmmPscHstTotCnt(paramMap);
|
||||
}
|
||||
@Override
|
||||
public DataMap selectCmmPscHstDetail(DataMap paramMap) throws EgovBizException{
|
||||
return cmmDAO.selectCmmPscHstDetail(paramMap);
|
||||
}
|
||||
@Override
|
||||
public DataMap selectCmmPmsPostRandom(DataMap paramMap) throws EgovBizException{
|
||||
if(StringUtils.isBlank(paramMap.getString("today"))){
|
||||
paramMap.setString("today", DateUtil.getNowString(DateUtil.DATE_DB_FORMAT));
|
||||
}
|
||||
return cmmDAO.selectCmmPmsPostRandom(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세정보
|
||||
* pick 레이어 사용(좌측 상단)
|
||||
*/
|
||||
@Override
|
||||
public DataMap selectCmmAmsAssetsDetail(DataMap paramMap) throws EgovBizException {
|
||||
return cmmDAO.selectCmmAmsAssetsDetail(paramMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* 에셋 미디어 그룹 목록
|
||||
* pick 레이어 사용(좌측 목록)
|
||||
*/
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsMediaGroupListCnt(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsMediaGroupListCnt(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 그룹 목록
|
||||
* pick 레이어 사용(좌측 목록)
|
||||
*/
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsMediaGroupList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsMediaGroupList(paramMap);
|
||||
}
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsMediaList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsMediaList(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 상세정보
|
||||
* pick 레이어 사용(완문보기 상세정보)
|
||||
*/
|
||||
@Override
|
||||
public DataMap selectCmmAmsAssetsMediaDetail(DataMap paramMap) throws EgovBizException{
|
||||
return cmmDAO.selectCmmAmsAssetsMediaDetail(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 상세정보 (미디어의 INTERFACE_ID 값으로 조회)
|
||||
* pick 레이어 사용(완문보기 상세정보)
|
||||
*/
|
||||
@Override
|
||||
public DataMap selectCmmAmsAssetsMediaDetailByInterfaceId(DataMap paramMap) throws EgovBizException{
|
||||
return cmmDAO.selectCmmAmsAssetsMediaDetailByInterfaceId(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 미디어 OCR 목록
|
||||
* pick 레이어 사용(문서 완문보기)
|
||||
*/
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsMediaOcrList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsMediaOcrList(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연관태그 목록
|
||||
* pick 레이어 사용(상세 정보의 연관태그)
|
||||
*/
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsTagsList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsTagsList(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연속자료 목록 총 수
|
||||
* pick 레이어 사용(상세 정보의 연속자료 목록 총 수)
|
||||
*/
|
||||
@Override
|
||||
public int selectCmmAmsAssetsContinueListTotCnt(CmmVO param) throws EgovBizException{
|
||||
return (Integer)cmmDAO.selectCmmAmsAssetsContinueListTotCnt(param);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연속자료 목록
|
||||
* pick 레이어 사용(상세 정보의 연속자료 목록)
|
||||
*/
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsContinueList(CmmVO param) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsContinueList(param);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 연관 지역문화이야기 목록
|
||||
* pick 레이어 사용(지역문화이야기 목록)
|
||||
*/
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsThemesContentsList(List paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsThemesContentsList(paramMap);
|
||||
}
|
||||
/**
|
||||
* 에셋 상세 다른문화원 소장자료 목록
|
||||
* pick 레이어 사용(다른문화원 소장자료 목록)
|
||||
*/
|
||||
public List<DataMap> selectCmmAmsAssetsDiffSojangList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsDiffSojangList(paramMap);
|
||||
}
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsOriginViewList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsOriginViewList(paramMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int selectCmmAmsAssetsOriginViewListAjaxCnt(DataMap paramMap) throws EgovBizException{
|
||||
return (Integer)cmmDAO.selectCmmAmsAssetsOriginViewListAjaxCnt(paramMap);
|
||||
}
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsOriginViewListAjax(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsOriginViewListAjax(paramMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataMap selectCmmAmsAssetsOriginViewDetail(DataMap paramMap) throws EgovBizException {
|
||||
return cmmDAO.selectCmmAmsAssetsOriginViewDetail(paramMap);
|
||||
}
|
||||
@Override
|
||||
public int selectCmmScrapCnt(DataMap paramMap) throws EgovBizException {
|
||||
return (Integer)cmmDAO.selectCmmScrapCnt(paramMap);
|
||||
}
|
||||
@Override
|
||||
public void insertSatisfaction(DataMap paramMap) throws EgovBizException {
|
||||
cmmDAO.insertSatisfaction(paramMap);
|
||||
}
|
||||
@Override
|
||||
public void insertCmmSchedulerHst(DataMap paramMap) throws FdlException, EgovBizException {
|
||||
paramMap.setString("schedulerHstId", schedulerHstIdGnrService.getNextStringId());
|
||||
cmmDAO.insertCmmSchedulerHst(paramMap);
|
||||
}
|
||||
@Override
|
||||
public void insertCmmPscHst(DataMap paramMap) throws EgovBizException{
|
||||
cmmDAO.insertCmmPscHst(paramMap);
|
||||
}
|
||||
@Override
|
||||
public void updateCmmPscHst(DataMap paramMap) throws EgovBizException{
|
||||
cmmDAO.updateCmmPscHst(paramMap);
|
||||
}
|
||||
@Override
|
||||
public void insertCmmScrap(DataMap paramMap) throws EgovBizException{
|
||||
if(Constant.CONTENT_TYPE_A.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmScrapTypeA(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_B.equals(paramMap.getString("contentType"))){
|
||||
paramMap.setString("bbsId", Constant.BBS_ID_CUL);
|
||||
cmmDAO.insertCmmScrapTypeB(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_C.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmScrapTypeC(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_G.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmScrapTypeG(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_I.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmScrapTypeI(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_P.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmScrapTypeP(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_T.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmScrapTypeT(paramMap);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void insertCmmActivityHst(DataMap paramMap) throws EgovBizException {
|
||||
|
||||
// 사용구분(W:웹,M:모바일웹,A앱,I:API,R:RIS)
|
||||
String uaType = paramMap.getString("uaType");
|
||||
if (StringUtils.isEmpty(uaType)) {
|
||||
paramMap.setString("uaType", Constant.UA_TYPE_W);
|
||||
}
|
||||
|
||||
if(Constant.CONTENT_TYPE_A.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmActivityHstTypeA(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_B.equals(paramMap.getString("contentType"))){
|
||||
paramMap.setString("bbsId", Constant.BBS_ID_CUL);
|
||||
cmmDAO.insertCmmActivityHstTypeB(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_C.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmActivityHstTypeC(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_G.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmActivityHstTypeG(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_I.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmActivityHstTypeI(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_P.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmActivityHstTypeP(paramMap);
|
||||
}else if(Constant.CONTENT_TYPE_T.equals(paramMap.getString("contentType"))){
|
||||
cmmDAO.insertCmmActivityHstTypeT(paramMap);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void updateCmmActivityHst(DataMap paramMap) throws EgovBizException {
|
||||
if(paramMap.get("ids") != null){
|
||||
String [] ids = null;
|
||||
String [] contentTypes = null;
|
||||
if(paramMap.get("ids") instanceof String[]){
|
||||
ids = (String[]) paramMap.get("ids");
|
||||
contentTypes = paramMap.getString("contentTypes").split(",");
|
||||
}else{
|
||||
ids = new String[1];
|
||||
ids[0] = paramMap.getString("ids");
|
||||
contentTypes = new String[1];
|
||||
contentTypes[0] = paramMap.getString("contentTypes");
|
||||
}
|
||||
for(String temp : ids){
|
||||
paramMap.setString("contentId", temp);
|
||||
cmmDAO.updateCmmActivityHst(paramMap);
|
||||
paramMap.remove("contentId");
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void deleteCmmScrapInfo(DataMap paramMap) throws EgovBizException{
|
||||
if(paramMap.get("ids") != null){
|
||||
String [] ids = null;
|
||||
String [] contentTypes = null;
|
||||
if(paramMap.get("ids") instanceof String[]){
|
||||
ids = (String[]) paramMap.get("ids");
|
||||
contentTypes = paramMap.getString("contentTypes").split(",");
|
||||
}else{
|
||||
ids = new String[1];
|
||||
ids[0] = paramMap.getString("ids");
|
||||
contentTypes = new String[1];
|
||||
contentTypes[0] = paramMap.getString("contentTypes");
|
||||
}
|
||||
for(String temp : ids){
|
||||
paramMap.setString("id", temp);
|
||||
cmmDAO.deleteCmmScrapInfo(paramMap);
|
||||
paramMap.remove("id");
|
||||
}
|
||||
}else{
|
||||
cmmDAO.deleteCmmScrapInfo(paramMap);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 모바일 디바이스 정보 목록
|
||||
*/
|
||||
@Override
|
||||
public List<DataMap> selecCmmMobileDeviceInfoList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selecCmmMobileDeviceInfoList(paramMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void insertCmmActivityMediaHst(DataMap paramMap) throws EgovBizException {
|
||||
cmmDAO.insertCmmActivityMediaHst(paramMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DataMap> selectCmmAmsAssetsTagKeyList(DataMap paramMap) throws EgovBizException {
|
||||
return (List<DataMap>)cmmDAO.selectCmmAmsAssetsTagKeyList(paramMap);
|
||||
}
|
||||
@Override
|
||||
public DataMap selectCmmAmsAssetsMediaDetail2(DataMap paramMap) throws EgovBizException{
|
||||
return cmmDAO.selectCmmAmsAssetsMediaDetail2(paramMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int selectCmmWebzineCnfirm(DataMap paramMap) throws EgovBizException{
|
||||
return (Integer)cmmDAO.selectCmmWebzineCnfirm(paramMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void insertCmmWebzineSubScribe(DataMap paramMap) throws EgovBizException{
|
||||
cmmDAO.insertCmmWebzineSubScribe(paramMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void insertCmmMainData(String gubun) throws EgovBizException, FdlException{
|
||||
String toDay = DateUtil.getNowString(DateUtil.DATE_DB_FORMAT);
|
||||
String tomorrow = DateUtil.getAddDayFormat(1,DateUtil.DATE_DB_FORMAT);
|
||||
String startDt = DateUtil.getNowString(DateUtil.DATETIME_FORMAT);
|
||||
DataMap schedulerHstMap = new DataMap();
|
||||
boolean isSuccess = false;
|
||||
String msg = "";
|
||||
int dataCnt = 0;
|
||||
|
||||
try {
|
||||
DataMap paramMap= new DataMap();
|
||||
|
||||
if(gubun.equals("G")){ // 이달의 지역문화정보
|
||||
paramMap.put("gubun", "G"); //구분 (C:이야기, A:지역문화PICK, G:지역문화정보, P:포스트)
|
||||
|
||||
List<DataMap> extGiaList = cmmDAO.selectMainExtGiaList(paramMap);
|
||||
if(extGiaList.size()> 0){
|
||||
cmmDAO.deleteCmmMainExtGiaData(paramMap);
|
||||
for(DataMap extGia : extGiaList){
|
||||
extGia.put("gubun", "G");
|
||||
cmmDAO.insertCmmMainData(extGia);
|
||||
dataCnt++;
|
||||
}
|
||||
isSuccess = true;
|
||||
}else{
|
||||
msg = "[데이터 조회오류]조회된 데이터 size:0";
|
||||
}
|
||||
}
|
||||
|
||||
} catch (TransactionException ex1) {
|
||||
LOGGER.error("fail in insertCmmMainData()", ex1);
|
||||
msg = dataLimit(ex1.toString());
|
||||
} catch (Exception ex2) {
|
||||
LOGGER.error("fail in insertCmmMainData()", ex2);
|
||||
msg = dataLimit(ex2.toString());
|
||||
} finally{
|
||||
schedulerHstMap.setString("schedulerMethodNm", "setMainInfo");
|
||||
|
||||
String schedulerNm = "";
|
||||
if(gubun.equals("A")){
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_A_INFO;
|
||||
}else if (gubun.equals("C")){
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_C_INFO;
|
||||
}else if (gubun.equals("G")){
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_G_INFO;
|
||||
}else{
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_P_INFO;
|
||||
}
|
||||
schedulerHstMap.setString("schedulerNm", schedulerNm);
|
||||
schedulerHstMap.setString("strTm", startDt);
|
||||
schedulerHstMap.setString("endTm", DateUtil.getNowString(DateUtil.DATETIME_FORMAT));
|
||||
if(isSuccess){
|
||||
schedulerHstMap.setString("rstMsg", "등록성공");
|
||||
}else{
|
||||
schedulerHstMap.setString("rstMsg", "등록실패");
|
||||
schedulerHstMap.setString("etcCn", msg);
|
||||
}
|
||||
schedulerHstMap.setInt("dataCnt", dataCnt);
|
||||
}
|
||||
|
||||
schedulerHstMap.setString("schedulerHstId", schedulerHstIdGnrService.getNextStringId());
|
||||
cmmDAO.insertCmmSchedulerHst(schedulerHstMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataMap insertCmmExtGiaMainInfo(String contentType) throws FdlException {
|
||||
|
||||
String startDt = DateUtil.getNowString(DateUtil.DATETIME_FORMAT);
|
||||
DataMap schedulerHstMap = new DataMap();
|
||||
boolean isSuccess = false;
|
||||
String msg = "";
|
||||
int dataCnt = 0;
|
||||
|
||||
try {
|
||||
DataMap paramMap= new DataMap();
|
||||
|
||||
if(contentType.equals("G")){ // 이달의 지역문화정보
|
||||
paramMap.put("gubun", "G"); //구분 (C:이야기, A:지역문화PICK, G:지역문화정보, P:포스트)
|
||||
|
||||
List<DataMap> extGiaList = cmmDAO.selectMainExtGiaList(paramMap);
|
||||
if(extGiaList.size()> 0){
|
||||
cmmDAO.deleteCmmMainExtGiaData(paramMap);
|
||||
for(DataMap extGia : extGiaList){
|
||||
extGia.put("gubun", "G");
|
||||
cmmDAO.insertCmmMainData(extGia);
|
||||
dataCnt++;
|
||||
}
|
||||
isSuccess = true;
|
||||
}else{
|
||||
msg = "[데이터 조회오류]조회된 데이터 size:0";
|
||||
}
|
||||
}
|
||||
|
||||
} catch (TransactionException ex1) {
|
||||
LOGGER.error("fail in insertCmmMainData()", ex1);
|
||||
msg = dataLimit(ex1.toString());
|
||||
} catch (Exception ex2) {
|
||||
LOGGER.error("fail in insertCmmMainData()", ex2);
|
||||
msg = dataLimit(ex2.toString());
|
||||
} finally{
|
||||
schedulerHstMap.setString("schedulerMethodNm", "setMainInfo");
|
||||
|
||||
String schedulerNm = "";
|
||||
if(contentType.equals("A")){
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_A_INFO;
|
||||
}else if (contentType.equals("C")){
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_C_INFO;
|
||||
}else if (contentType.equals("G")){
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_G_INFO;
|
||||
}else{
|
||||
schedulerNm = Constant.SCHEDULER_MAIN_P_INFO;
|
||||
}
|
||||
schedulerHstMap.setString("schedulerNm", schedulerNm);
|
||||
schedulerHstMap.setString("strTm", startDt);
|
||||
schedulerHstMap.setString("endTm", DateUtil.getNowString(DateUtil.DATETIME_FORMAT));
|
||||
if(isSuccess){
|
||||
schedulerHstMap.setString("rstMsg", "등록성공");
|
||||
}else{
|
||||
schedulerHstMap.setString("rstMsg", "등록실패");
|
||||
schedulerHstMap.setString("etcCn", msg);
|
||||
}
|
||||
schedulerHstMap.setInt("dataCnt", dataCnt);
|
||||
}
|
||||
|
||||
schedulerHstMap.setString("schedulerHstId", schedulerHstIdGnrService.getNextStringId());
|
||||
cmmDAO.insertCmmSchedulerHst(schedulerHstMap);
|
||||
return schedulerHstMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataMap selectCmmPscHst(String jsessionId) throws EgovBizException {
|
||||
DataMap paramMap = new DataMap();
|
||||
paramMap.setString("jsessionId", jsessionId);
|
||||
paramMap.setInt("sortOrdr", 1);
|
||||
DataMap pscHstMap1 = cmmDAO.selectCmmPscHstDetail(paramMap);
|
||||
|
||||
paramMap.setInt("sortOrdr", 2);
|
||||
DataMap pscHstMap2 = cmmDAO.selectCmmPscHstDetail(paramMap);
|
||||
|
||||
paramMap.setInt("sortOrdr", 3);
|
||||
DataMap pscHstMap3 = cmmDAO.selectCmmPscHstDetail(paramMap);
|
||||
|
||||
String pscHstAddr = propertiesService.getString("kccf.default.pscHst");
|
||||
String[] addrArr = pscHstAddr.split("\\^");
|
||||
String addr = "";
|
||||
String sidoName = "";
|
||||
String sigunguName = "";
|
||||
|
||||
if(pscHstMap1 == null){
|
||||
if(!StringUtils.isBlank(addrArr[0])){
|
||||
addr = addrArr[0].replaceAll("\\|", " ");
|
||||
StringTokenizer st = new StringTokenizer(addr," ");
|
||||
if(st.hasMoreElements()){
|
||||
if(st.hasMoreTokens()){
|
||||
sidoName = st.nextToken();
|
||||
}
|
||||
if(st.hasMoreTokens()){
|
||||
sigunguName = st.nextToken();
|
||||
}
|
||||
}
|
||||
}
|
||||
pscHstMap1 = new DataMap();
|
||||
pscHstMap1.setString("sidoName", sidoName);
|
||||
pscHstMap1.setString("sigunguName", sigunguName);
|
||||
}
|
||||
|
||||
if(pscHstMap2 == null){
|
||||
if(!StringUtils.isBlank(addrArr[1])){
|
||||
addr = addrArr[1].replaceAll("\\|", " ");
|
||||
StringTokenizer st = new StringTokenizer(addr," ");
|
||||
if(st.hasMoreElements()){
|
||||
if(st.hasMoreTokens()){
|
||||
sidoName = st.nextToken();
|
||||
}
|
||||
if(st.hasMoreTokens()){
|
||||
sigunguName = st.nextToken();
|
||||
}
|
||||
}
|
||||
}
|
||||
pscHstMap2 = new DataMap();
|
||||
pscHstMap2.setString("sidoName", sidoName);
|
||||
pscHstMap2.setString("sigunguName", sigunguName);
|
||||
}
|
||||
|
||||
if(pscHstMap3 == null){
|
||||
if(!StringUtils.isBlank(addrArr[2])){
|
||||
addr = addrArr[2].replaceAll("\\|", " ");
|
||||
StringTokenizer st = new StringTokenizer(addr," ");
|
||||
if(st.hasMoreElements()){
|
||||
if(st.hasMoreTokens()){
|
||||
sidoName = st.nextToken();
|
||||
}
|
||||
if(st.hasMoreTokens()){
|
||||
sigunguName = st.nextToken();
|
||||
}
|
||||
}
|
||||
}
|
||||
pscHstMap3 = new DataMap();
|
||||
pscHstMap3.setString("sidoName", sidoName);
|
||||
pscHstMap3.setString("sigunguName", sigunguName);
|
||||
}
|
||||
|
||||
DataMap pscHstMap = new DataMap(); //관심지역 표시에 사용
|
||||
pscHstMap.put("pscHst1", pscHstMap1);
|
||||
pscHstMap.put("pscHst2", pscHstMap2);
|
||||
pscHstMap.put("pscHst3", pscHstMap3);
|
||||
|
||||
return pscHstMap;
|
||||
}
|
||||
|
||||
private String dataLimit(String data){
|
||||
String rtnStr = "";
|
||||
if(CmmUtil.checkMaxbyte(data , 1000)){
|
||||
rtnStr = data.substring(0 , 1000);
|
||||
}else{
|
||||
rtnStr = data;
|
||||
}
|
||||
return rtnStr;
|
||||
}
|
||||
|
||||
public DataMap getMainLogo() throws EgovBizException{
|
||||
return cmmDAO.getMainLogo();
|
||||
}
|
||||
|
||||
}
|
||||
79
src/main/java/cmm/service/impl/ExtDAO.java
Normal file
79
src/main/java/cmm/service/impl/ExtDAO.java
Normal file
@ -0,0 +1,79 @@
|
||||
package cmm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.transaction.TransactionException;
|
||||
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
|
||||
/**
|
||||
* 외부 API 데이터 관리에 대한 데이터 접근 클래스를 정의한다.
|
||||
* @Class Name : ExtDAO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-04-16
|
||||
* @version 1.0
|
||||
*/
|
||||
@Repository("extDAO")
|
||||
public class ExtDAO extends EgovComAbstractDAO {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectExtSigunguList(DataMap paramMap) throws DataAccessException{
|
||||
return (List<DataMap>)list("extDAO.selectExtSigunguList", paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectExtSigunguList2(DataMap paramMap) throws DataAccessException{
|
||||
return (List<DataMap>)list("extDAO.selectExtSigunguList2", paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectExtGisSigunguList(DataMap paramMap) throws DataAccessException{
|
||||
return (List<DataMap>)list("extDAO.selectExtGisSigunguList", paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectExtGisDongList(DataMap paramMap) throws DataAccessException{
|
||||
return (List<DataMap>)list("extDAO.selectExtGisDongList", paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectExtSidoMapMappingList(DataMap paramMap) throws DataAccessException{
|
||||
return (List<DataMap>)list("extDAO.selectExtSidoMapMappingList", paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectExtDfInfoList(DataMap paramMap) throws DataAccessException{
|
||||
return (List<DataMap>)list("extDAO.selectExtDfInfoList", paramMap);
|
||||
}
|
||||
public DataMap selectExtGiaDetail(DataMap paramMap) throws DataAccessException{
|
||||
//return (DataMap)select("extDAO.selectExtGiaDetail", paramMap);
|
||||
return null; // DDDDDDDDDDDdddd 임시 처리 (2021.08.13)
|
||||
}
|
||||
public void insertExtDfInfo(DataMap paramMap) throws TransactionException{
|
||||
insert("extDAO.insertExtDfInfo", paramMap);
|
||||
}
|
||||
public void deleteExtDfInfo() throws TransactionException{
|
||||
delete("extDAO.deleteExtDfInfo");
|
||||
}
|
||||
public void insertExtFdInfo(DataMap paramMap) throws TransactionException{
|
||||
insert("extDAO.insertExtFdInfo", paramMap);
|
||||
}
|
||||
public void deleteExtFdInfo(DataMap paramMap) throws TransactionException{
|
||||
delete("extDAO.deleteExtFdInfo",paramMap);
|
||||
}
|
||||
public void insertExtGiaInfo(DataMap paramMap) throws TransactionException{
|
||||
insert("extDAO.insertExtGiaInfo", paramMap);
|
||||
}
|
||||
public void deleteExtGiaInfo(DataMap paramMap) throws TransactionException{
|
||||
delete("extDAO.deleteExtGiaInfo",paramMap);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectActivityMediaList(DataMap paramMap) throws DataAccessException{
|
||||
return (List<DataMap>)list("extDAO.selectActivityMediaList", paramMap);
|
||||
}
|
||||
public void deleteMediaHstInfo(DataMap paramMap) throws TransactionException{
|
||||
delete("extDAO.deleteMediaHstInfo",paramMap);
|
||||
}
|
||||
public void insertMediaHstInfo(DataMap paramMap) throws TransactionException{
|
||||
insert("extDAO.insertMediaHstInfo", paramMap);
|
||||
}
|
||||
}
|
||||
1210
src/main/java/cmm/service/impl/ExtServiceImpl.java
Normal file
1210
src/main/java/cmm/service/impl/ExtServiceImpl.java
Normal file
File diff suppressed because it is too large
Load Diff
381
src/main/java/cmm/taglibs/FunctionTag.java
Normal file
381
src/main/java/cmm/taglibs/FunctionTag.java
Normal file
@ -0,0 +1,381 @@
|
||||
package cmm.taglibs;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.sql.SQLException;
|
||||
import java.text.DateFormat;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
|
||||
import cmm.Constant;
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.DataMap;
|
||||
import cmm.util.DateUtil;
|
||||
|
||||
//import com.unidocs.cipher.PDFInfoEncrypter; // DDDDDDDDDDDdddd 아직 관련 LIB 받지 못함 (2021.08.13)
|
||||
|
||||
|
||||
public class FunctionTag {
|
||||
|
||||
|
||||
static final String DELIMITER = "-";
|
||||
public static String toBr(String value) {
|
||||
String str = "";
|
||||
if( org.apache.commons.lang3.StringUtils.isBlank(value) ){
|
||||
return str;
|
||||
}
|
||||
str = value;
|
||||
if (str.indexOf("\\r") >= 0) str = str.replaceAll("\\\\r", "\r");
|
||||
if (str.indexOf("\\n") >= 0) str = str.replaceAll("\\\\n", "\n");
|
||||
if (str.indexOf("\r\n") >= 0 || str.indexOf("\n") >= 0 || str.indexOf("\r") >= 0) {
|
||||
str = str.replaceAll("\\r\\n", "<br/>");
|
||||
str = str.replaceAll("\\r", "<br/>");
|
||||
str = str.replaceAll("\\n", "<br/>");
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
public static String removeTag(String value) {
|
||||
String str = "";
|
||||
if( org.apache.commons.lang3.StringUtils.isBlank(value) ){
|
||||
return str;
|
||||
}else{
|
||||
str = value.replaceAll("<(/)?([a-zA-Z]*)(\\s[a-zA-Z]*=[^>]*)?(\\s)*(/)?>", "");
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
public static String dateFormatString(String strDate) throws IOException, InvocationTargetException, SQLException {
|
||||
String formatDate = "";
|
||||
if( StringUtils.isBlank(strDate) ) return formatDate;
|
||||
|
||||
String regExpNumber = "^[0-9]*$";
|
||||
strDate = strDate.trim();
|
||||
|
||||
Pattern p = Pattern.compile(regExpNumber);
|
||||
Matcher m = p.matcher(strDate);
|
||||
|
||||
if( !m.matches() ) {
|
||||
return strDate;
|
||||
}
|
||||
|
||||
int strDateLen = strDate.length();
|
||||
if(strDateLen >= 4) {
|
||||
formatDate = strDate.substring(0, 4);
|
||||
}
|
||||
if(strDateLen >= 6) {
|
||||
formatDate += DELIMITER + strDate.substring(4, 6) ;
|
||||
}
|
||||
if(strDateLen >= 8) {
|
||||
formatDate += DELIMITER + strDate.substring(6) ;
|
||||
}
|
||||
|
||||
return formatDate;
|
||||
}
|
||||
|
||||
|
||||
public static String[] dateSplitArrayString(String strDate, String type) throws IOException, InvocationTargetException, SQLException {
|
||||
String formatDate [] = new String[3];
|
||||
if( StringUtils.isBlank(strDate) ) return formatDate;
|
||||
|
||||
String regExpNumber = "^[0-9]*$";
|
||||
String rDate = strDate.replaceAll("-", "").trim();
|
||||
|
||||
Pattern p = Pattern.compile(regExpNumber);
|
||||
Matcher m = p.matcher(rDate);
|
||||
|
||||
if( !m.matches() ) {
|
||||
for(int i=0;i<formatDate.length;i++){
|
||||
formatDate[i] = strDate;
|
||||
}
|
||||
return formatDate;
|
||||
}
|
||||
|
||||
int strDateLen = rDate.length();
|
||||
if(strDateLen >= 4) {
|
||||
formatDate[0] = rDate.substring(0, 4);
|
||||
}
|
||||
if(strDateLen >= 6) {
|
||||
if( "M".equals(type) ){
|
||||
if(NumberUtils.toInt(rDate.substring(4, 6)) < 10){
|
||||
formatDate[1] = rDate.substring(5, 6);
|
||||
}else{
|
||||
formatDate[1] = rDate.substring(4, 6);
|
||||
}
|
||||
}else{
|
||||
formatDate[1] = rDate.substring(4, 6);
|
||||
}
|
||||
}
|
||||
if(strDateLen >= 8) {
|
||||
formatDate[2] = rDate.substring(6) ;
|
||||
}
|
||||
|
||||
return formatDate;
|
||||
}
|
||||
|
||||
public static String moneyFormatString(String strMoney) throws IOException, InvocationTargetException, SQLException {
|
||||
String formatMoney = "";
|
||||
if( StringUtils.isBlank(strMoney) ) return formatMoney;
|
||||
if( !NumberUtils.isNumber(strMoney) ) return strMoney;
|
||||
|
||||
DecimalFormat df = new DecimalFormat("#,###");
|
||||
formatMoney = df.format(NumberUtils.toLong(strMoney));
|
||||
|
||||
return formatMoney;
|
||||
}
|
||||
public static long getDday(String start, String end) throws ParseException, IOException, InvocationTargetException, SQLException {
|
||||
|
||||
if( StringUtils.isBlank(start) || StringUtils.isBlank(end)){
|
||||
return -9999;
|
||||
}
|
||||
start = start.replaceAll("-", "").trim();
|
||||
end = end.replaceAll("-", "").trim();
|
||||
if( !NumberUtils.isNumber(start) || !NumberUtils.isNumber(end)){
|
||||
return -9999;
|
||||
}
|
||||
if( start.length() < 8 || end.length() < 8 ){
|
||||
return -9999;
|
||||
}
|
||||
|
||||
DateFormat df = new SimpleDateFormat("yyyyMMdd");
|
||||
Date s = df.parse(start);
|
||||
Date e = df.parse(end);
|
||||
|
||||
long diff = e.getTime() - s.getTime();
|
||||
return TimeUnit.MILLISECONDS.toDays(diff);
|
||||
}
|
||||
|
||||
public static boolean isIn(String to) throws ParseException, IOException, InvocationTargetException, SQLException {
|
||||
if( StringUtils.isBlank(to)){
|
||||
return false;
|
||||
}
|
||||
to = to.replaceAll("-", "").replaceAll(".", "").trim();
|
||||
if( !NumberUtils.isNumber(to) ){
|
||||
return false;
|
||||
}
|
||||
if( to.length() < 8){
|
||||
return false;
|
||||
}
|
||||
DateFormat df = new SimpleDateFormat("yyyyMMdd");
|
||||
Date end = df.parse(to);
|
||||
Date now = df.parse(df.format(new Date()));
|
||||
|
||||
/*if(now.getTime() > end.getTime()){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}*/
|
||||
if(now.getTime() >= end.getTime()){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public static String getMonth(String target) throws IOException, InvocationTargetException, SQLException {
|
||||
String mm = "";
|
||||
if( StringUtils.isBlank(target)){
|
||||
// 인자값을 빈값으로 보내면 현재월을 넘긴다.
|
||||
Calendar cal = Calendar.getInstance();
|
||||
mm = String.valueOf(Integer.toString(cal.get(Calendar.MONTH)+1));
|
||||
}
|
||||
mm = target.replaceAll("-", "").trim();
|
||||
if( !NumberUtils.isNumber(mm) ){
|
||||
return target;
|
||||
}
|
||||
if( mm.length() < 2){
|
||||
mm = "0"+mm;
|
||||
}
|
||||
return mm;
|
||||
}
|
||||
public static String getDay(String target) throws IOException, InvocationTargetException, SQLException {
|
||||
String dd = "";
|
||||
if( StringUtils.isBlank(target)){
|
||||
// 인자값을 빈값으로 보내면 현재일을 넘긴다.
|
||||
Calendar cal = Calendar.getInstance();
|
||||
dd = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
|
||||
}
|
||||
dd = target.replaceAll("-", "").trim();
|
||||
if( !NumberUtils.isNumber(dd) ){
|
||||
return target;
|
||||
}
|
||||
if( dd.length() < 2){
|
||||
dd = "0"+dd;
|
||||
}
|
||||
return dd;
|
||||
}
|
||||
|
||||
public static boolean isWeekend(String date_yyyymmdd) throws IOException, InvocationTargetException, SQLException {
|
||||
boolean rtnBoolean = false;
|
||||
if( !StringUtils.isBlank(date_yyyymmdd) ){
|
||||
String date=date_yyyymmdd.replaceAll("-", "").trim();
|
||||
if(date.length() >= 8 && NumberUtils.isNumber(date) ){
|
||||
int year = Integer.parseInt(date.substring(0,4));
|
||||
int month = Integer.parseInt(date.substring(4,6));
|
||||
int day = Integer.parseInt(date.substring(6,8));
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.set(year, month-1, day );
|
||||
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
|
||||
if( dayOfWeek == Calendar.SATURDAY || dayOfWeek == Calendar.SUNDAY){
|
||||
// 주말
|
||||
rtnBoolean = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return rtnBoolean;
|
||||
}
|
||||
public static String getToDay() throws Exception {
|
||||
return DateUtil.getDateString(new Date(), new SimpleDateFormat("yyyy-MM-dd", Locale.KOREA));
|
||||
}
|
||||
public static String getToDay2() throws Exception {
|
||||
return DateUtil.getDateString(new Date(), new SimpleDateFormat("yyyyMMdd", Locale.KOREA));
|
||||
}
|
||||
public static String reverseSido(String sido){
|
||||
if(sido == null || "".equals(sido)) return "";
|
||||
String rtnSido = "";
|
||||
for(int i=0; i<Constant.AIS_SIDO_NAME_ARRAY.length;i++){
|
||||
if(sido.indexOf( Constant.AIS_SIDO_NAME_ARRAY[i] ) > -1 ){
|
||||
rtnSido = Constant.AIS_SIDO_NAME_ARRAY[i];
|
||||
break;
|
||||
}
|
||||
if(sido.indexOf( Constant.AIS_SIDO_PARAM_NAME_ARRAY[i] ) > -1 ){
|
||||
rtnSido = Constant.AIS_SIDO_NAME_ARRAY[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rtnSido;
|
||||
}
|
||||
public static boolean isAreaOfInterest(String sido, String sigungu , DataMap pscHst){
|
||||
boolean rtnBoolean = false;
|
||||
if(sido == null || "".equals(sido)) return rtnBoolean;
|
||||
if(sigungu == null || "".equals(sigungu)) return rtnBoolean;
|
||||
|
||||
if(pscHst == null) return rtnBoolean;
|
||||
|
||||
DataMap pscHst1 = (DataMap) pscHst.get("pscHst1");
|
||||
DataMap pscHst2 = (DataMap) pscHst.get("pscHst2");
|
||||
DataMap pscHst3 = (DataMap) pscHst.get("pscHst3");
|
||||
|
||||
if(sido.trim().equals(pscHst1.getString("sidoName").trim()) && sigungu.trim().equals(pscHst1.getString("sigunguName").trim())){
|
||||
rtnBoolean = true;
|
||||
}
|
||||
if(sido.trim().equals(pscHst2.getString("sidoName").trim()) && sigungu.trim().equals(pscHst2.getString("sigunguName").trim())){
|
||||
rtnBoolean = true;
|
||||
}
|
||||
if(sido.trim().equals(pscHst3.getString("sidoName").trim()) && sigungu.trim().equals(pscHst3.getString("sigunguName").trim())){
|
||||
rtnBoolean = true;
|
||||
}
|
||||
return rtnBoolean;
|
||||
}
|
||||
|
||||
|
||||
//unidocs Viewer
|
||||
public static String unidocsViewer(String filePath, String fileNm) throws Exception {
|
||||
//String path = "/apps/ezpdfwebviewer/WEB-INF/ezPDFWebViewer/releasecontents/sokcho_20180608.pdf";
|
||||
//String path = "/nfs/kccf_doc/cfba8b83e460323079b67be17ba6f96d.pdf";
|
||||
String path = filePath + fileNm;
|
||||
String download = "false";
|
||||
String print = "false";
|
||||
String annotation = "false";
|
||||
String[] param = new String[]{ java.net.URLEncoder.encode( path, "UTF-8" ), download, print, annotation};
|
||||
// String encData = PDFInfoEncrypter.encrypt( param );
|
||||
// return encData;
|
||||
return null; // DDDDDDDDDDDdddd 아직 관련 LIB 받지 못함 (2021.08.13)
|
||||
}
|
||||
|
||||
/**
|
||||
* ASSET 이미지 URL
|
||||
* jsp 파일에서 다음과 같이 사용하던 linkUrl 로직을 포함함
|
||||
*
|
||||
<c:set var="linkUrl" value="${amsAssetsPath}${amsThumbnailPath}"/>
|
||||
<c:if test="${fn:contains(resultInfo.mainImg, '/' )}"><c:set var="linkUrl" value="${amsAssetsPath}"/></c:if>
|
||||
*
|
||||
* @param filePath
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String assetImgUrl(String filePath) throws Exception {
|
||||
String url = "";
|
||||
if (StringUtils.isEmpty(filePath)) return url;
|
||||
|
||||
String amsAssetsPath = CmmUtil.getPropertyStr(Constant.AMS_SERVER_KEY) + CmmUtil.getPropertyStr(Constant.AMS_ASSETS_PATH_KEY);
|
||||
String amsThumbnailPath = CmmUtil.getPropertyStr(Constant.AMS_THUMBNAIL_PATH_KEY);
|
||||
|
||||
if (filePath.startsWith("http")) { // http 포함한 전체 경로일 경우 ex) object storage 이미지
|
||||
url = filePath;
|
||||
|
||||
} else if (filePath.indexOf("/") >= 0) { // ex) 2/2/7292_thumbnail.jpg
|
||||
url = amsAssetsPath + "/" + filePath;
|
||||
|
||||
} else {
|
||||
url = amsAssetsPath + "/" + amsThumbnailPath + "/" + filePath; // ex) ac6be22ee9db4414aeb4dab6078d27feb723f1c0.jpg
|
||||
}
|
||||
|
||||
url = url.replaceAll("//", "/");
|
||||
url = url.replaceAll(":/", "://"); // ex) https:/ => https://
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 업로드 이미지 URL
|
||||
*
|
||||
* @param filePath
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String uploadImgUrl(String filePath) throws Exception {
|
||||
String url = "";
|
||||
if (StringUtils.isEmpty(filePath)) return url;
|
||||
|
||||
// 로컬 개발 시 개발서버 upload 하위 이미지를 바라보도록 설정, 운영에서는 운영 upload 폴더 바라봄
|
||||
String uploadHomePath = CmmUtil.getPropertyStr(Constant.UPLOAD_HOME_KEY);
|
||||
|
||||
if (filePath.startsWith("/upload")) { // ex) /upload/post/20180921142754.png (포스트, 배너 등)
|
||||
url = uploadHomePath + "/" + filePath;
|
||||
|
||||
} else {
|
||||
url = filePath;
|
||||
}
|
||||
|
||||
url = url.replaceAll("//", "/");
|
||||
url = url.replaceAll(":/", "://"); // ex) https:/ => https://
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 두개의 문자열을 delimiter로 연결하여 반환
|
||||
*
|
||||
* ex) *, aaa, bbb => aaa*bbb
|
||||
* *, aaa => aaa
|
||||
* *, "", bbb => bbb
|
||||
* *, "", "" => ""
|
||||
*
|
||||
* @param delimiter
|
||||
* @param str1
|
||||
* @param str2
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static String joinWithDelimiter(String delimiter, String str1, String str2) throws Exception {
|
||||
String result = "";
|
||||
|
||||
if (StringUtils.isEmpty(str1) && StringUtils.isEmpty(str2)) return result;
|
||||
result = str1;
|
||||
if (StringUtils.isNotEmpty(str1) && StringUtils.isNotEmpty(str2)) result += delimiter;
|
||||
result += str2;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
70
src/main/java/cmm/util/CmmCodeUtil.java
Normal file
70
src/main/java/cmm/util/CmmCodeUtil.java
Normal file
@ -0,0 +1,70 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import cmm.Constant;
|
||||
|
||||
/**
|
||||
*
|
||||
* fix된 코드에 관한것만 사용하는 클래스
|
||||
*/
|
||||
public class CmmCodeUtil {
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CmmCodeUtil.class);
|
||||
|
||||
public static List<CmmCodeVO> getAreaCodeList() {
|
||||
List<CmmCodeVO> rtnList = new ArrayList<CmmCodeVO>();
|
||||
Arrays.sort(Constant.AREA_CODE_ARRAY); // 지역번호 정렬
|
||||
CmmCodeVO vo = null;
|
||||
for(String v : Constant.AREA_CODE_ARRAY){
|
||||
vo = new CmmCodeVO();
|
||||
vo.setCode(v);
|
||||
vo.setCodeNm(v);
|
||||
vo.setCodeDc(v);
|
||||
rtnList.add(vo);
|
||||
}
|
||||
return rtnList;
|
||||
}
|
||||
public static List<CmmCodeVO> getMobileCodeList() {
|
||||
List<CmmCodeVO> rtnList = new ArrayList<CmmCodeVO>();
|
||||
Arrays.sort(Constant.MOBILE_CODE_ARRAY); // 번호 정렬
|
||||
CmmCodeVO vo = null;
|
||||
for(String v : Constant.MOBILE_CODE_ARRAY){
|
||||
vo = new CmmCodeVO();
|
||||
vo.setCode(v);
|
||||
vo.setCodeNm(v);
|
||||
vo.setCodeDc(v);
|
||||
rtnList.add(vo);
|
||||
}
|
||||
return rtnList;
|
||||
}
|
||||
public static List<CmmCodeVO> getSidoCodeList() {
|
||||
List<CmmCodeVO> rtnList = new ArrayList<CmmCodeVO>();
|
||||
CmmCodeVO vo = null;
|
||||
for(int i=0;i<Constant.DF_SIDO_CODE_ARRAY.length;i++){
|
||||
vo = new CmmCodeVO();
|
||||
vo.setCode(Constant.DF_SIDO_CODE_ARRAY[i]);
|
||||
vo.setCodeNm(Constant.DF_SIDO_NAME_ARRAY[i]);
|
||||
vo.setCodeDc(Constant.DF_SIDO_NAME_ARRAY[i]);
|
||||
rtnList.add(vo);
|
||||
}
|
||||
return rtnList;
|
||||
}
|
||||
public static List<CmmCodeVO> getSidoCodeList2() {
|
||||
List<CmmCodeVO> rtnList = new ArrayList<CmmCodeVO>();
|
||||
CmmCodeVO vo = null;
|
||||
for(int i=0;i<Constant.SIDO_NAME_ARRAY.length;i++){
|
||||
vo = new CmmCodeVO();
|
||||
vo.setCode(Constant.SIDO_NAME_ARRAY[i]);
|
||||
vo.setCodeNm(Constant.SIDO_NAME_ARRAY[i]);
|
||||
vo.setCodeDc(Constant.SIDO_NAME_ARRAY[i]);
|
||||
rtnList.add(vo);
|
||||
}
|
||||
return rtnList;
|
||||
}
|
||||
}
|
||||
46
src/main/java/cmm/util/CmmCodeVO.java
Normal file
46
src/main/java/cmm/util/CmmCodeVO.java
Normal file
@ -0,0 +1,46 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class CmmCodeVO extends CmmVO implements Serializable {
|
||||
|
||||
private String code = "";
|
||||
private String codeId = "";
|
||||
private String name = "";
|
||||
private String codeNm= "";
|
||||
private String codeDc= "";
|
||||
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
public String getCodeId() {
|
||||
return codeId;
|
||||
}
|
||||
public void setCodeId(String codeId) {
|
||||
this.codeId = codeId;
|
||||
}
|
||||
public String getCodeNm() {
|
||||
return codeNm;
|
||||
}
|
||||
public void setCodeNm(String codeNm) {
|
||||
this.codeNm = codeNm;
|
||||
}
|
||||
public String getCodeDc() {
|
||||
return codeDc;
|
||||
}
|
||||
public void setCodeDc(String codeDc) {
|
||||
this.codeDc = codeDc;
|
||||
}
|
||||
}
|
||||
1068
src/main/java/cmm/util/CmmUtil.java
Normal file
1068
src/main/java/cmm/util/CmmUtil.java
Normal file
File diff suppressed because it is too large
Load Diff
673
src/main/java/cmm/util/CmmVO.java
Normal file
673
src/main/java/cmm/util/CmmVO.java
Normal file
@ -0,0 +1,673 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
|
||||
/**
|
||||
* @Class Name : CmmVO.java
|
||||
* @author Kdmistrator
|
||||
* @version 1.0
|
||||
* 상속 받아서 사용하는 공통 VO
|
||||
*/
|
||||
public class CmmVO implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String cntntsSeCode;
|
||||
private String searchCondition = "";
|
||||
private String searchKeyword = "";
|
||||
private String searchCondition2 = "";
|
||||
private String searchKeyword2 = "";
|
||||
private String searchCondition3 = "";
|
||||
private String searchKeyword3 = "";
|
||||
private String searchCondition4 = "";
|
||||
private String searchKeyword4 = "";
|
||||
private String searchCondition5 = "";
|
||||
private String searchKeyword5 = "";
|
||||
private String searchCondition6 = "";
|
||||
private String searchKeyword6 = "";
|
||||
private String searchCondition7 = "";
|
||||
private String searchCondition8 = "";
|
||||
private String searchKeywordWhole = "";
|
||||
private String searchConditionWhole = "";
|
||||
private String searchDateCondition = "";
|
||||
private Date searchStartDate = null;
|
||||
private Date searchEndDate = null;
|
||||
private String searchStartStr = null;
|
||||
private String searchEndStr = null;
|
||||
private String searchUseYn = "";
|
||||
private String searchType = "";
|
||||
private String searchType1 = "";
|
||||
private String searchType2 = "";
|
||||
private String searchType3 = "";
|
||||
private String searchType4 = "";
|
||||
private int pageIndex = 1;
|
||||
private int pageIndex2 = 1;
|
||||
private int pageIndex3 = 1;
|
||||
|
||||
private int pageUnit = 12;
|
||||
private int pageUnit10 = 10;
|
||||
private int pageUnit20 = 20;
|
||||
private int pageUnit30 = 30;
|
||||
private int pageSize = 10;
|
||||
private int mobilePageSize = 5;
|
||||
private int firstIndex = 1;
|
||||
private int lastIndex = 1;
|
||||
private int recordCountPerPage = 10;
|
||||
private String orderCondition;
|
||||
private String orderType;
|
||||
private boolean isBr = false;
|
||||
private String pageUseAt = "Y";
|
||||
private int limit = 5;
|
||||
private String authorCode;
|
||||
private String targetId;
|
||||
private String sido = "";
|
||||
private String sigungu = "";
|
||||
private String sido2 = "";
|
||||
private String sigungu2 = "";
|
||||
private String dong = "";
|
||||
private String lon = "";
|
||||
private String lat = "";
|
||||
private String addr ="";
|
||||
private String xy ="";
|
||||
private String distance = "";
|
||||
private String tabCode = "";
|
||||
private int fixedPage = 0;
|
||||
private String activityType ="";
|
||||
private String contentType = "";
|
||||
private String toDay = "";
|
||||
private String parameter1 = "";
|
||||
private String parameter2 = "";
|
||||
private String parameter3 = "";
|
||||
private String parameter4 = "";
|
||||
private String parameter5 = "";
|
||||
private String parameter6 = "";
|
||||
private String sessionId = "";
|
||||
private boolean isTag = false;
|
||||
private String viewType = "";
|
||||
// 태그 명이 넘어가는 파라미터
|
||||
private String searchTag = "";
|
||||
// 스크랩 여부(스크랩 활성 체크) : 존재하면 on , 존재하지 않으면 빈값 ""
|
||||
private String scrapActive = "";
|
||||
private String aId=""; // 에셋 아이디
|
||||
private String mId=""; // 에셋미디어 아이디
|
||||
private String [] searchLocaleArray; // 지역
|
||||
private String [] searchAssetClassArray; // 에셋유형 (ex. 일반, 특화, 문화원소장 등)
|
||||
private String [] searchAssetTypeArray; // 자산유형 (ex. 문서, 이미지, 동영상, 오디오, 링크 등)
|
||||
private String [] searchFirstCategoryArray; // 카테고리
|
||||
|
||||
private String sCouncilCd="";
|
||||
private String gubun="";
|
||||
|
||||
|
||||
public CmmVO() {}
|
||||
public String getCntntsSeCode() {
|
||||
return cntntsSeCode;
|
||||
}
|
||||
|
||||
public void setCntntsSeCode(String cntntsSeCode) {
|
||||
this.cntntsSeCode = cntntsSeCode;
|
||||
}
|
||||
|
||||
public String getSearchCondition() {
|
||||
return searchCondition;
|
||||
}
|
||||
|
||||
public void setSearchCondition(String searchCondition) {
|
||||
this.searchCondition = searchCondition;
|
||||
}
|
||||
|
||||
public String getSearchKeyword() {
|
||||
return searchKeyword;
|
||||
}
|
||||
|
||||
public void setSearchKeyword(String searchKeyword) {
|
||||
this.searchKeyword = searchKeyword;
|
||||
}
|
||||
|
||||
public String getSearchCondition2() {
|
||||
return searchCondition2;
|
||||
}
|
||||
|
||||
public void setSearchCondition2(String searchCondition2) {
|
||||
this.searchCondition2 = searchCondition2;
|
||||
}
|
||||
|
||||
public String getSearchKeyword2() {
|
||||
return searchKeyword2;
|
||||
}
|
||||
|
||||
public void setSearchKeyword2(String searchKeyword2) {
|
||||
this.searchKeyword2 = searchKeyword2;
|
||||
}
|
||||
|
||||
public String getSearchCondition3() {
|
||||
return searchCondition3;
|
||||
}
|
||||
|
||||
public void setSearchCondition3(String searchCondition3) {
|
||||
this.searchCondition3 = searchCondition3;
|
||||
}
|
||||
|
||||
public String getSearchKeyword3() {
|
||||
return searchKeyword3;
|
||||
}
|
||||
|
||||
public void setSearchKeyword3(String searchKeyword3) {
|
||||
this.searchKeyword3 = searchKeyword3;
|
||||
}
|
||||
public String getSearchCondition4() {
|
||||
return searchCondition4;
|
||||
}
|
||||
|
||||
public void setSearchCondition4(String searchCondition4) {
|
||||
this.searchCondition4 = searchCondition4;
|
||||
}
|
||||
|
||||
public String getSearchKeyword4() {
|
||||
return searchKeyword4;
|
||||
}
|
||||
|
||||
public void setSearchKeyword4(String searchKeyword4) {
|
||||
this.searchKeyword4 = searchKeyword4;
|
||||
}
|
||||
|
||||
public String getSearchCondition5() {
|
||||
return searchCondition5;
|
||||
}
|
||||
|
||||
public void setSearchCondition5(String searchCondition5) {
|
||||
this.searchCondition5 = searchCondition5;
|
||||
}
|
||||
|
||||
public String getSearchKeyword5() {
|
||||
return searchKeyword5;
|
||||
}
|
||||
|
||||
public void setSearchKeyword5(String searchKeyword5) {
|
||||
this.searchKeyword5 = searchKeyword5;
|
||||
}
|
||||
|
||||
public String getSearchCondition6() {
|
||||
return searchCondition6;
|
||||
}
|
||||
public void setSearchCondition6(String searchCondition6) {
|
||||
this.searchCondition6 = searchCondition6;
|
||||
}
|
||||
public String getSearchKeyword6() {
|
||||
return searchKeyword6;
|
||||
}
|
||||
|
||||
public String getSearchCondition7() {
|
||||
return searchCondition7;
|
||||
}
|
||||
public void setSearchCondition7(String searchCondition7) {
|
||||
this.searchCondition7 = searchCondition7;
|
||||
}
|
||||
public String getSearchCondition8() {
|
||||
return searchCondition8;
|
||||
}
|
||||
public void setSearchCondition8(String searchCondition8) {
|
||||
this.searchCondition8 = searchCondition8;
|
||||
}
|
||||
public String getSearchKeywordWhole() {
|
||||
return searchKeywordWhole;
|
||||
}
|
||||
public void setSearchKeywordWhole(String searchKeywordWhole) {
|
||||
this.searchKeywordWhole = searchKeywordWhole;
|
||||
}
|
||||
public String getSearchConditionWhole() {
|
||||
return searchConditionWhole;
|
||||
}
|
||||
public void setSearchConditionWhole(String searchConditionWhole) {
|
||||
this.searchConditionWhole = searchConditionWhole;
|
||||
}
|
||||
public void setSearchKeyword6(String searchKeyword6) {
|
||||
this.searchKeyword6 = searchKeyword6;
|
||||
}
|
||||
public String getSearchDateCondition() {
|
||||
return searchDateCondition;
|
||||
}
|
||||
|
||||
public void setSearchDateCondition(String searchDateCondition) {
|
||||
this.searchDateCondition = searchDateCondition;
|
||||
}
|
||||
|
||||
public Date getSearchStartDate() {
|
||||
return searchStartDate;
|
||||
}
|
||||
|
||||
public void setSearchStartDate(Date searchStartDate) {
|
||||
this.searchStartDate = searchStartDate;
|
||||
}
|
||||
|
||||
public Date getSearchEndDate() {
|
||||
return searchEndDate;
|
||||
}
|
||||
|
||||
public void setSearchEndDate(Date searchEndDate) {
|
||||
this.searchEndDate = searchEndDate;
|
||||
}
|
||||
|
||||
|
||||
public String getSearchStartStr() {
|
||||
return searchStartStr;
|
||||
}
|
||||
|
||||
public void setSearchStartStr(String searchStartStr) {
|
||||
this.searchStartStr = searchStartStr;
|
||||
}
|
||||
|
||||
public String getSearchEndStr() {
|
||||
return searchEndStr;
|
||||
}
|
||||
|
||||
public void setSearchEndStr(String searchEndStr) {
|
||||
this.searchEndStr = searchEndStr;
|
||||
}
|
||||
|
||||
public String getSearchUseYn() {
|
||||
return searchUseYn;
|
||||
}
|
||||
public void setSearchUseYn(String searchUseYn) {
|
||||
this.searchUseYn = searchUseYn;
|
||||
}
|
||||
|
||||
public String getSearchType() {
|
||||
return StringUtils.defaultIfEmpty(searchType, "1") ;
|
||||
}
|
||||
|
||||
public void setSearchType(String searchType) {
|
||||
this.searchType = searchType;
|
||||
}
|
||||
|
||||
public String getSearchType1() {
|
||||
return StringUtils.defaultIfEmpty(searchType1, "1") ;
|
||||
}
|
||||
public void setSearchType1(String searchType1) {
|
||||
this.searchType1 = searchType1;
|
||||
}
|
||||
public String getSearchType2() {
|
||||
return StringUtils.defaultIfEmpty(searchType2, "1") ;
|
||||
}
|
||||
public void setSearchType2(String searchType2) {
|
||||
this.searchType2 = searchType2;
|
||||
}
|
||||
public String getSearchType3() {
|
||||
return StringUtils.defaultIfEmpty(searchType3, "1") ;
|
||||
}
|
||||
public void setSearchType3(String searchType3) {
|
||||
this.searchType3 = searchType3;
|
||||
}
|
||||
public String getSearchType4() {
|
||||
return StringUtils.defaultIfEmpty(searchType4, "1") ;
|
||||
}
|
||||
public void setSearchType4(String searchType4) {
|
||||
this.searchType4 = searchType4;
|
||||
}
|
||||
public int getPageIndex() {
|
||||
return this.pageIndex;
|
||||
}
|
||||
|
||||
public void setPageIndex(int pageIndex) {
|
||||
this.pageIndex = pageIndex;
|
||||
}
|
||||
|
||||
public int getPageIndex2() {
|
||||
return pageIndex2;
|
||||
}
|
||||
public void setPageIndex2(int pageIndex2) {
|
||||
this.pageIndex2 = pageIndex2;
|
||||
}
|
||||
|
||||
public int getPageIndex3() {
|
||||
return pageIndex3;
|
||||
}
|
||||
public void setPageIndex3(int pageIndex3) {
|
||||
this.pageIndex3 = pageIndex3;
|
||||
}
|
||||
public int getPageUnit() {
|
||||
return pageUnit;
|
||||
}
|
||||
|
||||
public void setPageUnit(int pageUnit) {
|
||||
this.pageUnit = pageUnit;
|
||||
}
|
||||
|
||||
public int getPageUnit10() {
|
||||
return pageUnit10;
|
||||
}
|
||||
public void setPageUnit10(int pageUnit10) {
|
||||
this.pageUnit10 = pageUnit10;
|
||||
}
|
||||
|
||||
public int getPageUnit20() {
|
||||
return pageUnit20;
|
||||
}
|
||||
public void setPageUnit20(int pageUnit20) {
|
||||
this.pageUnit20 = pageUnit20;
|
||||
}
|
||||
public int getPageUnit30() {
|
||||
return pageUnit30;
|
||||
}
|
||||
public void setPageUnit30(int pageUnit30) {
|
||||
this.pageUnit30 = pageUnit30;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getMobilePageSize() {
|
||||
return mobilePageSize;
|
||||
}
|
||||
public void setMobilePageSize(int mobilePageSize) {
|
||||
this.mobilePageSize = mobilePageSize;
|
||||
}
|
||||
public int getFirstIndex() {
|
||||
return firstIndex;
|
||||
}
|
||||
|
||||
public void setFirstIndex(int firstIndex) {
|
||||
this.firstIndex = firstIndex;
|
||||
}
|
||||
|
||||
public int getLastIndex() {
|
||||
return lastIndex;
|
||||
}
|
||||
|
||||
public void setLastIndex(int lastIndex) {
|
||||
this.lastIndex = lastIndex;
|
||||
}
|
||||
|
||||
public int getRecordCountPerPage() {
|
||||
return recordCountPerPage;
|
||||
}
|
||||
|
||||
public void setRecordCountPerPage(int recordCountPerPage) {
|
||||
this.recordCountPerPage = recordCountPerPage;
|
||||
}
|
||||
|
||||
public String getOrderCondition() {
|
||||
return orderCondition;
|
||||
}
|
||||
|
||||
public void setOrderCondition(String orderCondition) {
|
||||
this.orderCondition = orderCondition;
|
||||
}
|
||||
public String getOrderType() {
|
||||
return orderType;
|
||||
}
|
||||
|
||||
public void setOrderType(String orderType) {
|
||||
this.orderType = orderType;
|
||||
}
|
||||
|
||||
public boolean isBr() {
|
||||
return isBr;
|
||||
}
|
||||
|
||||
public void setBr(boolean isBr) {
|
||||
this.isBr = isBr;
|
||||
}
|
||||
|
||||
public String getPageUseAt() {
|
||||
return pageUseAt;
|
||||
}
|
||||
public void setPageUseAt(String pageUseAt) {
|
||||
this.pageUseAt = pageUseAt;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public String getAuthorCode() {
|
||||
return authorCode;
|
||||
}
|
||||
public void setAuthorCode(String authorCode) {
|
||||
this.authorCode = authorCode;
|
||||
}
|
||||
|
||||
public String getTargetId() {
|
||||
return targetId;
|
||||
}
|
||||
public void setTargetId(String targetId) {
|
||||
this.targetId = targetId;
|
||||
}
|
||||
|
||||
public String getSido() {
|
||||
return sido;
|
||||
}
|
||||
public void setSido(String sido) {
|
||||
this.sido = sido;
|
||||
}
|
||||
public String getSigungu() {
|
||||
return sigungu;
|
||||
}
|
||||
public void setSigungu(String sigungu) {
|
||||
this.sigungu = sigungu;
|
||||
}
|
||||
public String getSido2() {
|
||||
return sido2;
|
||||
}
|
||||
public void setSido2(String sido2) {
|
||||
this.sido2 = sido2;
|
||||
}
|
||||
public String getSigungu2() {
|
||||
return sigungu2;
|
||||
}
|
||||
public void setSigungu2(String sigungu2) {
|
||||
this.sigungu2 = sigungu2;
|
||||
}
|
||||
public String getDong() {
|
||||
return dong;
|
||||
}
|
||||
public void setDong(String dong) {
|
||||
this.dong = dong;
|
||||
}
|
||||
public String getLon() {
|
||||
return lon;
|
||||
}
|
||||
public void setLon(String lon) {
|
||||
this.lon = lon;
|
||||
}
|
||||
public String getLat() {
|
||||
return lat;
|
||||
}
|
||||
public void setLat(String lat) {
|
||||
this.lat = lat;
|
||||
}
|
||||
|
||||
public String getAddr() {
|
||||
return addr;
|
||||
}
|
||||
public void setAddr(String addr) {
|
||||
this.addr = addr;
|
||||
}
|
||||
public String getXy() {
|
||||
return xy;
|
||||
}
|
||||
public void setXy(String xy) {
|
||||
this.xy = xy;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return distance;
|
||||
}
|
||||
public void setDistance(String distance) {
|
||||
this.distance = distance;
|
||||
}
|
||||
|
||||
public String getTabCode() {
|
||||
return tabCode;
|
||||
}
|
||||
public void setTabCode(String tabCode) {
|
||||
this.tabCode = tabCode;
|
||||
}
|
||||
|
||||
|
||||
public int getFixedPage() {
|
||||
return fixedPage;
|
||||
}
|
||||
public void setFixedPage(int fixedPage) {
|
||||
this.fixedPage = fixedPage;
|
||||
}
|
||||
|
||||
public String getActivityType() {
|
||||
return activityType;
|
||||
}
|
||||
public void setActivityType(String activityType) {
|
||||
this.activityType = activityType;
|
||||
}
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
|
||||
public String getToDay() {
|
||||
return toDay;
|
||||
}
|
||||
public void setToDay(String toDay) {
|
||||
this.toDay = toDay;
|
||||
}
|
||||
public String getParameter1() {
|
||||
return parameter1;
|
||||
}
|
||||
public void setParameter1(String parameter1) {
|
||||
this.parameter1 = parameter1;
|
||||
}
|
||||
public String getParameter2() {
|
||||
return parameter2;
|
||||
}
|
||||
public void setParameter2(String parameter2) {
|
||||
this.parameter2 = parameter2;
|
||||
}
|
||||
public String getParameter3() {
|
||||
return parameter3;
|
||||
}
|
||||
public void setParameter3(String parameter3) {
|
||||
this.parameter3 = parameter3;
|
||||
}
|
||||
public String getParameter4() {
|
||||
return parameter4;
|
||||
}
|
||||
public void setParameter4(String parameter4) {
|
||||
this.parameter4 = parameter4;
|
||||
}
|
||||
public String getParameter5() {
|
||||
return parameter5;
|
||||
}
|
||||
public void setParameter5(String parameter5) {
|
||||
this.parameter5 = parameter5;
|
||||
}
|
||||
public String getParameter6() {
|
||||
return parameter6;
|
||||
}
|
||||
public void setParameter6(String parameter6) {
|
||||
this.parameter6 = parameter6;
|
||||
}
|
||||
public String getSessionId() {
|
||||
return sessionId;
|
||||
}
|
||||
public void setSessionId(String sessionId) {
|
||||
this.sessionId = sessionId;
|
||||
}
|
||||
public boolean isTag() {
|
||||
return isTag;
|
||||
}
|
||||
public void setIsTag(boolean isTag) {
|
||||
this.isTag = isTag;
|
||||
}
|
||||
public String getViewType() {
|
||||
return viewType;
|
||||
}
|
||||
public void setViewType(String viewType) {
|
||||
this.viewType = viewType;
|
||||
}
|
||||
|
||||
public String getSearchTag() {
|
||||
return searchTag;
|
||||
}
|
||||
public void setSearchTag(String searchTag) {
|
||||
this.searchTag = searchTag;
|
||||
}
|
||||
|
||||
public String getScrapActive() {
|
||||
return scrapActive;
|
||||
}
|
||||
public void setScrapActive(String scrapActive) {
|
||||
this.scrapActive = scrapActive;
|
||||
}
|
||||
public String getaId() {
|
||||
return aId;
|
||||
}
|
||||
public void setaId(String aId) {
|
||||
this.aId = aId;
|
||||
}
|
||||
public String getmId() {
|
||||
return mId;
|
||||
}
|
||||
public void setmId(String mId) {
|
||||
this.mId = mId;
|
||||
}
|
||||
|
||||
public String[] getSearchLocaleArray() {
|
||||
return searchLocaleArray;
|
||||
}
|
||||
public void setSearchLocaleArray(String[] searchLocaleArray) {
|
||||
this.searchLocaleArray = searchLocaleArray;
|
||||
}
|
||||
public String[] getSearchAssetClassArray() {
|
||||
return searchAssetClassArray;
|
||||
}
|
||||
public void setSearchAssetClassArray(String[] searchAssetClassArray) {
|
||||
this.searchAssetClassArray = searchAssetClassArray;
|
||||
}
|
||||
|
||||
public String[] getSearchAssetTypeArray() {
|
||||
return searchAssetTypeArray;
|
||||
}
|
||||
public void setSearchAssetTypeArray(String[] searchAssetTypeArray) {
|
||||
this.searchAssetTypeArray = searchAssetTypeArray;
|
||||
}
|
||||
public String getsCouncilCd() {
|
||||
return sCouncilCd;
|
||||
}
|
||||
public void setsCouncilCd(String sCouncilCd) {
|
||||
this.sCouncilCd = sCouncilCd;
|
||||
}
|
||||
|
||||
public String[] getSearchFirstCategoryArray() {
|
||||
return searchFirstCategoryArray;
|
||||
}
|
||||
public void setSearchFirstCategoryArray(String[] searchFirstCategoryArray) {
|
||||
this.searchFirstCategoryArray = searchFirstCategoryArray;
|
||||
}
|
||||
|
||||
public String getGubun() {
|
||||
return gubun;
|
||||
}
|
||||
public void setGubun(String gubun) {
|
||||
this.gubun = gubun;
|
||||
}
|
||||
/**
|
||||
* toString
|
||||
* @return String
|
||||
*/
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
|
||||
}
|
||||
196
src/main/java/cmm/util/DataMap.java
Normal file
196
src/main/java/cmm/util/DataMap.java
Normal file
@ -0,0 +1,196 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import egovframework.rte.psl.dataaccess.util.CamelUtil;
|
||||
|
||||
/**
|
||||
* @Class Name : DataMap.java
|
||||
* @author Kdmistrator
|
||||
* @version 1.0
|
||||
* DB 리턴 받을때 사용하거나 Map 타입으로 사용할때 사용한다.
|
||||
*/
|
||||
public class DataMap extends LinkedHashMap<String, Object> implements Map<String, Object>{
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(DataMap.class);
|
||||
|
||||
public static DataMap getNewDataMap(){
|
||||
return new DataMap();
|
||||
}
|
||||
public static DataMap getNewDataMap(HttpServletRequest request){
|
||||
DataMap map = new DataMap();
|
||||
map.defaultSetInfo(request, map);
|
||||
return map;
|
||||
}
|
||||
private void defaultSetInfo(HttpServletRequest request, DataMap map){
|
||||
map.setString("contentType",request.getContentType());
|
||||
map.setString("contextPath",request.getContextPath());
|
||||
map.setString("uri",request.getRequestURI());
|
||||
map.setString("protocol",request.getProtocol());
|
||||
map.setString("ip", CmmUtil.getIpAddress(request));
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
private static DataMap makePrameterMap(HttpServletRequest request){
|
||||
DataMap resultMap = new DataMap();
|
||||
Map<String, String[]> maps = request.getParameterMap();
|
||||
Set<String> keySet = maps.keySet();
|
||||
Iterator<String> keys = keySet.iterator();
|
||||
while (keys.hasNext()) {
|
||||
String key = keys.next();
|
||||
String[] value = maps.get(key);
|
||||
if (value.length > 1){
|
||||
//for (String val : value) {
|
||||
//resultMap.put(key, val);
|
||||
//}
|
||||
resultMap.put(key, value);
|
||||
} else {
|
||||
if(value[0] instanceof String) {
|
||||
resultMap.put(key, value[0].toString());
|
||||
} else {
|
||||
resultMap.put(key, value[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
resultMap.defaultSetInfo(request, resultMap);
|
||||
return resultMap;
|
||||
}
|
||||
public static DataMap getParamMap(HttpServletRequest request){
|
||||
return makePrameterMap(request);
|
||||
}
|
||||
private static String nvlTrim(String obj) {
|
||||
String result = "";
|
||||
if (obj != null)
|
||||
result = obj.trim();
|
||||
return result;
|
||||
}
|
||||
public Object get(String key){
|
||||
Object o = null;
|
||||
try {
|
||||
o = super.get(key);
|
||||
} catch (NullPointerException e) {
|
||||
LOGGER.error("Error in get() key="+key, e);
|
||||
}
|
||||
return o;
|
||||
}
|
||||
public String [] getStringArray(String key) {
|
||||
String [] r = null;
|
||||
try {
|
||||
if(super.get(key) instanceof String[]){
|
||||
r = (String [])super.get(key);
|
||||
}else{
|
||||
r = new String[1];
|
||||
r[0]= getString(key);
|
||||
}
|
||||
} catch (NullPointerException e) {
|
||||
LOGGER.error("Error in getStringArray() key="+key, e);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
public String getString(String key) {
|
||||
String r = "";
|
||||
try {
|
||||
if(super.get(key) != null){
|
||||
r = super.get(key).toString();
|
||||
}
|
||||
} catch (NullPointerException e) {
|
||||
LOGGER.error("Error in getString() key="+key, e);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
public int getInt(String key) {
|
||||
return getInt(key, 0);
|
||||
}
|
||||
public int getInt(String key, int defaultInt) {
|
||||
int result = 0;
|
||||
String str = getString(key);
|
||||
try {
|
||||
if(StringUtils.isNotEmpty(str)) {
|
||||
result = new Integer(str).intValue();
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
LOGGER.error("Error in getInt() key="+key+", getString(key)=="+getString(key), e);
|
||||
result = defaultInt;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public long getLong(String key) {
|
||||
return getLong(key, 0);
|
||||
}
|
||||
public long getLong(String key, long defaultLong) {
|
||||
long result = 0;
|
||||
String str = getString(key);
|
||||
try {
|
||||
if(StringUtils.isNotEmpty(str)) {
|
||||
Double tmp = Double.parseDouble(str);
|
||||
result = tmp.longValue();
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
LOGGER.error("Error in getLong() key="+key+", getString(key)=="+getString(key), e);
|
||||
result = defaultLong;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public double getDouble(String key) {
|
||||
return getDouble(key, 0);
|
||||
}
|
||||
public double getDouble(String key, double defaultDouble) {
|
||||
double result = 0;
|
||||
String str = getString(key);
|
||||
try {
|
||||
if(StringUtils.isNotEmpty(str)) {
|
||||
result = new Long(str).doubleValue();
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
LOGGER.error("Error in getDouble() key="+key+", getString(key)="+getString(key), e);
|
||||
result = defaultDouble;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public boolean getBoolean(String key){
|
||||
return getBoolean(key, false);
|
||||
}
|
||||
public boolean getBoolean(String key, boolean defaltValue){
|
||||
boolean result = defaltValue;
|
||||
String strObj = nvlTrim(key);
|
||||
if (strObj.length() > 0){
|
||||
result = strObj.toLowerCase().equals("true");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public void setString(String key, String value){
|
||||
super.put(key, value);
|
||||
}
|
||||
public void setInt(String key, int value){
|
||||
super.put(key, value);
|
||||
}
|
||||
public void setInt(String key, String value){
|
||||
super.put(key, new Integer(value).intValue());
|
||||
}
|
||||
public void setLong(String key, long value){
|
||||
super.put(key, value);
|
||||
}
|
||||
public void setLong(String key, String value){
|
||||
super.put(key, new Long(value).longValue());
|
||||
}
|
||||
public void setDouble(String key, double value){
|
||||
super.put(key, value);
|
||||
}
|
||||
public void setDouble(String key, String value){
|
||||
super.put(key, new Double(value).doubleValue());
|
||||
}
|
||||
public void setBoolean(String key, boolean value){
|
||||
super.put(key, new Boolean(value));
|
||||
}
|
||||
public Object put(String key, Object value) {
|
||||
return super.put(CamelUtil.convert2CamelCase((String) key), value);
|
||||
}
|
||||
}
|
||||
355
src/main/java/cmm/util/DateUtil.java
Normal file
355
src/main/java/cmm/util/DateUtil.java
Normal file
@ -0,0 +1,355 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.sql.SQLException;
|
||||
import java.text.DateFormat;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.apache.commons.lang.time.DateFormatUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class DateUtil extends DateUtils {
|
||||
|
||||
private final static Logger LOGGER = LoggerFactory.getLogger(DateUtil.class);
|
||||
|
||||
private static TimeZone mySTZ = (TimeZone) TimeZone.getTimeZone("JST");
|
||||
private static Locale lc = new Locale("Locale.KOREAN", "Locale.KOREA");
|
||||
public static String [] HOUR_CODE_ARRAY = {"08","09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"};
|
||||
public static String [] HOUR_CODE_ARRAY2 = {"01", "02", "03", "04", "05", "06", "07","08","09","10", "11", "12", "13", "14", "15","16", "17", "18", "19","20","21","22","23"};
|
||||
public static String [][] HOUR_CODE_ONE_ARRAY = {{"10","11"}, {"11", "12"},{"14", "15"}, {"15","16"}, {"16", "17"}};
|
||||
public static String [][] HOUR_CODE_TWO_ARRAY = {{"10","12"}, {"14", "16"},{"16", "17"}};
|
||||
public static String [][] HOUR_CODE_THREE_ARRAY = {{"","12",""}, {"14", "16"},{"16", "17"}};
|
||||
public static String [][] HOUR_CODE_DAY_ARRAY = {{"10","17"}};
|
||||
public static String [] MINUTE_CODE_ARRAY = {"00","10", "20", "30", "40", "50"};
|
||||
public static String [] MINUTE_CODE_ARRAY2 = {"00","30"};
|
||||
public static String PATTERN_DATETIME_TO_STRING = "yyyy-MM-dd HH:mm:ss";
|
||||
public static String PATTERN_DATE_TO_STRING = "yyyy-MM-dd";
|
||||
public static String DEFAULT_DATE_DELIMITER = "-";
|
||||
|
||||
public final static String DATE_FORMAT = "yyyy-MM-dd";
|
||||
public final static String DATE_DB_FORMAT = "yyyyMMdd";
|
||||
public final static String DATEYEAR_FORMAT = "yyyy";
|
||||
public final static String DATEMONTH_FORMAT = "yyyy-MM";
|
||||
public final static String DATEMONTH_FORMAT2 = "yyyyK-MMK";
|
||||
public final static String DATEMONTH_DB_FORMAT = "yyyyMM";
|
||||
public final static String DATEMONTH_ONLY_FORMAT = "MM";
|
||||
public final static String DATEHOUR_FORMAT = "yyyy-MM-dd HH:mm";
|
||||
public final static String DATEHOUR_FORMAT2 = "yyyy-MM-dd HH";
|
||||
public final static String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
|
||||
public final static String DATETIME_STRING_FORMAT = "yyyyMMddHHmmss";
|
||||
|
||||
public final static String TIMEHOUR_FORMAT = "HH:mm";
|
||||
public final static String TIMEHOUR_FORMAT2 = "HHmm";
|
||||
public final static String TIMEHOUR_FORMAT3 = "HH";
|
||||
public final static String TIMESECOND_FORMAT = "HH:mm:ss";
|
||||
|
||||
public final static String DELIMITER_DATE = "-";
|
||||
public final static String DELIMITER_TIME = ":";
|
||||
public final static String DELIMITER_DATETIME = " ";
|
||||
public static final String DELIMITER_PERIOD = "~";
|
||||
|
||||
|
||||
public static int getYearCurrent() {
|
||||
Calendar today = Calendar.getInstance(mySTZ, lc);
|
||||
int year = today.get(Calendar.YEAR);
|
||||
|
||||
return year;
|
||||
}
|
||||
|
||||
public static int getMonthCurrent() {
|
||||
Calendar today = Calendar.getInstance(mySTZ, lc);
|
||||
int month = today.get(Calendar.MONTH) +1;
|
||||
|
||||
return month;
|
||||
}
|
||||
|
||||
public static int getDayIntCurrent() {
|
||||
Calendar today = Calendar.getInstance(mySTZ, lc);
|
||||
int day = today.get(Calendar.DAY_OF_MONTH);
|
||||
|
||||
return day;
|
||||
}
|
||||
|
||||
public static Date getDayCurrent() {
|
||||
Calendar today = Calendar.getInstance(mySTZ, lc);
|
||||
return new Date(today.getTimeInMillis());
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public static Date getAddDayCurrent(int period) {
|
||||
Calendar today = new GregorianCalendar(mySTZ,lc);
|
||||
Calendar resultDay = new GregorianCalendar (mySTZ,lc);
|
||||
resultDay.add(today.DATE, period);
|
||||
return new Date(resultDay.getTimeInMillis());
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public static Date getDayAddDay(Date date, int day) {
|
||||
if (date == null) return null;
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
cal.add(cal.DATE, day);
|
||||
return cal.getTime();
|
||||
}
|
||||
|
||||
public static String getNowString(String dtFormat) {
|
||||
Calendar today = Calendar.getInstance(mySTZ, lc);
|
||||
String szResult = "";
|
||||
if (dtFormat != null) {
|
||||
szResult = new SimpleDateFormat(dtFormat).format(today.getTime());
|
||||
}
|
||||
return szResult;
|
||||
}
|
||||
|
||||
public static String getDateString(java.util.Date dt, SimpleDateFormat dtFormat) {
|
||||
String szResult = "";
|
||||
if (dt != null && dtFormat != null) {
|
||||
szResult = dtFormat.format(dt);
|
||||
}
|
||||
return szResult;
|
||||
}
|
||||
|
||||
public static String date2str(Date date, String format) {
|
||||
if (date == null || StringUtils.isEmpty(format)) return null;
|
||||
return new SimpleDateFormat(format).format(date);
|
||||
}
|
||||
|
||||
public static Date getFirstDayOfMonth(String strMonth) {
|
||||
Calendar resultDay = new GregorianCalendar (mySTZ,lc);
|
||||
|
||||
int intYear = Integer.parseInt(strMonth.substring(0,4));
|
||||
int intMonth = Integer.parseInt(strMonth.substring(4,6))-1; // -1을 해야 현재월
|
||||
int intDay = 1;
|
||||
|
||||
resultDay.set(intYear, intMonth, intDay);
|
||||
return new Date(resultDay.getTimeInMillis());
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public static Date getLastDayOfMonth(String strMonth) {
|
||||
Calendar resultDay = Calendar.getInstance(mySTZ, lc);
|
||||
int intYear = Integer.parseInt(strMonth.substring(0,4));
|
||||
int intMonth = Integer.parseInt(strMonth.substring(4,6))-1; // -1을 해야 현재월
|
||||
int intDay = 1;
|
||||
resultDay.set(intYear, intMonth, intDay);
|
||||
resultDay.add(resultDay.MONTH, +1); // 다음달
|
||||
resultDay.add(resultDay.DATE, -1); // 하루빼
|
||||
return new Date(resultDay.getTimeInMillis());
|
||||
}
|
||||
|
||||
public static Calendar str2cal(String str, String format) {
|
||||
Calendar cal = null;
|
||||
if (StringUtils.isEmpty(str)) return cal;
|
||||
|
||||
try {
|
||||
DateFormat formatter = new SimpleDateFormat(format);
|
||||
Date date = (Date)formatter.parse(str);
|
||||
|
||||
cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
} catch (NullPointerException e) {
|
||||
LOGGER.error("fail in str2cal() str="+str+", format="+format, e);
|
||||
} catch (IllegalArgumentException e) {
|
||||
LOGGER.error("fail in str2cal() str="+str+", format="+format, e);
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("fail in str2cal() str="+str+", format="+format, e);
|
||||
}
|
||||
return cal;
|
||||
}
|
||||
|
||||
public static String getDateFormatString(String strDate) {
|
||||
String formatDate = "";
|
||||
if(strDate == null) return formatDate;
|
||||
strDate = CmmUtil.deleteChar(strDate);
|
||||
|
||||
int strDateLen = strDate.length();
|
||||
if(strDateLen >= 4) {
|
||||
formatDate = strDate.substring(0, 4);
|
||||
}
|
||||
if(strDateLen >= 6) {
|
||||
formatDate += DEFAULT_DATE_DELIMITER + strDate.substring(4, 6) ;
|
||||
}
|
||||
if(strDateLen >= 8) {
|
||||
formatDate += DEFAULT_DATE_DELIMITER + strDate.substring(6) ;
|
||||
}
|
||||
return formatDate;
|
||||
}
|
||||
|
||||
public static String getDateFormatString2(String strDate) {
|
||||
String formatDate = "";
|
||||
if(strDate == null) return formatDate;
|
||||
|
||||
strDate = CmmUtil.deleteChar(strDate);
|
||||
|
||||
int strDateLen = strDate.length();
|
||||
|
||||
if(strDateLen > 8){
|
||||
strDate = strDate.substring(0, 8);
|
||||
}
|
||||
|
||||
if(strDateLen >= 4) {
|
||||
formatDate = strDate.substring(0, 4);
|
||||
}
|
||||
if(strDateLen >= 6) {
|
||||
formatDate += DEFAULT_DATE_DELIMITER + strDate.substring(4, 6) ;
|
||||
}
|
||||
if(strDateLen >= 8) {
|
||||
formatDate += DEFAULT_DATE_DELIMITER + strDate.substring(6) ;
|
||||
}
|
||||
|
||||
return formatDate;
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public static Date getDayPreMonth() throws IOException, InvocationTargetException, SQLException{
|
||||
Calendar today = new GregorianCalendar(mySTZ,lc);
|
||||
Calendar resultDay = new GregorianCalendar (mySTZ,lc);
|
||||
resultDay.add(today.MONTH, -1);
|
||||
return new Date(resultDay.getTimeInMillis());
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public static Date getPreMonth(int period) throws IOException, InvocationTargetException, SQLException {
|
||||
Calendar today = new GregorianCalendar(mySTZ,lc);
|
||||
Calendar resultDay = new GregorianCalendar (mySTZ,lc);
|
||||
resultDay.add(today.MONTH, period);
|
||||
return new Date(resultDay.getTimeInMillis());
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public static Date getDayNextMonth() throws IOException, InvocationTargetException, SQLException {
|
||||
Calendar today = new GregorianCalendar(mySTZ,lc);
|
||||
Calendar resultDay = new GregorianCalendar (mySTZ,lc);
|
||||
resultDay.add(today.MONTH, 1);
|
||||
return new Date(resultDay.getTimeInMillis());
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public static Date getDayAddMonth(Calendar cal, int month) throws IOException, InvocationTargetException, SQLException {
|
||||
if (cal == null) return null;
|
||||
Calendar tmp = Calendar.getInstance();
|
||||
tmp.setTime(cal.getTime());
|
||||
tmp.add(cal.MONTH, month);
|
||||
return tmp.getTime();
|
||||
}
|
||||
|
||||
public static Date getDayAddMonth(int month) throws Exception {
|
||||
Calendar today = new GregorianCalendar(mySTZ,lc);
|
||||
return getDayAddMonth(today, month);
|
||||
}
|
||||
|
||||
public static Date getDayAddMonth(String str, String format, int month) throws IOException, InvocationTargetException, SQLException {
|
||||
Calendar today = str2cal(str, format);
|
||||
return getDayAddMonth(today, month);
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static Date getDate(Map map, String key) {
|
||||
Date date = null;
|
||||
if (CmmUtil.isEmpty(map, key)) return date;
|
||||
|
||||
date = (Date)map.get(key);
|
||||
return date;
|
||||
}
|
||||
|
||||
public static String[] getBetweenDays(String startD, String endD) throws ParseException, IOException, InvocationTargetException, SQLException {
|
||||
List<String> list = new ArrayList<>();
|
||||
|
||||
if( StringUtils.isBlank(startD) || StringUtils.isBlank(endD)){
|
||||
return null;
|
||||
}
|
||||
startD = startD.replaceAll("-", "").trim();
|
||||
endD = endD.replaceAll("-", "").trim();
|
||||
|
||||
if( startD.length() > 8 || endD.length() > 8) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String start = startD;
|
||||
String end = endD;
|
||||
|
||||
DateFormat inDf = new SimpleDateFormat("yyyyMMdd");
|
||||
|
||||
//getBetweenDays("20160930" , "20161003") = {"30,금,9월,20160930", "2,일,10월,20161002" , "1,토,10월,20161001" , "3,월,10월,20161003"}
|
||||
//DateFormat outDf = new SimpleDateFormat("d,E,MMMM,yyyyMMdd", Locale.US);
|
||||
|
||||
// getBetweenDays("20160930" , "20161003") = {"20160930", "20161002" , "20161001" , "20161003"}
|
||||
DateFormat outDf = new SimpleDateFormat("yyyyMMdd", Locale.KOREA);
|
||||
|
||||
Calendar startCal = Calendar.getInstance();
|
||||
Calendar endCal = Calendar.getInstance();
|
||||
startCal.setTime(inDf.parse(start));
|
||||
endCal.setTime(inDf.parse(end));
|
||||
endCal.add(Calendar.DAY_OF_MONTH, +1);
|
||||
while (endCal.after(startCal)) {
|
||||
String date = outDf.format(startCal.getTime()).toUpperCase();
|
||||
startCal.add(Calendar.DAY_OF_MONTH, +1);
|
||||
list.add(date);
|
||||
}
|
||||
return list.toArray(new String[list.size()]);
|
||||
}
|
||||
|
||||
public static Date currentDate()
|
||||
{
|
||||
return new Date();
|
||||
}
|
||||
|
||||
public static String currentDateHh()
|
||||
{
|
||||
Date dt = new Date();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("HH");
|
||||
return sdf.format(dt).toString();
|
||||
}
|
||||
|
||||
public static String getAddYearFormat(int year, String format)
|
||||
{
|
||||
return dateToString(addYears(currentDate(), year), format);
|
||||
}
|
||||
|
||||
public static String getAddMonthFormat(int month, String format)
|
||||
{
|
||||
return dateToString(addMonths(currentDate(), month), format);
|
||||
}
|
||||
|
||||
public static String getAddDayFormat(int day, String format)
|
||||
{
|
||||
return dateToString(addDays(currentDate(), day), format);
|
||||
}
|
||||
public static String dateToString(Date date, String format)
|
||||
{
|
||||
if (date == null) {
|
||||
return "";
|
||||
}
|
||||
return DateFormatUtils.format(date, format);
|
||||
}
|
||||
|
||||
public static String getAddHourFormat(int h,String format) {
|
||||
Calendar cal = Calendar.getInstance(mySTZ, lc);
|
||||
cal.add(Calendar.HOUR, h);
|
||||
return DateFormatUtils.format(cal.getTime(), format);
|
||||
}
|
||||
|
||||
public static Date stringToDate(String str, String format) throws Exception {
|
||||
Date date = null;
|
||||
if (StringUtils.isEmpty(str) || StringUtils.isEmpty(format)) return date;
|
||||
|
||||
Calendar cal = str2cal(str, format);
|
||||
if (cal == null) return date;
|
||||
|
||||
date = cal.getTime();
|
||||
return date;
|
||||
}
|
||||
}
|
||||
776
src/main/java/cmm/util/ExcelUtil.java
Normal file
776
src/main/java/cmm/util/ExcelUtil.java
Normal file
@ -0,0 +1,776 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
import org.apache.poi.ss.usermodel.Font;
|
||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.apache.poi.ss.util.CellReference;
|
||||
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ExcelUtil {
|
||||
|
||||
/** LOGGER */
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(ExcelUtil.class);
|
||||
|
||||
/** 다운로드 버퍼 크기 */
|
||||
// private static final int BUFFER_SIZE = 8192; // 8kb
|
||||
|
||||
/** 문자 인코딩 */
|
||||
public final static String CHARSET = "utf-8";
|
||||
|
||||
public final static String CELL_STYLE_TITLE = "1";
|
||||
public final static String CELL_STYLE_TITLE2 = "11";
|
||||
public final static String CELL_STYLE_TITLE3 = "12";
|
||||
public final static String CELL_STYLE_HEADER = "2";
|
||||
|
||||
public final static String CELL_STYLE_DATA_DEFAULT_CENTER = "3";
|
||||
public final static String CELL_STYLE_DATA_DEFAULT_LEFT = "4";
|
||||
public final static String CELL_STYLE_DATA_DEFAULT_RIGHT = "5";
|
||||
public final static String CELL_STYLE_DATA_DATE_HYPHEN = "6";
|
||||
public final static String CELL_STYLE_DATA_DATE_SLASH = "7";
|
||||
public final static String CELL_STYLE_DATA_NUMBER = "8";
|
||||
public final static String CELL_STYLE_DATA_NUMBER_DECIMAL_1 = "9";
|
||||
public final static String CELL_STYLE_DATA_NUMBER_DECIMAL_2 = "10";
|
||||
|
||||
public final static int CELL_SIZE_DEFAULT = 4500;
|
||||
|
||||
public final static String DATALIST_MAP = "map";
|
||||
public final static String DATALIST_VO = "vo";
|
||||
|
||||
|
||||
private String filePath;
|
||||
private List<String> outputColumns;
|
||||
private int startRow;
|
||||
|
||||
public static void xlsxFileDownByEgovMap(
|
||||
HttpServletResponse response,
|
||||
String fileName,
|
||||
String sheetName,
|
||||
String headerTitle,
|
||||
String[] headerNames,
|
||||
String[] dataKeys,
|
||||
String[] dataType,
|
||||
int[] cellSizes,
|
||||
List<DataMap> dataList) throws Exception
|
||||
{
|
||||
// 워크북 생성
|
||||
XSSFWorkbook wb = new XSSFWorkbook();
|
||||
|
||||
// 시트 생성
|
||||
XSSFSheet sheet = null;
|
||||
if (StringUtils.isNotEmpty(sheetName))
|
||||
{
|
||||
sheet = wb.createSheet(sheetName);
|
||||
}
|
||||
else
|
||||
{
|
||||
sheet = wb.createSheet();
|
||||
}
|
||||
|
||||
// 기본 Cell Style
|
||||
Map<String, CellStyle> styles = createStyles(wb);
|
||||
|
||||
int headerNamesLength = 1;
|
||||
if (headerNames != null && headerNames.length > 0) headerNamesLength = headerNames.length;
|
||||
|
||||
// 셀크기지정
|
||||
if (cellSizes == null || cellSizes.length == 0)
|
||||
{
|
||||
for (int i = 0; i < headerNamesLength; i++)
|
||||
{
|
||||
sheet.setColumnWidth(i, CELL_SIZE_DEFAULT);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < headerNamesLength; i++)
|
||||
{
|
||||
sheet.setColumnWidth(i, cellSizes[i] * 256);
|
||||
}
|
||||
}
|
||||
|
||||
Row titleRow = sheet.createRow(0);
|
||||
titleRow.setHeightInPoints(45);
|
||||
Cell titleCell = titleRow.createCell(0);
|
||||
titleCell.setCellValue(headerTitle);
|
||||
titleCell.setCellStyle(styles.get(CELL_STYLE_TITLE));
|
||||
sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, headerNamesLength-1));
|
||||
|
||||
Row headerRow = sheet.createRow(1);
|
||||
headerRow.setHeightInPoints(40);
|
||||
Cell headerCell;
|
||||
for (int i = 0; i < headerNamesLength; i++) {
|
||||
headerCell = headerRow.createCell(i);
|
||||
headerCell.setCellValue(headerNames[i]);
|
||||
headerCell.setCellStyle(styles.get(CELL_STYLE_HEADER));
|
||||
}
|
||||
|
||||
Row dataRow = null;
|
||||
|
||||
Cell dataCell = null;
|
||||
|
||||
DataMap dataMap = null;
|
||||
if (dataList != null && dataList.size() > 0)
|
||||
{
|
||||
for (int i = 0; i < dataList.size(); i++)
|
||||
{
|
||||
dataMap = (DataMap) dataList.get(i);
|
||||
dataRow = sheet.createRow(i + 2);
|
||||
dataCell = null;
|
||||
if (dataKeys != null && dataKeys.length > 0)
|
||||
{
|
||||
for (int j = 0; j < dataKeys.length; j++)
|
||||
{
|
||||
Object dataObj = (Object)(dataMap.get(dataKeys[j]));
|
||||
if (dataObj != null) {
|
||||
String dataTypeNm = dataObj.getClass().getName();
|
||||
|
||||
dataCell = dataRow.createCell(j);
|
||||
dataCell.setCellStyle(styles.get(dataType[j]));
|
||||
if (dataTypeNm.contains("BigDecimal"))
|
||||
{
|
||||
dataCell.setCellValue(((BigDecimal)(dataMap.get(dataKeys[j]))).doubleValue());
|
||||
}
|
||||
else if (dataTypeNm.contains("Integer"))
|
||||
{
|
||||
dataCell.setCellValue((Integer)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
else if (dataTypeNm.contains("Long"))
|
||||
{
|
||||
dataCell.setCellValue((Long)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
else if (dataTypeNm.contains("Date"))
|
||||
{
|
||||
dataCell.setCellValue((Date)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
else
|
||||
{
|
||||
dataCell.setCellValue((String)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dataCell = dataRow.createCell(j);
|
||||
dataCell.setCellStyle(styles.get(CELL_STYLE_DATA_DEFAULT_CENTER));
|
||||
dataCell.setCellValue("");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BufferedOutputStream outs = null;
|
||||
OutputStream out = null;
|
||||
try
|
||||
{
|
||||
response.reset();
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(fileName, "UTF-8") + ";");
|
||||
out = response.getOutputStream();
|
||||
outs = new BufferedOutputStream(out);
|
||||
wb.write(outs);
|
||||
out.flush();
|
||||
}
|
||||
catch (IOException e){
|
||||
LOGGER.error("fail in xlsxFileDownByEgovMap()", e);
|
||||
} catch (Exception e){
|
||||
LOGGER.error("fail in xlsxFileDownByEgovMap()", e);
|
||||
} finally {
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
if(outs != null){
|
||||
outs.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void xlsxFileDownByEgovMap2(
|
||||
HttpServletResponse response,
|
||||
String fileName,
|
||||
String sheetName,
|
||||
String headerTitle,
|
||||
String[] headerNames1,
|
||||
String[] headerNames2,
|
||||
int [][] headerMerged,
|
||||
String[] dataKeys,
|
||||
String[] dataType,
|
||||
int[] cellSizes,
|
||||
List<DataMap> dataList) throws Exception
|
||||
{
|
||||
XSSFWorkbook wb = new XSSFWorkbook();
|
||||
|
||||
XSSFSheet sheet = null;
|
||||
if (StringUtils.isNotEmpty(sheetName))
|
||||
{
|
||||
sheet = wb.createSheet(sheetName);
|
||||
}
|
||||
else
|
||||
{
|
||||
sheet = wb.createSheet();
|
||||
}
|
||||
|
||||
Map<String, CellStyle> styles = createStyles(wb);
|
||||
|
||||
int headerNamesLength = 1;
|
||||
if (headerNames1 != null && headerNames1.length > 0) headerNamesLength = headerNames1.length;
|
||||
|
||||
int headerMergedLength = 0;
|
||||
if (headerMerged != null && headerMerged.length > 0) headerMergedLength = headerMerged.length;
|
||||
|
||||
if (cellSizes == null || cellSizes.length == 0)
|
||||
{
|
||||
for (int i = 0; i < headerNamesLength; i++)
|
||||
{
|
||||
sheet.setColumnWidth(i, CELL_SIZE_DEFAULT);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < headerNamesLength; i++)
|
||||
{
|
||||
sheet.setColumnWidth(i, cellSizes[i] * 256);
|
||||
}
|
||||
}
|
||||
|
||||
Row titleRow = sheet.createRow(0);
|
||||
titleRow.setHeightInPoints(45);
|
||||
Cell titleCell = titleRow.createCell(0);
|
||||
titleCell.setCellValue(headerTitle);
|
||||
titleCell.setCellStyle(styles.get(CELL_STYLE_TITLE));
|
||||
|
||||
|
||||
sheet.addMergedRegion(new CellRangeAddress(0, 0, 0, headerNamesLength-1));
|
||||
|
||||
Row headerRow1 = sheet.createRow(1);
|
||||
headerRow1.setHeightInPoints(40);
|
||||
Cell headerCell1;
|
||||
for (int i = 0; i < headerNamesLength; i++)
|
||||
{
|
||||
//if (AtEduStringUtils.isNotEmpty(headerNames1[i]))
|
||||
//{
|
||||
headerCell1 = headerRow1.createCell(i);
|
||||
headerCell1.setCellValue(headerNames1[i]);
|
||||
headerCell1.setCellStyle(styles.get(CELL_STYLE_HEADER));
|
||||
//}
|
||||
}
|
||||
|
||||
Row headerRow2 = sheet.createRow(2);
|
||||
headerRow2.setHeightInPoints(40);
|
||||
Cell headerCell2;
|
||||
for (int i = 0; i < headerNamesLength; i++)
|
||||
{
|
||||
//if (AtEduStringUtils.isNotEmpty(headerNames2[i]))
|
||||
//{
|
||||
headerCell2 = headerRow2.createCell(i);
|
||||
headerCell2.setCellValue(headerNames2[i]);
|
||||
headerCell2.setCellStyle(styles.get(CELL_STYLE_HEADER));
|
||||
//}
|
||||
}
|
||||
|
||||
for (int i = 0; i < headerMergedLength; i++)
|
||||
{
|
||||
sheet.addMergedRegion(new CellRangeAddress(headerMerged[i][0], headerMerged[i][1], headerMerged[i][2], headerMerged[i][3]));
|
||||
}
|
||||
|
||||
Row dataRow = null;
|
||||
|
||||
Cell dataCell = null;
|
||||
|
||||
DataMap dataMap = null;
|
||||
if (dataList != null && dataList.size() > 0)
|
||||
{
|
||||
for (int i = 0; i < dataList.size(); i++)
|
||||
{
|
||||
dataMap = (DataMap) dataList.get(i);
|
||||
dataRow = sheet.createRow(i + 3);
|
||||
dataCell = null;
|
||||
if (dataKeys != null && dataKeys.length > 0)
|
||||
{
|
||||
for (int j = 0; j < dataKeys.length; j++)
|
||||
{
|
||||
Object dataObj = (Object)(dataMap.get(dataKeys[j]));
|
||||
if (dataObj != null) {
|
||||
String dataTypeNm = dataObj.getClass().getName();
|
||||
|
||||
dataCell = dataRow.createCell(j);
|
||||
dataCell.setCellStyle(styles.get(dataType[j]));
|
||||
if (dataTypeNm.contains("BigDecimal"))
|
||||
{
|
||||
dataCell.setCellValue(((BigDecimal)(dataMap.get(dataKeys[j]))).doubleValue());
|
||||
}
|
||||
else if (dataTypeNm.contains("Integer"))
|
||||
{
|
||||
dataCell.setCellValue((Integer)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
else if (dataTypeNm.contains("Long"))
|
||||
{
|
||||
dataCell.setCellValue((Long)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
else if (dataTypeNm.contains("Date"))
|
||||
{
|
||||
dataCell.setCellValue((Date)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
else
|
||||
{
|
||||
dataCell.setCellValue((String)(dataMap.get(dataKeys[j])));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dataCell = dataRow.createCell(j);
|
||||
dataCell.setCellStyle(styles.get(CELL_STYLE_DATA_DEFAULT_CENTER));
|
||||
dataCell.setCellValue("");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BufferedOutputStream outs = null;
|
||||
try
|
||||
{
|
||||
response.reset();
|
||||
response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(fileName, "UTF-8") + ";");
|
||||
outs = new BufferedOutputStream(response.getOutputStream());
|
||||
wb.write(outs);
|
||||
outs.close();
|
||||
}
|
||||
catch (IOException e){
|
||||
LOGGER.error("fail in xlsxFileDownByEgovMap2()", e);
|
||||
} catch (Exception e){
|
||||
LOGGER.error("fail in xlsxFileDownByEgovMap2()", e);
|
||||
}
|
||||
|
||||
response.getOutputStream().flush();
|
||||
response.getOutputStream().close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a library of cell styles
|
||||
*/
|
||||
public static Map<String, CellStyle> createStyles(Workbook wb)
|
||||
{
|
||||
Map<String, CellStyle> styles = new HashMap<String, CellStyle>();
|
||||
CellStyle style;
|
||||
|
||||
// DDDDDDDDDDDDDDDDDDDDDD 2021.08.13 임시 막음 버전차이로 인한 상수값 부재
|
||||
/*
|
||||
Font titleFont = wb.createFont();
|
||||
titleFont.setFontHeightInPoints((short) 18);
|
||||
titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_CENTER);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setFont(titleFont);
|
||||
styles.put(CELL_STYLE_TITLE, style);
|
||||
|
||||
Font title2Font = wb.createFont();
|
||||
title2Font.setFontHeightInPoints((short) 13);
|
||||
title2Font.setBoldweight(Font.BOLDWEIGHT_BOLD);
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_LEFT);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setFont(title2Font);
|
||||
styles.put(CELL_STYLE_TITLE2, style);
|
||||
|
||||
Font title3Font = wb.createFont();
|
||||
title3Font.setFontHeightInPoints((short) 10);
|
||||
title3Font.setBoldweight(Font.BOLDWEIGHT_BOLD);
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_LEFT);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setFont(title3Font);
|
||||
styles.put(CELL_STYLE_TITLE3, style);
|
||||
|
||||
Font headerFont = wb.createFont();
|
||||
headerFont.setFontHeightInPoints((short) 11);
|
||||
headerFont.setColor(IndexedColors.WHITE.getIndex());
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_CENTER);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());
|
||||
style.setFillPattern(CellStyle.SOLID_FOREGROUND);
|
||||
style.setFont(headerFont);
|
||||
style.setWrapText(true);
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_HEADER, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_CENTER);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setWrapText(true);
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_DEFAULT_CENTER, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_RIGHT);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setWrapText(true);
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_DEFAULT_RIGHT, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_LEFT);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setWrapText(true);
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_DEFAULT_LEFT, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_CENTER);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setDataFormat(wb.createDataFormat().getFormat("yyyy-mm-dd"));
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_DATE_HYPHEN, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_CENTER);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setDataFormat(wb.createDataFormat().getFormat("yyyy/mm/dd"));
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_DATE_SLASH, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_RIGHT);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setDataFormat(wb.createDataFormat().getFormat("#,##0"));
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_NUMBER, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_RIGHT);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setDataFormat(wb.createDataFormat().getFormat("#,##0.0"));
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_NUMBER_DECIMAL_1, style);
|
||||
|
||||
style = wb.createCellStyle();
|
||||
style.setAlignment(CellStyle.ALIGN_RIGHT);
|
||||
style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);
|
||||
style.setDataFormat(wb.createDataFormat().getFormat("#,##0.00"));
|
||||
style.setBorderRight(CellStyle.BORDER_THIN);
|
||||
style.setRightBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderLeft(CellStyle.BORDER_THIN);
|
||||
style.setLeftBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderTop(CellStyle.BORDER_THIN);
|
||||
style.setTopBorderColor(IndexedColors.BLACK.getIndex());
|
||||
style.setBorderBottom(CellStyle.BORDER_THIN);
|
||||
style.setBottomBorderColor(IndexedColors.BLACK.getIndex());
|
||||
styles.put(CELL_STYLE_DATA_NUMBER_DECIMAL_2, style);
|
||||
*/
|
||||
|
||||
return styles;
|
||||
}
|
||||
|
||||
|
||||
//추가
|
||||
public static Workbook getWorkbook(String filePath) {
|
||||
|
||||
/*
|
||||
* FileInputStream은 파일의 경로에 있는 파일을
|
||||
* 읽어서 Byte로 가져온다.
|
||||
*
|
||||
* 파일이 존재하지 않는다면은
|
||||
* RuntimeException이 발생된다.
|
||||
*/
|
||||
FileInputStream fis = null;
|
||||
try {
|
||||
fis = new FileInputStream(filePath);
|
||||
} catch (FileNotFoundException e) {
|
||||
throw new RuntimeException(e.getMessage(), e);
|
||||
}
|
||||
|
||||
Workbook wb = null;
|
||||
|
||||
/*
|
||||
* 파일의 확장자를 체크해서 .XLS 라면 HSSFWorkbook에
|
||||
* .XLSX라면 XSSFWorkbook에 각각 초기화 한다.
|
||||
*/
|
||||
if(filePath.toUpperCase().endsWith(".XLS")) {
|
||||
try {
|
||||
wb = new HSSFWorkbook(fis);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
else if(filePath.toUpperCase().endsWith(".XLSX")) {
|
||||
try {
|
||||
wb = new XSSFWorkbook(fis);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
return wb;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static String getName(Cell cell, int cellIndex) {
|
||||
int cellNum = 0;
|
||||
if(cell != null) {
|
||||
cellNum = cell.getColumnIndex();
|
||||
}
|
||||
else {
|
||||
cellNum = cellIndex;
|
||||
}
|
||||
|
||||
return CellReference.convertNumToColString(cellNum);
|
||||
}
|
||||
|
||||
public static String getValue(Cell cell) {
|
||||
String value = "";
|
||||
|
||||
if(cell == null) {
|
||||
value = "";
|
||||
}
|
||||
else {
|
||||
// DDDDDDDDDDDDDDDDDDDDDD 2021.08.13 임시 막음 버전차이로 인한 상수값 부재
|
||||
/*
|
||||
if( cell.getCellType() == Cell.CELL_TYPE_FORMULA ) {
|
||||
value = cell.getCellFormula();
|
||||
}
|
||||
else if( cell.getCellType() == Cell.CELL_TYPE_NUMERIC ) {
|
||||
value = cell.getNumericCellValue() + "";
|
||||
}
|
||||
else if( cell.getCellType() == Cell.CELL_TYPE_STRING ) {
|
||||
value = cell.getStringCellValue();
|
||||
}
|
||||
else if( cell.getCellType() == Cell.CELL_TYPE_BOOLEAN ) {
|
||||
value = cell.getBooleanCellValue() + "";
|
||||
}
|
||||
else if( cell.getCellType() == Cell.CELL_TYPE_ERROR ) {
|
||||
value = cell.getErrorCellValue() + "";
|
||||
}
|
||||
else if( cell.getCellType() == Cell.CELL_TYPE_BLANK ) {
|
||||
value = "";
|
||||
}
|
||||
else {
|
||||
value = cell.getStringCellValue();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
public static List<Map<String, String>> read(ExcelUtil excelReadOption) {
|
||||
//엑셀 파일 자체
|
||||
//엑셀파일을 읽어 들인다.
|
||||
//FileType.getWorkbook() <-- 파일의 확장자에 따라서 적절하게 가져온다.
|
||||
Workbook wb = getWorkbook(excelReadOption.getFilePath());
|
||||
/**
|
||||
* 엑셀 파일에서 첫번째 시트를 가지고 온다.
|
||||
*/
|
||||
Sheet sheet = wb.getSheetAt(0);
|
||||
|
||||
//System.out.println("Sheet 이름: "+ wb.getSheetName(0));
|
||||
//System.out.println("데이터가 있는 Sheet의 수 :" + wb.getNumberOfSheets());
|
||||
/**
|
||||
* sheet에서 유효한(데이터가 있는) 행의 개수를 가져온다.
|
||||
*/
|
||||
int numOfRows = sheet.getPhysicalNumberOfRows();
|
||||
int numOfCells = 0;
|
||||
|
||||
Row row = null;
|
||||
Cell cell = null;
|
||||
|
||||
String cellName = "";
|
||||
/**
|
||||
* 각 row마다의 값을 저장할 맵 객체
|
||||
* 저장되는 형식은 다음과 같다.
|
||||
* put("A", "이름");
|
||||
* put("B", "게임명");
|
||||
*/
|
||||
Map<String, String> map = null;
|
||||
/*
|
||||
* 각 Row를 리스트에 담는다.
|
||||
* 하나의 Row를 하나의 Map으로 표현되며
|
||||
* List에는 모든 Row가 포함될 것이다.
|
||||
*/
|
||||
List<Map<String, String>> result = new ArrayList<Map<String, String>>();
|
||||
/**
|
||||
* 각 Row만큼 반복을 한다.
|
||||
*/
|
||||
for(int rowIndex = excelReadOption.getStartRow() - 1; rowIndex < numOfRows; rowIndex++) {
|
||||
/*
|
||||
* 워크북에서 가져온 시트에서 rowIndex에 해당하는 Row를 가져온다.
|
||||
* 하나의 Row는 여러개의 Cell을 가진다.
|
||||
*/
|
||||
row = sheet.getRow(rowIndex);
|
||||
|
||||
if(row != null) {
|
||||
/*
|
||||
* 가져온 Row의 Cell의 개수를 구한다.
|
||||
*/
|
||||
numOfCells = row.getPhysicalNumberOfCells();
|
||||
/*
|
||||
* 데이터를 담을 맵 객체 초기화
|
||||
*/
|
||||
map = new HashMap<String, String>();
|
||||
/*
|
||||
* cell의 수 만큼 반복한다.
|
||||
*/
|
||||
for(int cellIndex = 0; cellIndex < numOfCells; cellIndex++) {
|
||||
/*
|
||||
* Row에서 CellIndex에 해당하는 Cell을 가져온다.
|
||||
*/
|
||||
cell = row.getCell(cellIndex);
|
||||
/*
|
||||
* 현재 Cell의 이름을 가져온다
|
||||
* 이름의 예 : A,B,C,D,......
|
||||
*/
|
||||
cellName = getName(cell, cellIndex);
|
||||
/*
|
||||
* 추출 대상 컬럼인지 확인한다
|
||||
* 추출 대상 컬럼이 아니라면,
|
||||
* for로 다시 올라간다
|
||||
*/
|
||||
if( !excelReadOption.getOutputColumns().contains(cellName) ) {
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
* map객체의 Cell의 이름을 키(Key)로 데이터를 담는다.
|
||||
*/
|
||||
map.put(cellName, getValue(cell));
|
||||
}
|
||||
/*
|
||||
* 만들어진 Map객체를 List로 넣는다.
|
||||
*/
|
||||
result.add(map);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
public List<String> getOutputColumns() {
|
||||
|
||||
List<String> temp = new ArrayList<String>();
|
||||
temp.addAll(outputColumns);
|
||||
|
||||
return temp;
|
||||
}
|
||||
public void setOutputColumns(List<String> outputColumns) {
|
||||
|
||||
List<String> temp = new ArrayList<String>();
|
||||
temp.addAll(outputColumns);
|
||||
|
||||
this.outputColumns = temp;
|
||||
}
|
||||
|
||||
public void setOutputColumns(String ... outputColumns) {
|
||||
|
||||
if(this.outputColumns == null) {
|
||||
this.outputColumns = new ArrayList<String>();
|
||||
}
|
||||
|
||||
for(String ouputColumn : outputColumns) {
|
||||
this.outputColumns.add(ouputColumn);
|
||||
}
|
||||
}
|
||||
|
||||
public int getStartRow() {
|
||||
return startRow;
|
||||
}
|
||||
public void setStartRow(int startRow) {
|
||||
this.startRow = startRow;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
193
src/main/java/cmm/util/FileUtil.java
Normal file
193
src/main/java/cmm/util/FileUtil.java
Normal file
@ -0,0 +1,193 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.validation.Errors;
|
||||
|
||||
import egovframework.com.cmm.service.FileVO;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.idgnr.impl.Base64;
|
||||
|
||||
public class FileUtil {
|
||||
|
||||
/** LOGGER */
|
||||
private final static Logger LOGGER = LoggerFactory.getLogger(FileUtil.class);
|
||||
|
||||
/** 파일업로드시 사용 */
|
||||
public static final String ORDER_FLAG_INSERT = "C";
|
||||
public static final String ORDER_FLAG_RETRIEVE = "R";
|
||||
public static final String ORDER_FLAG_UPDATE = "U";
|
||||
public static final String ORDER_FLAG_DELETE = "D";
|
||||
|
||||
public static String getFileExtension(String fileName) {
|
||||
String ext = "";
|
||||
if (StringUtils.isNotEmpty(fileName) && fileName.indexOf(".") >= 0) {
|
||||
ext = fileName.substring(fileName.lastIndexOf(".")+1, fileName.length());
|
||||
}
|
||||
return ext;
|
||||
}
|
||||
@SuppressWarnings("unused")
|
||||
public static String getImageFileStream(FileVO fvo) throws IOException, InvocationTargetException, SQLException {
|
||||
byte[] result = null;
|
||||
|
||||
File file = null;
|
||||
FileInputStream fis = null;
|
||||
|
||||
BufferedInputStream in = null;
|
||||
ByteArrayOutputStream bStream = null;
|
||||
|
||||
try {
|
||||
file = new File(fvo.getFileStreCours(), fvo.getStreFileNm());
|
||||
fis = new FileInputStream(file);
|
||||
|
||||
in = new BufferedInputStream(fis);
|
||||
bStream = new ByteArrayOutputStream();
|
||||
|
||||
Base64.encode(bStream.toByteArray());
|
||||
int imgByte;
|
||||
while ((imgByte = in.read()) != -1) {
|
||||
bStream.write(imgByte);
|
||||
}
|
||||
|
||||
String type = "";
|
||||
if (fvo.getFileExtsn() != null && !"".equals(fvo.getFileExtsn())) {
|
||||
if ("jpg".equals(fvo.getFileExtsn().toLowerCase())) {
|
||||
type = "image/jpeg";
|
||||
} else {
|
||||
type = "image/" + fvo.getFileExtsn().toLowerCase();
|
||||
}
|
||||
type = "image/" + fvo.getFileExtsn().toLowerCase();
|
||||
|
||||
} else {
|
||||
LOGGER.debug("getImageFileStream() Image fileType is null... fvo={}", fvo);
|
||||
}
|
||||
result = bStream.toByteArray();
|
||||
|
||||
} catch (FileNotFoundException e) {
|
||||
LOGGER.error("fail in getImageFileStream() message="+e+", fvo="+fvo);
|
||||
|
||||
} catch (IOException e) {
|
||||
LOGGER.error("fail in getImageFileStream() message="+e+", fvo="+fvo);
|
||||
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("fail in getImageFileStream() message="+e+", fvo="+fvo);
|
||||
|
||||
} finally {
|
||||
if (bStream != null) {
|
||||
try {
|
||||
bStream.close();
|
||||
} catch (IOException ignore) {
|
||||
LOGGER.error("IGNORED: {}", ignore);
|
||||
}
|
||||
}
|
||||
if (in != null) {
|
||||
try {
|
||||
in.close();
|
||||
} catch (IOException ignore) {
|
||||
LOGGER.error("IGNORED: {}", ignore);
|
||||
}
|
||||
}
|
||||
if (fis != null) {
|
||||
try {
|
||||
fis.close();
|
||||
} catch (IOException ignore) {
|
||||
LOGGER.error("IGNORED: {}", ignore);
|
||||
}
|
||||
}
|
||||
}
|
||||
String encodedResult = result == null ? "" : Base64.encode(result);
|
||||
return encodedResult;
|
||||
}
|
||||
|
||||
public static int validateFileSize(FileVO fileVO, BigDecimal maxFileSize, String fieldName, Errors errors) throws EgovBizException {
|
||||
int errorCnt = 0;
|
||||
BigDecimal fileSize = null;
|
||||
String fileMg = fileVO.getFileMg(); // 파일크기
|
||||
if (StringUtils.isNotEmpty(fileMg)) fileSize = new BigDecimal(fileMg);
|
||||
if (fileSize == null) return errorCnt; // 더 이상 진행하지 않음
|
||||
|
||||
BigDecimal maxSize = maxFileSize.multiply(new BigDecimal(1024*1024)); // byte 단위
|
||||
if (fileSize.compareTo(maxSize) > 0) {
|
||||
// throw new EgovBizException("파일 업로드 용량을 초과하였습니다... [허용size:"+maxSize+" byte] fileVO="+fileVO);
|
||||
errors.rejectValue(fieldName, "", "파일 업로드 용량을 초과하였습니다. [허용size:"+maxFileSize+" Mb]");
|
||||
errorCnt++;
|
||||
}
|
||||
|
||||
if (errorCnt > 0) {
|
||||
LOGGER.debug("validateFileSize() errorCnt={}", errorCnt+", fileSize="+fileSize+", errors="+errors);
|
||||
}
|
||||
return errorCnt;
|
||||
}
|
||||
|
||||
public static int validateFileExt(FileVO fileVO, List<String> extList, String fieldName, Errors errors) throws EgovBizException {
|
||||
int errorCnt = 0;
|
||||
String fileExt = fileVO.getFileExtsn();
|
||||
if (StringUtils.isEmpty(fileExt)) {
|
||||
if (StringUtils.isNotEmpty(fileVO.getOrignlFileNm())) {
|
||||
String tmp = FileUtil.getFileExtension(fileVO.getOrignlFileNm());
|
||||
if (!StringUtils.isEmpty(tmp)) {
|
||||
fileExt = tmp;
|
||||
} else {
|
||||
// throw new EgovBizException("파일 확장자를 확인할 수 없습니다... fileVO="+fileVO);
|
||||
errors.rejectValue(fieldName, "", "파일 확장자를 확인할 수 없습니다. [파일명:"+fileVO.getOrignlFileNm()+"]");
|
||||
errorCnt++;
|
||||
}
|
||||
} else {
|
||||
// throw new EgovBizException("파일 확장자를 확인할 수 없습니다... fileVO="+fileVO);
|
||||
errors.rejectValue(fieldName, "", "파일 확장자를 확인할 수 없습니다. [파일명:"+fileVO.getOrignlFileNm()+"]");
|
||||
errorCnt++;
|
||||
}
|
||||
}
|
||||
|
||||
if (errorCnt == 0) {
|
||||
if (StringUtils.isEmpty(fileExt) || !extList.contains(fileExt.toLowerCase())) { // 소문자로 비교
|
||||
// LOGGER.debug("validateFileExt() 소문자비교... errorCnt={}", errorCnt+", fileExt="+fileExt+", fieldName="+fieldName+", errors="+errors);
|
||||
// throw new EgovBizException("허용되지 않는 파일 확장자 입니다... fileVO="+fileVO);
|
||||
errors.rejectValue(fieldName, "", "허용되지 않는 파일 확장자 입니다. [파일명:"+fileVO.getOrignlFileNm()+"]");
|
||||
errorCnt++;
|
||||
}
|
||||
}
|
||||
|
||||
if (errorCnt > 0) {
|
||||
LOGGER.debug("validateFileExt() errorCnt={}", errorCnt+", fileExt="+fileExt+", errors="+errors);
|
||||
}
|
||||
return errorCnt;
|
||||
}
|
||||
public static void makeDir(String dirPath) {
|
||||
if (StringUtils.isEmpty(dirPath)) {
|
||||
LOGGER.warn("makeDir() dirPath is null!!!");
|
||||
return;
|
||||
}
|
||||
|
||||
File file = new File(dirPath);
|
||||
//file.setExecutable(false,true);
|
||||
//file.setReadable(true);
|
||||
//file.setWritable(false, true);
|
||||
|
||||
if (!file.isDirectory()) {
|
||||
boolean flag = file.mkdirs();
|
||||
if (!flag) {
|
||||
LOGGER.error("fail in directory creation... file="+file);
|
||||
// throw new IOException("fail in directory creation...");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isExistFile(String filePath) {
|
||||
File file = new File(filePath);
|
||||
return file.exists();
|
||||
}
|
||||
|
||||
}
|
||||
156
src/main/java/cmm/util/MailUtil.java
Normal file
156
src/main/java/cmm/util/MailUtil.java
Normal file
@ -0,0 +1,156 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.mail.Authenticator;
|
||||
import javax.mail.Message;
|
||||
import javax.mail.MessagingException;
|
||||
import javax.mail.Session;
|
||||
import javax.mail.Transport;
|
||||
import javax.mail.internet.InternetAddress;
|
||||
import javax.mail.internet.MimeBodyPart;
|
||||
import javax.mail.internet.MimeMessage;
|
||||
import javax.mail.internet.MimeMultipart;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import egovframework.com.cmm.service.EgovProperties;
|
||||
|
||||
public class MailUtil {
|
||||
|
||||
private static final Log log = LogFactory.getLog(MailUtil.class);
|
||||
|
||||
public static void sendMail(String toAddr, String toName, String msgSubj, String msgText) {
|
||||
try{
|
||||
Properties mailProps = new Properties();
|
||||
|
||||
mailProps.put("mail.smtp.starttls.enable", "true");
|
||||
mailProps.put("mail.smtp.host", EgovProperties.getProperty("Globals.mail.smtp.host"));
|
||||
mailProps.put("mail.smtp.auth", "true");
|
||||
mailProps.put("mail.smtp.port", EgovProperties.getProperty("Globals.mail.smtp.port"));
|
||||
|
||||
|
||||
Authenticator auth = new MyAuthentication();
|
||||
//session 생성 및 MimeMessage생성
|
||||
Session _session = Session.getDefaultInstance(mailProps, auth);
|
||||
|
||||
String fromAddr = EgovProperties.getProperty("Globals.mail.smtp.user");
|
||||
String fromName = EgovProperties.getProperty("Globals.mail.smtp.username");
|
||||
|
||||
MimeMessage msg = new MimeMessage(_session);
|
||||
msg.setFrom(new InternetAddress(fromAddr, fromName));
|
||||
InternetAddress[] address = {new InternetAddress(fromAddr, toName)};
|
||||
msg.setRecipients(Message.RecipientType.TO, address);
|
||||
|
||||
/*참조인원*/
|
||||
InternetAddress[] addresscc = {new InternetAddress(EgovProperties.getProperty("Globals.mail.cc.user01")),
|
||||
new InternetAddress(EgovProperties.getProperty("Globals.mail.cc.user02")),
|
||||
new InternetAddress(EgovProperties.getProperty("Globals.mail.cc.user03")),
|
||||
new InternetAddress(EgovProperties.getProperty("Globals.mail.cc.user04"))
|
||||
};
|
||||
msg.setRecipients(Message.RecipientType.CC, addresscc);
|
||||
|
||||
msgSubj = "Q&A가 등록되었습니다.";
|
||||
msg.setSubject(msgSubj);
|
||||
msg.setSentDate(new Date());
|
||||
msgText = "Q&A가 등록되었습니다. 관리자사이트에서 Q&A를 확인하시기 바랍니다.";
|
||||
// 이메일 제목
|
||||
msg.setSubject(msgSubj, "UTF-8");
|
||||
// 이메일 내용
|
||||
msg.setText(msgText, "UTF-8");
|
||||
// 이메일 헤더
|
||||
msg.setHeader("content-Type", "text/html");
|
||||
//메일보내기
|
||||
Transport.send(msg);
|
||||
|
||||
}catch(MessagingException e){
|
||||
log.error("Error in sendMail()", e);
|
||||
}catch (UnsupportedEncodingException e) {
|
||||
log.error("Error in sendMail()", e);
|
||||
}
|
||||
}
|
||||
public static void sendMailHtml(HttpServletRequest request, String toAddr, String toName, String msgSubj, String msgText) {
|
||||
try{
|
||||
String serverPath = request.getContextPath(); // 서버패스
|
||||
String htmlFilePath = EgovProperties.getProperty("Globals.mail.html.path");
|
||||
String htmlFileName = EgovProperties.getProperty("Globals.mail.html.file");
|
||||
|
||||
Properties mailProps = new Properties();
|
||||
|
||||
|
||||
mailProps.put("mail.smtp.host", EgovProperties.getProperty("Globals.mail.smtp.host"));
|
||||
Session _session = Session.getInstance(mailProps, null);
|
||||
|
||||
String fromAddr = EgovProperties.getProperty("Globals.mail.smtp.user");
|
||||
String fromName = EgovProperties.getProperty("Globals.mail.smtp.username");
|
||||
|
||||
MimeMessage msg = new MimeMessage(_session);
|
||||
msg.setFrom(new InternetAddress(fromAddr, fromName));
|
||||
InternetAddress[] address = {
|
||||
new InternetAddress(toAddr, toName)
|
||||
};
|
||||
|
||||
msg.setRecipients(Message.RecipientType.TO, address);
|
||||
|
||||
msg.setSubject(msgSubj);
|
||||
|
||||
msg.setSentDate(new Date());
|
||||
|
||||
MimeMultipart cont = new MimeMultipart();
|
||||
MimeBodyPart txt = new MimeBodyPart();
|
||||
|
||||
txt.setText(msgText, "EUC-KR"); //"ks_c_5601-1987"
|
||||
txt.setHeader("Content-Type", "text/html; charset=\"EUC-KR\""); //charset=\"ks_c_5601-1987\""
|
||||
txt.setHeader("Content-Transfer-Encoding", "base64");
|
||||
|
||||
/// html 값을 리플레이스.
|
||||
String html = getMailBodyHtml(htmlFilePath+htmlFileName);
|
||||
html.replace("$title$", msgSubj);
|
||||
|
||||
cont.addBodyPart(txt);
|
||||
msg.setText(html);
|
||||
msg.setContent(cont);
|
||||
msg.saveChanges();
|
||||
|
||||
Transport.send(msg);
|
||||
|
||||
}catch(MessagingException e){
|
||||
log.error("Error in sendMail()", e);
|
||||
}catch (UnsupportedEncodingException e) {
|
||||
log.error("Error in sendMail()", e);
|
||||
}
|
||||
}
|
||||
public static String getMailBodyHtml(String pathFile){
|
||||
String html = "";
|
||||
if(StringUtils.isBlank(pathFile) ){
|
||||
return html;
|
||||
}else{
|
||||
BufferedReader br = null ;
|
||||
try {
|
||||
br = new BufferedReader(new FileReader(pathFile));
|
||||
while(true) {
|
||||
String temp = br.readLine();
|
||||
if (temp==null) break;
|
||||
html += temp;
|
||||
}
|
||||
br.close();
|
||||
} catch (Exception e) {
|
||||
}finally {
|
||||
try {
|
||||
br.close();
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
}
|
||||
701
src/main/java/cmm/util/MessageAlertUtil.java
Normal file
701
src/main/java/cmm/util/MessageAlertUtil.java
Normal file
@ -0,0 +1,701 @@
|
||||
package cmm.util;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class MessageAlertUtil
|
||||
{
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(MessageAlertUtil.class);
|
||||
|
||||
public static void alert(String msg, HttpServletResponse response){
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alert()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alert()", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertBack(String msg, HttpServletResponse response)
|
||||
{
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try{
|
||||
out = response.getWriter();
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("history.back(-1);");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex){
|
||||
LOGGER.error("Error in alertBack()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertBack()", e);
|
||||
}finally{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertBackExceptionMessage(String msg, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("history.back();");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertBackExceptionMessage()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertBackExceptionMessage()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertBack(String msg, Object[] args, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("history.back();");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertBack()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertBack()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertClose(String msg, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("self.close();");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertClose()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertClose()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertCloseOpenerReload(String msg, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("self.close();");
|
||||
out.println("opener.location.reload();");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertCloseOpenerReload()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertCloseOpenerReload()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertRedirect(String msg, String url, HttpServletResponse response)
|
||||
{
|
||||
response.setHeader("Cache-Control", "no-store");
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
out.println("<meta http-equiv=\"Expires\" content=\"-1\">");
|
||||
out.println("<meta http-equiv=\"Pragma\" content=\"no-cache\">");
|
||||
out.println("<meta http-equiv=\"Cache-Control\" content=\"No-Cache\">");
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("var isDoubleAction = fasle;");
|
||||
out.println("try {");
|
||||
out.println("var preHLInput = document.frm.currentHistoryLength;");
|
||||
out.println("var preHLValue = preHLInput.value;");
|
||||
out.println("if(preHLInput && preHLValue && ((window.history.length - preHLValue) <= 1)) {");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("}else{");
|
||||
out.println("isDoubleAction = true;");
|
||||
out.println("alert('" + msg + "');");
|
||||
out.println("return;");
|
||||
out.println("}");
|
||||
out.println("}catch(e){");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("try{console.log(e);}catch(e1){var output = '줄번호:192\\n';for (var i in e) {output += i + ' : ' + e[i] + '\\n';}alert(output);}");
|
||||
out.println("}");
|
||||
out.println("if(isDoubleAction == fasle){");
|
||||
out.println("document.target='_blank';");
|
||||
out.println("document.location.href='" + url + "';");
|
||||
out.println("}");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertRedirect(String msg, String url, String hiddens, HttpServletResponse response)
|
||||
{
|
||||
response.setHeader("Cache-Control", "no-store");
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
StringBuffer sb = new StringBuffer();
|
||||
|
||||
sb.append("<meta http-equiv=\"Expires\" content=\"-1\">");
|
||||
sb.append("<meta http-equiv=\"Pragma\" content=\"no-cache\">");
|
||||
sb.append("<meta http-equiv=\"Cache-Control\" content=\"No-Cache\">");
|
||||
sb.append("<meta name=\"decorator\" content=\"iframe\">");
|
||||
sb.append("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
sb.append("fn_onload = function() {");
|
||||
sb.append("try {");
|
||||
sb.append("var preHLInput = document.frm.currentHistoryLength;");
|
||||
sb.append("var preHLValue = preHLInput.value;");
|
||||
sb.append("if(preHLInput && preHLValue && ((window.history.length - preHLValue) <= 1)) {");
|
||||
sb.append("alert(\'" + msg + "\');");
|
||||
sb.append("}else{");
|
||||
sb.append("alert('" + msg + "');");
|
||||
sb.append("return;");
|
||||
sb.append("}");
|
||||
sb.append("}catch(e){");
|
||||
sb.append("alert(\'" + msg + "\');");
|
||||
sb.append("try{console.log(e);}catch(e1){var output = '줄번호:251\\n';for (var i in e) {output += i + ' : ' + e[i] + '\\n';}alert(output);}");
|
||||
sb.append("}");
|
||||
sb.append("document.frm.action = \"_self\";");
|
||||
sb.append("document.frm.action = \"" + url + "\";");
|
||||
sb.append("document.frm.submit();");
|
||||
sb.append("}");
|
||||
sb.append("</script>");
|
||||
sb.append("<body onload=\"fn_onload()\">");
|
||||
sb.append("<form name=\"frm\" method=\"POST\">");
|
||||
sb.append(hiddens);
|
||||
sb.append("</form>");
|
||||
sb.append("</body>");
|
||||
|
||||
out.println(sb.toString());
|
||||
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertReload(String msg, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("location.reload();");
|
||||
out.println("</script>");
|
||||
out.close();
|
||||
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertReload()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertReload()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertOpenerReload(String msg, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
// out.println("document.domain='daum.net';");
|
||||
out.println("opener.location.reload();");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("this.close();");
|
||||
out.println("</script>");
|
||||
out.close();
|
||||
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertOpenerReload()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertOpenerReload()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertCloseOpenerClose(String msg, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
// out.println("document.domain='daum.net';");
|
||||
out.println("opener.close();");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("this.close();");
|
||||
out.println("</script>");
|
||||
out.close();
|
||||
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertCloseOpenerClose()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertCloseOpenerClose()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void println(Object obj, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
out.println(obj);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in println()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in println()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void println(String msg, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println(msg);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in println()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in println()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void script(String script, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println(script);
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in script()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in script()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertRedirectTop(String msg, String url, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("document.target='_top';");
|
||||
out.println("document.location.href='" + url + "';");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirectTop()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirectTop()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertRedirectClose(String msg, String url, HttpServletResponse response)
|
||||
{
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("window.close();");
|
||||
out.println("</script>");
|
||||
|
||||
/*out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("document.target='_top';");
|
||||
out.println("document.close();");
|
||||
out.println("</script>");*/
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirectClose()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirectClose()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertRedirect(String msg, String url, HttpServletRequest request, HttpServletResponse response)
|
||||
{
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
|
||||
out.println("<meta http-equiv=\"Expires\" content=\"-1\">");
|
||||
out.println("<meta http-equiv=\"Pragma\" content=\"no-cache\">");
|
||||
out.println("<meta http-equiv=\"Cache-Control\" content=\"No-Cache\">");
|
||||
out.println("<meta name=\"decorator\" content=\"iframe\">");
|
||||
out.println("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
out.println("var isDoubleAction = fasle;");
|
||||
out.println("try {");
|
||||
out.println("var preHLInput = document.frm.currentHistoryLength;");
|
||||
out.println("var preHLValue = preHLInput.value;");
|
||||
out.println("if(preHLInput && preHLValue && ((window.history.length - preHLValue) <= 1)) {");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("}else{");
|
||||
out.println("isDoubleAction = true;");
|
||||
out.println("alert('" + msg + "');");
|
||||
out.println("return;");
|
||||
out.println("}");
|
||||
out.println("}catch(e){");
|
||||
out.println("alert(\'" + msg + "\');");
|
||||
out.println("try{console.log(e);}catch(e1){var output = '줄번호:603\\n';for (var i in e) {output += i + ' : ' + e[i] + '\\n';}alert(output);}");
|
||||
out.println("}");
|
||||
out.println("if(isDoubleAction == fasle){");
|
||||
out.println("document.target='_blank';");
|
||||
out.println("document.location.href='" + request.getContextPath() + url + "';");
|
||||
out.println("}");
|
||||
out.println("</script>");
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertRedirect(String msg, String url, String hiddens, HttpServletRequest request, HttpServletResponse response)
|
||||
{
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
StringBuffer sb = new StringBuffer();
|
||||
|
||||
sb.append("<meta http-equiv=\"Expires\" content=\"-1\">");
|
||||
sb.append("<meta http-equiv=\"Pragma\" content=\"no-cache\">");
|
||||
sb.append("<meta http-equiv=\"Cache-Control\" content=\"no-cache\">");
|
||||
sb.append("<meta name=\"decorator\" content=\"iframe\">");
|
||||
sb.append("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
sb.append("fn_onload = function() {");
|
||||
sb.append("try {");
|
||||
sb.append("var preHLInput = document.frm.currentHistoryLength;");
|
||||
sb.append("var preHLValue = preHLInput.value;");
|
||||
sb.append("if(preHLInput && preHLValue && ((window.history.length - preHLValue) <= 1)) {");
|
||||
sb.append("alert(\'" + msg + "\');");
|
||||
sb.append("}else{");
|
||||
sb.append("alert('" + msg + "');");
|
||||
sb.append("return;");
|
||||
sb.append("}");
|
||||
sb.append("}catch(e){");
|
||||
sb.append("alert(\'" + msg + "\');");
|
||||
//sb.append("try{console.log(e);}catch(e1){var output = '줄번호:664\\n';for (var i in e) {output += i + ' : ' + e[i] + '\\n';}alert(output);}");
|
||||
sb.append("}");
|
||||
sb.append("document.frm.action = \"_self\";");
|
||||
sb.append("document.frm.action = \"" + request.getContextPath() + url + "\";");
|
||||
sb.append("document.frm.submit();");
|
||||
sb.append("}");
|
||||
sb.append("</script>");
|
||||
sb.append("<body onload=\"fn_onload()\">");
|
||||
sb.append("<form name=\"frm\" method=\"POST\">");
|
||||
sb.append(hiddens);
|
||||
sb.append("</form>");
|
||||
sb.append("</body>");
|
||||
|
||||
out.println(sb.toString());
|
||||
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertRedirect()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void alertDirectMsgRedirect(String msg, String url, String hiddens, HttpServletRequest request, HttpServletResponse response)
|
||||
{
|
||||
response.setHeader("Cache-Control", "no-cache");
|
||||
response.setHeader("Pragma", "no-cache");
|
||||
response.setHeader("Expires", "0");
|
||||
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
PrintWriter out = null;
|
||||
try
|
||||
{
|
||||
out = response.getWriter();
|
||||
StringBuffer sb = new StringBuffer();
|
||||
|
||||
sb.append("<meta http-equiv=\"Expires\" content=\"-1\">");
|
||||
sb.append("<meta http-equiv=\"Pragma\" content=\"no-cache\">");
|
||||
sb.append("<meta http-equiv=\"Cache-Control\" content=\"No-Cache\">");
|
||||
sb.append("<meta name=\"decorator\" content=\"iframe\">");
|
||||
sb.append("<script language=\"JavaScript\" type=\"text/JavaScript\">");
|
||||
sb.append("fn_onload = function() {");
|
||||
if (msg != null && !"".equals(msg) && !"null".equals(msg)) {
|
||||
sb.append("try {");
|
||||
sb.append("var preHLInput = document.frm.currentHistoryLength;");
|
||||
sb.append("var preHLValue = preHLInput.value;");
|
||||
sb.append("if(preHLInput && preHLValue && ((window.history.length - preHLValue) <= 1)) {");
|
||||
sb.append("alert(\'" + msg + "\');");
|
||||
sb.append("}else{");
|
||||
sb.append("alert('" + msg + "');");
|
||||
sb.append("return;");
|
||||
sb.append("}");
|
||||
sb.append("}catch(e){");
|
||||
sb.append("alert(\'" + msg + "\');");
|
||||
sb.append("try{console.log(e);}catch(e1){var output = '줄번호:732\\n';for (var i in e) {output += i + ' : ' + e[i] + '\\n';}alert(output);}");
|
||||
sb.append("}");
|
||||
}
|
||||
sb.append("document.frm.action = \"_self\";");
|
||||
sb.append("document.frm.action = \"" + request.getContextPath() + url + "\";");
|
||||
sb.append("document.frm.submit();");
|
||||
sb.append("}");
|
||||
sb.append("</script>");
|
||||
sb.append("<body onload=\"fn_onload()\">");
|
||||
sb.append("<form name=\"frm\" method=\"POST\">");
|
||||
sb.append(hiddens);
|
||||
sb.append("</form>");
|
||||
sb.append("</body>");
|
||||
|
||||
out.println(sb.toString());
|
||||
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
LOGGER.error("Error in alertDirectMsgRedirect()", ex);
|
||||
}catch (Exception e)
|
||||
{
|
||||
LOGGER.error("Error in alertDirectMsgRedirect()", e);
|
||||
}finally
|
||||
{
|
||||
if(out != null){
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
}}
|
||||
20
src/main/java/cmm/util/MyAuthentication.java
Normal file
20
src/main/java/cmm/util/MyAuthentication.java
Normal file
@ -0,0 +1,20 @@
|
||||
package cmm.util;
|
||||
|
||||
import javax.mail.Authenticator;
|
||||
import javax.mail.PasswordAuthentication;
|
||||
|
||||
import egovframework.com.cmm.service.EgovProperties;
|
||||
|
||||
public class MyAuthentication extends Authenticator {
|
||||
PasswordAuthentication pa;
|
||||
public MyAuthentication(){
|
||||
|
||||
String id = EgovProperties.getProperty("Globals.mail.smtp.user");
|
||||
String pw = EgovProperties.getProperty("Globals.mail.smtp.pass");
|
||||
pa = new PasswordAuthentication(id, pw);
|
||||
}
|
||||
// 시스템에서 사용하는 인증정보
|
||||
public PasswordAuthentication getPasswordAuthentication() {
|
||||
return pa;
|
||||
}
|
||||
}
|
||||
245
src/main/java/cmm/util/cxRovecat.java
Normal file
245
src/main/java/cmm/util/cxRovecat.java
Normal file
@ -0,0 +1,245 @@
|
||||
//ROVECAT-PROTOCOL : PACKET SAMPLE /////////////////////////////////////////////
|
||||
//Client -> Server ...............................
|
||||
// ENQUE/NENCODER 192.168.7.104:8087/192.168.7.109 ROVECAT/1.0
|
||||
// Content-Length: 105
|
||||
//
|
||||
// Source-Media: /mkv/120414_YCH_02.avi
|
||||
// Export-Path: /mp4_files/
|
||||
// Is-File-Path: false
|
||||
// Is-Overwrite: true
|
||||
|
||||
//Server -> Client ...............................
|
||||
// ROVECAT/1.0 200 OK
|
||||
// Date: Wed, 4 Jul 2012 08:44:14 GMT
|
||||
// Server: NACLIPS.encoder/1.1.0.00 (NEXPOLY Technology Inc.)
|
||||
// Content-Length: 80
|
||||
//
|
||||
// Result: 1000 OK_ENC_ACCEPTED
|
||||
// Connection-Sequence: 421
|
||||
// Encoding-Sequence: 280
|
||||
// ROVECAT-PROTOCOL : PACKET SAMPLE /////////////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
package cmm.util;
|
||||
|
||||
import java.net.*;
|
||||
import java.io.*;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class cxRovecat {
|
||||
private static final String LOG_PATH = "/usr/local/tomcat/webapps/ROOT/log/iface_rovecat.log";
|
||||
private String ms_serv_name = "RVCP_SERVER";
|
||||
private String ms_params = "";
|
||||
|
||||
private String ms_ret_code = "";
|
||||
|
||||
private String ms_ret_date = "";
|
||||
private String ms_ret_server = "";
|
||||
private int mi_ret_length = 0;
|
||||
|
||||
private String ms_body = "";
|
||||
private String ms_error = "";
|
||||
private Boolean mb_readblock = false;
|
||||
private String ms_charset = "UTF-8";
|
||||
|
||||
private BufferedInputStream mx_bis = null;
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
public cxRovecat(){};
|
||||
//////////////////////////////////////////////////////////////
|
||||
public cxRovecat(String s_serv_name){
|
||||
if(s_serv_name != null && s_serv_name != "") ms_serv_name = s_serv_name;
|
||||
};
|
||||
|
||||
////////////////////////////////////
|
||||
public int iGetFromServer(String s_server,int i_port,String s_client,String s_div,int i_conn_timeout, int i_read_timeout){
|
||||
Socket x_conn = null;
|
||||
|
||||
//OutputStream x_os;
|
||||
PrintWriter x_pw = null;
|
||||
String s_request = "";
|
||||
|
||||
s_request += s_div +"/"+ ms_serv_name +" "+ s_server +":"+ Integer.toString(i_port) +"/"+ s_client + " ROVECAT/1.0\r\n";
|
||||
s_request += "Content-Length: "+Integer.toString(ms_params.length())+"\r\n";
|
||||
s_request += "\r\n";
|
||||
s_request += ms_params;
|
||||
|
||||
//fiLog(s_request);
|
||||
|
||||
try{
|
||||
SocketAddress socketAddress = new InetSocketAddress(s_server,i_port);
|
||||
x_conn = new Socket();
|
||||
x_conn.connect(socketAddress, i_conn_timeout); //connection timeout - ref: jsp_oracle.txt
|
||||
x_conn.setSoTimeout(i_read_timeout); //communication timeout - ref: jsp_oracle.txt
|
||||
|
||||
//x_os = x_conn.getOutputStream();
|
||||
|
||||
mx_bis = new BufferedInputStream(x_conn.getInputStream());
|
||||
x_pw = new PrintWriter(x_conn.getOutputStream());
|
||||
|
||||
x_pw.print(s_request);
|
||||
x_pw.flush();
|
||||
|
||||
ms_body = "";
|
||||
|
||||
String s_line;
|
||||
boolean b_body = false;
|
||||
|
||||
clearRet();
|
||||
|
||||
Integer i_pt = 0;
|
||||
Integer i_read = 0;
|
||||
|
||||
byte[] bs_buf = new byte[2048];
|
||||
//String s_num = new String(bs_buf);
|
||||
while ((i_read = iGetOnLine(bs_buf)) >= 0){
|
||||
s_line = new String(bs_buf).trim();
|
||||
if(i_read == 0){
|
||||
if(mi_ret_length <= 0) break;
|
||||
if(mb_readblock){
|
||||
byte[] bs_body = new byte[mi_ret_length];
|
||||
int i_bytes = mx_bis.read(bs_body);
|
||||
if(i_bytes > 0){
|
||||
String s_ret = new String(bs_body, ms_charset);
|
||||
ms_body += s_ret;
|
||||
}
|
||||
break;
|
||||
}
|
||||
b_body = true;
|
||||
}else{
|
||||
if(b_body){
|
||||
ms_body += s_line+"\r\n";
|
||||
}else{
|
||||
String s_data = "";
|
||||
if ((s_data = getPropertyOnLine(s_line,"ROVECAT/1.0" ))!="" ) ms_ret_code = s_data;
|
||||
else if((s_data = getPropertyOnLine(s_line,"Date:" ))!="" ) ms_ret_date = s_data;
|
||||
else if((s_data = getPropertyOnLine(s_line,"Server:" ))!="" ) ms_ret_server = s_data;
|
||||
else if((s_data = getPropertyOnLine(s_line,"Content-Length:"))!="" ){
|
||||
mi_ret_length = Integer.parseInt(s_data);
|
||||
}
|
||||
}
|
||||
}//if
|
||||
if(mi_ret_length>0 && ms_body.length() >= mi_ret_length){
|
||||
break;
|
||||
}
|
||||
}//while
|
||||
|
||||
mi_ret_length = ms_body.length();
|
||||
}
|
||||
catch (IOException e){
|
||||
ms_error = "connection error : "+e.getMessage();
|
||||
mi_ret_length = -1;
|
||||
}
|
||||
finally{
|
||||
try{
|
||||
if(mx_bis!= null) mx_bis.close();
|
||||
if(x_pw != null) x_pw .close();
|
||||
}
|
||||
catch(IOException e1) {}
|
||||
|
||||
try{
|
||||
if(x_conn!= null && !x_conn.isClosed()) x_conn.close();
|
||||
}
|
||||
catch(IOException e1) {}
|
||||
}
|
||||
|
||||
return mi_ret_length;
|
||||
}
|
||||
|
||||
////////////////////////////////////
|
||||
public String getLastError() { return ms_error; }
|
||||
public String getBody() { return ms_body; }
|
||||
public String getParams() { return ms_params; }
|
||||
public String getRetCode() { return ms_ret_code; }
|
||||
public String getRetDate() { return ms_ret_date; }
|
||||
public String getRetServer() { return ms_ret_server; }
|
||||
public int getContentLength(){ return mi_ret_length; }
|
||||
|
||||
public void setDataChareset(String cs_charset){ms_charset = cs_charset;}
|
||||
public void setReadBlock(Boolean b_block){ mb_readblock = b_block;}
|
||||
public void clearRet() { ms_ret_code = ms_ret_date = ms_ret_server = ""; mi_ret_length = 0;}
|
||||
public void clearParams() { ms_params = ""; }
|
||||
public void addParams(String s_param_name, String s_data){ ms_params += ((s_param_name==null)?"":(s_param_name+": "))+s_data+"\r\n";}
|
||||
public String getProperty(String s_porperty_name){
|
||||
if(s_porperty_name == null || s_porperty_name.length() <= 0) return "";
|
||||
if(ms_body.length() <= 0) return "";
|
||||
|
||||
int i_pt = ms_body.indexOf(s_porperty_name);
|
||||
if(i_pt < 0) return "";
|
||||
|
||||
String s_data = "";
|
||||
try{
|
||||
String s_find = ms_body.substring(i_pt+s_porperty_name.length()+1);
|
||||
if(s_find.length() > 0){
|
||||
|
||||
i_pt = s_find.indexOf("\r\n");
|
||||
if(i_pt >= 0) s_data = s_find.substring(0,i_pt);
|
||||
else s_data = s_find;
|
||||
|
||||
}
|
||||
}catch(Exception e){}
|
||||
|
||||
return s_data.trim();
|
||||
}
|
||||
|
||||
////////////////////////////////////
|
||||
private String getPropertyOnLine(String s_line, String s_porperty_name){
|
||||
if(s_line == null || s_line.length() <= 0) return "";
|
||||
if(s_porperty_name == null || s_porperty_name.length() <= 0) return "";
|
||||
|
||||
String s_data = "";
|
||||
int i_pt = s_line.indexOf(s_porperty_name);
|
||||
if(i_pt == 0) s_data = s_line.substring(s_porperty_name.length());
|
||||
return s_data.trim();
|
||||
};
|
||||
|
||||
////////////////////////////////////
|
||||
private int iGetOnLine(byte[] bs_buf){
|
||||
if(mx_bis == null) return -1;
|
||||
Arrays.fill(bs_buf, (byte) 0 );
|
||||
|
||||
int i = 0;
|
||||
for(i =0 ; i < bs_buf.length ; i++){
|
||||
try{
|
||||
int i_ret = mx_bis.read();
|
||||
if(i_ret == -1 && i == 0) return -1;
|
||||
if(i_ret == -1 || i_ret == '\n'){
|
||||
if(bs_buf[i-1] == '\r'){
|
||||
bs_buf[i-1] = (byte)0;
|
||||
i--;
|
||||
}
|
||||
break;
|
||||
}
|
||||
bs_buf[i] = (byte)i_ret;
|
||||
}catch (IOException e){
|
||||
ms_error = "getting packet error : "+e.getMessage();
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/*
|
||||
////////////////////////////////////
|
||||
private boolean fiLog(String s_mesg){
|
||||
boolean b_retu = false;
|
||||
|
||||
FileWriter fstream = null;
|
||||
BufferedWriter fbw = null;
|
||||
try{
|
||||
fstream = new FileWriter(LOG_PATH,true);
|
||||
fbw = new BufferedWriter(fstream);
|
||||
fbw.write(s_mesg);
|
||||
fbw.newLine();
|
||||
}catch (IOException e){ }
|
||||
|
||||
try{
|
||||
if(fbw !=null) fbw.close();
|
||||
if(fstream !=null) fstream.close();
|
||||
b_retu = true;
|
||||
}catch (Exception e){}
|
||||
return b_retu;
|
||||
};
|
||||
////////////////////////////////////
|
||||
*/
|
||||
}
|
||||
|
||||
1747
src/main/java/cmm/web/CmmController.java
Normal file
1747
src/main/java/cmm/web/CmmController.java
Normal file
File diff suppressed because it is too large
Load Diff
87
src/main/java/egovframework/com/cmm/EgovMessageSource.java
Normal file
87
src/main/java/egovframework/com/cmm/EgovMessageSource.java
Normal file
@ -0,0 +1,87 @@
|
||||
package egovframework.com.cmm;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
|
||||
|
||||
/**
|
||||
* 메시지 리소스 사용을 위한 MessageSource 인터페이스 및 ReloadableResourceBundleMessageSource 클래스의 구현체
|
||||
* @author 공통서비스 개발팀 이문준
|
||||
* @since 2009.06.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.11 이문준 최초 생성
|
||||
* 2017.07.21 장동한 args, locale 설정
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
public class EgovMessageSource extends ReloadableResourceBundleMessageSource implements MessageSource {
|
||||
|
||||
private ReloadableResourceBundleMessageSource reloadableResourceBundleMessageSource;
|
||||
|
||||
/**
|
||||
* getReloadableResourceBundleMessageSource()
|
||||
* @param reloadableResourceBundleMessageSource - resource MessageSource
|
||||
* @return ReloadableResourceBundleMessageSource
|
||||
*/
|
||||
public void setReloadableResourceBundleMessageSource(ReloadableResourceBundleMessageSource reloadableResourceBundleMessageSource) {
|
||||
this.reloadableResourceBundleMessageSource = reloadableResourceBundleMessageSource;
|
||||
}
|
||||
|
||||
/**
|
||||
* getReloadableResourceBundleMessageSource()
|
||||
* @return ReloadableResourceBundleMessageSource
|
||||
*/
|
||||
public ReloadableResourceBundleMessageSource getReloadableResourceBundleMessageSource() {
|
||||
return reloadableResourceBundleMessageSource;
|
||||
}
|
||||
|
||||
/**
|
||||
* 정의된 메세지 조회
|
||||
* @param code - 메세지 코드
|
||||
* @return String
|
||||
*/
|
||||
public String getMessage(String code) {
|
||||
return getReloadableResourceBundleMessageSource().getMessage(code, null, Locale.getDefault());
|
||||
}
|
||||
|
||||
/**
|
||||
* 정의된 메세지 조회
|
||||
* @param code - 메세지 코드
|
||||
* @param locale - 로케일
|
||||
* @return String
|
||||
*/
|
||||
public String getMessage(String code, Locale locale) {
|
||||
return getReloadableResourceBundleMessageSource().getMessage(code, null, locale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 정의된 메세지 조회
|
||||
* @param code - 메세지 코드
|
||||
* @param args - 매개변수
|
||||
* @return String
|
||||
*/
|
||||
public String getMessageArgs(String code, Object[] args) {
|
||||
return getReloadableResourceBundleMessageSource().getMessage(code, args, Locale.getDefault());
|
||||
}
|
||||
|
||||
/**
|
||||
* 정의된 메세지 조회
|
||||
* @param code - 메세지 코드
|
||||
* @param args - 매개변수
|
||||
* @param locale - 로케일
|
||||
* @return String
|
||||
*/
|
||||
public String getMessageArgsLocale(String code, Object[] args, Locale locale) {
|
||||
return getReloadableResourceBundleMessageSource().getMessage(code, args, locale);
|
||||
}
|
||||
|
||||
}
|
||||
217
src/main/java/egovframework/com/cmm/service/CmmnDetailCode.java
Normal file
217
src/main/java/egovframework/com/cmm/service/CmmnDetailCode.java
Normal file
@ -0,0 +1,217 @@
|
||||
package egovframework.com.cmm.service;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 공통상세코드 모델 클래스
|
||||
* @author 공통서비스 개발팀 이중호
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.04.01 이중호 최초 생성
|
||||
* 2017.09.07 이정은 표준프레임워크 v3.7 개선(clCode 추가)
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public class CmmnDetailCode implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/*
|
||||
* 분류코드
|
||||
*/
|
||||
private String clCode = "";
|
||||
|
||||
/*
|
||||
* 코드ID
|
||||
*/
|
||||
private String codeId = "";
|
||||
|
||||
/*
|
||||
* 코드ID명
|
||||
*/
|
||||
private String codeIdNm = "";
|
||||
|
||||
/*
|
||||
* 상세코드
|
||||
*/
|
||||
private String code = "";
|
||||
|
||||
/*
|
||||
* 상세코드명
|
||||
*/
|
||||
private String codeNm = "";
|
||||
|
||||
/*
|
||||
* 상세코드설명
|
||||
*/
|
||||
private String codeDc = "";
|
||||
|
||||
/*
|
||||
* 사용여부
|
||||
*/
|
||||
private String useAt = "";
|
||||
|
||||
/*
|
||||
* 최초등록자ID
|
||||
*/
|
||||
private String frstRegisterId = "";
|
||||
|
||||
/*
|
||||
* 최종수정자ID
|
||||
*/
|
||||
private String lastUpdusrId = "";
|
||||
|
||||
|
||||
/**
|
||||
* clCode attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getClCode() {
|
||||
return clCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* clCode attribute 값을 설정한다.
|
||||
* @param clCode String
|
||||
*/
|
||||
public void setClCode(String clCode) {
|
||||
this.clCode = clCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeId attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getCodeId() {
|
||||
return codeId;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeId attribute 값을 설정한다.
|
||||
* @param codeId String
|
||||
*/
|
||||
public void setCodeId(String codeId) {
|
||||
this.codeId = codeId;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeIdNm attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getCodeIdNm() {
|
||||
return codeIdNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeIdNm attribute 값을 설정한다.
|
||||
* @param codeIdNm String
|
||||
*/
|
||||
public void setCodeIdNm(String codeIdNm) {
|
||||
this.codeIdNm = codeIdNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* code attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
/**
|
||||
* code attribute 값을 설정한다.
|
||||
* @param code String
|
||||
*/
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeNm attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getCodeNm() {
|
||||
return codeNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeNm attribute 값을 설정한다.
|
||||
* @param codeNm String
|
||||
*/
|
||||
public void setCodeNm(String codeNm) {
|
||||
this.codeNm = codeNm;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeDc attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getCodeDc() {
|
||||
return codeDc;
|
||||
}
|
||||
|
||||
/**
|
||||
* codeDc attribute 값을 설정한다.
|
||||
* @param codeDc String
|
||||
*/
|
||||
public void setCodeDc(String codeDc) {
|
||||
this.codeDc = codeDc;
|
||||
}
|
||||
|
||||
/**
|
||||
* useAt attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getUseAt() {
|
||||
return useAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* useAt attribute 값을 설정한다.
|
||||
* @param useAt String
|
||||
*/
|
||||
public void setUseAt(String useAt) {
|
||||
this.useAt = useAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getFrstRegisterId() {
|
||||
return frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* frstRegisterId attribute 값을 설정한다.
|
||||
* @param frstRegisterId String
|
||||
*/
|
||||
public void setFrstRegisterId(String frstRegisterId) {
|
||||
this.frstRegisterId = frstRegisterId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 를 리턴한다.
|
||||
* @return String
|
||||
*/
|
||||
public String getLastUpdusrId() {
|
||||
return lastUpdusrId;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdusrId attribute 값을 설정한다.
|
||||
* @param lastUpdusrId String
|
||||
*/
|
||||
public void setLastUpdusrId(String lastUpdusrId) {
|
||||
this.lastUpdusrId = lastUpdusrId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package egovframework.com.cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.com.cmm.ComDefaultCodeVO;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 공통코드등 전체 업무에서 공용해서 사용해야 하는 서비스를 정의하기 위한 서비스 인터페이스
|
||||
* @author 공통서비스 개발팀 이삼섭
|
||||
* @since 2009.04.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2009.03.11 이삼섭 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
public interface EgovCmmUseService {
|
||||
|
||||
/**
|
||||
* 공통코드를 조회한다.
|
||||
*
|
||||
* @param vo
|
||||
* @return List(코드)
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CmmnDetailCode> selectCmmCodeDetail(ComDefaultCodeVO vo) throws Exception;
|
||||
|
||||
/**
|
||||
* ComDefaultCodeVO의 리스트를 받아서 여러개의 코드 리스트를 맵에 담아서 리턴한다.
|
||||
*
|
||||
* @param voList
|
||||
* @return Map(코드)
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<String, List<CmmnDetailCode>> selectCmmCodeDetails(List<?> voList) throws Exception;
|
||||
|
||||
/**
|
||||
* 조직정보를 코드형태로 리턴한다.
|
||||
*
|
||||
* @param 조회조건정보 vo
|
||||
* @return 조직정보 List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CmmnDetailCode> selectOgrnztIdDetail(ComDefaultCodeVO vo) throws Exception;
|
||||
|
||||
/**
|
||||
* 그룹정보를 코드형태로 리턴한다.
|
||||
*
|
||||
* @param 조회조건정보 vo
|
||||
* @return 그룹정보 List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CmmnDetailCode> selectGroupIdDetail(ComDefaultCodeVO vo) throws Exception;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package egovframework.com.cmm.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface EgovUserDetailsService {
|
||||
|
||||
/**
|
||||
* 인증된 사용자객체를 VO형식으로 가져온다.
|
||||
* @return Object - 사용자 ValueObject
|
||||
*/
|
||||
public Object getAuthenticatedUser();
|
||||
|
||||
/**
|
||||
* 인증된 사용자의 권한 정보를 가져온다.
|
||||
* 예) [ROLE_ADMIN, ROLE_USER, ROLE_A, ROLE_B, ROLE_RESTRICTED, IS_AUTHENTICATED_FULLY, IS_AUTHENTICATED_REMEMBERED, IS_AUTHENTICATED_ANONYMOUSLY]
|
||||
* @return List - 사용자 권한정보 목록
|
||||
*/
|
||||
public List<String> getAuthorities();
|
||||
|
||||
/**
|
||||
* 인증된 사용자 여부를 체크한다.
|
||||
* @return Boolean - 인증된 사용자 여부(TRUE / FALSE)
|
||||
*/
|
||||
public Boolean isAuthenticated();
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package egovframework.com.cmm.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.com.cmm.ComDefaultCodeVO;
|
||||
import egovframework.com.cmm.service.CmmnDetailCode;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Class Name : CmmUseDAO.java
|
||||
* @Description : 공통코드등 전체 업무에서 공용해서 사용해야 하는 서비스를 정의하기위한 데이터 접근 클래스
|
||||
* @Modification Information
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- ------- -------------------
|
||||
* 2009. 3. 11. 이삼섭
|
||||
*
|
||||
* @author 공통 서비스 개발팀 이삼섭
|
||||
* @since 2009. 3. 11.
|
||||
* @version
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
@Repository("cmmUseDAO")
|
||||
public class CmmUseDAO extends EgovComAbstractDAO {
|
||||
|
||||
/**
|
||||
* 주어진 조건에 따른 공통코드를 불러온다.
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmnDetailCode> selectCmmCodeDetail(ComDefaultCodeVO vo) throws Exception {
|
||||
return (List<CmmnDetailCode>) list("CmmUseDAO.selectCmmCodeDetail", vo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 공통코드로 사용할 조직정보를 를 불러온다.
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmnDetailCode> selectOgrnztIdDetail(ComDefaultCodeVO vo) throws Exception {
|
||||
return (List<CmmnDetailCode>) list("CmmUseDAO.selectOgrnztIdDetail", vo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 공통코드로 사용할그룹정보를 를 불러온다.
|
||||
* @param vo
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmnDetailCode> selectGroupIdDetail(ComDefaultCodeVO vo) throws Exception {
|
||||
return (List<CmmnDetailCode>) list("CmmUseDAO.selectGroupIdDetail", vo);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,91 @@
|
||||
package egovframework.com.cmm.service.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import egovframework.com.cmm.ComDefaultCodeVO;
|
||||
import egovframework.com.cmm.service.CmmnDetailCode;
|
||||
import egovframework.com.cmm.service.EgovCmmUseService;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Class Name : EgovCmmUseServiceImpl.java
|
||||
* @Description : 공통코드등 전체 업무에서 공용해서 사용해야 하는 서비스를 정의하기위한 서비스 구현 클래스
|
||||
* @Modification Information
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- ------- -------------------
|
||||
* 2009. 3. 11. 이삼섭
|
||||
*
|
||||
* @author 공통 서비스 개발팀 이삼섭
|
||||
* @since 2009. 3. 11.
|
||||
* @version
|
||||
* @see
|
||||
*
|
||||
*/
|
||||
@Service("EgovCmmUseService")
|
||||
public class EgovCmmUseServiceImpl extends EgovAbstractServiceImpl implements EgovCmmUseService {
|
||||
|
||||
@Resource(name = "cmmUseDAO")
|
||||
private CmmUseDAO cmmUseDAO;
|
||||
|
||||
/**
|
||||
* 공통코드를 조회한다.
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CmmnDetailCode> selectCmmCodeDetail(ComDefaultCodeVO vo) throws Exception {
|
||||
return cmmUseDAO.selectCmmCodeDetail(vo);
|
||||
}
|
||||
|
||||
/**
|
||||
* ComDefaultCodeVO의 리스트를 받아서 여러개의 코드 리스트를 맵에 담아서 리턴한다.
|
||||
*
|
||||
* @param voList
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public Map<String, List<CmmnDetailCode>> selectCmmCodeDetails(List<?> voList) throws Exception {
|
||||
ComDefaultCodeVO vo;
|
||||
Map<String, List<CmmnDetailCode>> map = new HashMap<String, List<CmmnDetailCode>>();
|
||||
|
||||
Iterator<?> iter = voList.iterator();
|
||||
while (iter.hasNext()) {
|
||||
vo = (ComDefaultCodeVO)iter.next();
|
||||
map.put(vo.getCodeId(), cmmUseDAO.selectCmmCodeDetail(vo));
|
||||
}
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 조직정보를 코드형태로 리턴한다.
|
||||
*
|
||||
* @param 조회조건정보 vo
|
||||
* @return 조직정보 List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CmmnDetailCode> selectOgrnztIdDetail(ComDefaultCodeVO vo) throws Exception {
|
||||
return cmmUseDAO.selectOgrnztIdDetail(vo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 그룹정보를 코드형태로 리턴한다.
|
||||
*
|
||||
* @param 조회조건정보 vo
|
||||
* @return 그룹정보 List
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<CmmnDetailCode> selectGroupIdDetail(ComDefaultCodeVO vo) throws Exception {
|
||||
return cmmUseDAO.selectGroupIdDetail(vo);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package egovframework.com.cmm.util;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import egovframework.com.cmm.service.EgovUserDetailsService;
|
||||
|
||||
/**
|
||||
* EgovUserDetails Helper 클래스
|
||||
*
|
||||
* @author sjyoon
|
||||
* @since 2009.06.01
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- ------------- ----------------------
|
||||
* 2009.03.10 sjyoon 최초 생성
|
||||
* 2011.07.01 서준식 interface 생성후 상세 로직의 분리
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
public class EgovUserDetailsHelper {
|
||||
|
||||
static EgovUserDetailsService egovUserDetailsService;
|
||||
|
||||
public EgovUserDetailsService getEgovUserDetailsService() {
|
||||
return egovUserDetailsService;
|
||||
}
|
||||
|
||||
public void setEgovUserDetailsService(EgovUserDetailsService egovUserDetailsService) {
|
||||
EgovUserDetailsHelper.egovUserDetailsService = egovUserDetailsService;
|
||||
}
|
||||
|
||||
/**
|
||||
* 인증된 사용자객체를 VO형식으로 가져온다.
|
||||
* @return Object - 사용자 ValueObject
|
||||
*/
|
||||
public static Object getAuthenticatedUser() {
|
||||
return egovUserDetailsService.getAuthenticatedUser();
|
||||
}
|
||||
|
||||
/**
|
||||
* 인증된 사용자의 권한 정보를 가져온다.
|
||||
*
|
||||
* @return List - 사용자 권한정보 목록
|
||||
*/
|
||||
public static List<String> getAuthorities() {
|
||||
return egovUserDetailsService.getAuthorities();
|
||||
}
|
||||
|
||||
/**
|
||||
* 인증된 사용자 여부를 체크한다.
|
||||
* @return Boolean - 인증된 사용자 여부(TRUE / FALSE)
|
||||
*/
|
||||
public static Boolean isAuthenticated() {
|
||||
return egovUserDetailsService.isAuthenticated();
|
||||
}
|
||||
}
|
||||
50
src/main/java/kccf/res/service/ResourcesService.java
Normal file
50
src/main/java/kccf/res/service/ResourcesService.java
Normal file
@ -0,0 +1,50 @@
|
||||
package kccf.res.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.service.CmmCouncilInfoVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
public interface ResourcesService {
|
||||
|
||||
int selectResourcesListTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
int selectResourcesListSchTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
int selectResourcesListProvideTotCnt() throws EgovBizException;
|
||||
int selectResourcesListOpenTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
List<CmmAmsAssetMediaVO> selectResourcesList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
List<DataMap> selectCouncilList() throws EgovBizException;
|
||||
|
||||
CmmCouncilInfoVO selectCouncilInfo(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
List<DataMap> selectCouMainBannerList(DataMap param) throws EgovBizException;
|
||||
List<DataMap> selectCouMainResTagList(DataMap param) throws EgovBizException;
|
||||
List<CmmAmsAssetMediaVO> selectCouMainSeeResList(DataMap param) throws EgovBizException;
|
||||
List<CmmAmsAssetMediaVO> selectCouMainRecommendResList(DataMap param) throws EgovBizException;
|
||||
List<DataMap> selectCouMainBestYearList(DataMap param) throws EgovBizException;
|
||||
List<CmmAmsAssetMediaVO> selectCouMainYearDataList(DataMap param) throws EgovBizException;
|
||||
|
||||
|
||||
|
||||
int selectResourcesCouListTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
int selectResourcesCouListSchTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
List<CmmAmsAssetMediaVO> selectResourcesCouList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
|
||||
|
||||
|
||||
|
||||
// CmmAmsAssetMediaVO selectResourcesDetail(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCmsKeywordsVO> selectResourcesKeywordsList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCmsTagsVO> selectResourcesTagsList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCmsVO> selectResourcesThemeList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCmsVO> selectResourcesAddrList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCouncilInfoVO> selectResourcesCouncilList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCmsUserGroupVO> selectResourcesUserGroupList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<DataMap> selectResourcesRelatedThemeList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<DataMap> selectResourcesRelatedLibraryList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmnDetailCode> selectResourcesFilter(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmnDetailCode> selectResourcesFilterCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCouncilInfoVO> selectResourcesCouncilFilter(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
// List<CmmCouncilInfoVO> selectResourcesCouncilFilterCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException;
|
||||
|
||||
}
|
||||
183
src/main/java/kccf/res/service/impl/ResourcesDAO.java
Normal file
183
src/main/java/kccf/res/service/impl/ResourcesDAO.java
Normal file
@ -0,0 +1,183 @@
|
||||
package kccf.res.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.service.CmmCouncilInfoVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
|
||||
/**
|
||||
* Resources 관리에 대한 데이터 접근 클래스를 정의한다
|
||||
* @Class Name : ResourcesDAO.java
|
||||
* @author ecplaza
|
||||
* @since 2018-05-11
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
* @
|
||||
* @ 수정일 수정자 수정내용
|
||||
* @ --------- --------- -------------------------------
|
||||
* @ 2018-05-11 ecplaza 최초생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Repository("resourcesDAO")
|
||||
public class ResourcesDAO extends EgovComAbstractDAO {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectResourcesListTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectResourcesListTotCnt", cmmAmsAssetMediaVO);
|
||||
return 0; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectResourcesListSchTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectResourcesListSchTotCnt", cmmAmsAssetMediaVO);
|
||||
return 0; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectResourcesListProvideTotCnt() throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectResourcesListProvideTotCnt");
|
||||
return 0; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectResourcesListOpenTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectResourcesListOpenTotCnt", cmmAmsAssetMediaVO);
|
||||
return 0; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmAmsAssetMediaVO> selectResourcesList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
return (List<CmmAmsAssetMediaVO>)list("resourcesDAO.selectResourcesList", cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCouncilList() throws DataAccessException {
|
||||
//return (List<DataMap>)list("resourcesDAO.selectCouncilList");
|
||||
return null; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public CmmCouncilInfoVO selectCouncilInfo(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
//return (CmmCouncilInfoVO)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectCouncilInfo", cmmAmsAssetMediaVO);
|
||||
return null; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCouMainBannerList(DataMap param) throws DataAccessException {
|
||||
return (List<DataMap>)list("resourcesDAO.selectCouMainBannerList", param);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCouMainResTagList(DataMap param) throws DataAccessException {
|
||||
return (List<DataMap>)list("resourcesDAO.selectCouMainResTagList", param);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmAmsAssetMediaVO> selectCouMainSeeResList(DataMap param) throws DataAccessException {
|
||||
return (List<CmmAmsAssetMediaVO>)list("resourcesDAO.selectCouMainSeeResList", param);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmAmsAssetMediaVO> selectCouMainRecommendResList(DataMap param) throws DataAccessException {
|
||||
return (List<CmmAmsAssetMediaVO>)list("resourcesDAO.selectCouMainRecommendResList", param);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectCouMainBestYearList(DataMap param) throws DataAccessException {
|
||||
return (List<DataMap>)list("resourcesDAO.selectCouMainBestYearList", param);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmAmsAssetMediaVO> selectCouMainYearDataList(DataMap param) throws DataAccessException {
|
||||
return (List<CmmAmsAssetMediaVO>)list("resourcesDAO.selectCouMainYearDataList", param);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectResourcesCouListTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectResourcesCouListTotCnt", cmmAmsAssetMediaVO);
|
||||
return 0; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectResourcesCouListSchTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectResourcesCouListSchTotCnt", cmmAmsAssetMediaVO);
|
||||
return 0; // DDDDDDDDDDDDDD 임시 처리 (2021.08.13)
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmAmsAssetMediaVO> selectResourcesCouList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
return (List<CmmAmsAssetMediaVO>)list("resourcesDAO.selectResourcesCouList", cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
// @SuppressWarnings("deprecation")
|
||||
// public CmmAmsAssetMediaVO selectResourcesDetail(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (CmmAmsAssetMediaVO)getSqlMapClientTemplate().queryForObject("resourcesDAO.selectResourcesDetail", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCmsKeywordsVO> selectResourcesKeywordsList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCmsKeywordsVO>)list("resourcesDAO.selectResourcesKeywordsList", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCmsTagsVO> selectResourcesTagsList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCmsTagsVO>)list("resourcesDAO.selectResourcesTagsList", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCmsVO> selectResourcesThemeList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCmsVO>)list("resourcesDAO.selectResourcesThemeList",cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCmsVO> selectResourcesAddrList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCmsVO>)list("resourcesDAO.selectResourcesAddrList",cmmAmsAssetMediaVO);
|
||||
// }
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCouncilInfoVO> selectResourcesCouncilList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCouncilInfoVO>)list("resourcesDAO.selectResourcesCouncilList",cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCmsUserGroupVO> selectResourcesUserGroupList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCmsUserGroupVO>)list("resourcesDAO.selectResourcesUserGroupList",cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<DataMap> selectResourcesRelatedThemeList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<DataMap>)list("resourcesDAO.selectResourcesRelatedThemeList", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<DataMap> selectResourcesRelatedLibraryList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<DataMap>)list("resourcesDAO.selectResourcesRelatedLibraryList", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmnDetailCode> selectResourcesFilter(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmnDetailCode>)list("resourcesDAO.selectResourcesFilter", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmnDetailCode> selectResourcesFilterCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmnDetailCode>)list("resourcesDAO.selectResourcesFilterCnt", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCouncilInfoVO> selectResourcesCouncilFilter(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCouncilInfoVO>)list("resourcesDAO.selectResourcesCouncilFilter", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @SuppressWarnings("unchecked")
|
||||
// public List<CmmCouncilInfoVO> selectResourcesCouncilFilterCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws DataAccessException {
|
||||
// return (List<CmmCouncilInfoVO>)list("resourcesDAO.selectResourcesCouncilFilterCnt", cmmAmsAssetMediaVO);
|
||||
// }
|
||||
|
||||
}
|
||||
189
src/main/java/kccf/res/service/impl/ResourcesServiceImpl.java
Normal file
189
src/main/java/kccf/res/service/impl/ResourcesServiceImpl.java
Normal file
@ -0,0 +1,189 @@
|
||||
package kccf.res.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import kccf.res.service.ResourcesService;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.service.CmmCouncilInfoVO;
|
||||
import cmm.service.impl.CmmCmsServiceImpl;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
/**
|
||||
* Resources 관리에 대한 서비스 클래스를 구현한다
|
||||
* @Class Name : ResourcesServiceImpl.java
|
||||
* @author ecplaza
|
||||
* @since 2018-05-11
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@Service("resourcesService")
|
||||
public class ResourcesServiceImpl extends EgovAbstractServiceImpl implements ResourcesService{
|
||||
|
||||
/** LOGGER */
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CmmCmsServiceImpl.class);
|
||||
|
||||
/** LibraryDAO */
|
||||
@Resource(name="resourcesDAO")
|
||||
private ResourcesDAO resourcesDAO;
|
||||
|
||||
@Override
|
||||
public int selectResourcesListTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesListTotCnt(cmmAmsAssetMediaVO);
|
||||
}
|
||||
@Override
|
||||
public int selectResourcesListSchTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesListSchTotCnt(cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(value="resProvideCntCache")
|
||||
public int selectResourcesListProvideTotCnt() throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesListProvideTotCnt();
|
||||
}
|
||||
@Override
|
||||
public int selectResourcesListOpenTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesListOpenTotCnt(cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CmmAmsAssetMediaVO> selectResourcesList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesList(cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Cacheable(value="councilCache")
|
||||
public List<DataMap> selectCouncilList() throws EgovBizException {
|
||||
return resourcesDAO.selectCouncilList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CmmCouncilInfoVO selectCouncilInfo(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectCouncilInfo(cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DataMap> selectCouMainBannerList(DataMap param) throws EgovBizException {
|
||||
return (List<DataMap>)resourcesDAO.selectCouMainBannerList(param);
|
||||
}
|
||||
@Override
|
||||
public List<DataMap> selectCouMainResTagList(DataMap param) throws EgovBizException {
|
||||
return (List<DataMap>)resourcesDAO.selectCouMainResTagList(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CmmAmsAssetMediaVO> selectCouMainSeeResList(DataMap param) throws EgovBizException {
|
||||
return resourcesDAO.selectCouMainSeeResList(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CmmAmsAssetMediaVO> selectCouMainRecommendResList(DataMap param) throws EgovBizException {
|
||||
return resourcesDAO.selectCouMainRecommendResList(param);
|
||||
}
|
||||
@Override
|
||||
public List<DataMap> selectCouMainBestYearList(DataMap param) throws EgovBizException {
|
||||
return (List<DataMap>)resourcesDAO.selectCouMainBestYearList(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CmmAmsAssetMediaVO> selectCouMainYearDataList(DataMap param) throws EgovBizException {
|
||||
return resourcesDAO.selectCouMainYearDataList(param);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int selectResourcesCouListTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesCouListTotCnt(cmmAmsAssetMediaVO);
|
||||
}
|
||||
@Override
|
||||
public int selectResourcesCouListSchTotCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesCouListSchTotCnt(cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CmmAmsAssetMediaVO> selectResourcesCouList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
return resourcesDAO.selectResourcesCouList(cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public CmmAmsAssetMediaVO selectResourcesDetail(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesDetail(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCmsKeywordsVO> selectResourcesKeywordsList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesKeywordsList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCmsTagsVO> selectResourcesTagsList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesTagsList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCmsVO> selectResourcesThemeList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesThemeList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCmsVO> selectResourcesAddrList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesAddrList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCouncilInfoVO> selectResourcesCouncilList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesCouncilList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCmsUserGroupVO> selectResourcesUserGroupList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesUserGroupList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<DataMap> selectResourcesRelatedThemeList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesRelatedThemeList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<DataMap> selectResourcesRelatedLibraryList(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesRelatedLibraryList(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmnDetailCode> selectResourcesFilter(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesFilter(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmnDetailCode> selectResourcesFilterCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesFilterCnt(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCouncilInfoVO> selectResourcesCouncilFilter(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesCouncilFilter(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<CmmCouncilInfoVO> selectResourcesCouncilFilterCnt(CmmAmsAssetMediaVO cmmAmsAssetMediaVO) throws EgovBizException {
|
||||
// return resourcesDAO.selectResourcesCouncilFilterCnt(cmmAmsAssetMediaVO);
|
||||
// }
|
||||
|
||||
}
|
||||
489
src/main/java/kccf/res/web/ResourcesController.java
Normal file
489
src/main/java/kccf/res/web/ResourcesController.java
Normal file
@ -0,0 +1,489 @@
|
||||
package kccf.res.web;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import kccf.res.service.ResourcesService;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import cmm.Constant;
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.service.CmmCouncilInfoVO;
|
||||
import cmm.service.CmmMetaVO;
|
||||
import cmm.service.CmmService;
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.CmmVO;
|
||||
import cmm.util.DataMap;
|
||||
import cmm.util.DateUtil;
|
||||
import egovframework.com.cmm.ComDefaultCodeVO;
|
||||
import egovframework.com.cmm.service.EgovCmmUseService;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
|
||||
/**
|
||||
* 이용문의에 대한 controller 클래스를 구현한다.
|
||||
* @Class Name : ResourcesController.java
|
||||
* @author ecplaza
|
||||
* @since 2018-04-19
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
@Controller
|
||||
public class ResourcesController {
|
||||
|
||||
/** LOGGER */
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(ResourcesController.class);
|
||||
|
||||
/** ResourcesService */
|
||||
@Resource(name = "resourcesService")
|
||||
private ResourcesService resourcesService;
|
||||
|
||||
/** CmmService */
|
||||
@Resource(name = "cmmService")
|
||||
private CmmService cmmService;
|
||||
|
||||
/** EgovCmmUseService */
|
||||
@Resource(name="EgovCmmUseService")
|
||||
private EgovCmmUseService cmmUseService;
|
||||
|
||||
@RequestMapping(value="/res/resourcesList.do")
|
||||
public String selectResourcesList (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, BindingResult bindingResult
|
||||
, ModelMap model
|
||||
,HttpServletRequest req
|
||||
) throws Exception {
|
||||
|
||||
cmmAmsAssetMediaVO.setSearchType(CmmUtil.clearXSS(cmmAmsAssetMediaVO.getSearchType())); // XSS 방지
|
||||
cmmAmsAssetMediaVO.setSearchType3(CmmUtil.clearXSS(cmmAmsAssetMediaVO.getSearchType3())); // XSS 방지
|
||||
cmmAmsAssetMediaVO.setSearchKeyword(CmmUtil.clearXSS(cmmAmsAssetMediaVO.getSearchKeyword())); // XSS 방지
|
||||
cmmAmsAssetMediaVO.setSearchKeyword2(CmmUtil.clearXSS(cmmAmsAssetMediaVO.getSearchKeyword2())); // XSS 방지
|
||||
cmmAmsAssetMediaVO.setReSearch(CmmUtil.clearXSS(cmmAmsAssetMediaVO.getReSearch())); // XSS 방지
|
||||
|
||||
if(!StringUtils.isBlank(cmmAmsAssetMediaVO.getParameter1())){
|
||||
if(StringUtils.defaultString(cmmAmsAssetMediaVO.getParameter1()).indexOf(",") > -1) {
|
||||
cmmAmsAssetMediaVO.setCouncilList(cmmAmsAssetMediaVO.getParameter1().split(","));
|
||||
}else{
|
||||
cmmAmsAssetMediaVO.setCouncilList(new String[]{cmmAmsAssetMediaVO.getParameter1()});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!StringUtils.isBlank(cmmAmsAssetMediaVO.getParameter2())){
|
||||
if(StringUtils.defaultString(cmmAmsAssetMediaVO.getParameter2()).indexOf(",") > -1) {
|
||||
cmmAmsAssetMediaVO.setCategoryList(cmmAmsAssetMediaVO.getParameter2().split(","));
|
||||
}else{
|
||||
cmmAmsAssetMediaVO.setCategoryList(new String[]{cmmAmsAssetMediaVO.getParameter2()});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CmmUtil.setNfsPathModelMap(req,model);
|
||||
|
||||
/**** paging ****/
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(cmmAmsAssetMediaVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(cmmAmsAssetMediaVO.getPageUnit30());
|
||||
paginationInfo.setPageSize((CmmUtil.isMobile(req)) ? cmmAmsAssetMediaVO.getMobilePageSize() : cmmAmsAssetMediaVO.getPageSize());
|
||||
|
||||
cmmAmsAssetMediaVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
cmmAmsAssetMediaVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
cmmAmsAssetMediaVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
/**** paging ****/
|
||||
|
||||
//cmmAmsAssetMediaVO.setSearchUseYn(Constant.RES_SEARCHTYPE);
|
||||
//cmmAmsAssetMediaVO.setAssetClassArray(Constant.ASSETS_CLASS_ARRAY);
|
||||
int totCnt = 0;
|
||||
if((cmmAmsAssetMediaVO.getSearchStartStr() == null && cmmAmsAssetMediaVO.getSearchEndStr() == null) || StringUtils.isEmpty(cmmAmsAssetMediaVO.getTitle())){
|
||||
totCnt = resourcesService.selectResourcesListTotCnt(cmmAmsAssetMediaVO);
|
||||
}else{
|
||||
totCnt = resourcesService.selectResourcesListSchTotCnt(cmmAmsAssetMediaVO);
|
||||
}
|
||||
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
|
||||
List<CmmAmsAssetMediaVO> resultList = resourcesService.selectResourcesList(cmmAmsAssetMediaVO);
|
||||
|
||||
for(int i = 0 ; i < resultList.size() ; i++){
|
||||
CmmAmsAssetMediaVO res = resultList.get(i);
|
||||
res.setLinkUrl(CmmUtil.getLinkUrl(res.getAssetId(), res.getMediaId()));
|
||||
}
|
||||
|
||||
List<DataMap> councilList = resourcesService.selectCouncilList();
|
||||
|
||||
ComDefaultCodeVO CodeVO = new ComDefaultCodeVO();
|
||||
CodeVO.setCodeId(Constant.CODE_ID_FMS014);
|
||||
model.addAttribute("firstCategoryList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
||||
|
||||
CodeVO.setCodeId(Constant.CODE_ID_FMS015);
|
||||
model.addAttribute("secondCategoryList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
||||
|
||||
CodeVO = new ComDefaultCodeVO();
|
||||
CodeVO.setCodeId(Constant.CODE_ID_FMS018);
|
||||
model.addAttribute("couSidoList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
||||
|
||||
model.addAttribute("resultList", resultList);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
model.addAttribute("totalCnt", totCnt);
|
||||
// model.addAttribute("filterList", filterList);
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO);
|
||||
model.addAttribute("councilList", councilList);
|
||||
model.addAttribute("isMobile", CmmUtil.isMobile(req));
|
||||
// model.addAttribute("councilFilterList", councilFilterList);
|
||||
|
||||
// 메타태그정보
|
||||
CmmMetaVO metaVO = new CmmMetaVO();
|
||||
metaVO.setTitle("지방문화원자료");
|
||||
metaVO.setDescription("전국 지방문화원에서 소장하고 있는 지역문화자료 데이터를 자유롭게 열람할 수 있습니다.");
|
||||
metaVO.setUrl(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/res/resourcesList.do");
|
||||
metaVO.setImage(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/images/kccf/bg/bg-subvisual-resources.jpg");
|
||||
model.addAttribute("metaResult", metaVO);
|
||||
|
||||
return "kccf/res/resourcesList.kccf";
|
||||
}
|
||||
|
||||
/* @RequestMapping(value="/res/resourceInfo.do")
|
||||
public String selectResourceInfo (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, BindingResult bindingResult
|
||||
, ModelMap model
|
||||
,HttpServletRequest req
|
||||
) throws EgovBizException {
|
||||
|
||||
CmmUtil.setNfsPathModelMap(req,model);
|
||||
|
||||
if("".equals(cmmAmsAssetMediaVO.getSojangCouncil())){
|
||||
return "redirect:/man/main.do";
|
||||
}
|
||||
|
||||
*//**** paging ****//*
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(cmmAmsAssetMediaVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(cmmAmsAssetMediaVO.getPageUnit30());
|
||||
paginationInfo.setPageSize((CmmUtil.isMobile(req)) ? cmmAmsAssetMediaVO.getMobilePageSize() : cmmAmsAssetMediaVO.getPageSize());
|
||||
|
||||
cmmAmsAssetMediaVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
cmmAmsAssetMediaVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
cmmAmsAssetMediaVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
*//**** paging ****//*
|
||||
|
||||
int totCnt = 0;
|
||||
if(cmmAmsAssetMediaVO.getSearchStartStr() == null && cmmAmsAssetMediaVO.getSearchEndStr() == null && cmmAmsAssetMediaVO.getFirstClass().equals("") && cmmAmsAssetMediaVO.getSecondClass().equals("")){
|
||||
totCnt = resourcesService.selectResourcesListTotCnt2(cmmAmsAssetMediaVO);
|
||||
}else{
|
||||
totCnt = resourcesService.selectResourcesListSchTotCnt2(cmmAmsAssetMediaVO);
|
||||
}
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
|
||||
CmmCouncilInfoVO result = resourcesService.selectCouncilInfo(cmmAmsAssetMediaVO);
|
||||
|
||||
List<CmmAmsAssetMediaVO> resultList = resourcesService.selectResourcesList2(cmmAmsAssetMediaVO);
|
||||
|
||||
model.addAttribute("result", result);
|
||||
model.addAttribute("resultList", resultList);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
model.addAttribute("totalCnt", totCnt);
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO);
|
||||
|
||||
// 메타태그정보
|
||||
CmmMetaVO metaVO = new CmmMetaVO();
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(result.getCouncilNm())) metaVO.setTitle(result.getCouncilNm()+ " 소장자료");
|
||||
}
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(cmmAmsAssetMediaVO.getSojangCouncil())) metaVO.setUrl(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/res/resourceInfo.do?sojangCouncil="+cmmAmsAssetMediaVO.getSojangCouncil());
|
||||
}
|
||||
metaVO.setDescription("지방문화원이 생산,발굴한 독특하고 고유한 지역문화 콘텐츠 및 소장자료를 모든 국민이 향유할수 있도록 제공하는 지역문화 대표 포털");
|
||||
metaVO.setOgType("website");
|
||||
metaVO.setImage("https://www.nculture.org/images/cmm/open-graph-image.jpg");
|
||||
metaVO.setImageType("image/jpeg");
|
||||
model.addAttribute("metaResult", metaVO);
|
||||
|
||||
return "kccf/res/resourceInfo.kccf_res";
|
||||
}*/
|
||||
|
||||
@RequestMapping(value="/cou/{link_nm}")
|
||||
public String selectResourceInfo2 (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, @PathVariable("link_nm") String link_nm
|
||||
, BindingResult bindingResult
|
||||
, ModelMap model
|
||||
,HttpServletRequest req
|
||||
) throws Exception {
|
||||
|
||||
CmmUtil.setNfsPathModelMap(req,model);
|
||||
|
||||
if(StringUtils.isEmpty(link_nm)){
|
||||
return "redirect:/man/main.do";
|
||||
}
|
||||
|
||||
//문화원 정보
|
||||
cmmAmsAssetMediaVO.setLinkNm(link_nm);
|
||||
CmmCouncilInfoVO result = resourcesService.selectCouncilInfo(cmmAmsAssetMediaVO);
|
||||
model.addAttribute("result", result);
|
||||
|
||||
if(result == null){
|
||||
return "redirect:/man/main.do";
|
||||
}
|
||||
|
||||
//배너정보
|
||||
DataMap paramMap= new DataMap();
|
||||
paramMap.setString("councilCd", result.getCouncilCd());
|
||||
paramMap.setString("menuCd", Constant.CODE_ID_FMS017_M99);
|
||||
paramMap.put("bannerNowStr", DateUtil.getNowString("yyyyMMddHHmm"));
|
||||
model.addAttribute("bannerList", resourcesService.selectCouMainBannerList(paramMap));
|
||||
|
||||
//주요키워드
|
||||
model.addAttribute("resTagList", resourcesService.selectCouMainResTagList(paramMap));
|
||||
|
||||
//많이 본 자료
|
||||
List<CmmAmsAssetMediaVO> seeResList = resourcesService.selectCouMainSeeResList(paramMap);
|
||||
|
||||
for(int i = 0 ; i < seeResList.size() ; i++){
|
||||
CmmAmsAssetMediaVO res = seeResList.get(i);
|
||||
res.setLinkUrl(CmmUtil.getLinkUrl(res.getAssetId(), res.getMediaId()));
|
||||
}
|
||||
model.addAttribute("seeResList", seeResList);
|
||||
|
||||
|
||||
//많이 본 자료
|
||||
List<CmmAmsAssetMediaVO> recommendResList = resourcesService.selectCouMainRecommendResList(paramMap);
|
||||
|
||||
for(int i = 0 ; i < recommendResList.size() ; i++){
|
||||
CmmAmsAssetMediaVO res = recommendResList.get(i);
|
||||
res.setLinkUrl(CmmUtil.getLinkUrl(res.getAssetId(), res.getMediaId()));
|
||||
}
|
||||
model.addAttribute("recommendResList", recommendResList);
|
||||
|
||||
//연도별 인기자료(년도)
|
||||
model.addAttribute("bestYearList", resourcesService.selectCouMainBestYearList(paramMap));
|
||||
|
||||
ComDefaultCodeVO CodeVO = new ComDefaultCodeVO();
|
||||
CodeVO.setCodeId(Constant.CODE_ID_FMS014);
|
||||
model.addAttribute("firstCategoryList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
||||
|
||||
CodeVO = new ComDefaultCodeVO();
|
||||
CodeVO.setCodeId(Constant.CODE_ID_FMS012);
|
||||
model.addAttribute("firstClassList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
||||
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO);
|
||||
|
||||
// 메타태그정보
|
||||
CmmMetaVO metaVO = new CmmMetaVO();
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(result.getCouncilNm())) metaVO.setTitle(result.getCouncilNm()+ " 소장자료");
|
||||
}
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(result.getCouncilNm())) metaVO.setUrl(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/cou/"+link_nm);
|
||||
}
|
||||
metaVO.setDescription("지방문화원이 생산,발굴한 독특하고 고유한 지역문화 콘텐츠 및 소장자료를 모든 국민이 향유할수 있도록 제공하는 지역문화 대표 포털");
|
||||
metaVO.setOgType("website");
|
||||
metaVO.setImage("https://www.nculture.org/images/cmm/open-graph-image.jpg");
|
||||
metaVO.setImageType("image/jpeg");
|
||||
model.addAttribute("metaResult", metaVO);
|
||||
|
||||
return "kccf/res/resourceInfo.kccf_res";
|
||||
}
|
||||
|
||||
@RequestMapping(value="/res/mainYearBestList-data.do")
|
||||
public String selectLocalCultureListAjax (
|
||||
@ModelAttribute("cmmVO") CmmVO cmmVO
|
||||
, ModelMap model
|
||||
, @RequestParam Map<String, Object> commandMap
|
||||
, HttpServletRequest req
|
||||
, HttpServletResponse res
|
||||
) throws Exception {
|
||||
|
||||
model.addAttribute("paramVO", cmmVO);
|
||||
|
||||
DataMap paramMap = new DataMap();
|
||||
paramMap.setString("councilCd", cmmVO.getsCouncilCd());
|
||||
paramMap.setString("yyyy", cmmVO.getSearchCondition());
|
||||
|
||||
//년도별 인기자료
|
||||
List<CmmAmsAssetMediaVO> yearDataList = resourcesService.selectCouMainYearDataList(paramMap);
|
||||
|
||||
for(int i = 0 ; i < yearDataList.size() ; i++){
|
||||
CmmAmsAssetMediaVO yearData = yearDataList.get(i);
|
||||
yearData.setLinkUrl(CmmUtil.getLinkUrl(yearData.getAssetId(), yearData.getMediaId()));
|
||||
}
|
||||
model.addAttribute("yearDataList", yearDataList);
|
||||
|
||||
paramMap.setString("jsessionId", CmmUtil.getCookieId(req));
|
||||
CmmUtil.setAmsPathModelMap(req,model);
|
||||
|
||||
return "kccf/res/resourceYearBestListAjax";
|
||||
}
|
||||
|
||||
@RequestMapping(value="/res/resourceCouList.do")
|
||||
public String selectResourceCouList (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, BindingResult bindingResult
|
||||
, ModelMap model
|
||||
,HttpServletRequest req
|
||||
) throws Exception {
|
||||
|
||||
CmmUtil.setNfsPathModelMap(req,model);
|
||||
|
||||
//태그검색 후 일반검색시 태그검색값 초기화
|
||||
if(!StringUtils.isBlank(cmmAmsAssetMediaVO.getSearchKeyword())){
|
||||
cmmAmsAssetMediaVO.setTagsName("");
|
||||
}
|
||||
|
||||
if("".equals(cmmAmsAssetMediaVO.getSojangCouncil())){
|
||||
return "redirect:/man/main.do";
|
||||
}
|
||||
|
||||
/**** paging ****/
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(cmmAmsAssetMediaVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(cmmAmsAssetMediaVO.getPageUnit30());
|
||||
paginationInfo.setPageSize((CmmUtil.isMobile(req)) ? cmmAmsAssetMediaVO.getMobilePageSize() : cmmAmsAssetMediaVO.getPageSize());
|
||||
|
||||
cmmAmsAssetMediaVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
cmmAmsAssetMediaVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
cmmAmsAssetMediaVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
/**** paging ****/
|
||||
|
||||
if(!StringUtils.isBlank(cmmAmsAssetMediaVO.getParameter1())){
|
||||
if(StringUtils.defaultString(cmmAmsAssetMediaVO.getParameter1()).indexOf(",") > -1) {
|
||||
cmmAmsAssetMediaVO.setCategoryList(cmmAmsAssetMediaVO.getParameter1().split(","));
|
||||
}else{
|
||||
cmmAmsAssetMediaVO.setCategoryList(new String[]{cmmAmsAssetMediaVO.getParameter1()});
|
||||
}
|
||||
}
|
||||
|
||||
if(!StringUtils.isBlank(cmmAmsAssetMediaVO.getParameter2())){
|
||||
if(StringUtils.defaultString(cmmAmsAssetMediaVO.getParameter2()).indexOf(",") > -1) {
|
||||
cmmAmsAssetMediaVO.setClassList(cmmAmsAssetMediaVO.getParameter2().split(","));
|
||||
}else{
|
||||
cmmAmsAssetMediaVO.setClassList(new String[]{cmmAmsAssetMediaVO.getParameter2()});
|
||||
}
|
||||
}
|
||||
|
||||
int totCnt = 0;
|
||||
if(cmmAmsAssetMediaVO.getParameter1().equals("") && cmmAmsAssetMediaVO.getParameter2().equals("") && cmmAmsAssetMediaVO.getSearchKeyword().equals("") && cmmAmsAssetMediaVO.getTagsName().equals("")){
|
||||
totCnt = resourcesService.selectResourcesCouListTotCnt(cmmAmsAssetMediaVO);
|
||||
}else{
|
||||
totCnt = resourcesService.selectResourcesCouListSchTotCnt(cmmAmsAssetMediaVO);
|
||||
}
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
|
||||
CmmCouncilInfoVO result = resourcesService.selectCouncilInfo(cmmAmsAssetMediaVO);
|
||||
|
||||
List<CmmAmsAssetMediaVO> resultList = resourcesService.selectResourcesCouList(cmmAmsAssetMediaVO);
|
||||
for(int i = 0 ; i < resultList.size() ; i++){
|
||||
CmmAmsAssetMediaVO res = resultList.get(i);
|
||||
res.setLinkUrl(CmmUtil.getLinkUrl(res.getAssetId(), res.getMediaId()));
|
||||
}
|
||||
|
||||
ComDefaultCodeVO CodeVO = new ComDefaultCodeVO();
|
||||
CodeVO.setCodeId(Constant.CODE_ID_FMS014);
|
||||
model.addAttribute("firstCategoryList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
||||
|
||||
CodeVO = new ComDefaultCodeVO();
|
||||
CodeVO.setCodeId(Constant.CODE_ID_FMS012);
|
||||
model.addAttribute("firstClassList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
||||
|
||||
model.addAttribute("result", result);
|
||||
model.addAttribute("resultList", resultList);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
model.addAttribute("totalCnt", totCnt);
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO);
|
||||
|
||||
// 메타태그정보
|
||||
CmmMetaVO metaVO = new CmmMetaVO();
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(result.getCouncilNm())) metaVO.setTitle(result.getCouncilNm()+ " 소장자료");
|
||||
}
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(cmmAmsAssetMediaVO.getSojangCouncil())) metaVO.setUrl(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/res/resourceCouList.do?sojangCouncil="+cmmAmsAssetMediaVO.getSojangCouncil());
|
||||
}
|
||||
metaVO.setDescription("지방문화원이 생산,발굴한 독특하고 고유한 지역문화 콘텐츠 및 소장자료를 모든 국민이 향유할수 있도록 제공하는 지역문화 대표 포털");
|
||||
metaVO.setOgType("website");
|
||||
metaVO.setImage("https://www.nculture.org/images/cmm/open-graph-image.jpg");
|
||||
metaVO.setImageType("image/jpeg");
|
||||
model.addAttribute("metaResult", metaVO);
|
||||
|
||||
return "kccf/res/resourceCouList.kccf_res";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* @RequestMapping(value="/cou/{link_nm}")
|
||||
public String selectResourceInfo2 (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, @PathVariable("link_nm") String link_nm
|
||||
, BindingResult bindingResult
|
||||
, ModelMap model
|
||||
,HttpServletRequest req
|
||||
) throws EgovBizException {
|
||||
|
||||
CmmUtil.setNfsPathModelMap(req,model);
|
||||
|
||||
if(StringUtils.isEmpty(link_nm)){
|
||||
return "redirect:/man/main.do";
|
||||
}
|
||||
cmmAmsAssetMediaVO.setLinkNm(link_nm);
|
||||
*//**** paging ****//*
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(cmmAmsAssetMediaVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(cmmAmsAssetMediaVO.getPageUnit30());
|
||||
paginationInfo.setPageSize((CmmUtil.isMobile(req)) ? cmmAmsAssetMediaVO.getMobilePageSize() : cmmAmsAssetMediaVO.getPageSize());
|
||||
|
||||
cmmAmsAssetMediaVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
cmmAmsAssetMediaVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
cmmAmsAssetMediaVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
*//**** paging ****//*
|
||||
|
||||
int totCnt = 0;
|
||||
if(cmmAmsAssetMediaVO.getSearchStartStr() == null && cmmAmsAssetMediaVO.getSearchEndStr() == null && cmmAmsAssetMediaVO.getFirstClass().equals("") && cmmAmsAssetMediaVO.getSecondClass().equals("")){
|
||||
totCnt = resourcesService.selectResourcesListTotCnt2(cmmAmsAssetMediaVO);
|
||||
}else{
|
||||
totCnt = resourcesService.selectResourcesListSchTotCnt2(cmmAmsAssetMediaVO);
|
||||
}
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
|
||||
CmmCouncilInfoVO result = resourcesService.selectCouncilInfo(cmmAmsAssetMediaVO);
|
||||
|
||||
List<CmmAmsAssetMediaVO> resultList = resourcesService.selectResourcesList2(cmmAmsAssetMediaVO);
|
||||
|
||||
model.addAttribute("result", result);
|
||||
model.addAttribute("resultList", resultList);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
model.addAttribute("totalCnt", totCnt);
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO);
|
||||
|
||||
// 메타태그정보
|
||||
CmmMetaVO metaVO = new CmmMetaVO();
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(result.getCouncilNm())) metaVO.setTitle(result.getCouncilNm()+ " 소장자료");
|
||||
}
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(cmmAmsAssetMediaVO.getSojangCouncil())) metaVO.setUrl(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/res/resourceInfo.do?sojangCouncil="+cmmAmsAssetMediaVO.getSojangCouncil());
|
||||
}
|
||||
metaVO.setDescription("지방문화원이 생산,발굴한 독특하고 고유한 지역문화 콘텐츠 및 소장자료를 모든 국민이 향유할수 있도록 제공하는 지역문화 대표 포털");
|
||||
metaVO.setOgType("website");
|
||||
metaVO.setImage("https://www.nculture.org/images/cmm/open-graph-image.jpg");
|
||||
metaVO.setImageType("image/jpeg");
|
||||
model.addAttribute("metaResult", metaVO);
|
||||
|
||||
return "kccf/res/resourceInfo.kccf_res";
|
||||
}*/
|
||||
|
||||
}
|
||||
@ -45,6 +45,7 @@ import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonObject;
|
||||
|
||||
import egovframework.com.cmm.ComDefaultCodeVO;
|
||||
import egovframework.com.cmm.service.EgovCmmUseService;
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
//추가
|
||||
@ -73,6 +74,10 @@ public class SearchController {
|
||||
/** CmmService */
|
||||
@Resource(name = "cmmService")
|
||||
private CmmService cmmService;
|
||||
|
||||
/** EgovCmmUseService */
|
||||
@Resource(name = "EgovCmmUseService")
|
||||
private EgovCmmUseService cmmUseService;
|
||||
|
||||
/** resourcesService */
|
||||
@Resource(name = "resourcesService")
|
||||
|
||||
21
src/main/java/kccf/ton/service/LocalToonService.java
Normal file
21
src/main/java/kccf/ton/service/LocalToonService.java
Normal file
@ -0,0 +1,21 @@
|
||||
package kccf.ton.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cmm.service.CmmActivityHstVO;
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
public interface LocalToonService {
|
||||
List<CmmAmsAssetMediaVO> selectLocalToonTopList(CmmAmsAssetMediaVO param) throws EgovBizException;
|
||||
int selectLocalToonListTotCnt(CmmAmsAssetMediaVO param) throws EgovBizException;
|
||||
List<CmmAmsAssetMediaVO> selectLocalToonList(CmmAmsAssetMediaVO param) throws EgovBizException;
|
||||
List<CmmActivityHstVO> selectLocalToonOpenPageList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
List<CmmActivityHstVO> selectLocalToonOpenPageHotList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
CmmAmsAssetMediaVO selectLocalToonDetail(CmmAmsAssetMediaVO param) throws EgovBizException;
|
||||
int selectLocalToonDetailListTotCnt(CmmAmsAssetMediaVO param) throws EgovBizException;
|
||||
List<DataMap> selectLocalToonDetailList(CmmAmsAssetMediaVO param) throws EgovBizException;
|
||||
List<CmmActivityHstVO> selectLocalToonOpenPageDetailList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException;
|
||||
List<DataMap> selectLocalToonDetailListAll(CmmAmsAssetMediaVO param) throws EgovBizException;
|
||||
}
|
||||
251
src/main/java/kccf/ton/service/LocalToonVO.java
Normal file
251
src/main/java/kccf/ton/service/LocalToonVO.java
Normal file
@ -0,0 +1,251 @@
|
||||
package kccf.ton.service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
|
||||
import cmm.util.CmmVO;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class LocalToonVO extends CmmVO{
|
||||
|
||||
private String id = "";
|
||||
private String contType = "";
|
||||
private String contentId = "";
|
||||
private String contentType = "";
|
||||
private String contentTypeId = "";
|
||||
private String contentTypeName = "";
|
||||
private String cat1 = "";
|
||||
private String cat1Name = "";
|
||||
private String cat2 = "";
|
||||
private String cat2Name = "";
|
||||
private String cat3 = "";
|
||||
private String cat3Name = "";
|
||||
private String title = "";
|
||||
private String summary = "";
|
||||
private String zipCode = "";
|
||||
private String tel = "";
|
||||
private String mainImage = "";
|
||||
private String latitude = "";
|
||||
private String longitude = "";
|
||||
private String sidoName = "";
|
||||
private String sigunguName = "";
|
||||
private String addr1 = "";
|
||||
private String addr2 = "";
|
||||
private String ntceBgnde = "";
|
||||
private String ntceEndde = "";
|
||||
private String website = "";
|
||||
private Date createdTime = null;
|
||||
private Date modifiedTime = null;
|
||||
|
||||
private String [] categoryArray1;
|
||||
private String [] categoryArray2;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getContType() {
|
||||
return contType;
|
||||
}
|
||||
public void setContType(String contType) {
|
||||
this.contType = contType;
|
||||
}
|
||||
public String getContentId() {
|
||||
return contentId;
|
||||
}
|
||||
public void setContentId(String contentId) {
|
||||
this.contentId = contentId;
|
||||
}
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
public String getContentTypeId() {
|
||||
return contentTypeId;
|
||||
}
|
||||
public void setContentTypeId(String contentTypeId) {
|
||||
this.contentTypeId = contentTypeId;
|
||||
}
|
||||
public String getContentTypeName() {
|
||||
return contentTypeName;
|
||||
}
|
||||
public void setContentTypeName(String contentTypeName) {
|
||||
this.contentTypeName = contentTypeName;
|
||||
}
|
||||
public String getCat1() {
|
||||
return cat1;
|
||||
}
|
||||
public void setCat1(String cat1) {
|
||||
this.cat1 = cat1;
|
||||
}
|
||||
public String getCat1Name() {
|
||||
return cat1Name;
|
||||
}
|
||||
public void setCat1Name(String cat1Name) {
|
||||
this.cat1Name = cat1Name;
|
||||
}
|
||||
public String getCat2() {
|
||||
return cat2;
|
||||
}
|
||||
public void setCat2(String cat2) {
|
||||
this.cat2 = cat2;
|
||||
}
|
||||
public String getCat2Name() {
|
||||
return cat2Name;
|
||||
}
|
||||
public void setCat2Name(String cat2Name) {
|
||||
this.cat2Name = cat2Name;
|
||||
}
|
||||
public String getCat3() {
|
||||
return cat3;
|
||||
}
|
||||
public void setCat3(String cat3) {
|
||||
this.cat3 = cat3;
|
||||
}
|
||||
public String getCat3Name() {
|
||||
return cat3Name;
|
||||
}
|
||||
public void setCat3Name(String cat3Name) {
|
||||
this.cat3Name = cat3Name;
|
||||
}
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
public String getZipCode() {
|
||||
return zipCode;
|
||||
}
|
||||
public void setZipCode(String zipCode) {
|
||||
this.zipCode = zipCode;
|
||||
}
|
||||
public String getTel() {
|
||||
return tel;
|
||||
}
|
||||
public void setTel(String tel) {
|
||||
this.tel = tel;
|
||||
}
|
||||
public String getMainImage() {
|
||||
return mainImage;
|
||||
}
|
||||
public void setMainImage(String mainImage) {
|
||||
this.mainImage = mainImage;
|
||||
}
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
public String getSidoName() {
|
||||
return sidoName;
|
||||
}
|
||||
public void setSidoName(String sidoName) {
|
||||
this.sidoName = sidoName;
|
||||
}
|
||||
public String getSigunguName() {
|
||||
return sigunguName;
|
||||
}
|
||||
public void setSigunguName(String sigunguName) {
|
||||
this.sigunguName = sigunguName;
|
||||
}
|
||||
public String getAddr1() {
|
||||
return addr1;
|
||||
}
|
||||
public void setAddr1(String addr1) {
|
||||
this.addr1 = addr1;
|
||||
}
|
||||
public String getAddr2() {
|
||||
return addr2;
|
||||
}
|
||||
public void setAddr2(String addr2) {
|
||||
this.addr2 = addr2;
|
||||
}
|
||||
public String getNtceBgnde() {
|
||||
return ntceBgnde;
|
||||
}
|
||||
public void setNtceBgnde(String ntceBgnde) {
|
||||
this.ntceBgnde = ntceBgnde;
|
||||
}
|
||||
public String getNtceEndde() {
|
||||
return ntceEndde;
|
||||
}
|
||||
public void setNtceEndde(String ntceEndde) {
|
||||
this.ntceEndde = ntceEndde;
|
||||
}
|
||||
public String getWebsite() {
|
||||
return website;
|
||||
}
|
||||
public void setWebsite(String website) {
|
||||
this.website = website;
|
||||
}
|
||||
public Date getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
public void setCreatedTime(Date createdTime) {
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
public Date getModifiedTime() {
|
||||
return modifiedTime;
|
||||
}
|
||||
public void setModifiedTime(Date modifiedTime) {
|
||||
this.modifiedTime = modifiedTime;
|
||||
}
|
||||
public String[] getCategoryArray1() {
|
||||
String[] ret = null;
|
||||
if(this.categoryArray1 != null){
|
||||
ret = new String[categoryArray1.length];
|
||||
ret = this.categoryArray1;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCategoryArray1(String[] categoryArray1) {
|
||||
this.categoryArray1 = new String[categoryArray1.length];
|
||||
for(int i=0; i<categoryArray1.length; ++i) {
|
||||
this.categoryArray1[i] = categoryArray1[i];
|
||||
}
|
||||
}
|
||||
|
||||
public String[] getCategoryArray2() {
|
||||
String[] ret = null;
|
||||
if(this.categoryArray2 != null){
|
||||
ret = new String[categoryArray2.length];
|
||||
ret = this.categoryArray2;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void setCategoryArray2(String[] categoryArray2) {
|
||||
this.categoryArray2 = new String[categoryArray2.length];
|
||||
for(int i=0; i<categoryArray2.length; ++i) {
|
||||
this.categoryArray2[i] = categoryArray2[i];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* toString
|
||||
* @return String
|
||||
*/
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this);
|
||||
}
|
||||
}
|
||||
60
src/main/java/kccf/ton/service/impl/LocalToonDAO.java
Normal file
60
src/main/java/kccf/ton/service/impl/LocalToonDAO.java
Normal file
@ -0,0 +1,60 @@
|
||||
package kccf.ton.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import cmm.service.CmmActivityHstVO;
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
|
||||
|
||||
|
||||
@Repository("localToonDAO")
|
||||
public class LocalToonDAO extends EgovComAbstractDAO{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmAmsAssetMediaVO> selectLocalToonTopList(CmmAmsAssetMediaVO param) throws DataAccessException {
|
||||
return (List<CmmAmsAssetMediaVO>)list("localToonDAO.selectLocalToonTopList", param);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectLocalToonListTotCnt(CmmAmsAssetMediaVO param) throws DataAccessException{
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("localToonDAO.selectLocalToonListTotCnt", param);
|
||||
return 0; // DDDDDDDDD 임시 리턴값 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmAmsAssetMediaVO> selectLocalToonList(CmmAmsAssetMediaVO param) throws DataAccessException {
|
||||
return (List<CmmAmsAssetMediaVO>)list("localToonDAO.selectLocalToonList", param);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmActivityHstVO> selectLocalToonOpenPageList(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException {
|
||||
return (List<CmmActivityHstVO>)list("localToonDAO.selectLocalToonOpenPageList",cmmActivityHstVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmActivityHstVO> selectLocalToonOpenPageHotList(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException {
|
||||
return (List<CmmActivityHstVO>)list("localToonDAO.selectLocalToonOpenPageHotList",cmmActivityHstVO);
|
||||
}
|
||||
public CmmAmsAssetMediaVO selectLocalToonDetail(CmmAmsAssetMediaVO param) throws DataAccessException{
|
||||
//return (CmmAmsAssetMediaVO)select("localToonDAO.selectLocalToonDetail", param);
|
||||
return null; // DDDDDDDDD 임시 리턴값 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
public int selectLocalToonDetailListTotCnt(CmmAmsAssetMediaVO param) throws DataAccessException{
|
||||
//return (Integer)getSqlMapClientTemplate().queryForObject("localToonDAO.selectLocalToonDetailListTotCnt", param);
|
||||
return 0; // DDDDDDDDD 임시 리턴값 처리 (2021.08.13)
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectLocalToonDetailList(CmmAmsAssetMediaVO param) throws DataAccessException {
|
||||
return (List<DataMap>)list("localToonDAO.selectLocalToonDetailList", param);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<CmmActivityHstVO> selectLocalToonOpenPageDetailList(CmmActivityHstVO cmmActivityHstVO) throws DataAccessException {
|
||||
return (List<CmmActivityHstVO>)list("localToonDAO.selectLocalToonOpenPageDetailList",cmmActivityHstVO);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<DataMap> selectLocalToonDetailListAll(CmmAmsAssetMediaVO param) throws DataAccessException {
|
||||
return (List<DataMap>)list("localToonDAO.selectLocalToonDetailListAll", param);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package kccf.ton.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import kccf.ton.service.LocalToonService;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import cmm.service.CmmActivityHstVO;
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
|
||||
@Service("localToonService")
|
||||
public class LocalToonServiceImpl extends EgovAbstractServiceImpl implements LocalToonService{
|
||||
/** LOGGER */
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(LocalToonServiceImpl.class);
|
||||
|
||||
/** localToonDAO */
|
||||
@Resource(name="localToonDAO")
|
||||
private LocalToonDAO localToonDAO;
|
||||
|
||||
@Override
|
||||
public List<CmmAmsAssetMediaVO> selectLocalToonTopList(CmmAmsAssetMediaVO param) throws EgovBizException {
|
||||
return (List<CmmAmsAssetMediaVO>)localToonDAO.selectLocalToonTopList(param);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int selectLocalToonListTotCnt(CmmAmsAssetMediaVO param) throws EgovBizException {
|
||||
return (Integer)localToonDAO.selectLocalToonListTotCnt(param);
|
||||
}
|
||||
@Override
|
||||
public List<CmmAmsAssetMediaVO> selectLocalToonList(CmmAmsAssetMediaVO param) throws EgovBizException {
|
||||
return (List<CmmAmsAssetMediaVO>)localToonDAO.selectLocalToonList(param);
|
||||
}
|
||||
public List<CmmActivityHstVO> selectLocalToonOpenPageList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (List<CmmActivityHstVO>)localToonDAO.selectLocalToonOpenPageList(cmmActivityHstVO);
|
||||
}
|
||||
public List<CmmActivityHstVO> selectLocalToonOpenPageHotList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (List<CmmActivityHstVO>)localToonDAO.selectLocalToonOpenPageHotList(cmmActivityHstVO);
|
||||
}
|
||||
@Override
|
||||
public CmmAmsAssetMediaVO selectLocalToonDetail(CmmAmsAssetMediaVO param) throws EgovBizException {
|
||||
return (CmmAmsAssetMediaVO)localToonDAO.selectLocalToonDetail(param);
|
||||
}
|
||||
@Override
|
||||
public int selectLocalToonDetailListTotCnt(CmmAmsAssetMediaVO param) throws EgovBizException {
|
||||
return (Integer)localToonDAO.selectLocalToonDetailListTotCnt(param);
|
||||
}
|
||||
|
||||
public List<DataMap> selectLocalToonDetailList(CmmAmsAssetMediaVO param) throws EgovBizException {
|
||||
return (List<DataMap>)localToonDAO.selectLocalToonDetailList(param);
|
||||
}
|
||||
public List<CmmActivityHstVO> selectLocalToonOpenPageDetailList(CmmActivityHstVO cmmActivityHstVO) throws EgovBizException{
|
||||
return (List<CmmActivityHstVO>)localToonDAO.selectLocalToonOpenPageDetailList(cmmActivityHstVO);
|
||||
}
|
||||
public List<DataMap> selectLocalToonDetailListAll(CmmAmsAssetMediaVO param) throws EgovBizException {
|
||||
return (List<DataMap>)localToonDAO.selectLocalToonDetailListAll(param);
|
||||
}
|
||||
|
||||
}
|
||||
242
src/main/java/kccf/ton/web/LocalToonController.java
Normal file
242
src/main/java/kccf/ton/web/LocalToonController.java
Normal file
@ -0,0 +1,242 @@
|
||||
package kccf.ton.web;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import kccf.ton.service.LocalToonService;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import cmm.Constant;
|
||||
import cmm.service.CmmActivityHstVO;
|
||||
import cmm.service.CmmAmsAssetMediaVO;
|
||||
import cmm.service.CmmAmsAssetsVO;
|
||||
import cmm.service.CmmAmsDocTableOfContentsVO;
|
||||
import cmm.service.CmmCmsContentsVO;
|
||||
import cmm.service.CmmMetaVO;
|
||||
import cmm.service.CmmService;
|
||||
import cmm.service.ExtService;
|
||||
import cmm.util.CmmUtil;
|
||||
import cmm.util.DataMap;
|
||||
import egovframework.com.cmm.EgovMessageSource;
|
||||
import egovframework.rte.fdl.cmmn.exception.EgovBizException;
|
||||
import egovframework.rte.fdl.property.EgovPropertyService;
|
||||
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
||||
|
||||
|
||||
|
||||
@Controller
|
||||
public class LocalToonController {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(LocalToonController.class);
|
||||
|
||||
@Resource(name = "propertiesService")
|
||||
protected EgovPropertyService propertiesService;
|
||||
|
||||
@Resource(name="egovMessageSource")
|
||||
EgovMessageSource egovMessageSource;
|
||||
|
||||
@Resource(name = "localToonService")
|
||||
private LocalToonService localToonService;
|
||||
|
||||
@Resource(name = "extService")
|
||||
private ExtService extService;
|
||||
|
||||
@Resource(name = "cmmService")
|
||||
private CmmService cmmService;
|
||||
|
||||
@RequestMapping(value="/ton/localToonList.do")
|
||||
public String selectLocalToonList (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, ModelMap model
|
||||
, HttpServletRequest req
|
||||
, HttpServletResponse res
|
||||
) throws EgovBizException {
|
||||
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO);
|
||||
|
||||
/**** paging ****/
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(cmmAmsAssetMediaVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(cmmAmsAssetMediaVO.getPageUnit());
|
||||
paginationInfo.setPageSize((CmmUtil.isMobile(req)) ? cmmAmsAssetMediaVO.getMobilePageSize() : cmmAmsAssetMediaVO.getPageSize());
|
||||
|
||||
cmmAmsAssetMediaVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
cmmAmsAssetMediaVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
cmmAmsAssetMediaVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
/**** paging ****/
|
||||
|
||||
|
||||
// 키
|
||||
cmmAmsAssetMediaVO.setSessionId(CmmUtil.getCookieId(req));
|
||||
// 이달의 툰
|
||||
model.addAttribute("resultTopList", localToonService.selectLocalToonTopList(cmmAmsAssetMediaVO));
|
||||
// 지역문화툰
|
||||
int totCnt = localToonService.selectLocalToonListTotCnt(cmmAmsAssetMediaVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
model.addAttribute("resultList", localToonService.selectLocalToonList(cmmAmsAssetMediaVO));
|
||||
model.addAttribute("totCnt", totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
// 최근열람툰
|
||||
CmmActivityHstVO cmmActivityHstVO = new CmmActivityHstVO();
|
||||
cmmActivityHstVO.setTargetId(CmmUtil.getCookieId(req));
|
||||
cmmActivityHstVO.setUaType(Constant.UA_TYPE_W);
|
||||
cmmActivityHstVO.setActivityType(Constant.ACTIVITY_TYPE_O);
|
||||
cmmActivityHstVO.setContentType(Constant.CONTENT_TYPE_T);
|
||||
model.addAttribute("openPageList", localToonService.selectLocalToonOpenPageList(cmmActivityHstVO));
|
||||
model.addAttribute("openPageHotList", localToonService.selectLocalToonOpenPageHotList(cmmActivityHstVO));
|
||||
|
||||
// 메타태그정보
|
||||
CmmMetaVO metaVO = new CmmMetaVO();
|
||||
metaVO.setTitle("지역문화툰");
|
||||
metaVO.setDescription("지역문화와 관련된 다양한 이야기와 정보로 재미있게 구성된 웹툰을 만나실 수 있습니다.");
|
||||
metaVO.setUrl(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/ton/localToonList.do");
|
||||
metaVO.setImage(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/images/kccf/bg/bg-subvisual-toon.jpg");
|
||||
model.addAttribute("metaResult", metaVO);
|
||||
|
||||
return "kccf/ton/localToonList.kccf";
|
||||
}
|
||||
|
||||
@RequestMapping(value="/ton/openPageList-data.do")
|
||||
public ModelAndView selectOpenPageListAjax (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, ModelMap model
|
||||
, HttpServletRequest req
|
||||
, HttpServletResponse res
|
||||
) throws EgovBizException {
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView();
|
||||
modelAndView.setViewName("jsonView");
|
||||
|
||||
CmmActivityHstVO cmmActivityHstVO = new CmmActivityHstVO();
|
||||
cmmActivityHstVO.setTargetId(CmmUtil.getCookieId(req));
|
||||
cmmActivityHstVO.setUaType(Constant.UA_TYPE_W);
|
||||
cmmActivityHstVO.setActivityType(Constant.ACTIVITY_TYPE_O);
|
||||
cmmActivityHstVO.setContentType(Constant.CONTENT_TYPE_T);
|
||||
|
||||
DataMap responseMap = new DataMap();
|
||||
|
||||
responseMap.put("contentsList", localToonService.selectLocalToonOpenPageList(cmmActivityHstVO));
|
||||
model.addAttribute("responseData", responseMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value="/ton/localToonDetailList.do")
|
||||
public String selectLocalToonDetailList (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, ModelMap model
|
||||
, HttpServletRequest req
|
||||
, HttpServletResponse res
|
||||
) throws EgovBizException {
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO);
|
||||
|
||||
model.addAttribute("cookieId", CmmUtil.getCookieId(req));
|
||||
CmmUtil.setNfsPathModelMap(req,model);
|
||||
|
||||
cmmAmsAssetMediaVO.setMediaId(cmmAmsAssetMediaVO.getContentId());
|
||||
CmmAmsAssetMediaVO result = localToonService.selectLocalToonDetail(cmmAmsAssetMediaVO);
|
||||
model.addAttribute("result", result);
|
||||
|
||||
/**** paging ****/
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(cmmAmsAssetMediaVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(cmmAmsAssetMediaVO.getPageUnit());
|
||||
paginationInfo.setPageSize((CmmUtil.isMobile(req)) ? cmmAmsAssetMediaVO.getMobilePageSize() : cmmAmsAssetMediaVO.getPageSize());
|
||||
|
||||
cmmAmsAssetMediaVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
cmmAmsAssetMediaVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
cmmAmsAssetMediaVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
/**** paging ****/
|
||||
// 키
|
||||
cmmAmsAssetMediaVO.setSessionId(CmmUtil.getCookieId(req));
|
||||
|
||||
cmmAmsAssetMediaVO.setAssetId(result.getAssetId());
|
||||
int totCnt = localToonService.selectLocalToonDetailListTotCnt(cmmAmsAssetMediaVO);
|
||||
paginationInfo.setTotalRecordCount(totCnt);
|
||||
List<DataMap> resultList = localToonService.selectLocalToonDetailList(cmmAmsAssetMediaVO);
|
||||
model.addAttribute("resultList", resultList);
|
||||
model.addAttribute("totCnt", totCnt);
|
||||
model.addAttribute("paginationInfo", paginationInfo);
|
||||
|
||||
// 최근열람툰
|
||||
CmmActivityHstVO cmmActivityHstVO = new CmmActivityHstVO();
|
||||
cmmActivityHstVO.setTargetId(CmmUtil.getCookieId(req));
|
||||
cmmActivityHstVO.setUaType(Constant.UA_TYPE_W);
|
||||
cmmActivityHstVO.setActivityType(Constant.ACTIVITY_TYPE_O);
|
||||
cmmActivityHstVO.setContentType(Constant.CONTENT_TYPE_T);
|
||||
|
||||
cmmActivityHstVO.setParameter1(cmmAmsAssetMediaVO.getAssetId());
|
||||
cmmActivityHstVO.setParameter2(cmmAmsAssetMediaVO.getGroupId());
|
||||
|
||||
model.addAttribute("openPageDetailList", localToonService.selectLocalToonOpenPageDetailList(cmmActivityHstVO));
|
||||
|
||||
return "kccf/ton/localToonDetailList.kccf";
|
||||
}
|
||||
|
||||
@RequestMapping(value="/ton/localToonDetail.do")
|
||||
public String selectLocalToonDetail (
|
||||
@ModelAttribute("cmmAmsAssetMedia") CmmAmsAssetMediaVO cmmAmsAssetMediaVO
|
||||
, BindingResult bindingResult
|
||||
, ModelMap model
|
||||
, HttpServletRequest req
|
||||
) throws EgovBizException {
|
||||
|
||||
model.addAttribute("cookieId", CmmUtil.getCookieId(req));
|
||||
CmmUtil.setNfsPathModelMap(req,model);
|
||||
|
||||
cmmAmsAssetMediaVO.setSessionId(CmmUtil.getCookieId(req));
|
||||
cmmAmsAssetMediaVO.setMediaId(cmmAmsAssetMediaVO.getContentId());
|
||||
CmmAmsAssetMediaVO result = localToonService.selectLocalToonDetail(cmmAmsAssetMediaVO);
|
||||
model.addAttribute("result", result);
|
||||
|
||||
cmmAmsAssetMediaVO.setSessionId(CmmUtil.getCookieId(req));
|
||||
cmmAmsAssetMediaVO.setAssetId(result.getAssetId());
|
||||
cmmAmsAssetMediaVO.setGroupId(result.getGroupId());
|
||||
List<DataMap> resultList = localToonService.selectLocalToonDetailListAll(cmmAmsAssetMediaVO);
|
||||
model.addAttribute("resultList", resultList);
|
||||
int defaultCount = 0;
|
||||
for(int i=0; i<resultList.size(); i++){
|
||||
if(result.getMediaId().equals(resultList.get(i).getString("id"))){
|
||||
defaultCount = i;
|
||||
}
|
||||
|
||||
}
|
||||
model.addAttribute("defaultCount", defaultCount);
|
||||
|
||||
DataMap paramMap = DataMap.getParamMap(req);
|
||||
paramMap.setString("jsessionId", CmmUtil.getCookieId(req));
|
||||
paramMap.setString("contentId", cmmAmsAssetMediaVO.getContentId());
|
||||
paramMap.setString("contentType", Constant.CONTENT_TYPE_T);
|
||||
cmmService.insertCmmActivityHst(paramMap);
|
||||
|
||||
// 메타태그정보
|
||||
CmmMetaVO metaVO = new CmmMetaVO();
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(result.getTitle())) metaVO.setTitle(result.getTitle());
|
||||
if (StringUtils.isNotEmpty(result.getSummary())) metaVO.setDescription(result.getSummary());
|
||||
}
|
||||
if (result != null) {
|
||||
if (StringUtils.isNotEmpty(result.getMediaId())) metaVO.setUrl(CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY) + "/ton/localToonDetail.do?contentId="+result.getMediaId());
|
||||
if (StringUtils.isNotEmpty(result.getMainImg())) metaVO.setImage(CmmUtil.getAssetImageUrl(result.getMainImg()));
|
||||
}
|
||||
model.addAttribute("metaResult", metaVO);
|
||||
|
||||
model.addAttribute("paramVO", cmmAmsAssetMediaVO); // 파라미터
|
||||
|
||||
return "kccf/ton/localToonDetail.kccf";
|
||||
}
|
||||
}
|
||||
@ -58,6 +58,8 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.antMatchers("/inform/**")
|
||||
.antMatchers("/alert/**")
|
||||
.antMatchers("/code/**")
|
||||
.antMatchers("/test/**")
|
||||
.antMatchers("/login/**")
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ public class LoginServiceImpl implements LoginService
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public DataApiResVO logout(DataApiReqVO reqVO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -109,6 +109,8 @@ public class LoginController
|
||||
|
||||
return "redirect:" + redirectUrl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 로그아웃 후의 처리를 담당한다.
|
||||
|
||||
@ -73,3 +73,21 @@ search.searchTimeOut = 5000
|
||||
search.managerIp = search.nculture.org
|
||||
search.managerPort = 7800
|
||||
|
||||
|
||||
#----------------------------------------
|
||||
# SNS SSO
|
||||
#----------------------------------------
|
||||
# Naver : registration
|
||||
oauth2.client.registration.naver.client-id = (Client ID)
|
||||
oauth2.client.registration.naver.client-secret = (Client Secret)
|
||||
oauth2.client.registration.naver.redirect_uri={baseUrl}/{action}/oauth2/code/{registrationId}
|
||||
oauth2.client.registration.naver.authorization-grant-type=authorization_code
|
||||
oauth2.client.registration.naver.scope=name,email,profile_image
|
||||
oauth2.client.registration.naver.client-name=Naver
|
||||
|
||||
# Naver : Provider
|
||||
oauth2.client.provider.naver.authorization-uri = https://nid.naver.com/oauth2.0/authorize
|
||||
oauth2.client.provider.naver.token-uri = https://nid.naver.com/oauth2.0/token
|
||||
oauth2.client.provider.naver.user-info-uri = https://openapi.naver.com/v1/nid/me
|
||||
oauth2.client.provider.naver.user-name-attribute = response
|
||||
|
||||
|
||||
BIN
src/main/webapp/WEB-INF/lib/queryapi530.jar
Normal file
BIN
src/main/webapp/WEB-INF/lib/queryapi530.jar
Normal file
Binary file not shown.
2
src/main/webapp/login/index.jsp
Normal file
2
src/main/webapp/login/index.jsp
Normal file
@ -0,0 +1,2 @@
|
||||
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
||||
<jsp:forward page="/index.do"/>
|
||||
22
src/main/webapp/test/callback.html
Normal file
22
src/main/webapp/test/callback.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<script type="text/javascript" src="https://static.nid.naver.com/js/naverLogin_implicit-1.0.3.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
var naver_id_login = new naver_id_login("jIRK8ZmHrZyfm4Qky7pF", "http://www.oauth2test.com/nlib/test/callback.html");
|
||||
// 접근 토큰 값 출력
|
||||
alert(" access_token=" + naver_id_login.oauthParams.access_token);
|
||||
// 네이버 사용자 프로필 조회
|
||||
naver_id_login.get_naver_userprofile("naverSignInCallback()");
|
||||
// 네이버 사용자 프로필 조회 이후 프로필 정보를 처리할 callback function
|
||||
function naverSignInCallback() {
|
||||
alert(naver_id_login.getProfileData('email'));
|
||||
alert(naver_id_login.getProfileData('nickname'));
|
||||
alert(naver_id_login.getProfileData('age'));
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
22
src/main/webapp/test/naverLogin.html
Normal file
22
src/main/webapp/test/naverLogin.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>네이버 로그인</title>
|
||||
<script type="text/javascript" src="https://static.nid.naver.com/js/naverLogin_implicit-1.0.3.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- 네이버아이디로로그인 버튼 노출 영역 -->
|
||||
<div id="naver_id_login"></div>
|
||||
<!-- //네이버아이디로로그인 버튼 노출 영역 -->
|
||||
<script type="text/javascript">
|
||||
var naver_id_login = new naver_id_login("jIRK8ZmHrZyfm4Qky7pF", "http://www.oauth2test.com/nlib/test/callback.html");
|
||||
var state = naver_id_login.getUniqState();
|
||||
naver_id_login.setButton("white", 2,40);
|
||||
naver_id_login.setDomain("http://www.oauth2test.com/nlib/test/naverLogin.html");
|
||||
naver_id_login.setState(state);
|
||||
naver_id_login.setPopup();
|
||||
naver_id_login.init_naver_id_login();
|
||||
</script>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user