소스정리
This commit is contained in:
parent
71714f2a37
commit
d986ac7ffa
@ -1,203 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,35 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,46 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,82 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,811 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,47 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,500 +0,0 @@
|
|||||||
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];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@ -1,422 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
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", "내용을 입력해주세요.");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,555 +0,0 @@
|
|||||||
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];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,712 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,192 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@ -1,54 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,36 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,571 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,274 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,143 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,220 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@ -1,90 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@ -1,508 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,162 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,146 +0,0 @@
|
|||||||
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;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,111 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
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();
|
|
||||||
}
|
|
||||||
@ -1,142 +0,0 @@
|
|||||||
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];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,109 +0,0 @@
|
|||||||
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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,40 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,95 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,66 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,134 +0,0 @@
|
|||||||
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(); // TODO 필요여부 확인 DDDDDDDDDDDDDDDDDDDDDD 검색엔진 라이브러리 포함 처리하면서 들어온 모듈.
|
|
||||||
//cmmBbsVO.setNttId(id);
|
|
||||||
//cmmBbsDAO.insertCmmBbs(cmmBbsVO);
|
|
||||||
|
|
||||||
//return id;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,66 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,76 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,339 +0,0 @@
|
|||||||
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)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,377 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,104 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,559 +0,0 @@
|
|||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,381 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,70 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,46 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,673 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,196 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,355 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,776 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,193 +0,0 @@
|
|||||||
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,156 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,701 +0,0 @@
|
|||||||
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,245 +0,0 @@
|
|||||||
//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;
|
|
||||||
};
|
|
||||||
////////////////////////////////////
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,50 +0,0 @@
|
|||||||
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;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,183 +0,0 @@
|
|||||||
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);
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,189 +0,0 @@
|
|||||||
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);
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,489 +0,0 @@
|
|||||||
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";
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,108 +0,0 @@
|
|||||||
package kccf.sch.common;
|
|
||||||
|
|
||||||
public class WNAnchor {
|
|
||||||
private int m_before = -1;
|
|
||||||
private int m_next = -1;
|
|
||||||
private int m_bundleBefore = -1;
|
|
||||||
private int m_bundleNext = -1;
|
|
||||||
private int m_firstPage = -1;
|
|
||||||
private int m_lastPage = -1;
|
|
||||||
private int m_totalPgCount = 0;
|
|
||||||
private int m_totlalBundlePgCount = 0;
|
|
||||||
private int m_pageCount = 0;
|
|
||||||
private int m_curPageNumber = 1;
|
|
||||||
private String[][] m_pages = new String[1][2];
|
|
||||||
|
|
||||||
public WNAnchor() {
|
|
||||||
m_pages[0][0] = "1";
|
|
||||||
m_pages[0][1] = "-1";
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getBefore() {
|
|
||||||
return m_before;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBefore(int before) {
|
|
||||||
m_before = before;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getFirstPage() {
|
|
||||||
return m_firstPage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFirstPage(int firstPage) {
|
|
||||||
m_firstPage = firstPage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getLastPage() {
|
|
||||||
return m_lastPage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLastPage(int lastPage) {
|
|
||||||
m_lastPage = lastPage;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getNext() {
|
|
||||||
return m_next;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNext(int next) {
|
|
||||||
m_next = next;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getBundleBefore() {
|
|
||||||
return m_bundleBefore;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBundleBefore(int bundleBefore) {
|
|
||||||
m_bundleBefore = bundleBefore;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getBundleNext() {
|
|
||||||
return m_bundleNext;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBundleNext(int bundleNext) {
|
|
||||||
m_bundleNext = bundleNext;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getTotalPgCount() {
|
|
||||||
return m_totalPgCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTotalPgCount(int totalPgCount) {
|
|
||||||
m_totalPgCount = totalPgCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getTotlalBundlePgCount() {
|
|
||||||
return m_totlalBundlePgCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTotlalBundlePgCount(int totlalBundlePgCount) {
|
|
||||||
m_totlalBundlePgCount = totlalBundlePgCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getPageCount() {
|
|
||||||
return m_pageCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPageCount(int pageCount) {
|
|
||||||
m_pageCount = pageCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getCurPageNumber() {
|
|
||||||
return m_curPageNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCurPageNumber(int curPageNumber) {
|
|
||||||
m_curPageNumber = curPageNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String[][] getPages() {
|
|
||||||
return m_pages;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPages(String[][] pages) {
|
|
||||||
m_pages = pages;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,335 +0,0 @@
|
|||||||
package kccf.sch.common;
|
|
||||||
|
|
||||||
public class WNCollection {
|
|
||||||
|
|
||||||
|
|
||||||
public static String[] COLLECTIONS = new String[]{"info","map","number","pick","reference","story","culturePost","total","culturePostHot","toon","ocr"};
|
|
||||||
public static String[] COLLECTIONS_NAME = new String[]{"info","map","number","pick","reference","story","culturePost","total","culturePostHot","toon","ocr"};
|
|
||||||
public static String[] MERGE_COLLECTIONS = new String[]{""};
|
|
||||||
public String[][] MERGE_COLLECTION_INFO = null;
|
|
||||||
public String[][] COLLECTION_INFO = null;
|
|
||||||
public WNCollection(){
|
|
||||||
COLLECTION_INFO = new String[][]
|
|
||||||
{
|
|
||||||
{
|
|
||||||
"info", // set index name
|
|
||||||
"info", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,CONTENT_TYPE_NAME_EX,SIDO_NAME",// set search field
|
|
||||||
"DOCID,DATE,CONT_TYPE,CAT1_NAME,GIA_CAT2_NAME,CAT3_NAME,CONTENT_ID,CONTENT_TYPE_ID,CONTENT_TYPE_NAME,TITLE,SIDO_NAME,SIGUNGU_NAME,SEARCH_AREA,MAIN_IMG,ADDR1,ZIP_CODE,TEL,ALIAS,SEARCH_AREA_COUNCIL,SEARCH_AREA_COUNCIL_INFO",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"CONTENT_TYPE_NAME,SEARCH_AREA_COUNCIL_INFO", // use check prefix query filed
|
|
||||||
"", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"info" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"map", // set index name
|
|
||||||
"map", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,TRS_AGE_EX,INTERFACE_ID,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_TOPIC,SECOND_TOPIC,FIRST_CLASS,SECOND_CLASS,THEME_CD,THEME_NM,SERIES_CD,SERIES_NM",// set search field
|
|
||||||
"DOCID,DATE,CONTENT_TYPE,CONTENT_ID,TITLE,SUMMARY,MAIN_IMG,ADDR1,LATITUDE,LONGITUDE,LINK_DATA,READ_CNT,INTERFACE_ID,GENYEAR,TRS_AGE,CHRONOLOGICAL_START,CHRONOLOGICAL_END,FIRST_TOPIC,SECOND_TOPIC,FIRST_CLASS,SECOND_CLASS,SIDO_NAME,SIGUNGU_NAME,ADDR2,THEME_CD,THEME_NM,SERIES_CD,SERIES_NM,CONTENT_TYPE_ID,ID,FIRST_CATEGORY,SECOND_CATEGORY,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,TAGS_NAME,CONTENT_TYPE_NAME,CAT1,CAT1_NAME,CAT2,CAT2_NAME,CAT3,CAT3_NAME,ZIP_CODE,TEL,RECOMMEND_YN,NTCE_BGNDE,NTCE_ENDDE,WEBSITE,UPDATED_AT,COUNCIL_CD,COUNCIL_NM,ALIAS,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"TRS_AGE,CONTENT_TYPE", // use check prefix query filed
|
|
||||||
"READ_CNT,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"map" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"number", // set index name
|
|
||||||
"number", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TAGS,TITLE,INTERFACE_ID,GENYEAR_SCH,TRS_AGE_EX,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,FIRST_CLASS_NM,SECOND_CLASS_NM,FIRST_TOPIC,SECOND_TOPIC,THEME_CD_EX,THEME_NM_EX,SERIES_CD_EX,SERIES_NM_EX",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,THEME_CD,THEME_NM,SERIES_CD,SERIES_NM,SIDO_NAME,SIGUNGU_NAME,LINK_DATA,FIRST_TOPIC,SECOND_TOPIC,FIRST_CLASS,SECOND_CLASS,SOJANG_COUNCIL,TAGS,COUNCIL,KEYWORDS,INTERFACE_ID,GENYEAR,TRS_AGE,CHRONOLOGICAL_START,CHRONOLOGICAL_END,FIRST_CATEGORY,SECOND_CATEGORY,READ_CNT,CONTENT_ID,CONTENT_TYPE,ID,SEARCH_THEME_CD,SEARCH_THEME_NM,SEARCH_CLASS,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,SOJANG_COUNCIL_NM,FIRST_CLASS_NM,SECOND_CLASS_NM,MEDIA_ID,ASSET_CLASS,ALIAS,SEARCH_AREA_COUNCIL,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,COUNCIL_NM_TOT,ASSET_TYPE,MAIN_IMG",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"TRS_AGE,FIRST_CLASS,SECOND_CLASS,THEME_CD,THEME_NM,SEARCH_THEME_CD,SEARCH_THEME_NM,SOJANG_COUNCIL,KEYWORDS,SIDO_NAME,SERIES_CD,SERIES_NM", // use check prefix query filed
|
|
||||||
"GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END,READ_CNT", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"number" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"pick", // set index name
|
|
||||||
"pick", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,SUMMARY,INTERFACE_ID,GENYEAR_SCH,TRS_AGE_EX,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,FIRST_CLASS_NM,SECOND_CLASS_NM,THEME,SERIES,COUNCIL,KEYWORDS_EX,TAGS,OCR_TEXT_TOT",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,FIRST_CLASS,SECOND_CLASS,SOJANG_COUNCIL,TAGS,KEYWORDS,READ_CNT,INTERFACE_ID,GENYEAR,TRS_AGE,CHRONOLOGICAL_START,CHRONOLOGICAL_END,FIRST_CATEGORY,SECOND_CATEGORY,SEARCH_CLASS,AUTHOR,PUBLISHER,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,COUNCIL,SIDO_NAME,SIGUNGU_NAME,TRS_SIDO_NAME,TRS_SIGUNGU_NAME,FIRST_CLASS_NM,SECOND_CLASS_NM,SEARCH_AREA_COUNCIL,LINK_DATA,ASSETS_ID,MEDIA_ID,MAIN_IMG,MGNT_NO,ASSET_TYPE,THEME,SERIES,ORG_OPEN_AT,STRE_FILE_NAME,ALIAS,SUBTITLE,ADDITION,ORIGNL_FILE_NAME,FILE_SIZE,WIDTH,HEIGHT,IMG_ALT,MEDIA_TYPE,PLAYER_AT,PLAY_TIME,VOLUME,TOTAL_PAGE,ISBN,WEBSITE_NAME,LINK_USE_AT,MAKING_DATE,FILMING_LOCATION,SUBTITLE_AT,SUBTITLE_ORG_FILE_NAME,SUBTITLE_STRE_FILE_NAME,SUBTITLE_DESC,PROVIDER,SOURCE_AT,SOURCE,COPYRIGHT,RETENTION_PERIOD,COPYRIGHT_MGNT_DEPART,THIRD_COPYRIGHT,CCL_TYPE,UPDATED_AT,DELETED_AT,USE_AT,REMARKS_DESC,RECOMMEND_YN,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,COUNCIL_NM_TOT,OCR_TEXT_TOT",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"TRS_AGE,FIRST_CATEGORY,SECOND_CATEGORY,FIRST_CLASS,SECOND_CLASS,SOJANG_COUNCIL,MGNT_NO,KEYWORDS,SIDO_NAME,MEDIA_ID,ASSET_TYPE,ASSETS_ID", // use check prefix query filed
|
|
||||||
"READ_CNT,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"pick" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"reference", // set index name
|
|
||||||
"reference", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"custom,rweight=0.7;dweight=0.2;fweight=0.1,0", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE/5,SUMMARY,INTERFACE_ID,GENYEAR_SCH,TRS_AGE_EX,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,FIRST_CLASS_NM,SECOND_CLASS_NM,THEME,SERIES,COUNCIL,KEYWORDS_EX,TAGS,OCR_TEXT_TOT",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,FIRST_CLASS,SECOND_CLASS,SOJANG_COUNCIL,TAGS,KEYWORDS,READ_CNT,INTERFACE_ID,GENYEAR,TRS_AGE,CHRONOLOGICAL_START,CHRONOLOGICAL_END,FIRST_CATEGORY,SECOND_CATEGORY,SEARCH_CLASS,SEARCH_CATEGORY,AUTHOR,PUBLISHER,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,COUNCIL,SIDO_NAME,SIGUNGU_NAME,TRS_SIDO_NAME,TRS_SIGUNGU_NAME,FIRST_CLASS_NM,SECOND_CLASS_NM,SEARCH_AREA_COUNCIL,LINK_DATA,ASSETS_ID,MEDIA_ID,MAIN_IMG,MGNT_NO,ASSET_TYPE,THEME,SERIES,ORG_OPEN_AT,STRE_FILE_NAME,ALIAS,SUBTITLE,ADDITION,ORIGNL_FILE_NAME,FILE_SIZE,WIDTH,HEIGHT,IMG_ALT,MEDIA_TYPE,PLAYER_AT,PLAY_TIME,VOLUME,TOTAL_PAGE,ISBN,WEBSITE_NAME,LINK_USE_AT,MAKING_DATE,FILMING_LOCATION,SUBTITLE_AT,SUBTITLE_ORG_FILE_NAME,SUBTITLE_STRE_FILE_NAME,SUBTITLE_DESC,PROVIDER,SOURCE_AT,SOURCE,COPYRIGHT,RETENTION_PERIOD,COPYRIGHT_MGNT_DEPART,THIRD_COPYRIGHT,CCL_TYPE,UPDATED_AT,DELETED_AT,USE_AT,REMARKS_DESC,RECOMMEND_YN,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,OCR_TEXT_TOT,COUNCIL_NM_TOT,TABLE_OF_CONTENTS,ORG_OPEN_EXIST,MAIN_IMG_EXIST",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"TRS_AGE,FIRST_CATEGORY,SECOND_CATEGORY,FIRST_CLASS,SECOND_CLASS,SOJANG_COUNCIL,MGNT_NO,KEYWORDS,SIDO_NAME,MEDIA_ID,ASSET_TYPE,ASSETS_ID", // use check prefix query filed
|
|
||||||
"READ_CNT,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"reference" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"story", // set index name
|
|
||||||
"story", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,SUMMARY,INTERFACE_ID,GENYEAR_SCH,TRS_AGE_EX,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_TOPIC,SECOND_TOPIC,THEME_CD_EX,THEME_NM_EX,SERIES_CD_EX,SERIES_NM_EX,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,KEYWORDS_EX,TAGS",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,THEME_CD,THEME_NM,SERIES_CD,SERIES_NM,SIDO_NAME,SIGUNGU_NAME,DONG_NAME1,AGE,TRS_AGE,LINK_DATA,FIRST_TOPIC,SECOND_TOPIC,TAGS,KEYWORDS,COUNCIL,READ_CNT,INTERFACE_ID,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END,ID,SEARCH_THEME_CD,SEARCH_THEME_NM,SEARCH_AREA_COUNCIL,MAIN_IMG,FIRST_CLASS,SECOND_CLASS,FIRST_CLASS_NM,SECOND_CLASS_NM,FIRST_CATEGORY,SECOND_CATEGORY,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,ALIAS,SOJANG_COUNCIL,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"THEME_CD,THEME_NM,TRS_AGE,SEARCH_THEME_CD,SEARCH_THEME_NM,SOJANG_COUNCIL,KEYWORDS,SERIES_CD,SERIES_NM,SECOND_CATEGORY,FIRST_CATEGORY", // use check prefix query filed
|
|
||||||
"READ_CNT,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"story" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"culturePost", // set index name
|
|
||||||
"culturePost", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,SUMMARY,TAGS,KEYWORDS",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,TAGS,MAIN_IMG,ALIAS,KEYWORDS",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"", // use check prefix query filed
|
|
||||||
"", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"culturePost" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"total", // set index name
|
|
||||||
"total", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,TAGS_TITLE,SUMMARY,INTERFACE_ID,GENYEAR_SCH,TRS_AGE_EX,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,FIRST_CLASS_NM,SECOND_CLASS_NM,THEME_CD_EX,THEME_NM_EX,SERIES_CD_EX,SERIES_NM_EX,COUNCIL,KEYWORDS,CONTENT_TYPE_NAME,SIDO_NAME_EX,TAGS,NUMBER_TITLE,FIRST_TOPIC,SECOND_TOPIC",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,FIRST_CLASS,SECOND_CLASS,TAGS,READ_CNT,GENYEAR,TRS_AGE,CHRONOLOGICAL_START,CHRONOLOGICAL_END,FIRST_CATEGORY,SECOND_CATEGORY,THEME_CD,THEME_NM,SERIES_CD,SERIES_NM,SIDO_NAME,SOJANG_COUNCIL,LINK_DATA,MAIN_IMG,MGNT_NO,TAGS_TITLE,ALIAS,NUMBER_TITLE,SEARCH_THEME_CD,SEARCH_THEME_NM,NUMBER_SUMMARY,INTERFACE_ID,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,FIRST_CLASS_NM,SECOND_CLASS_NM,COUNCIL,KEYWORDS,CONTENT_TYPE_NAME,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_TOPIC,SECOND_TOPIC,ID,MEDIA_ID,ORG_OPEN_AT,ASSET_TYPE,ASSETS_ID,STRE_FILE_NAME,CONTENT_ID,CONT_TYPE",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"TRS_AGE,FIRST_CATEGORY,SECOND_CATEGORY,FIRST_CLASS,SECOND_CLASS,SOJANG_COUNCIL,MGNT_NO,SIDO_NAME,THEME_CD,THEME_NM,SERIES_CD,SERIES_NM,SEARCH_THEME_NM,SEARCH_THEME_CD", // use check prefix query filed
|
|
||||||
"READ_CNT,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"total" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"culturePostHot", // set index name
|
|
||||||
"culturePostHot", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,SUMMARY,INTERFACE_ID,GENYEAR_SCH,TRS_AGE_EX,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_TOPIC,SECOND_TOPIC",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,LINK_DATA,TAGS,MAIN_IMG,READ_CNT,INTERFACE_ID,GENYEAR,TRS_AGE,CHRONOLOGICAL_START,CHRONOLOGICAL_END,FIRST_TOPIC,SECOND_TOPIC,ID,KEYWORDS,THEME_CD,THEME_NM,SERIES_CD,SERIES_NM,ALIAS,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"TRS_AGE,KEYWORDS", // use check prefix query filed
|
|
||||||
"READ_CNT,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"culturePostHot" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"toon", // set index name
|
|
||||||
"toon", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"TITLE,SUMMARY,INTERFACE_ID,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,FIRST_CLASS_NM,SECOND_CLASS_NM,TAGS",// set search field
|
|
||||||
"DOCID,DATE,TITLE,SUMMARY,FIRST_CLASS,SECOND_CLASS,SOJANG_COUNCIL,TAGS,KEYWORDS,READ_CNT,INTERFACE_ID,GENYEAR,TRS_AGE,CHRONOLOGICAL_START,CHRONOLOGICAL_END,FIRST_CATEGORY,SECOND_CATEGORY,SEARCH_CLASS,AUTHOR,PUBLISHER,FIRST_CATEGORY_NM,SECOND_CATEGORY_NM,SOJANG_COUNCIL_NM,SIDO_NAME,SIGUNGU_NAME,TRS_SIDO_NAME,TRS_SIGUNGU_NAME,FIRST_CLASS_NM,SECOND_CLASS_NM,SEARCH_AREA_COUNCIL,LINK_DATA,ASSETS_ID,MEDIA_ID,MAIN_IMG,MGNT_NO,ASSET_TYPE,THEME,SERIES,ORG_OPEN_AT,STRE_FILE_NAME,SUBTITLE,ADDITION,ORIGNL_FILE_NAME,FILE_SIZE,WIDTH,HEIGHT,IMG_ALT,MEDIA_TYPE,PLAYER_AT,PLAY_TIME,VOLUME,TOTAL_PAGE,ISBN,WEBSITE_NAME,LINK_USE_AT,MAKING_DATE,FILMING_LOCATION,SUBTITLE_AT,SUBTITLE_ORG_FILE_NAME,SUBTITLE_STRE_FILE_NAME,SUBTITLE_DESC,PROVIDER,SOURCE_AT,SOURCE,COPYRIGHT,RETENTION_PERIOD,COPYRIGHT_MGNT_DEPART,THIRD_COPYRIGHT,CCL_TYPE,UPDATED_AT,DELETED_AT,USE_AT,REMARKS_DESC,RECOMMEND_YN,GENYEAR_SCH,CHRONOLOGICAL_START_SCH,CHRONOLOGICAL_END_SCH",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"TRS_AGE,KEYWORDS", // use check prefix query filed
|
|
||||||
"READ_CNT,GENYEAR,CHRONOLOGICAL_START,CHRONOLOGICAL_END", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"toon" // collection display name
|
|
||||||
}
|
|
||||||
,
|
|
||||||
{
|
|
||||||
"ocr", // set index name
|
|
||||||
"ocr", // set collection name
|
|
||||||
"0,3", // set pageinfo (start,count)
|
|
||||||
"1,0,0,1,0", // set query analyzer (useKMA,isCase,useOriginal,useSynonym, duplcated detection)
|
|
||||||
"RANK/DESC,DATE/DESC", // set sort field (field,order) multi sort '/'
|
|
||||||
"basic,rpfmo,100", // set sort field (field,order) multi sort '/'
|
|
||||||
"OCR_TEXT",// set search field
|
|
||||||
"DOCID,ID,MEDIA_ID,FIRST_PAGE_NUM,LAST_PAGE_NUM,ORDER_NUM,OCR_TEXT,FILE_NAME,ALIAS",// set document field
|
|
||||||
"", // set date range
|
|
||||||
"", // set rank range
|
|
||||||
"", // set prefix query, example: <fieldname:contains:value1>|<fieldname:contains:value2>/1, (fieldname:contains:value) and ' ', or '|', not '!' / operator (AND:1, OR:0)
|
|
||||||
"", // set collection query (<fieldname:contains:value^weight | value^weight>/option...) and ' ', or '|'
|
|
||||||
"", // set boost query (<fieldname:contains:value> | <field3:contains:value>...) and ' ', or '|'
|
|
||||||
"", // set filter operation (<fieldname:operator:value>)
|
|
||||||
"", // set groupby field(field, count)
|
|
||||||
"", // set sort field group(field/order,field/order,...)
|
|
||||||
"", // set categoryBoost(fieldname,matchType,boostID,boostKeyword)
|
|
||||||
"", // set categoryGroupBy (fieldname:value)
|
|
||||||
"", // set categoryQuery (fieldname:value)
|
|
||||||
"", // set property group (fieldname,min,max, groupcount)
|
|
||||||
"MEDIA_ID", // use check prefix query filed
|
|
||||||
"ID", // set use check fast access field
|
|
||||||
"", // set multigroupby field
|
|
||||||
"", // set auth query (Auth Target Field, Auth Collection, Auth Reference Field, Authority Query)
|
|
||||||
"", // set Duplicate Detection Criterion Field, RANK/DESC,DATE/DESC
|
|
||||||
"ocr" // collection display name
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,73 +0,0 @@
|
|||||||
package kccf.sch.common;
|
|
||||||
public class WNDefine {
|
|
||||||
public final static int CONNECTION_TIMEOUT = 20000;
|
|
||||||
public final static String CHARSET = "UTF-8";
|
|
||||||
public final static int REALTIME_COUNT=100;
|
|
||||||
public final static int PAGE_SCALE = 10; //view page list count
|
|
||||||
|
|
||||||
public final static int CONNECTION_KEEP = 0; //recevive mode
|
|
||||||
public final static int CONNECTION_REUSE = 2;
|
|
||||||
public final static int CONNECTION_CLOSE = 3;
|
|
||||||
|
|
||||||
public final static int ASC = 0; //order
|
|
||||||
public final static int DESC = 1; //order
|
|
||||||
|
|
||||||
public final static int USE_KMA_OFFOFF = 0; //synonym, morpheme
|
|
||||||
public final static int USE_KMA_ONON = 1;
|
|
||||||
public final static int USE_KMA_ONOFF = 2;
|
|
||||||
|
|
||||||
public final static int USE_RESULT_STRING = 0; //result data type
|
|
||||||
public final static int USE_RESULT_XML = 1;
|
|
||||||
public final static int USE_RESULT_JSON = 2;
|
|
||||||
public final static int USE_RESULT_DUPLICATE_STRING = 3; //uid result data type
|
|
||||||
public final static int USE_RESULT_DUPLICATE_XML = 4;
|
|
||||||
public final static int USE_RESULT_DUPLICATE_JSON = 5;
|
|
||||||
|
|
||||||
public final static int IS_CASE_ON = 1; //case on, off
|
|
||||||
public final static int IS_CASE_OFF = 0;
|
|
||||||
|
|
||||||
public final static int HI_SUM_OFFOFF = 0; //summarizing, highlighting
|
|
||||||
public final static int HI_SUM_OFFON = 1;
|
|
||||||
public final static int HI_SUM_ONOFF = 2;
|
|
||||||
public final static int HI_SUM_ONON = 3;
|
|
||||||
|
|
||||||
public final static int COMMON_OR_WHEN_NORESULT_OFF = 0;
|
|
||||||
public final static int COMMON_OR_WHEN_NORESULT_ON = 1;
|
|
||||||
|
|
||||||
public final static int INDEX_NAME = 0;
|
|
||||||
public final static int COLLECTION_NAME = 1;
|
|
||||||
public final static int PAGE_INFO = 2;
|
|
||||||
public final static int ANALYZER = 3;
|
|
||||||
public final static int SORT_FIELD = 4;
|
|
||||||
public final static int RANKING_OPTION = 5;
|
|
||||||
public final static int SEARCH_FIELD = 6;
|
|
||||||
public final static int RESULT_FIELD = 7;
|
|
||||||
public final static int DATE_RANGE = 8;
|
|
||||||
public final static int RANK_RANGE = 9;
|
|
||||||
public final static int EXQUERY_FIELD = 10;
|
|
||||||
public final static int COLLECTION_QUERY =11;
|
|
||||||
public final static int BOOST_QUERY =12;
|
|
||||||
public final static int FILTER_OPERATION = 13;
|
|
||||||
public final static int GROUP_BY = 14;
|
|
||||||
public final static int GROUP_SORT_FIELD = 15;
|
|
||||||
public final static int CATEGORY_BOOST = 16;
|
|
||||||
public final static int CATEGORY_GROUPBY = 17;
|
|
||||||
public final static int CATEGORY_QUERY = 18;
|
|
||||||
public final static int PROPERTY_GROUP = 19;
|
|
||||||
public final static int PREFIX_FIELD = 20;
|
|
||||||
public final static int FAST_ACCESS = 21;
|
|
||||||
public final static int MULTI_GROUP_BY = 22;
|
|
||||||
public final static int AUTH_QUERY = 23;
|
|
||||||
public final static int DEDUP_SORT_FIELD = 24;
|
|
||||||
public final static int COLLECTION_KOR = 25;
|
|
||||||
|
|
||||||
public final static int MERGE_COLLECTION_NAME = 0;
|
|
||||||
public final static int MERGE_MAPPING_COLLECTION_NAME = 1;
|
|
||||||
public final static int MERGE_PAGE_INFO = 2;
|
|
||||||
public final static int MERGE_RESULT_FIELD = 3;
|
|
||||||
public final static int MERGE_MAPPING_RESULT_FIELD = 4;
|
|
||||||
public final static int MERGE_MULTI_GROUP_BY_FIELD = 5;
|
|
||||||
public final static int MERGE_MAPPING_MULTI_GROUP_BY_FIELD = 6;
|
|
||||||
public final static int MERGE_CATEGORY_GROUPBY_FIELD = 7;
|
|
||||||
public final static int MERGE_MAPPING_CATEGORY_GROUPBY_FIELD = 8;
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,338 +0,0 @@
|
|||||||
package kccf.sch.common;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.text.DecimalFormat;
|
|
||||||
import java.text.FieldPosition;
|
|
||||||
import java.text.NumberFormat;
|
|
||||||
import java.text.ParseException;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.StringTokenizer;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
public class WNUtils {
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(WNUtils.class);
|
|
||||||
/*
|
|
||||||
* 문자셋 관련 설정
|
|
||||||
*/
|
|
||||||
final static String ENCODE_ORI = "EUC-KR";
|
|
||||||
final static String ENCODE_NEW = "UTF-8";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 문자 배열 값을 검색하여 키 값을 리턴
|
|
||||||
* @param fieldName
|
|
||||||
* @param value
|
|
||||||
* @param operation
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static int findArrayValue(String find, String[] arr) {
|
|
||||||
int findKey = -1;
|
|
||||||
for (int i = 0; i < arr.length; i++) {
|
|
||||||
if (find.equals(arr[i])){
|
|
||||||
findKey = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return findKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param s
|
|
||||||
* @param findStr
|
|
||||||
* @param replaceStr
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String replace(String s, String findStr, String replaceStr){
|
|
||||||
int pos;
|
|
||||||
int index = 0;
|
|
||||||
|
|
||||||
while ((pos = s.indexOf(findStr, index)) >= 0) {
|
|
||||||
s = s.substring(0, pos) + replaceStr + s.substring(pos + findStr.length());
|
|
||||||
index = pos + replaceStr.length();
|
|
||||||
}
|
|
||||||
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param s
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String trimDuplecateSpace(String s){
|
|
||||||
StringBuffer sb = new StringBuffer();
|
|
||||||
for(int i=0; i<s.length(); i++){
|
|
||||||
char c = s.charAt(i);
|
|
||||||
if(i < s.length()-1) {
|
|
||||||
if( c == ' ' && s.charAt(i+1)==' '){
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sb.append(c);
|
|
||||||
}
|
|
||||||
return sb.toString().trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String parseDate(String input, String inFormat, String outFormat) {
|
|
||||||
String retStr = "";
|
|
||||||
Date date = null;
|
|
||||||
SimpleDateFormat formatter = null;
|
|
||||||
try {
|
|
||||||
date = (new SimpleDateFormat(inFormat)).parse(input.trim());
|
|
||||||
} catch (ParseException e) {
|
|
||||||
LOGGER.info("ParseException occurred");
|
|
||||||
}
|
|
||||||
formatter = new SimpleDateFormat(outFormat);
|
|
||||||
retStr = formatter.format(date);
|
|
||||||
return retStr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String getCurrentDate() {
|
|
||||||
java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat
|
|
||||||
("yyyy/MM/dd", java.util.Locale.KOREA);
|
|
||||||
return dateFormat.format(new java.util.Date());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param strNum
|
|
||||||
* @param def
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static int parseInt(String strNum, int def){
|
|
||||||
if(strNum == null) return def;
|
|
||||||
try{
|
|
||||||
return Integer.parseInt(strNum);
|
|
||||||
}catch(Exception e){
|
|
||||||
return def;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* String의 값이 null일 경우 ""로 변환하여 리턴한다.
|
|
||||||
* @param temp
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String checkNull(String temp) {
|
|
||||||
if (temp != null) {
|
|
||||||
temp = temp.trim();
|
|
||||||
} else {
|
|
||||||
temp = "";
|
|
||||||
}
|
|
||||||
return temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 1차원 배열의 값중 null인 값을 ""로 변환하여 리턴한다.
|
|
||||||
* @param temp
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String[] checkNull(String[] temp){
|
|
||||||
for(int i=0; i<temp.length; i++) {
|
|
||||||
temp[i] = checkNull(temp[i]);
|
|
||||||
}
|
|
||||||
return temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 2차원 배열의 값중 null인 값을 ""로 변환하여 리턴한다.
|
|
||||||
* @param temp
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String[][] checkNull(String[][] temp) {
|
|
||||||
for(int i=0; i<temp.length; i++) {
|
|
||||||
temp[i][0] = checkNull(temp[i][0]);
|
|
||||||
temp[i][1] = checkNull(temp[i][1]);
|
|
||||||
}
|
|
||||||
return temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 스트링을 format 에 맞게 변환을 한다.
|
|
||||||
* convertFormat("1", "00") return "01" 로 입력 값을 리턴한다.
|
|
||||||
* @param inputStr
|
|
||||||
* @param format
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
public static String convertFormat(String inputStr, String format){
|
|
||||||
int _input = Integer.parseInt(inputStr);
|
|
||||||
StringBuffer result = new StringBuffer();
|
|
||||||
DecimalFormat df = new DecimalFormat(format);
|
|
||||||
df.format( _input, result, new FieldPosition(1) );
|
|
||||||
return result.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param str
|
|
||||||
* @param outFormat
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String numberFormat(String str, String outFormat) {
|
|
||||||
return new DecimalFormat(outFormat).format(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param str
|
|
||||||
* @param oriEncode
|
|
||||||
* @param newEncode
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String encoding(String str, String oriEncode, String newEncode) {
|
|
||||||
str = checkNull(str);
|
|
||||||
if(str.length() > 0) {
|
|
||||||
try {
|
|
||||||
str = new String(str.getBytes(oriEncode), newEncode);
|
|
||||||
} catch (UnsupportedEncodingException e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
LOGGER.info("UnsupportedEncodingException occurred");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 구분자를 가지고 있는 문자열을 구분자를 기준으로 나누어주는 메소드
|
|
||||||
* @param splittee 구분자를 가진 문자열
|
|
||||||
* @param splitChar 구분자
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String[] split(String splittee, String splitChar){
|
|
||||||
String taRetVal[] = null;
|
|
||||||
StringTokenizer toTokenizer = null;
|
|
||||||
int tnTokenCnt = 0;
|
|
||||||
|
|
||||||
try {
|
|
||||||
toTokenizer = new StringTokenizer(splittee, splitChar);
|
|
||||||
tnTokenCnt = toTokenizer.countTokens();
|
|
||||||
taRetVal = new String[tnTokenCnt];
|
|
||||||
|
|
||||||
for(int i=0; i<tnTokenCnt; i++) {
|
|
||||||
if(toTokenizer.hasMoreTokens()) taRetVal[i] = toTokenizer.nextToken();
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
taRetVal = new String[0];
|
|
||||||
}
|
|
||||||
return taRetVal ;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* String 을 받아 UTF-8 범위내 문자가 이닌경우 공백(0x0020) 으로 치환
|
|
||||||
* @param str
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
public static String validate(String str) {
|
|
||||||
StringBuffer buf = new StringBuffer();
|
|
||||||
|
|
||||||
char ch;
|
|
||||||
for(int i=0; i < str.length(); i++) {
|
|
||||||
ch = str.charAt(i);
|
|
||||||
if(Character.isLetterOrDigit(ch)) {
|
|
||||||
} else {
|
|
||||||
if(Character.isWhitespace(ch)) {
|
|
||||||
} else {
|
|
||||||
if(Character.isISOControl(ch)) {
|
|
||||||
// UTF-8 에서 지원하지 않는 문자 제거
|
|
||||||
ch = (char)0x0020;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buf.append(ch);
|
|
||||||
}
|
|
||||||
|
|
||||||
return buf.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* request null체크
|
|
||||||
**/
|
|
||||||
public String getCheckReq(javax.servlet.http.HttpServletRequest req, String parameter, String default_value) {
|
|
||||||
String req_value = req.getParameter(parameter)!=null ? req.getParameter(parameter):default_value;
|
|
||||||
return req_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* request Array null체크
|
|
||||||
**/
|
|
||||||
public String[] getCheckReqs(javax.servlet.http.HttpServletRequest req, String parameter, String[] default_value) {
|
|
||||||
String[] req_value = req.getParameterValues(parameter);
|
|
||||||
String[] tmp = null;
|
|
||||||
int c = 0;
|
|
||||||
if(req_value!=null) {
|
|
||||||
tmp = new String[req_value.length];
|
|
||||||
for(int i=0; i<req_value.length; i++) {
|
|
||||||
tmp[c] = req_value[i];
|
|
||||||
c++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
req_value = req.getParameterValues(parameter)!=null ? tmp : default_value;
|
|
||||||
return req_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* request null체크, uncoding
|
|
||||||
**/
|
|
||||||
public String getCheckReqUnocode(javax.servlet.http.HttpServletRequest req, String parameter, String default_value) {
|
|
||||||
String req_value = req.getParameter(parameter)!=null ? encoding(req.getParameter(parameter), ENCODE_ORI, ENCODE_NEW):default_value;
|
|
||||||
return req_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* request Array null체크, uncoding
|
|
||||||
**/
|
|
||||||
public String[] getCheckReqsUnocode(javax.servlet.http.HttpServletRequest req, String parameter, String[] default_value) {
|
|
||||||
String[] req_value = req.getParameterValues(parameter);
|
|
||||||
String[] tmp = null;
|
|
||||||
int c = 0;
|
|
||||||
if(req_value!=null) {
|
|
||||||
tmp = new String[req_value.length];
|
|
||||||
for(int i=0; i<req_value.length; i++) {
|
|
||||||
tmp[c] = encoding(req_value[i], ENCODE_ORI, ENCODE_NEW);
|
|
||||||
c++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
req_value = req.getParameterValues(parameter)!=null ? tmp : default_value;
|
|
||||||
return req_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* request XSS 처리
|
|
||||||
**/
|
|
||||||
public static String checkReqXSS( String value, String defaultValue) {
|
|
||||||
String reqValue = (value == null || value.equals("")) ? defaultValue : value;
|
|
||||||
reqValue = reqValue.replaceAll("</?[a-zA-Z][0-9a-zA-Z가-\uD7A3ㄱ-ㅎ=/\"\'%;:,._()\\-# ]+>","");
|
|
||||||
reqValue = reqValue.replaceAll(">","");
|
|
||||||
reqValue = reqValue.replaceAll(">","");
|
|
||||||
|
|
||||||
//금지 문자열 리스트
|
|
||||||
String blockchar[] = {"./", "..", "../", "..\\"};
|
|
||||||
|
|
||||||
// 금지할 문자열 포함 여부 체크
|
|
||||||
for(int i=0; i<blockchar.length;i++) {
|
|
||||||
if( reqValue.indexOf(blockchar[i]) != -1 ){
|
|
||||||
reqValue = "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return reqValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* request XSS 처리
|
|
||||||
**/
|
|
||||||
public static String getCheckReqXSS(javax.servlet.http.HttpServletRequest req, String parameter, String default_value) {
|
|
||||||
String req_value = (req.getParameter(parameter) == null || req.getParameter(parameter).equals("")) ? default_value : req.getParameter(parameter);
|
|
||||||
req_value = req_value.replaceAll("</?[a-zA-Z][0-9a-zA-Z가-\uD7A3ㄱ-ㅎ=/\"\'%;:,._()\\-# ]+>","");
|
|
||||||
req_value = req_value.replaceAll(">","");
|
|
||||||
req_value = req_value.replaceAll(">","");
|
|
||||||
return req_value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
package kccf.sch.service;
|
|
||||||
|
|
||||||
|
|
||||||
import kccf.sch.service.vo.ArkVO;
|
|
||||||
import kccf.sch.service.vo.Sf1VO;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Class Name : SearchService.java
|
|
||||||
* @Description : SearchService Class
|
|
||||||
* @Modification Information
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public interface ArkService {
|
|
||||||
/** 자동완성 */
|
|
||||||
public String getArk(ArkVO arkVo , Sf1VO sf1Vo )throws Exception;
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
package kccf.sch.service;
|
|
||||||
|
|
||||||
|
|
||||||
import kccf.sch.service.vo.PopWordVO;
|
|
||||||
import kccf.sch.service.vo.Sf1VO;
|
|
||||||
|
|
||||||
public interface PopWordService {
|
|
||||||
/** 인기검색어 */
|
|
||||||
String getPopWord(PopWordVO popWordVo , Sf1VO sf1Vo )throws Exception;
|
|
||||||
}
|
|
||||||
@ -1,112 +0,0 @@
|
|||||||
package kccf.sch.service;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
import kccf.sch.service.vo.SearchCollectionVO;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class SearchCollectionResult {
|
|
||||||
/** 디버그 메세지 */
|
|
||||||
private String debugStr = "";
|
|
||||||
/** 엔진 에러 코드 */
|
|
||||||
private int errorCode = 0;
|
|
||||||
/** 컬렉션 리스트 */
|
|
||||||
private ArrayList<SearchCollectionVO> collectionList = null;
|
|
||||||
public String getDebugStr() {
|
|
||||||
return debugStr;
|
|
||||||
}
|
|
||||||
public void setDebugStr(String debugStr) {
|
|
||||||
this.debugStr = debugStr;
|
|
||||||
}
|
|
||||||
public int getErrorCode() {
|
|
||||||
return errorCode;
|
|
||||||
}
|
|
||||||
public void setErrorCode(int errorCode) {
|
|
||||||
this.errorCode = errorCode;
|
|
||||||
}
|
|
||||||
public ArrayList<SearchCollectionVO> getCollectionList() {
|
|
||||||
ArrayList<SearchCollectionVO> collectionListRet = new ArrayList<SearchCollectionVO>();
|
|
||||||
collectionListRet.addAll(collectionList);
|
|
||||||
return collectionListRet;
|
|
||||||
}
|
|
||||||
public void setCollectionList(ArrayList<SearchCollectionVO> collectionList) {
|
|
||||||
if(collectionList != null){
|
|
||||||
this.collectionList = new ArrayList<SearchCollectionVO>();
|
|
||||||
for(int i = 0; i < collectionList.size(); ++i){
|
|
||||||
this.collectionList.add(collectionList.get(i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 검색 결과를 XML 형태로 제공(선언부)
|
|
||||||
* @param charset xml 선언부 언어셋(euc-kr , UTF-8)
|
|
||||||
* @return 검색 결과를 XML 형태 String 값
|
|
||||||
*/
|
|
||||||
public String toXml(String charset){
|
|
||||||
String encoding = "UTF-8";
|
|
||||||
if(null != charset){
|
|
||||||
if(charset.toUpperCase().equals("EUC-KR")){
|
|
||||||
encoding = charset;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
StringBuffer xmlBr = new StringBuffer(1024);
|
|
||||||
xmlBr.append("<?xml version=\"1.0\" encoding=\""+encoding+"\"?>").append(System.getProperty("line.separator"));
|
|
||||||
xmlBr.append("<wisenutSearch>").append(System.getProperty("line.separator"));
|
|
||||||
xmlBr.append("<DebugStr><![CDATA[").append(getDebugStr()).append("]]></DebugStr>").append(System.getProperty("line.separator"));
|
|
||||||
xmlBr.append("<CollectionList>").append(System.getProperty("line.separator"));
|
|
||||||
ArrayList<SearchCollectionVO> collectionList = getCollectionList();
|
|
||||||
int collectionListCount = collectionList.size();
|
|
||||||
for(int i = 0 ; i < collectionListCount ; i++){
|
|
||||||
SearchCollectionVO collVo = collectionList.get(i);
|
|
||||||
xmlBr.append(collVo.getXml()).append(System.getProperty("line.separator"));
|
|
||||||
}
|
|
||||||
xmlBr.append("</CollectionList>").append(System.getProperty("line.separator"));
|
|
||||||
xmlBr.append("</wisenutSearch>");
|
|
||||||
return xmlBr.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 검색결과를 json 형태로 반환
|
|
||||||
* @return 검색결과를 json 형태 String 값
|
|
||||||
*/
|
|
||||||
public String toJson(){
|
|
||||||
StringBuffer jsonBr = new StringBuffer(1024);
|
|
||||||
jsonBr.append("{\"wisenutSearch\":{");
|
|
||||||
jsonBr.append("\"DebugStr\":").append("\"").append(getDebugStr()).append("\",");
|
|
||||||
jsonBr.append("\"CollectionList\":");
|
|
||||||
jsonBr.append("[");
|
|
||||||
ArrayList<SearchCollectionVO> collectionList = getCollectionList();
|
|
||||||
int collectionListCount = collectionList.size();
|
|
||||||
for(int i = 0 ; i < collectionListCount ; i++){
|
|
||||||
SearchCollectionVO collVo = collectionList.get(i);
|
|
||||||
jsonBr.append(collVo.getJson());
|
|
||||||
if(i != collectionListCount-1 ){
|
|
||||||
jsonBr.append(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
jsonBr.append("]}}");
|
|
||||||
return jsonBr.toString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 검색결과 String 형태로 반환
|
|
||||||
* @return 검색결과를 문자열 형태 String 값
|
|
||||||
*/
|
|
||||||
public String toStr(){
|
|
||||||
StringBuffer br = new StringBuffer(1024);
|
|
||||||
br.append("[DebugStr:").append(getDebugStr()).append(System.getProperty("line.separator"));
|
|
||||||
ArrayList<SearchCollectionVO> collectionList = getCollectionList();
|
|
||||||
int collectionListCount = collectionList.size();
|
|
||||||
for(int i = 0 ; i < collectionListCount ; i++){
|
|
||||||
SearchCollectionVO collVo = collectionList.get(i);
|
|
||||||
br.append(collVo.getStr());
|
|
||||||
}
|
|
||||||
return br.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
package kccf.sch.service;
|
|
||||||
|
|
||||||
import kccf.sch.service.vo.SearchVO;
|
|
||||||
import kccf.sch.service.vo.Sf1VO;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public interface SearchService {
|
|
||||||
/** 검색결과 받기 */
|
|
||||||
SearchCollectionResult getSearch(SearchVO searchVO , Sf1VO sf1Vo) throws Exception;
|
|
||||||
|
|
||||||
String getSearchEtc(SearchVO searchVO , Sf1VO sf1Vo) throws Exception;
|
|
||||||
|
|
||||||
int getSearch_All_cnt(SearchVO searchVO, Sf1VO sf1Vo) throws Exception;
|
|
||||||
|
|
||||||
SearchCollectionResult getSearch_ajax(SearchVO searchVO , Sf1VO sf1Vo) throws Exception;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,123 +0,0 @@
|
|||||||
package kccf.sch.service.impl;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.net.URLEncoder;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
|
||||||
import kccf.sch.service.ArkService;
|
|
||||||
import kccf.sch.service.vo.ArkVO;
|
|
||||||
import kccf.sch.service.vo.Sf1VO;
|
|
||||||
|
|
||||||
@Service("ArkService")
|
|
||||||
public class ArkServiceImpl extends EgovAbstractServiceImpl implements ArkService{
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(ArkServiceImpl.class);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 자동완성 호출
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getArk(ArkVO arkVo, Sf1VO sf1Vo) throws Exception {
|
|
||||||
StringBuffer urlSb = new StringBuffer();
|
|
||||||
urlSb.append("http://");
|
|
||||||
urlSb.append(sf1Vo.getManagerIp()).append(":");
|
|
||||||
urlSb.append(sf1Vo.getManagerPort());
|
|
||||||
urlSb.append("/manager/WNRun.do?");
|
|
||||||
|
|
||||||
urlSb.append("target=").append(arkVo.getTarget());
|
|
||||||
urlSb.append("&query=").append(URLEncoder.encode(arkVo.getQuery(), "UTF-8"));
|
|
||||||
urlSb.append("&convert=").append(arkVo.getConvert());
|
|
||||||
/*urlSb.append("&eq=").append(arkVo.getCharset());
|
|
||||||
urlSb.append("&es=").append(arkVo.getCharset());*/
|
|
||||||
|
|
||||||
String url = urlSb.toString();
|
|
||||||
if(arkVo.getDebugType().equals("Y")){
|
|
||||||
LOGGER.info("[getArk() URL]["+url+"]");
|
|
||||||
LOGGER.info("[getArk() sf1Vo.toString()]["+sf1Vo.toString()+"]");
|
|
||||||
LOGGER.info("[getArk() arkVo.toString()]["+arkVo.toString()+"]");
|
|
||||||
}
|
|
||||||
return getHtmls(url, arkVo.getTimeOut() , arkVo.getDataType(), arkVo.getCharset());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 관리도구 자동완성 URL 호출해야 해당 결과 담기
|
|
||||||
* @param receiverURL 관리도구 URL 정보
|
|
||||||
* @param parameter ark 파라미터값
|
|
||||||
* @param timeout ark 연결 시간 고정으로 1000
|
|
||||||
* @param datatype 관리도구 web화면 데이타 타입
|
|
||||||
* @param charset 케릭터 타임
|
|
||||||
* @return dataType 에 따른 자동완성 결과
|
|
||||||
*/
|
|
||||||
private String getHtmls(String receiverURL, int timeout, String datatype , String charset) {
|
|
||||||
StringBuffer receiveMsg = new StringBuffer();
|
|
||||||
BufferedReader in = null;
|
|
||||||
int errorCode = 0;
|
|
||||||
try {
|
|
||||||
|
|
||||||
// -- receive servlet connect
|
|
||||||
URL servletUrl = new URL(receiverURL);
|
|
||||||
HttpURLConnection uc = (HttpURLConnection)servletUrl.openConnection();
|
|
||||||
uc.setReadTimeout(timeout);
|
|
||||||
uc.setRequestMethod("GET");
|
|
||||||
uc.setDoOutput(true);
|
|
||||||
uc.setDoInput(true);
|
|
||||||
uc.setUseCaches(false);
|
|
||||||
uc.connect();
|
|
||||||
// init
|
|
||||||
errorCode = 0;
|
|
||||||
//System.out.println("[URLConnection Response Code] " + uc.getResponseCode());
|
|
||||||
// -- Network error check
|
|
||||||
if (uc.getResponseCode() == HttpURLConnection.HTTP_OK) {
|
|
||||||
String currLine = new String();
|
|
||||||
//UTF-8인 경우
|
|
||||||
in = new BufferedReader(new InputStreamReader(uc.getInputStream(), "UTF-8"));
|
|
||||||
while ((currLine = in.readLine()) != null) {
|
|
||||||
receiveMsg.append(currLine).append("\r\n");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
errorCode = uc.getResponseCode();
|
|
||||||
return receiveMsg.toString();
|
|
||||||
}
|
|
||||||
uc.disconnect();
|
|
||||||
} catch(Exception ex) {
|
|
||||||
receiveMsg.setLength(0);
|
|
||||||
if(datatype.toLowerCase().equals("xml")){
|
|
||||||
receiveMsg.append("<?xml version=\"1.0\" encoding=\""+charset+"\" ?>");
|
|
||||||
receiveMsg.append("<Response>");
|
|
||||||
receiveMsg.append("<Value>");
|
|
||||||
receiveMsg.append("<Return>0</Return>");
|
|
||||||
receiveMsg.append(" <ARKList>");
|
|
||||||
receiveMsg.append("<TotalCount>0</TotalCount>");
|
|
||||||
receiveMsg.append("</ARKList>");
|
|
||||||
receiveMsg.append("<ARKRList>");
|
|
||||||
receiveMsg.append(" <TotalCount>0</TotalCount>");
|
|
||||||
receiveMsg.append("</ARKRList>");
|
|
||||||
receiveMsg.append("</Value>");
|
|
||||||
receiveMsg.append("</Response>");
|
|
||||||
}else if(datatype.toLowerCase().equals("json")){
|
|
||||||
receiveMsg.append("{\"responsestatus\":0,\"result\":[{\"totalcount\":0},{\"totalcount\":0}]}");
|
|
||||||
}
|
|
||||||
LOGGER.debug("[getHtmls() URL]["+ receiverURL +"]");
|
|
||||||
LOGGER.debug("[getHtmls() error][errorCode:"+errorCode+"]["+ex+"]");
|
|
||||||
} finally {
|
|
||||||
if (in != null) {
|
|
||||||
try {
|
|
||||||
in.close();
|
|
||||||
} catch (IOException ex) {
|
|
||||||
LOGGER.info("IOException occurred");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return receiveMsg.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,133 +0,0 @@
|
|||||||
package kccf.sch.service.impl;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.net.URL;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
|
||||||
import kccf.sch.service.PopWordService;
|
|
||||||
import kccf.sch.service.vo.PopWordVO;
|
|
||||||
import kccf.sch.service.vo.Sf1VO;
|
|
||||||
|
|
||||||
@Service("PopwordService")
|
|
||||||
public class PopWordServiceImpl extends EgovAbstractServiceImpl implements PopWordService{
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(PopWordServiceImpl.class);
|
|
||||||
/**
|
|
||||||
* 인기검색어 호출
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getPopWord(PopWordVO popWordVo, Sf1VO sf1Vo) throws Exception {
|
|
||||||
StringBuffer urlSb = new StringBuffer();
|
|
||||||
urlSb.append("http://");
|
|
||||||
urlSb.append(sf1Vo.getManagerIp()).append(":");
|
|
||||||
urlSb.append(sf1Vo.getManagerPort());
|
|
||||||
urlSb.append("/manager/WNRun.do?");
|
|
||||||
|
|
||||||
urlSb.append("target=").append(popWordVo.getTarget());
|
|
||||||
urlSb.append("&charset=").append(popWordVo.getCharset());
|
|
||||||
urlSb.append("&range=").append(popWordVo.getRange());
|
|
||||||
urlSb.append("&collection=").append(popWordVo.getCollection());
|
|
||||||
urlSb.append("&datatype=").append(popWordVo.getDataType());
|
|
||||||
|
|
||||||
//urlSb.append("&convert=fw");
|
|
||||||
|
|
||||||
String url = urlSb.toString();
|
|
||||||
if(popWordVo.getDebugType().equals("Y")){
|
|
||||||
LOGGER.info("[getPopWord() URL]["+url+"]");
|
|
||||||
LOGGER.info("[getPopWord() sf1Vo.toString()]["+sf1Vo.toString()+"]");
|
|
||||||
LOGGER.info("[getPopWord() popWordVo.toString()]["+popWordVo.toString()+"]");
|
|
||||||
}
|
|
||||||
return getHtmls(url, popWordVo.getTimeOut() , popWordVo.getRange() , popWordVo.getDataType() , popWordVo.getCharset());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 관리도구 자동완성 URL 호출해야 해당 결과 담기
|
|
||||||
* @param receiverURL 호출 URL
|
|
||||||
* @param timeout 연결시간
|
|
||||||
* @param range 인기검색어 조회 범위설정[D:하루 ,W:주 ,M:월]
|
|
||||||
* @param datatype 데이타 타입 [xml or json]
|
|
||||||
* @param charset 인코딩 셋 [euc-kr or UTF-8]
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public String getHtmls(String receiverURL, int timeout , String range , String datatype , String charset){
|
|
||||||
StringBuffer receiveMsg = new StringBuffer();
|
|
||||||
BufferedReader in = null;
|
|
||||||
int errorCode = 0;
|
|
||||||
try{
|
|
||||||
|
|
||||||
// -- receive servlet connect
|
|
||||||
URL servletUrl = new URL(receiverURL);
|
|
||||||
HttpURLConnection uc = (HttpURLConnection)servletUrl.openConnection();
|
|
||||||
uc.setReadTimeout(timeout);
|
|
||||||
uc.setRequestMethod("POST");
|
|
||||||
uc.setDoOutput(true);
|
|
||||||
uc.setDoInput(true);
|
|
||||||
uc.setUseCaches(false);
|
|
||||||
uc.connect();
|
|
||||||
// init
|
|
||||||
errorCode = 0;
|
|
||||||
// -- Network error check
|
|
||||||
if(uc.getResponseCode() == HttpURLConnection.HTTP_OK){
|
|
||||||
String currLine = new String();
|
|
||||||
//UTF-8인 경우
|
|
||||||
in = new BufferedReader(new InputStreamReader(uc.getInputStream(), "UTF-8"));
|
|
||||||
//BufferedReader in = new BufferedReader(new InputStreamReader(uc.getInputStream()));
|
|
||||||
while ((currLine = in.readLine()) != null){
|
|
||||||
receiveMsg.append(currLine).append("\r\n");
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
/*
|
|
||||||
errorCode = uc.getResponseCode();
|
|
||||||
return receiveMsg.toString();
|
|
||||||
*/
|
|
||||||
errorCode = uc.getResponseCode();
|
|
||||||
receiveMsg.setLength(0);
|
|
||||||
if(datatype.toLowerCase().equals("xml")){
|
|
||||||
receiveMsg.append("<?xml version=\"1.0\" encoding=\""+charset+"\"?>").append("\r\n");
|
|
||||||
receiveMsg.append("<Data>").append("\r\n");
|
|
||||||
receiveMsg.append("<MakeTime>error:"+errorCode+"</MakeTime>").append("\r\n");
|
|
||||||
receiveMsg.append("<Label id=\""+range+"\"></Label>").append("\r\n");
|
|
||||||
receiveMsg.append("<Type id=\""+range+"\"></Type>").append("\r\n");
|
|
||||||
receiveMsg.append("</Data>").append("\r\n");
|
|
||||||
}else if(datatype.toLowerCase().equals("json")){
|
|
||||||
receiveMsg.append("{\"Data\":{\"MakeTime\":\"error\",\"Query\":[{}],\"Type\":{\"content\":\""+errorCode+"\",\"id\":\""+range+"\"},\"Label\":{\"content\":\""+errorCode+"\",\"id\":\""+range+"\"}}}");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
uc.disconnect();
|
|
||||||
}catch(Exception ex){
|
|
||||||
receiveMsg.setLength(0);
|
|
||||||
if(datatype.toLowerCase().equals("xml")){
|
|
||||||
receiveMsg.append("<?xml version=\"1.0\" encoding=\""+charset+"\"?>").append("\r\n");
|
|
||||||
receiveMsg.append("<Data>").append("\r\n");
|
|
||||||
receiveMsg.append("<MakeTime>error</MakeTime>").append("\r\n");
|
|
||||||
receiveMsg.append("<Label id=\""+range+"\">"+ex+"</Label>").append("\r\n");
|
|
||||||
receiveMsg.append("<Type id=\""+range+"\"></Type>").append("\r\n");
|
|
||||||
receiveMsg.append("</Data>").append("\r\n");
|
|
||||||
}else if(datatype.toLowerCase().equals("json")){
|
|
||||||
receiveMsg.append("{\"Data\":{\"MakeTime\":\"error\",\"Query\":[{}],\"Type\":{\"content\":\""+ex+"\",\"id\":\""+range+"\"},\"Label\":{\"content\":\""+ex+"\",\"id\":\""+range+"\"}}}");
|
|
||||||
}
|
|
||||||
LOGGER.debug("[getHtmls() URL]["+receiverURL+"]");
|
|
||||||
LOGGER.debug("[getHtmls() error][errorCode:"+errorCode+"]["+ex+"]");
|
|
||||||
}finally {
|
|
||||||
if (in != null) {
|
|
||||||
try {
|
|
||||||
in.close();
|
|
||||||
} catch (IOException ex) {
|
|
||||||
LOGGER.info("IOException occurred");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return receiveMsg.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,72 +0,0 @@
|
|||||||
package kccf.sch.service.vo;
|
|
||||||
|
|
||||||
public class ArkVO {
|
|
||||||
/** 키워드 */
|
|
||||||
private String query = "";
|
|
||||||
/** 자동완성 매칭방식 */
|
|
||||||
private String convert = "";
|
|
||||||
/** 자동완성 타겟 */
|
|
||||||
private String target = "";
|
|
||||||
/** 케릭터 셋 */
|
|
||||||
private String charset = "";
|
|
||||||
/** 데이타 타입 */
|
|
||||||
private String dataType = "";
|
|
||||||
/** 디버그 여부 */
|
|
||||||
private String debugType = "N";
|
|
||||||
/** 연결 시간 */
|
|
||||||
private Integer timeOut = 3000;
|
|
||||||
|
|
||||||
public String getQuery() {
|
|
||||||
return this.query;
|
|
||||||
}
|
|
||||||
public void setQuery(String query) {
|
|
||||||
this.query = query;
|
|
||||||
}
|
|
||||||
public String getConvert() {
|
|
||||||
return convert;
|
|
||||||
}
|
|
||||||
public void setConvert(String convert) {
|
|
||||||
this.convert = convert;
|
|
||||||
}
|
|
||||||
public String getTarget() {
|
|
||||||
return target;
|
|
||||||
}
|
|
||||||
public void setTarget(String target) {
|
|
||||||
this.target = target;
|
|
||||||
}
|
|
||||||
public String getCharset() {
|
|
||||||
return charset;
|
|
||||||
}
|
|
||||||
public void setCharset(String charset) {
|
|
||||||
this.charset = charset;
|
|
||||||
}
|
|
||||||
public String getDataType() {
|
|
||||||
return dataType;
|
|
||||||
}
|
|
||||||
public void setDataType(String dataType) {
|
|
||||||
this.dataType = dataType;
|
|
||||||
}
|
|
||||||
public String getDebugType() {
|
|
||||||
return debugType;
|
|
||||||
}
|
|
||||||
public void setDebugType(String debugType) {
|
|
||||||
this.debugType = debugType;
|
|
||||||
}
|
|
||||||
public int getTimeOut() {
|
|
||||||
return timeOut;
|
|
||||||
}
|
|
||||||
public void setTimeOut(Integer timeOut) {
|
|
||||||
this.timeOut = timeOut;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "ArkVO [query=" + getQuery() + ", convert=" + getConvert() + ", target="
|
|
||||||
+ getTarget() + ", charset=" + getCharset() + ", dataType=" + getDataType()
|
|
||||||
+ ", debugType=" + getDebugType() + ", timeOut=" + getTimeOut() + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,86 +0,0 @@
|
|||||||
package kccf.sch.service.vo;
|
|
||||||
|
|
||||||
public class PopWordVO {
|
|
||||||
/** 인기검색어 타겟 popword 고정 참조 */
|
|
||||||
private String target = "popword";
|
|
||||||
/** 인코딩 셋 */
|
|
||||||
private String charset = "";
|
|
||||||
/** 인기검색어 조회 범위설정 */
|
|
||||||
private String range = "";
|
|
||||||
/** collection 통계라벨ID */
|
|
||||||
private String collection ="";
|
|
||||||
/** 데이타 타입 */
|
|
||||||
private String dataType = "";
|
|
||||||
/** 인코딩 셋 */
|
|
||||||
private String eq = "";
|
|
||||||
/** 인코딩 셋 */
|
|
||||||
private String es = "";
|
|
||||||
/** 디버그메시지 */
|
|
||||||
private String debugType ="N";
|
|
||||||
/** 타임 아웃 */
|
|
||||||
private Integer timeOut =1000;
|
|
||||||
|
|
||||||
public String getTarget() {
|
|
||||||
return target;
|
|
||||||
}
|
|
||||||
public void setTarget(String target) {
|
|
||||||
this.target = target;
|
|
||||||
}
|
|
||||||
public String getCharset() {
|
|
||||||
return charset;
|
|
||||||
}
|
|
||||||
public void setCharset(String charset) {
|
|
||||||
this.charset = charset;
|
|
||||||
}
|
|
||||||
public String getRange() {
|
|
||||||
return range;
|
|
||||||
}
|
|
||||||
public void setRange(String range) {
|
|
||||||
this.range = range;
|
|
||||||
}
|
|
||||||
public String getCollection() {
|
|
||||||
return collection;
|
|
||||||
}
|
|
||||||
public void setCollection(String collection) {
|
|
||||||
this.collection = collection;
|
|
||||||
}
|
|
||||||
public String getDataType() {
|
|
||||||
return dataType;
|
|
||||||
}
|
|
||||||
public void setDataType(String dataType) {
|
|
||||||
this.dataType = dataType;
|
|
||||||
}
|
|
||||||
public String getDebugType() {
|
|
||||||
return debugType;
|
|
||||||
}
|
|
||||||
public void setDebugType(String debugType) {
|
|
||||||
this.debugType = debugType;
|
|
||||||
}
|
|
||||||
public int getTimeOut() {
|
|
||||||
return timeOut;
|
|
||||||
}
|
|
||||||
public void setTimeOut(Integer timeOut) {
|
|
||||||
this.timeOut = timeOut;
|
|
||||||
}
|
|
||||||
public String getEq() {
|
|
||||||
return eq;
|
|
||||||
}
|
|
||||||
public void setEq(String eq) {
|
|
||||||
this.eq = eq;
|
|
||||||
}
|
|
||||||
public String getEs() {
|
|
||||||
return es;
|
|
||||||
}
|
|
||||||
public void setEs(String es) {
|
|
||||||
this.es = es;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "PopWordVO [target=" + getTarget() + ", charset=" + getCharset()
|
|
||||||
+ ", range=" + getRange() + ", collection=" + getCollection()
|
|
||||||
+ ", dataType=" + getDataType() + ", debugType=" + getDebugType()
|
|
||||||
+ ", timeOut=" + getTimeOut() + ", eq=" + getEq() + ", es=" + getEs() + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,140 +0,0 @@
|
|||||||
package kccf.sch.service.vo;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 검색결과 컬렉션 VO
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class SearchCollectionVO {
|
|
||||||
/** 컬렉션명*/
|
|
||||||
private String CollectionName = "";
|
|
||||||
/** 컬렉션의 총검색 건수 */
|
|
||||||
private int totalCount = 0;
|
|
||||||
/** 컬렉션의 반환되는 검색 건수 */
|
|
||||||
private int resultCount = 0;
|
|
||||||
/** 컬렉션의 검색결과 리스트 */
|
|
||||||
private ArrayList<Map<Object ,Object>> searchResultList = null;
|
|
||||||
|
|
||||||
public String getCollectionName() {
|
|
||||||
return CollectionName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCollectionName(String collectionName) {
|
|
||||||
CollectionName = collectionName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getTotalCount() {
|
|
||||||
return totalCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTotalCount(int totalCount) {
|
|
||||||
this.totalCount = totalCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getResultCount() {
|
|
||||||
return resultCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setResultCount(int resultCount) {
|
|
||||||
this.resultCount = resultCount;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "SearchCollectionVO [CollectionName=" + CollectionName
|
|
||||||
+ ", totalCount=" + totalCount + ", resultCount=" + resultCount
|
|
||||||
+ ", searchResultList=" + searchResultList + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<Map<Object ,Object>> getSearchResultList() {
|
|
||||||
ArrayList<Map<Object ,Object>> searchResultListRet = new ArrayList<Map<Object ,Object>>();
|
|
||||||
searchResultListRet.addAll(searchResultList);
|
|
||||||
return searchResultListRet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSearchResultList(ArrayList<Map<Object ,Object>> searchResultList) {
|
|
||||||
if(searchResultList != null){
|
|
||||||
this.searchResultList = new ArrayList<Map<Object ,Object>>();
|
|
||||||
for(int i = 0; i < searchResultList.size(); ++i){
|
|
||||||
this.searchResultList.add(searchResultList.get(i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 컬렉션 단위의 xml 모양
|
|
||||||
* @return XML 모양의 String 값
|
|
||||||
* @see toXml() 에서 사용됨
|
|
||||||
*/
|
|
||||||
public String getXml(){
|
|
||||||
StringBuffer xmlStr = new StringBuffer(1024);
|
|
||||||
xmlStr.append("<collection collectionName=\""+getCollectionName()+"\">").append(System.getProperty("line.separator"));
|
|
||||||
xmlStr.append("<totalCount><![CDATA["+ getTotalCount()+"]]></totalCount>").append(System.getProperty("line.separator"));
|
|
||||||
xmlStr.append("<resultCount><![CDATA["+ getResultCount()+"]]></resultCount>").append(System.getProperty("line.separator"));
|
|
||||||
xmlStr.append("<Rows>").append(System.getProperty("line.separator"));
|
|
||||||
List<?> searchResultList = getSearchResultList();
|
|
||||||
int searchResultListCount = searchResultList.size();
|
|
||||||
|
|
||||||
/*
|
|
||||||
for(int i = 0 ; i < SearchResultListCount ; i++){
|
|
||||||
AbstractSearchResult resultVo = this.SearchResultList.get(i);
|
|
||||||
xmlStr.append(resultVo.getXml());
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
xmlStr.append("</Rows>").append(System.getProperty("line.separator"));
|
|
||||||
xmlStr.append("</collection>");
|
|
||||||
return xmlStr.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 컬렉션 단위의 json 모양
|
|
||||||
* @return json 형태의 String 값
|
|
||||||
* @see toJson() 에서 사용됨
|
|
||||||
*/
|
|
||||||
public String getJson(){
|
|
||||||
StringBuffer jsonBr = new StringBuffer(1024);
|
|
||||||
jsonBr.append("{\"collection\":");
|
|
||||||
jsonBr.append("{");
|
|
||||||
jsonBr.append("\"totalCount\":\""+ getTotalCount()+"\",");
|
|
||||||
jsonBr.append("\"resultCount\":\""+ getResultCount()+"\",");
|
|
||||||
jsonBr.append("\"itemList\":[");
|
|
||||||
List<?> searchResultList = getSearchResultList();
|
|
||||||
int searchResultListCount = searchResultList.size();
|
|
||||||
for(int i = 0 ; i < searchResultListCount ; i++){
|
|
||||||
/*
|
|
||||||
AbstractSearchResult resultVo = SearchResultList.get(i);
|
|
||||||
jsonBr.append(resultVo.getJson());
|
|
||||||
if(i != SearchResultListCount-1 ){
|
|
||||||
jsonBr.append(",");
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
jsonBr.append("]");
|
|
||||||
jsonBr.append(",\"collectionName\":\""+ getCollectionName()+"\"}");
|
|
||||||
jsonBr.append("}");
|
|
||||||
return jsonBr.toString();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* 컬렉션 단위의 str 모양
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public String getStr(){
|
|
||||||
StringBuffer br = new StringBuffer(1024);
|
|
||||||
br.append("[collection][collectionName:").append(getCollectionName()).append("]").append(System.getProperty("line.separator"));
|
|
||||||
br.append("[collection][totalCount:").append(getTotalCount()).append("]").append(System.getProperty("line.separator"));
|
|
||||||
br.append("[collection][resultCount:").append(getResultCount()).append("]").append(System.getProperty("line.separator"));
|
|
||||||
List<?> searchResultList = getSearchResultList();
|
|
||||||
int searchResultListCount = searchResultList.size();
|
|
||||||
for(int i = 0 ; i < searchResultListCount ; i++){
|
|
||||||
/*
|
|
||||||
AbstractSearchResult resultVo = SearchResultList.get(i);
|
|
||||||
br.append("[").append(i).append("]").append(resultVo.getStr()).append(System.getProperty("line.separator"));
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
return br.toString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,409 +0,0 @@
|
|||||||
package kccf.sch.service.vo;
|
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 이용문의 사용 VO
|
|
||||||
* @Class Name : QnaVO.java
|
|
||||||
* @author wisenut
|
|
||||||
* @since 2018-09-12
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class SearchVO {
|
|
||||||
|
|
||||||
private String query ; //검색어
|
|
||||||
|
|
||||||
private String realQuery ; //검색어(최종)
|
|
||||||
private String reQuery = ""; //결과내 재검색
|
|
||||||
private String operator = ""; //검색 연산자
|
|
||||||
|
|
||||||
private String rt; //결과내재검색 체크
|
|
||||||
|
|
||||||
private String notQuery ; //제외하는 검색어
|
|
||||||
private String andQuery ; //반드시 포함하는 검색어
|
|
||||||
private String exactQuery ; //정확히 일치하는 검색어
|
|
||||||
|
|
||||||
private String sortField = ""; //정렬조건
|
|
||||||
private String range = ""; //검색기간
|
|
||||||
private int viewCount = 0; //출력갯수(통합)
|
|
||||||
private String chkColls = ""; //상세검색 컬렉션 체크
|
|
||||||
private String searchField = "" ; //검색필드
|
|
||||||
|
|
||||||
private int startCount = 1; //시작위치
|
|
||||||
private String startDate = ""; //시작날짜
|
|
||||||
private String endDate = ""; //끝날짜
|
|
||||||
|
|
||||||
private String collection = ""; //컬렉션이름
|
|
||||||
private String debug = "N"; //디버그 Y/N
|
|
||||||
|
|
||||||
/**filter query**/
|
|
||||||
private String chronological_start ; //연대 앞 기간
|
|
||||||
private String chronological_end ; //연대 뒤 기간
|
|
||||||
private String genyear_start ; //발행년대 앞 기간
|
|
||||||
private String genyear_end ; //발행년대 뒤 기간
|
|
||||||
|
|
||||||
/**exquery**/
|
|
||||||
private String trs_age; //시대
|
|
||||||
private String mgnt_no ; //관리번호
|
|
||||||
private String first_category ; //주제분야(대) 선택
|
|
||||||
private String second_category ; //주제분야(소) 선택
|
|
||||||
private String theme ; //문화테마(대) 선택
|
|
||||||
private String series ; //문화테마(소) 선택
|
|
||||||
|
|
||||||
private String theme_cd ; //이야기자료 테마코드(대) 선택
|
|
||||||
private String theme_nm ; //이야기자료 테마(대) 선택
|
|
||||||
private String series_cd ; //이야기자료 시리즈코드(소) 선택
|
|
||||||
private String series_nm ; //이야기자료 시리즈(소) 선택
|
|
||||||
|
|
||||||
private String first_class ; //자료유형(대) 선택
|
|
||||||
private String second_class; //자료유형(소) 선택
|
|
||||||
private String sido_name; //지역문화원(대) 선택 - 카테고리
|
|
||||||
private String sojang_council ; //지역문화원(소) 선택 - 카테고리
|
|
||||||
//String keywords = ""; //키워드
|
|
||||||
|
|
||||||
private String search_area_council_info ; //지역문화정보(지역)
|
|
||||||
private String content_type ; //지역문화정보(유형)
|
|
||||||
|
|
||||||
private String filter_class ; //필터 더보기버튼 유지+depth1 open
|
|
||||||
private String filter_sido ; //필터 더보기버튼 유지+depth1 open
|
|
||||||
private String filter_thema ; //필터 더보기버튼 유지+depth1 open
|
|
||||||
private String filter_category ; //필터 더보기버튼 유지+depth1 open
|
|
||||||
private String filter_info_sido ; //필터 더보기버튼 유지
|
|
||||||
private String filter_info_type ; //필터 더보기버튼 유지
|
|
||||||
|
|
||||||
private String reQueryChk ="query"; //결과내재검색 체크 유지
|
|
||||||
|
|
||||||
private String filter_mylist; //검색결과 필터 순서 저장
|
|
||||||
private String filter_info_mylist; //검색결과 필터 info 순서 저장
|
|
||||||
|
|
||||||
//임시 변수
|
|
||||||
private String itemType; // 대출,열람,기타탭
|
|
||||||
|
|
||||||
public String getItemType() {
|
|
||||||
return itemType;
|
|
||||||
}
|
|
||||||
public void setItemType(String itemType) {
|
|
||||||
this.itemType = itemType;
|
|
||||||
}
|
|
||||||
public String getFilter_info_mylist() {
|
|
||||||
return filter_info_mylist;
|
|
||||||
}
|
|
||||||
public void setFilter_info_mylist(String filter_info_mylist) {
|
|
||||||
this.filter_info_mylist = filter_info_mylist;
|
|
||||||
}
|
|
||||||
public String getFilter_mylist() {
|
|
||||||
return filter_mylist;
|
|
||||||
}
|
|
||||||
public void setFilter_mylist(String filter_mylist) {
|
|
||||||
this.filter_mylist = filter_mylist;
|
|
||||||
}
|
|
||||||
public String getFilter_info_sido() {
|
|
||||||
return filter_info_sido;
|
|
||||||
}
|
|
||||||
public void setFilter_info_sido(String filter_info_sido) {
|
|
||||||
this.filter_info_sido = filter_info_sido;
|
|
||||||
}
|
|
||||||
public String getFilter_info_type() {
|
|
||||||
return filter_info_type;
|
|
||||||
}
|
|
||||||
public void setFilter_info_type(String filter_info_type) {
|
|
||||||
this.filter_info_type = filter_info_type;
|
|
||||||
}
|
|
||||||
public String getContent_type() {
|
|
||||||
return content_type;
|
|
||||||
}
|
|
||||||
public void setContent_type(String content_type) {
|
|
||||||
this.content_type = content_type;
|
|
||||||
}
|
|
||||||
public String getSearch_area_council_info() {
|
|
||||||
return search_area_council_info;
|
|
||||||
}
|
|
||||||
public void setSearch_area_council_info(String search_area_council_info) {
|
|
||||||
this.search_area_council_info = search_area_council_info;
|
|
||||||
}
|
|
||||||
public String getRt() {
|
|
||||||
return rt;
|
|
||||||
}
|
|
||||||
public void setRt(String rt) {
|
|
||||||
this.rt = rt;
|
|
||||||
}
|
|
||||||
public String getQuery() {
|
|
||||||
return query;
|
|
||||||
}
|
|
||||||
public void setQuery(String query) {
|
|
||||||
this.query = query;
|
|
||||||
}
|
|
||||||
public String getRealQuery() {
|
|
||||||
return realQuery;
|
|
||||||
}
|
|
||||||
public void setRealQuery(String realQuery) {
|
|
||||||
this.realQuery = realQuery;
|
|
||||||
}
|
|
||||||
public String getReQuery() {
|
|
||||||
return reQuery;
|
|
||||||
}
|
|
||||||
public void setReQuery(String reQuery) {
|
|
||||||
this.reQuery = reQuery;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSortField() {
|
|
||||||
return sortField;
|
|
||||||
}
|
|
||||||
public void setSortField(String sortField) {
|
|
||||||
this.sortField = sortField;
|
|
||||||
}
|
|
||||||
public String getRange() {
|
|
||||||
return range;
|
|
||||||
}
|
|
||||||
public void setRange(String range) {
|
|
||||||
this.range = range;
|
|
||||||
}
|
|
||||||
public int getViewCount() {
|
|
||||||
return viewCount;
|
|
||||||
}
|
|
||||||
public void setViewCount(int viewCount) {
|
|
||||||
this.viewCount = viewCount;
|
|
||||||
}
|
|
||||||
public String getChkColls() {
|
|
||||||
return chkColls;
|
|
||||||
}
|
|
||||||
public void setChkColls(String chkColls) {
|
|
||||||
this.chkColls = chkColls;
|
|
||||||
}
|
|
||||||
public String getSearchField() {
|
|
||||||
return searchField;
|
|
||||||
}
|
|
||||||
public void setSearchField(String searchField) {
|
|
||||||
this.searchField = searchField;
|
|
||||||
}
|
|
||||||
public int getStartCount() {
|
|
||||||
return startCount;
|
|
||||||
}
|
|
||||||
public void setStartCount(int startCount) {
|
|
||||||
this.startCount = startCount;
|
|
||||||
}
|
|
||||||
public String getCollection() {
|
|
||||||
return collection;
|
|
||||||
}
|
|
||||||
public void setCollection(String collection) {
|
|
||||||
this.collection = collection;
|
|
||||||
}
|
|
||||||
public String getDebug() {
|
|
||||||
return debug;
|
|
||||||
}
|
|
||||||
public void setDebug(String debug) {
|
|
||||||
this.debug = debug;
|
|
||||||
}
|
|
||||||
public String getChronological_start() {
|
|
||||||
return chronological_start;
|
|
||||||
}
|
|
||||||
public void setChronological_start(String chronological_start) {
|
|
||||||
this.chronological_start = chronological_start;
|
|
||||||
}
|
|
||||||
public String getChronological_end() {
|
|
||||||
return chronological_end;
|
|
||||||
}
|
|
||||||
public void setChronological_end(String chronological_end) {
|
|
||||||
this.chronological_end = chronological_end;
|
|
||||||
}
|
|
||||||
public String getGenyear_start() {
|
|
||||||
return genyear_start;
|
|
||||||
}
|
|
||||||
public void setGenyear_start(String genyear_start) {
|
|
||||||
this.genyear_start = genyear_start;
|
|
||||||
}
|
|
||||||
public String getGenyear_end() {
|
|
||||||
return genyear_end;
|
|
||||||
}
|
|
||||||
public void setGenyear_end(String genyear_end) {
|
|
||||||
this.genyear_end = genyear_end;
|
|
||||||
}
|
|
||||||
public String getTrs_age() {
|
|
||||||
return trs_age;
|
|
||||||
}
|
|
||||||
public void setTrs_age(String trs_age) {
|
|
||||||
this.trs_age = trs_age;
|
|
||||||
}
|
|
||||||
public String getMgnt_no() {
|
|
||||||
return mgnt_no;
|
|
||||||
}
|
|
||||||
public void setMgnt_no(String mgnt_no) {
|
|
||||||
this.mgnt_no = mgnt_no;
|
|
||||||
}
|
|
||||||
public String getFirst_category() {
|
|
||||||
return first_category;
|
|
||||||
}
|
|
||||||
public void setFirst_category(String first_category) {
|
|
||||||
this.first_category = first_category;
|
|
||||||
}
|
|
||||||
public String getSecond_category() {
|
|
||||||
return second_category;
|
|
||||||
}
|
|
||||||
public void setSecond_category(String second_category) {
|
|
||||||
this.second_category = second_category;
|
|
||||||
}
|
|
||||||
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 getTheme_cd() {
|
|
||||||
return theme_cd;
|
|
||||||
}
|
|
||||||
public void setTheme_cd(String theme_cd) {
|
|
||||||
this.theme_cd = theme_cd;
|
|
||||||
}
|
|
||||||
public String getTheme_nm() {
|
|
||||||
return theme_nm;
|
|
||||||
}
|
|
||||||
public void setTheme_nm(String theme_nm) {
|
|
||||||
this.theme_nm = theme_nm;
|
|
||||||
}
|
|
||||||
public String getSeries_cd() {
|
|
||||||
return series_cd;
|
|
||||||
}
|
|
||||||
public void setSeries_cd(String series_cd) {
|
|
||||||
this.series_cd = series_cd;
|
|
||||||
}
|
|
||||||
public String getSeries_nm() {
|
|
||||||
return series_nm;
|
|
||||||
}
|
|
||||||
public void setSeries_nm(String series_nm) {
|
|
||||||
this.series_nm = series_nm;
|
|
||||||
}
|
|
||||||
public String getFirst_class() {
|
|
||||||
return first_class;
|
|
||||||
}
|
|
||||||
public void setFirst_class(String first_class) {
|
|
||||||
this.first_class = first_class;
|
|
||||||
}
|
|
||||||
public String getSecond_class() {
|
|
||||||
return second_class;
|
|
||||||
}
|
|
||||||
public void setSecond_class(String second_class) {
|
|
||||||
this.second_class = second_class;
|
|
||||||
}
|
|
||||||
public String getSido_name() {
|
|
||||||
return sido_name;
|
|
||||||
}
|
|
||||||
public void setSido_name(String sido_name) {
|
|
||||||
this.sido_name = sido_name;
|
|
||||||
}
|
|
||||||
public String getSojang_council() {
|
|
||||||
return sojang_council;
|
|
||||||
}
|
|
||||||
public void setSojang_council(String sojang_council) {
|
|
||||||
this.sojang_council = sojang_council;
|
|
||||||
}
|
|
||||||
public String getStartDate() {
|
|
||||||
return startDate;
|
|
||||||
}
|
|
||||||
public void setStartDate(String startDate) {
|
|
||||||
this.startDate = startDate;
|
|
||||||
}
|
|
||||||
public String getEndDate() {
|
|
||||||
return endDate;
|
|
||||||
}
|
|
||||||
public void setEndDate(String endDate) {
|
|
||||||
this.endDate = endDate;
|
|
||||||
}
|
|
||||||
public String getOperator() {
|
|
||||||
return operator;
|
|
||||||
}
|
|
||||||
public void setOperator(String operator) {
|
|
||||||
this.operator = operator;
|
|
||||||
}
|
|
||||||
public String getNotQuery() {
|
|
||||||
return notQuery;
|
|
||||||
}
|
|
||||||
public void setNotQuery(String notQuery) {
|
|
||||||
this.notQuery = notQuery;
|
|
||||||
}
|
|
||||||
public String getAndQuery() {
|
|
||||||
return andQuery;
|
|
||||||
}
|
|
||||||
public void setAndQuery(String andQuery) {
|
|
||||||
this.andQuery = andQuery;
|
|
||||||
}
|
|
||||||
public String getExactQuery() {
|
|
||||||
return exactQuery;
|
|
||||||
}
|
|
||||||
public void setExactQuery(String exactQuery) {
|
|
||||||
this.exactQuery = exactQuery;
|
|
||||||
}
|
|
||||||
public String getFilter_class() {
|
|
||||||
return filter_class;
|
|
||||||
}
|
|
||||||
public void setFilter_class(String filter_class) {
|
|
||||||
this.filter_class = filter_class;
|
|
||||||
}
|
|
||||||
public String getFilter_sido() {
|
|
||||||
return filter_sido;
|
|
||||||
}
|
|
||||||
public void setFilter_sido(String filter_sido) {
|
|
||||||
this.filter_sido = filter_sido;
|
|
||||||
}
|
|
||||||
public String getFilter_thema() {
|
|
||||||
return filter_thema;
|
|
||||||
}
|
|
||||||
public void setFilter_thema(String filter_thema) {
|
|
||||||
this.filter_thema = filter_thema;
|
|
||||||
}
|
|
||||||
public String getFilter_category() {
|
|
||||||
return filter_category;
|
|
||||||
}
|
|
||||||
public void setFilter_category(String filter_category) {
|
|
||||||
this.filter_category = filter_category;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "SearchVO [query=" + query + ", realQuery=" + realQuery
|
|
||||||
+ ", reQuery=" + reQuery + ", operator=" + operator + ", rt="
|
|
||||||
+ rt + ", notQuery=" + notQuery + ", andQuery=" + andQuery
|
|
||||||
+ ", exactQuery=" + exactQuery + ", sortField=" + sortField
|
|
||||||
+ ", range=" + range + ", viewCount=" + viewCount
|
|
||||||
+ ", chkColls=" + chkColls + ", searchField=" + searchField
|
|
||||||
+ ", startCount=" + startCount + ", startDate=" + startDate
|
|
||||||
+ ", endDate=" + endDate + ", collection=" + collection
|
|
||||||
+ ", debug=" + debug + ", chronological_start="
|
|
||||||
+ chronological_start + ", chronological_end="
|
|
||||||
+ chronological_end + ", genyear_start=" + genyear_start
|
|
||||||
+ ", genyear_end=" + genyear_end + ", trs_age=" + trs_age
|
|
||||||
+ ", mgnt_no=" + mgnt_no + ", first_category=" + first_category
|
|
||||||
+ ", second_category=" + second_category
|
|
||||||
+ ", theme_cd=" + theme_cd
|
|
||||||
+ ", theme_nm=" + theme_nm
|
|
||||||
+ ", series_cd=" + series_cd
|
|
||||||
+ ", series_nm=" + series_nm
|
|
||||||
+ ", first_class=" + first_class
|
|
||||||
+ ", second_class=" + second_class + ", sido_name=" + sido_name
|
|
||||||
+ ", sojang_council=" + sojang_council
|
|
||||||
+ ", search_area_council_info=" + search_area_council_info
|
|
||||||
+ ", content_type=" + content_type + ", filter_class="
|
|
||||||
+ filter_class + ", filter_sido=" + filter_sido
|
|
||||||
+ ", filter_thema=" + filter_thema + ", filter_category="
|
|
||||||
+ filter_category + ", filter_info_sido=" + filter_info_sido
|
|
||||||
+ ", filter_info_type=" + filter_info_type + ", filter_mylist="
|
|
||||||
+ filter_mylist + ", filter_info_mylist=" + filter_info_mylist
|
|
||||||
+ "]";
|
|
||||||
}
|
|
||||||
public String getReQueryChk() {
|
|
||||||
return reQueryChk;
|
|
||||||
}
|
|
||||||
public void setReQueryChk(String reQueryChk) {
|
|
||||||
this.reQueryChk = reQueryChk;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
package kccf.sch.service.vo;
|
|
||||||
|
|
||||||
public class Sf1VO {
|
|
||||||
/** 검색기 IP */
|
|
||||||
private String searchIp = "";
|
|
||||||
/** 검색기 PORT*/
|
|
||||||
private Integer searchPort = 0;
|
|
||||||
/** 검색 타임아웃 */
|
|
||||||
private Integer searchTimeOut = 3000;
|
|
||||||
/** */
|
|
||||||
private String searchDebugType = "N";
|
|
||||||
/** 관리도구 IP */
|
|
||||||
private String managerIp;
|
|
||||||
/** 관리도구 PORT */
|
|
||||||
private Integer managerPort;
|
|
||||||
|
|
||||||
public String getSearchIp() {
|
|
||||||
return searchIp;
|
|
||||||
}
|
|
||||||
public void setSearchIp(String searchIp) {
|
|
||||||
this.searchIp = searchIp;
|
|
||||||
}
|
|
||||||
public Integer getSearchPort() {
|
|
||||||
return searchPort;
|
|
||||||
}
|
|
||||||
public void setSearchPort(Integer searchPort) {
|
|
||||||
this.searchPort = searchPort;
|
|
||||||
}
|
|
||||||
public Integer getSearchTimeOut() {
|
|
||||||
return searchTimeOut;
|
|
||||||
}
|
|
||||||
public void setSearchTimeOut(Integer searchTimeOut) {
|
|
||||||
this.searchTimeOut = searchTimeOut;
|
|
||||||
}
|
|
||||||
public String getSearchDebugType() {
|
|
||||||
return searchDebugType;
|
|
||||||
}
|
|
||||||
public void setSearchDebugType(String searchDebugType) {
|
|
||||||
this.searchDebugType = searchDebugType;
|
|
||||||
}
|
|
||||||
public String getManagerIp() {
|
|
||||||
return managerIp;
|
|
||||||
}
|
|
||||||
public void setManagerIp(String managerIp) {
|
|
||||||
this.managerIp = managerIp;
|
|
||||||
}
|
|
||||||
public Integer getManagerPort() {
|
|
||||||
return managerPort;
|
|
||||||
}
|
|
||||||
public void setManagerPort(Integer managerPort) {
|
|
||||||
this.managerPort = managerPort;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,765 +0,0 @@
|
|||||||
package kccf.sch.web;
|
|
||||||
|
|
||||||
import static kccf.sch.common.WNDefine.CONNECTION_CLOSE;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
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 kccf.sch.common.WNSearch;
|
|
||||||
import kccf.sch.common.WNUtils;
|
|
||||||
import kccf.sch.service.ArkService;
|
|
||||||
import kccf.sch.service.PopWordService;
|
|
||||||
import kccf.sch.service.SearchCollectionResult;
|
|
||||||
import kccf.sch.service.SearchService;
|
|
||||||
import kccf.sch.service.vo.ArkVO;
|
|
||||||
import kccf.sch.service.vo.PopWordVO;
|
|
||||||
import kccf.sch.service.vo.SearchCollectionVO;
|
|
||||||
import kccf.sch.service.vo.SearchVO;
|
|
||||||
import kccf.sch.service.vo.Sf1VO;
|
|
||||||
import kccf.ton.service.LocalToonService;
|
|
||||||
import nlib.cmm.service.CodeService;
|
|
||||||
import nlib.cmm.service.NlibProperty;
|
|
||||||
|
|
||||||
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.web.bind.annotation.ModelAttribute;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
|
|
||||||
import cmm.Constant;
|
|
||||||
import cmm.service.CmmActivityHstVO;
|
|
||||||
import cmm.service.CmmService;
|
|
||||||
import cmm.util.CmmUtil;
|
|
||||||
import cmm.util.DataMap;
|
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
|
||||||
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;
|
|
||||||
//추가
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
public class SearchController {
|
|
||||||
/** LOGGER */
|
|
||||||
//@SuppressWarnings("unused")
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(SearchController.class);
|
|
||||||
|
|
||||||
@Resource(name = "searchService")
|
|
||||||
private SearchService searchService;
|
|
||||||
|
|
||||||
@Resource(name = "nlibProperty")
|
|
||||||
protected NlibProperty nlibProperty;
|
|
||||||
|
|
||||||
@Resource(name="ArkService")
|
|
||||||
private ArkService arkService;
|
|
||||||
|
|
||||||
@Resource(name="PopwordService")
|
|
||||||
private PopWordService popWordService;
|
|
||||||
|
|
||||||
@Resource(name = "localToonService")
|
|
||||||
private LocalToonService localToonService;
|
|
||||||
|
|
||||||
/** CmmService */
|
|
||||||
@Resource(name = "cmmService")
|
|
||||||
private CmmService cmmService;
|
|
||||||
|
|
||||||
/** EgovCmmUseService */
|
|
||||||
@Resource(name = "EgovCmmUseService")
|
|
||||||
private EgovCmmUseService cmmUseService;
|
|
||||||
|
|
||||||
/** resourcesService */
|
|
||||||
@Resource(name = "resourcesService")
|
|
||||||
private ResourcesService resourcesService;
|
|
||||||
|
|
||||||
@Resource(name = "codeService")
|
|
||||||
private CodeService codeService;
|
|
||||||
|
|
||||||
|
|
||||||
/**SEARCHLIST**/
|
|
||||||
@RequestMapping(value="/sch/totalSearchList.do")
|
|
||||||
public String totalSearchList (
|
|
||||||
@ModelAttribute("searchVO") SearchVO searchVO
|
|
||||||
, String all_totalCount
|
|
||||||
, String gubun
|
|
||||||
, String gubun_ajax
|
|
||||||
, ModelMap model
|
|
||||||
, HttpServletRequest request
|
|
||||||
, HttpServletResponse res
|
|
||||||
|
|
||||||
) throws Exception
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
LOGGER.debug("[PATH][/sch/totalSearchList.do][searchVO][{}]",searchVO.toString());
|
|
||||||
//System.out.println("\n\n\n\n\n\n\n/*****************totalSearchList-searchVO.toString()********************/"+searchVO.toString());
|
|
||||||
searchVO.setRealQuery("한복");
|
|
||||||
searchVO.setQuery("한복");
|
|
||||||
searchVO.setCollection("reference_Coll");
|
|
||||||
// 검색관련 서버 설정
|
|
||||||
String searchIp = nlibProperty.getString("search.searchIp");
|
|
||||||
int searchPort = nlibProperty.getInt("search.searchPort");
|
|
||||||
int searchTimeOut = nlibProperty.getInt("search.searchTimeOut");
|
|
||||||
|
|
||||||
Sf1VO sf1Vo = new Sf1VO();
|
|
||||||
sf1Vo.setSearchIp(searchIp);
|
|
||||||
sf1Vo.setSearchPort(searchPort);
|
|
||||||
sf1Vo.setSearchTimeOut(searchTimeOut);
|
|
||||||
|
|
||||||
SearchCollectionResult collResult = searchService.getSearch(searchVO, sf1Vo);
|
|
||||||
|
|
||||||
all_totalCount = Integer.toString(searchService.getSearch_All_cnt(searchVO, sf1Vo));
|
|
||||||
|
|
||||||
// 결과
|
|
||||||
SearchCollectionVO collInfo = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collMap = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collNumber = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collPick = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collReferecne = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collStory = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collCulturePost = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collCulturePostHot = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collTotal = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collToon = new SearchCollectionVO();
|
|
||||||
|
|
||||||
|
|
||||||
int totalCount = 0;
|
|
||||||
int page_totalCount =0;
|
|
||||||
|
|
||||||
ArrayList<SearchCollectionVO> collList = collResult.getCollectionList();
|
|
||||||
|
|
||||||
int collListSize = collList.size();
|
|
||||||
for(int i = 0 ; i < collListSize ; i++){
|
|
||||||
SearchCollectionVO coll = collList.get(i);
|
|
||||||
String collEn = coll.getCollectionName();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(collEn.indexOf("culturePostHot") < 0 && collEn.indexOf("total") < 0 && collEn.indexOf("_cate") < 0){
|
|
||||||
totalCount = totalCount + coll.getTotalCount();
|
|
||||||
}
|
|
||||||
|
|
||||||
if( !searchVO.getCollection().equals("ALL") && searchVO.getCollection().indexOf("_Coll") >= 0){
|
|
||||||
if(searchVO.getCollection().replace("_Coll", "").equals(collEn)){
|
|
||||||
page_totalCount = coll.getTotalCount();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(collEn.equals("info")){
|
|
||||||
collInfo = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("map")){
|
|
||||||
collMap = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("number")){
|
|
||||||
collNumber = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("pick")){
|
|
||||||
collPick = coll;
|
|
||||||
|
|
||||||
}
|
|
||||||
else if(collEn.equals("reference")){
|
|
||||||
collReferecne = coll;
|
|
||||||
for(int j = 0 ; j < collReferecne.getSearchResultList().size() ; j++){
|
|
||||||
Map<Object ,Object> mapResult = collReferecne.getSearchResultList().get(j);
|
|
||||||
DataMap paramMap = new DataMap();
|
|
||||||
paramMap.put("mId", mapResult.get("MEDIA_ID"));
|
|
||||||
if(StringUtils.isNotEmpty(mapResult.get("MEDIA_ID").toString())){
|
|
||||||
DataMap media = cmmService.selectCmmAmsAssetsMediaDetail(paramMap);
|
|
||||||
String url="";
|
|
||||||
/*String mediaId = media.getString("mid");
|
|
||||||
String mediaInterfaceId = media.getString("interfaceId");
|
|
||||||
String url = "";
|
|
||||||
if (StringUtils.isNotEmpty(mediaInterfaceId)) { // mediaInterfaceId가 존재할 경우만 URL 정보 생성
|
|
||||||
if(media.get("assetType") != null){
|
|
||||||
if(media.get("assetType").toString().equals("문서") ){
|
|
||||||
url = CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY)+"/npdfView.do?";
|
|
||||||
url += "npdf="+Constant.UA_TYPE_R+mediaInterfaceId; // MEDIA 의 INTERFACE_ID 사용
|
|
||||||
|
|
||||||
}else if(media.get("assetType").toString().equals("링크")){
|
|
||||||
url = media.get("linkData").toString();
|
|
||||||
}else{
|
|
||||||
url = CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY)+"/lib/libraryDetail.do?contentId="+mediaId;
|
|
||||||
url += "&rfType="+Constant.UA_TYPE_R; // 히스토리 등록 시 사용
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
mapResult.put("LINK_URL", url);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if(collEn.equals("story")){
|
|
||||||
collStory = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("culturePost")){
|
|
||||||
collCulturePost = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("total")){
|
|
||||||
collTotal = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("total_tags")){
|
|
||||||
model.addAttribute("total_tags", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.indexOf("_cate") >= 0){ //cate
|
|
||||||
if(collEn.equals("first_class_cate")){
|
|
||||||
model.addAttribute("first_class_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_class_cate")){
|
|
||||||
model.addAttribute("second_class_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("first_council_cate")){
|
|
||||||
model.addAttribute("first_council_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_council_cate")){
|
|
||||||
model.addAttribute("second_council_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("first_category_cate")){
|
|
||||||
model.addAttribute("first_category_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_category_cate")){
|
|
||||||
model.addAttribute("second_category_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("first_theme_cate")){
|
|
||||||
model.addAttribute("first_theme_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_theme_cate")){
|
|
||||||
model.addAttribute("second_theme_cate", coll);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if(collEn.indexOf("culturePostHot") >= 0){ //cate
|
|
||||||
if(collEn.equals("culturePostHot")){
|
|
||||||
collCulturePostHot = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("culturePostHot_keywords")){
|
|
||||||
model.addAttribute("culturePostHot_keywords", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("culturePostHot_tags")){
|
|
||||||
model.addAttribute("culturePostHot_tags", coll);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// - 값 (검색엔진 오류 일때 0값 으로 )
|
|
||||||
if(totalCount < 0){
|
|
||||||
totalCount = 0;
|
|
||||||
}
|
|
||||||
model.addAttribute("totalCount",totalCount);
|
|
||||||
model.addAttribute("info", collInfo);
|
|
||||||
model.addAttribute("map", collMap);
|
|
||||||
model.addAttribute("number", collNumber);
|
|
||||||
model.addAttribute("pick", collPick);
|
|
||||||
model.addAttribute("reference", collReferecne);
|
|
||||||
model.addAttribute("story", collStory);
|
|
||||||
model.addAttribute("culturePost", collCulturePost);
|
|
||||||
model.addAttribute("culturePostHot", collCulturePostHot);
|
|
||||||
model.addAttribute("total", collTotal);
|
|
||||||
model.addAttribute("all_totalCount",all_totalCount);
|
|
||||||
model.addAttribute("toon",collToon);
|
|
||||||
|
|
||||||
// 경로
|
|
||||||
CmmUtil.setNfsPathModelMap(request,model);
|
|
||||||
|
|
||||||
// 페이징 관련
|
|
||||||
PaginationInfo paginationInfo = new PaginationInfo();
|
|
||||||
paginationInfo.setCurrentPageNo(searchVO.getStartCount());
|
|
||||||
if(searchVO.getCollection().indexOf("toon") >= 0){
|
|
||||||
if(searchVO.getViewCount() == 10){
|
|
||||||
paginationInfo.setRecordCountPerPage(12);
|
|
||||||
}else{
|
|
||||||
paginationInfo.setRecordCountPerPage(searchVO.getViewCount());
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
paginationInfo.setRecordCountPerPage(searchVO.getViewCount());
|
|
||||||
}
|
|
||||||
paginationInfo.setPageSize((CmmUtil.isMobile(request)) ? 5 :10);
|
|
||||||
//paginationInfo.setTotalRecordCount(totalCount);
|
|
||||||
|
|
||||||
paginationInfo.setTotalRecordCount(searchVO.getCollection().equals("ALL") || searchVO.getCollection().equals("") ? totalCount :page_totalCount );
|
|
||||||
model.addAttribute("paginationInfo", paginationInfo);
|
|
||||||
|
|
||||||
|
|
||||||
//serviceVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
|
||||||
//serviceVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
|
||||||
//serviceVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
|
||||||
|
|
||||||
model.addAttribute("searchVO", searchVO);
|
|
||||||
//System.out.println("\n\n\n\n\n\n\n/*****************totalSearchList-searchVO.toString()********************/"+searchVO.toString());
|
|
||||||
|
|
||||||
}catch(Exception e){
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
String resultUrl ="";
|
|
||||||
|
|
||||||
//자료유형
|
|
||||||
model.addAttribute("firstClassList", codeService.listCodes(Constant.CODE_ID_MASTER_TYPE_DIV_CD));
|
|
||||||
model.addAttribute("secondClassList", codeService.listCodes(Constant.CODE_ID_DTLS_TYPE_DIV_CD));
|
|
||||||
|
|
||||||
List<DataMap> councilList = resourcesService.selectCouncilList();
|
|
||||||
model.addAttribute("councilList", councilList);
|
|
||||||
|
|
||||||
resultUrl = "nlib/collection/searchReferenceListAjax";
|
|
||||||
|
|
||||||
//System.out.println("\n\n\n\n\n################################gubun_ajax:"+searchVO.getCollection()+"/"+gubun_ajax+"/"+resultUrl);
|
|
||||||
|
|
||||||
// ams 서버 패스 정보
|
|
||||||
CmmUtil.setAmsPathModelMap(request,model);
|
|
||||||
searchVO.setQuery(searchVO.getQuery().replaceAll("\\\"", """));
|
|
||||||
searchVO.setExactQuery(searchVO.getExactQuery().replaceAll("\\\"", """));
|
|
||||||
|
|
||||||
return resultUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** POPWORD */
|
|
||||||
@RequestMapping(value="/sch/popword.do")
|
|
||||||
public String popword(@ModelAttribute("PopWordVO") PopWordVO popWordVo, ModelMap model) throws Exception {
|
|
||||||
|
|
||||||
String popWordStr = "";
|
|
||||||
String managerIp = nlibProperty.getString("search.managerIp");
|
|
||||||
int managerPort = nlibProperty.getInt("search.managerPort");
|
|
||||||
|
|
||||||
Sf1VO sf1Vo = new Sf1VO();
|
|
||||||
sf1Vo.setManagerIp(managerIp);
|
|
||||||
sf1Vo.setManagerPort(managerPort);
|
|
||||||
|
|
||||||
popWordStr = popWordService.getPopWord(popWordVo, sf1Vo);
|
|
||||||
model.addAttribute("popWordStr", popWordStr);
|
|
||||||
|
|
||||||
return "kccf/sch/popword/popword.kccf-sch";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/** ARK */
|
|
||||||
@RequestMapping(value="/sch/ark.do")
|
|
||||||
public String ark(@ModelAttribute("ArkVO") ArkVO arkVO, ModelMap model) throws Exception {
|
|
||||||
String arkStr = "";
|
|
||||||
String managerIp = nlibProperty.getString("search.managerIp");
|
|
||||||
int managerPort = nlibProperty.getInt("search.managerPort") ;
|
|
||||||
|
|
||||||
|
|
||||||
Sf1VO sf1Vo = new Sf1VO();
|
|
||||||
sf1Vo.setManagerIp(managerIp);
|
|
||||||
sf1Vo.setManagerPort(managerPort);
|
|
||||||
|
|
||||||
arkStr = arkService.getArk(arkVO, sf1Vo);
|
|
||||||
|
|
||||||
model.addAttribute("arkStr", arkStr);
|
|
||||||
|
|
||||||
return "kccf/sch/ark/ark.kccf-sch";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value="/sch/totalSearchList_ajax.do")
|
|
||||||
public String totalSearchList_ajax (
|
|
||||||
@ModelAttribute("searchVO") SearchVO searchVO
|
|
||||||
, String all_totalCount
|
|
||||||
, String gubun
|
|
||||||
, ModelMap model
|
|
||||||
, HttpServletRequest request
|
|
||||||
,HttpServletResponse res
|
|
||||||
) throws Exception
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
LOGGER.debug("[PATH][/sch/totalSearchList.do][searchVO][{}]",searchVO.toString());
|
|
||||||
//System.out.println("\n\n\n\n\n\n\n/*****************totalSearchList-searchVO.toString()********************/"+searchVO.toString());
|
|
||||||
|
|
||||||
// 검색관련 서버 설정
|
|
||||||
String searchIp = nlibProperty.getString("search.searchIp");
|
|
||||||
int searchPort = nlibProperty.getInt("search.searchPort");
|
|
||||||
int searchTimeOut = nlibProperty.getInt("search.searchTimeOut");
|
|
||||||
|
|
||||||
Sf1VO sf1Vo = new Sf1VO();
|
|
||||||
sf1Vo.setSearchIp(searchIp);
|
|
||||||
sf1Vo.setSearchPort(searchPort);
|
|
||||||
sf1Vo.setSearchTimeOut(searchTimeOut);
|
|
||||||
|
|
||||||
SearchCollectionResult collResult = searchService.getSearch(searchVO, sf1Vo);
|
|
||||||
|
|
||||||
if(gubun.equals("1")){ //&&(searchVO.getCollection().equals("ALL") || searchVO.getCollection().equals(""))
|
|
||||||
all_totalCount = Integer.toString(searchService.getSearch_All_cnt(searchVO, sf1Vo));
|
|
||||||
// all_totalCount = Integer.toString(collResult_all_cnt);
|
|
||||||
// System.out.println("################################"+searchVO.getCollection()+"/"+all_totalCount+"/"+gubun);
|
|
||||||
}else {
|
|
||||||
all_totalCount = Integer.toString(searchService.getSearch_All_cnt(searchVO, sf1Vo)); //2019-11-27 gubun??
|
|
||||||
// System.out.println("else ################################:"+searchVO.getCollection()+"/"+all_totalCount+"/"+gubun);
|
|
||||||
}
|
|
||||||
//System.out.println("\n\n\n\n\n################################gubun_ajax:"+searchVO.getCollection()+"/"+gubun_ajax);
|
|
||||||
|
|
||||||
// 결과
|
|
||||||
SearchCollectionVO collInfo = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collMap = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collNumber = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collPick = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collReferecne = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collStory = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collCulturePost = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collCulturePostHot = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collTotal = new SearchCollectionVO();
|
|
||||||
SearchCollectionVO collToon = new SearchCollectionVO();
|
|
||||||
|
|
||||||
|
|
||||||
int totalCount = 0;
|
|
||||||
int page_totalCount =0;
|
|
||||||
|
|
||||||
ArrayList<SearchCollectionVO> collList = collResult.getCollectionList();
|
|
||||||
|
|
||||||
int collListSize = collList.size();
|
|
||||||
for(int i = 0 ; i < collListSize ; i++){
|
|
||||||
SearchCollectionVO coll = collList.get(i);
|
|
||||||
String collEn = coll.getCollectionName();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(collEn.indexOf("culturePostHot") < 0 && collEn.indexOf("total") < 0 && collEn.indexOf("_cate") < 0){
|
|
||||||
totalCount = totalCount + coll.getTotalCount();
|
|
||||||
}
|
|
||||||
|
|
||||||
if( !searchVO.getCollection().equals("ALL") && searchVO.getCollection().indexOf("_Coll") >= 0){
|
|
||||||
if(searchVO.getCollection().replace("_Coll", "").equals(collEn)){
|
|
||||||
page_totalCount = coll.getTotalCount();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(collEn.equals("info")){
|
|
||||||
collInfo = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("map")){
|
|
||||||
collMap = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("number")){
|
|
||||||
collNumber = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("pick")){
|
|
||||||
collPick = coll;
|
|
||||||
|
|
||||||
}
|
|
||||||
else if(collEn.equals("reference")){
|
|
||||||
collReferecne = coll;
|
|
||||||
for(int j = 0 ; j < collReferecne.getSearchResultList().size() ; j++){
|
|
||||||
Map<Object ,Object> mapResult = collReferecne.getSearchResultList().get(j);
|
|
||||||
DataMap paramMap = new DataMap();
|
|
||||||
paramMap.put("mId", mapResult.get("MEDIA_ID"));
|
|
||||||
if(StringUtils.isNotEmpty(mapResult.get("MEDIA_ID").toString())){
|
|
||||||
DataMap media = cmmService.selectCmmAmsAssetsMediaDetail(paramMap);
|
|
||||||
String mediaId = media.getString("id");
|
|
||||||
String mediaInterfaceId = media.getString("interfaceId");
|
|
||||||
String url = "";
|
|
||||||
if (StringUtils.isNotEmpty(mediaInterfaceId)) { // mediaInterfaceId가 존재할 경우만 URL 정보 생성
|
|
||||||
if(media.get("assetType") != null){
|
|
||||||
if(media.get("assetType").toString().equals("문서") ){
|
|
||||||
url = CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY)+"/npdfView.do?";
|
|
||||||
url += "npdf="+Constant.UA_TYPE_R+mediaInterfaceId; // MEDIA 의 INTERFACE_ID 사용
|
|
||||||
|
|
||||||
}else if(media.get("assetType").toString().equals("링크")){
|
|
||||||
url = media.get("linkData").toString();
|
|
||||||
}else{
|
|
||||||
url = CmmUtil.getPropertyStr(Constant.KCCF_HOME_KEY)+"/lib/libraryDetail.do?contentId="+mediaId;
|
|
||||||
url += "&rfType="+Constant.UA_TYPE_R; // 히스토리 등록 시 사용
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
mapResult.put("LINK_URL", url);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if(collEn.equals("story")){
|
|
||||||
collStory = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("culturePost")){
|
|
||||||
collCulturePost = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("total")){
|
|
||||||
collTotal = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("total_tags")){
|
|
||||||
model.addAttribute("total_tags", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.indexOf("_cate") >= 0){ //cate
|
|
||||||
if(collEn.equals("first_class_cate")){
|
|
||||||
model.addAttribute("first_class_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_class_cate")){
|
|
||||||
model.addAttribute("second_class_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("first_council_cate")){
|
|
||||||
model.addAttribute("first_council_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_council_cate")){
|
|
||||||
model.addAttribute("second_council_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("first_category_cate")){
|
|
||||||
model.addAttribute("first_category_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_category_cate")){
|
|
||||||
model.addAttribute("second_category_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("first_theme_cate")){
|
|
||||||
model.addAttribute("first_theme_cate", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("second_theme_cate")){
|
|
||||||
model.addAttribute("second_theme_cate", coll);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if(collEn.indexOf("culturePostHot") >= 0){ //cate
|
|
||||||
if(collEn.equals("culturePostHot")){
|
|
||||||
collCulturePostHot = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("culturePostHot_keywords")){
|
|
||||||
model.addAttribute("culturePostHot_keywords", coll);
|
|
||||||
}
|
|
||||||
else if(collEn.equals("culturePostHot_tags")){
|
|
||||||
model.addAttribute("culturePostHot_tags", coll);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if(collEn.indexOf("toon") >= 0){
|
|
||||||
if(collEn.equals("toon")){
|
|
||||||
collToon = coll;
|
|
||||||
}
|
|
||||||
else if(collEn.equals("toon_tags")){
|
|
||||||
model.addAttribute("toon_tags", coll);
|
|
||||||
}
|
|
||||||
// 최근열람툰
|
|
||||||
CmmActivityHstVO cmmActivityHstVO = new CmmActivityHstVO();
|
|
||||||
cmmActivityHstVO.setTargetId(CmmUtil.getCookieId(request));
|
|
||||||
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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// - 값 (검색엔진 오류 일때 0값 으로 )
|
|
||||||
if(totalCount < 0){
|
|
||||||
totalCount = 0;
|
|
||||||
}
|
|
||||||
model.addAttribute("totalCount",totalCount);
|
|
||||||
model.addAttribute("info", collInfo);
|
|
||||||
model.addAttribute("map", collMap);
|
|
||||||
model.addAttribute("number", collNumber);
|
|
||||||
model.addAttribute("pick", collPick);
|
|
||||||
model.addAttribute("reference", collReferecne);
|
|
||||||
model.addAttribute("story", collStory);
|
|
||||||
model.addAttribute("culturePost", collCulturePost);
|
|
||||||
model.addAttribute("culturePostHot", collCulturePostHot);
|
|
||||||
model.addAttribute("total", collTotal);
|
|
||||||
model.addAttribute("all_totalCount",all_totalCount);
|
|
||||||
model.addAttribute("toon",collToon);
|
|
||||||
|
|
||||||
// 경로
|
|
||||||
CmmUtil.setNfsPathModelMap(request,model);
|
|
||||||
|
|
||||||
// 페이징 관련
|
|
||||||
PaginationInfo paginationInfo = new PaginationInfo();
|
|
||||||
paginationInfo.setCurrentPageNo(searchVO.getStartCount());
|
|
||||||
if(searchVO.getCollection().indexOf("toon") >= 0){
|
|
||||||
if(searchVO.getViewCount() == 10){
|
|
||||||
paginationInfo.setRecordCountPerPage(12);
|
|
||||||
}else{
|
|
||||||
paginationInfo.setRecordCountPerPage(searchVO.getViewCount());
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
paginationInfo.setRecordCountPerPage(searchVO.getViewCount());
|
|
||||||
}
|
|
||||||
paginationInfo.setPageSize((CmmUtil.isMobile(request)) ? 5 :10);
|
|
||||||
//paginationInfo.setTotalRecordCount(totalCount);
|
|
||||||
|
|
||||||
paginationInfo.setTotalRecordCount(searchVO.getCollection().equals("ALL") || searchVO.getCollection().equals("") ? totalCount :page_totalCount );
|
|
||||||
model.addAttribute("paginationInfo", paginationInfo);
|
|
||||||
|
|
||||||
|
|
||||||
//serviceVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
|
||||||
//serviceVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
|
||||||
//serviceVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
|
||||||
|
|
||||||
|
|
||||||
model.addAttribute("searchVO", searchVO);
|
|
||||||
//System.out.println("\n\n\n\n\n\n\n/*****************totalSearchList-searchVO.toString()********************/"+searchVO.toString());
|
|
||||||
|
|
||||||
}catch(Exception e){
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
String resultUrl ="";
|
|
||||||
|
|
||||||
|
|
||||||
/*if(searchVO.getCollection().equals("ALL") || searchVO.getCollection().equals("")){
|
|
||||||
resultUrl = "kccf/sch/totalSearchList.kccf";
|
|
||||||
}else if(searchVO.getCollection().equals("pick_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchPickList.kccf";
|
|
||||||
}else if(searchVO.getCollection().equals("culturePost_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchCulturePostList.kccf";
|
|
||||||
}else if(searchVO.getCollection().equals("number_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchNumberList.kccf";
|
|
||||||
}else if(searchVO.getCollection().equals("story_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchStoryList.kccf";
|
|
||||||
}else if(searchVO.getCollection().equals("reference_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchReferenceList.kccf";
|
|
||||||
}else if(searchVO.getCollection().equals("info_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchInfoList.kccf";
|
|
||||||
}*/
|
|
||||||
|
|
||||||
ComDefaultCodeVO CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_FMS014);
|
|
||||||
model.addAttribute("firstCategoryList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_FMS015);
|
|
||||||
model.addAttribute("secondCategoryList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_FMS004);
|
|
||||||
model.addAttribute("themaList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_FMS005);
|
|
||||||
model.addAttribute("seriesList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_MASTER_TYPE_DIV_CD);
|
|
||||||
model.addAttribute("firstClassList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_DTLS_TYPE_DIV_CD);
|
|
||||||
model.addAttribute("secondClassList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_FMS016);
|
|
||||||
model.addAttribute("contentTypeList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
CodeVO = new ComDefaultCodeVO();
|
|
||||||
CodeVO.setCodeId(Constant.CODE_ID_FMS018);
|
|
||||||
model.addAttribute("couSidoList", cmmUseService.selectCmmCodeDetail(CodeVO));
|
|
||||||
|
|
||||||
List<DataMap> councilList = resourcesService.selectCouncilList();
|
|
||||||
model.addAttribute("councilList", councilList);
|
|
||||||
|
|
||||||
if(searchVO.getCollection().equals("ALL") || searchVO.getCollection().equals("")){
|
|
||||||
resultUrl = "kccf/sch/totalSearchListAjax";
|
|
||||||
}else if(searchVO.getCollection().equals("pick_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchPickListAjax";
|
|
||||||
}else if(searchVO.getCollection().equals("culturePost_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchCulturePostList";
|
|
||||||
}else if(searchVO.getCollection().equals("number_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchNumberListAjax";
|
|
||||||
}else if(searchVO.getCollection().equals("story_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchStoryListAjax";
|
|
||||||
}else if(searchVO.getCollection().equals("reference_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchReferenceListAjax";
|
|
||||||
}else if(searchVO.getCollection().equals("info_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchInfoListAjax";
|
|
||||||
}else if(searchVO.getCollection().equals("toon_Coll")){
|
|
||||||
resultUrl = "kccf/sch/searchToonListAjax";
|
|
||||||
}
|
|
||||||
|
|
||||||
//System.out.println("\n\n\n\n\n################################gubun_ajax:"+searchVO.getCollection()+"/"+gubun_ajax+"/"+resultUrl);
|
|
||||||
|
|
||||||
// ams 서버 패스 정보
|
|
||||||
CmmUtil.setAmsPathModelMap(request,model);
|
|
||||||
searchVO.setQuery(searchVO.getQuery().replaceAll("\\\"", """));
|
|
||||||
searchVO.setExactQuery(searchVO.getExactQuery().replaceAll("\\\"", """));
|
|
||||||
|
|
||||||
return resultUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* OCR문서의 몇번째 문서인지 리턴하기 위한 api
|
|
||||||
* reference.js 에서 function reference_viewOcr(mediaId, query)로 호출
|
|
||||||
* @param request
|
|
||||||
* @param model
|
|
||||||
* @return
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
@RequestMapping(value="/sch/getOcrId.do")
|
|
||||||
public String getOcrId (HttpServletRequest request, ModelMap model ) throws Exception {
|
|
||||||
//디버깅 보기 설정
|
|
||||||
boolean isDebug = false;
|
|
||||||
String exquery = ""; // exquery 조건 필드
|
|
||||||
String jsonStr = "";
|
|
||||||
|
|
||||||
int startCount = 0; //보여줄 페이지 번호
|
|
||||||
String strOperation ="";
|
|
||||||
|
|
||||||
int viewResultCount = WNUtils.parseInt(WNUtils.getCheckReqXSS(request, "LISTCOUNT", "1"), 1); // 출력건수
|
|
||||||
String sort = WNUtils.getCheckReqXSS(request, "SORT", "ID"); // 정렬방식
|
|
||||||
String sortOrder = WNUtils.getCheckReqXSS(request, "SORTORDER", "ASC"); // 정렬방식
|
|
||||||
String collection = WNUtils.getCheckReqXSS(request, "COLLECTION", "ocr"); // 컬랙션
|
|
||||||
String media_id = WNUtils.getCheckReqXSS(request, "MEDIA_ID", ""); // 메뉴
|
|
||||||
String query = WNUtils.getCheckReqXSS(request, "query", "");
|
|
||||||
|
|
||||||
String[] collections = null;
|
|
||||||
if(collection.equals("ALL")) { //통합검색인 경우
|
|
||||||
collections = new String[]{"info","map","number","pick","reference","story","culturePost","total","toon"}; //COLLECTIONS;
|
|
||||||
} else { //개별검색인 경우
|
|
||||||
collections = new String[] { collection };
|
|
||||||
}
|
|
||||||
|
|
||||||
exquery += "<MEDIA_ID:contains:" + media_id + ">";
|
|
||||||
|
|
||||||
// 검색관련 서버 설정
|
|
||||||
String searchIp = nlibProperty.getString("search.searchIp");
|
|
||||||
int searchPort = nlibProperty.getInt("search.searchPort");
|
|
||||||
int searchTimeOut = nlibProperty.getInt("search.searchTimeOut");
|
|
||||||
|
|
||||||
Sf1VO sf1Vo = new Sf1VO();
|
|
||||||
sf1Vo.setSearchIp(searchIp);
|
|
||||||
sf1Vo.setSearchPort(searchPort);
|
|
||||||
sf1Vo.setSearchTimeOut(searchTimeOut);
|
|
||||||
|
|
||||||
WNSearch wnsearch = new WNSearch(isDebug, false, collections, null);
|
|
||||||
// WNSearch wnsearch = new WNSearch(isDebug, false, collections, null, WNDefine.USE_RESULT_JSON);
|
|
||||||
wnsearch.setSf1Vo(sf1Vo);
|
|
||||||
wnsearch.set(query, "ALL", viewResultCount, startCount, sort, sortOrder, strOperation, exquery, "1970.01.01", WNUtils.getCurrentDate());
|
|
||||||
wnsearch.search(query, false, CONNECTION_CLOSE, true, sf1Vo.getSearchIp(), sf1Vo.getSearchPort());
|
|
||||||
String debugMsg = wnsearch.printDebug() != null ? wnsearch.printDebug().trim() : "";
|
|
||||||
|
|
||||||
int min = viewResultCount;
|
|
||||||
if(wnsearch.getResultTotalCount("ocr") < viewResultCount){
|
|
||||||
min = wnsearch.getResultTotalCount("ocr"); //가장 적은 수로 결과를 리턴
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Gson gson = new Gson();
|
|
||||||
JsonArray doc = new JsonArray();
|
|
||||||
String[] fields = {"ID","MEDIA_ID","FIRST_PAGE_NUM","LAST_PAGE_NUM","ORDER_NUM","FILE_NAME"};
|
|
||||||
for(int idx =0 ; idx < min; idx++){
|
|
||||||
JsonObject obj = new JsonObject();
|
|
||||||
for(String field : fields){
|
|
||||||
obj.addProperty(field, wnsearch.getField("ocr", field, idx, false));
|
|
||||||
}
|
|
||||||
doc.add(obj);
|
|
||||||
}
|
|
||||||
|
|
||||||
jsonStr = gson.toJson(doc);
|
|
||||||
// jsonStr = wnsearch.getResultJson();
|
|
||||||
|
|
||||||
model.addAttribute("jsonStr", jsonStr);
|
|
||||||
model.addAttribute("isDebug", isDebug); //디버그메시지출력여부
|
|
||||||
model.addAttribute("debugMsg", debugMsg); //디버그 메시지 출력
|
|
||||||
|
|
||||||
|
|
||||||
if ( wnsearch != null )
|
|
||||||
wnsearch.closeServer();
|
|
||||||
|
|
||||||
return "kccf/sch/ocr/schOcrRetrunId.kccf-sch";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@ -1,251 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,60 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,67 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,242 +0,0 @@
|
|||||||
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";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package cmm;
|
package nlib.cmm;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1,8 +1,8 @@
|
|||||||
package cmm.service;
|
package nlib.cmm.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import cmm.util.CmmUtil;
|
import nlib.sch.util.NlibCmmUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Class Name : CmmAmsDocTableOfContentsVO.java
|
* @Class Name : CmmAmsDocTableOfContentsVO.java
|
||||||
@ -32,7 +32,7 @@ public class CmmAmsDocTableOfContentsVO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return CmmUtil.reflectionToString(this);
|
return NlibCmmUtil.reflectionToString(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTitle() {
|
public String getTitle() {
|
||||||
@ -1,209 +0,0 @@
|
|||||||
package nlib.sch;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 상수 정의
|
|
||||||
* @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_MASTER_TYPE_DIV_CD = "MASTER_TYPE_DIV_CD"; // 자료유형(대분류)
|
|
||||||
public static final String CODE_ID_DTLS_TYPE_DIV_CD = "DTLS_TYPE_DIV_CD"; // 자료유형(중분류)
|
|
||||||
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"};
|
|
||||||
}
|
|
||||||
@ -1,6 +1,5 @@
|
|||||||
package nlib.sch.service.impl;
|
package nlib.sch.service.impl;
|
||||||
|
|
||||||
import static kccf.sch.common.WNDefine.*;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
|
|||||||
@ -33,9 +33,8 @@ import org.slf4j.LoggerFactory;
|
|||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
|
|
||||||
import cmm.Constant;
|
import nlib.cmm.Constant;
|
||||||
import cmm.service.CmmAmsDocTableOfContentsVO;
|
import nlib.cmm.service.CmmAmsDocTableOfContentsVO;
|
||||||
import cmm.service.CmmService;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParseException;
|
import com.fasterxml.jackson.core.JsonParseException;
|
||||||
import com.fasterxml.jackson.databind.JsonMappingException;
|
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||||
@ -58,18 +57,13 @@ public class NlibCmmUtil {
|
|||||||
private static final Logger LOGGER = LoggerFactory.getLogger(NlibCmmUtil.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(NlibCmmUtil.class);
|
||||||
public static String DEFAULT_DELIMITER = "-";
|
public static String DEFAULT_DELIMITER = "-";
|
||||||
protected static EgovPropertyService propertyService;
|
protected static EgovPropertyService propertyService;
|
||||||
protected static CmmService cmmService;
|
|
||||||
|
|
||||||
@Resource(name = "propertiesService")
|
@Resource(name = "propertiesService")
|
||||||
private EgovPropertyService propertyServiceInstance;
|
private EgovPropertyService propertyServiceInstance;
|
||||||
|
|
||||||
@Resource(name = "cmmService")
|
|
||||||
private CmmService cmmServiceInstance;
|
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
private void init() {
|
private void init() {
|
||||||
propertyService = propertyServiceInstance;
|
propertyService = propertyServiceInstance;
|
||||||
cmmService = cmmServiceInstance;
|
|
||||||
}
|
}
|
||||||
public static String reflectionToString(Object obj) {
|
public static String reflectionToString(Object obj) {
|
||||||
return ToStringBuilder.reflectionToString(obj);
|
return ToStringBuilder.reflectionToString(obj);
|
||||||
@ -1042,7 +1036,7 @@ public class NlibCmmUtil {
|
|||||||
DataMap param = new DataMap();
|
DataMap param = new DataMap();
|
||||||
param.put("aId", aId);
|
param.put("aId", aId);
|
||||||
param.put("mId", mId);
|
param.put("mId", mId);
|
||||||
DataMap media = new DataMap();/*cmmService.selectCmmAmsAssetsMediaDetail2(param);*/// asset id로 조회
|
DataMap media = new DataMap();
|
||||||
String mediaId = media.getString("mediaId");
|
String mediaId = media.getString("mediaId");
|
||||||
String mediaInterfaceId = media.getString("mediaInterfaceId");
|
String mediaInterfaceId = media.getString("mediaInterfaceId");
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user