diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/config/EgovConfigAppMapper.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/config/EgovConfigAppMapper.java deleted file mode 100644 index 6ab1398..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/config/EgovConfigAppMapper.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.config; - -import org.apache.ibatis.session.SqlSessionFactory; -import org.mybatis.spring.SqlSessionFactoryBean; -import org.mybatis.spring.SqlSessionTemplate; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.context.annotation.*; -import org.springframework.core.env.Environment; -import org.springframework.core.io.support.PathMatchingResourcePatternResolver; -import org.springframework.jdbc.support.lob.DefaultLobHandler; - -import javax.annotation.PostConstruct; -import javax.sql.DataSource; -import java.io.IOException; - -/** - * @ClassName : EgovConfigAppMapper.java - * @Description : Mapper 설정 - * - * @author : 윤주호 - * @since : 2021. 7. 20 - * @version : 1.0 - * - *
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ------------- ------------ --------------------- - * 2021. 7. 20 윤주호 최초 생성 - *- * - */ -@Configuration -@PropertySources({ - @PropertySource("classpath:/application.properties") -}) -public class EgovConfigAppMapper { - @Autowired - DataSource dataSource; - - @Autowired - Environment env; - - private String dbType; - - @PostConstruct - void init() { - dbType = env.getProperty("Globals.DbType"); - } - - @Bean - @Lazy - public DefaultLobHandler lobHandler() { - return new DefaultLobHandler(); - } - - @Bean(name = {"sqlSession", "egov.sqlSession"}) - public SqlSessionFactoryBean sqlSession() { - SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean(); - sqlSessionFactoryBean.setDataSource(dataSource); - - PathMatchingResourcePatternResolver pathMatchingResourcePatternResolver = new PathMatchingResourcePatternResolver(); - - sqlSessionFactoryBean.setConfigLocation( - pathMatchingResourcePatternResolver - .getResource("classpath:/admin/committee/schedules/mapper/config/mapper-config.xml")); - - try { - sqlSessionFactoryBean.setMapperLocations( - pathMatchingResourcePatternResolver - .getResources("classpath:/egovframework/mapper/let/**/*_" + dbType + ".xml")); - } catch (IOException e) { - // TODO Exception 처리 필요 - } - - return sqlSessionFactoryBean; - } - - @Bean - public SqlSessionTemplate egovSqlSessionTemplate(@Qualifier("sqlSession") SqlSessionFactory sqlSession) { - SqlSessionTemplate sqlSessionTemplate = new SqlSessionTemplate(sqlSession); - return sqlSessionTemplate; - } -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/controller/EgovFileDownloadController.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/controller/EgovFileDownloadController.java deleted file mode 100644 index 48d46dd..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/controller/EgovFileDownloadController.java +++ /dev/null @@ -1,192 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.controller; - -import com.dbnt.kcscbackend.admin.committee.schedules.repository.FileVO; -import com.dbnt.kcscbackend.admin.committee.schedules.service.EgovFileMngService; -import com.dbnt.kcscbackend.config.egov.EgovProperties; -import com.dbnt.kcscbackend.config.egov.EgovWebUtil; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.responses.ApiResponse; -import io.swagger.v3.oas.annotations.responses.ApiResponses; -import io.swagger.v3.oas.annotations.tags.Tag; -import lombok.extern.slf4j.Slf4j; -import org.egovframe.rte.fdl.cmmn.exception.EgovBizException; -import org.egovframe.rte.fdl.cryptography.EgovCryptoService; -import org.springframework.stereotype.Controller; -import org.springframework.util.FileCopyUtils; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestParam; - -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.*; -import java.net.URLEncoder; -import java.util.Base64; -import java.util.Map; - -/** - * 파일 다운로드를 위한 컨트롤러 클래스 - * @author 공통서비스개발팀 이삼섭 - * @since 2009.06.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ------- -------- --------------------------- - * 2009.3.25 이삼섭 최초 생성 - * - * Copyright (C) 2009 by MOPAS All right reserved. - *- */ -@Slf4j -@Controller -@Tag(name="EgovFileDownloadController",description = "파일 다운로드") -public class EgovFileDownloadController { - - @Resource(name = "EgovFileMngService") - private EgovFileMngService fileService; - - /** 암호화서비스 */ - @Resource(name="egovARIACryptoService") - EgovCryptoService cryptoService; - - public static final String ALGORITM_KEY = EgovProperties.getProperty("Globals.crypto.algoritm"); - - /** - * 브라우저 구분 얻기. - * - * @param request - * @return - */ - private String getBrowser(HttpServletRequest request) { - String header = request.getHeader("User-Agent"); - if (header.indexOf("MSIE") > -1) { - return "MSIE"; - } else if (header.indexOf("Trident") > -1) { // IE11 문자열 깨짐 방지 - return "Trident"; - } else if (header.indexOf("Chrome") > -1) { - return "Chrome"; - } else if (header.indexOf("Opera") > -1) { - return "Opera"; - } - return "Firefox"; - } - - /** - * Disposition 지정하기. - * - * @param filename - * @param request - * @param response - * @throws Exception - */ - private void setDisposition(String filename, HttpServletRequest request, HttpServletResponse response) - throws Exception { - String browser = getBrowser(request); - - String dispositionPrefix = "attachment; filename="; - String encodedFilename = null; - - if (browser.equals("MSIE")) { - encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); - } else if (browser.equals("Trident")) { // IE11 문자열 깨짐 방지 - encodedFilename = URLEncoder.encode(filename, "UTF-8").replaceAll("\\+", "%20"); - } else if (browser.equals("Firefox")) { - encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; - } else if (browser.equals("Opera")) { - encodedFilename = "\"" + new String(filename.getBytes("UTF-8"), "8859_1") + "\""; - } else if (browser.equals("Chrome")) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < filename.length(); i++) { - char c = filename.charAt(i); - if (c > '~') { - sb.append(URLEncoder.encode("" + c, "UTF-8")); - } else { - sb.append(c); - } - } - encodedFilename = sb.toString(); - } else { - //throw new RuntimeException("Not supported browser"); - throw new IOException("Not supported browser"); - } - - response.setHeader("Content-Disposition", dispositionPrefix + encodedFilename); - - if ("Opera".equals(browser)) { - response.setContentType("application/octet-stream;charset=UTF-8"); - } - } - - /** - * 첨부파일로 등록된 파일에 대하여 다운로드를 제공한다. - * - * @param commandMap - * @param response - * @throws Exception - */ - - @Operation( - summary = "파일 다운로드", - description = "첨부파일로 등록된 파일에 대하여 다운로드를 제공", - tags = {"EgovFileDownloadController"} - ) - @ApiResponses(value = { - @ApiResponse(responseCode = "200", description = "성공") - }) - @GetMapping(value = "/cmm/fms/FileDown.do") - public void cvplFileDownload(@RequestParam Map
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ------- -------- --------------------------- - * 2009.3.11 이삼섭 최초 생성 - * - *- */ -@Getter -@Setter -public class ComDefaultCodeVO implements Serializable { - /** - * serialVersion UID - */ - private static final long serialVersionUID = -2020648489890016404L; - - /** 코드 ID */ - private String codeId = ""; - - /** 상세코드 */ - private String code = ""; - - /** 코드명 */ - private String codeNm = ""; - - /** 코드설명 */ - private String codeDc = ""; - - /** 특정테이블명 */ - private String tableNm = ""; //특정테이블에서 코드정보를추출시 사용 - - /** 상세 조건 여부 */ - private String haveDetailCondition = "N"; - - /** 상세 조건 */ - private String detailCondition = ""; - - /** - * toString 메소드를 대치한다. - */ - public String toString() { - return ToStringBuilder.reflectionToString(this); - } -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/ComDefaultVO.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/ComDefaultVO.java deleted file mode 100644 index 7179481..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/ComDefaultVO.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.repository; - -import lombok.Getter; -import lombok.Setter; -import org.apache.commons.lang3.builder.ToStringBuilder; - -import java.io.Serializable; - -/** - * @Class Name : ComDefaultVO.java - * @Description : ComDefaultVO class - * @Modification Information - * @ - * @ 수정일 수정자 수정내용 - * @ ------- -------- --------------------------- - * @ 2009.02.01 조재영 최초 생성 - * - * @author 공통서비스 개발팀 조재영 - * @since 2009.02.01 - * @version 1.0 - * @see - * - */ -@Getter -@Setter -public class ComDefaultVO implements Serializable { - - private static final long serialVersionUID = 1L; - - /** 검색조건 */ - private String searchCondition = ""; - - /** 검색Keyword */ - private String searchKeyword = ""; - - /** 검색사용여부 */ - private String searchUseYn = ""; - - /** 현재페이지 */ - private int pageIndex = 1; - - /** 페이지갯수 */ - private int pageUnit = 10; - - /** 페이지사이즈 */ - private int pageSize = 10; - - /** firstIndex */ - private int firstIndex = 1; - - /** lastIndex */ - private int lastIndex = 1; - - /** recordCountPerPage */ - private int recordCountPerPage = 10; - - /** 검색KeywordFrom */ - private String searchKeywordFrom = ""; - - /** 검색KeywordTo */ - private String searchKeywordTo = ""; - - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/FileManageDAO.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/FileManageDAO.java deleted file mode 100644 index afacb80..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/FileManageDAO.java +++ /dev/null @@ -1,182 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.repository; - -import com.dbnt.kcscbackend.admin.committee.schedules.repository.FileVO; -import com.dbnt.kcscbackend.admin.committee.schedules.service.EgovComAbstractDAO; -import org.springframework.stereotype.Repository; - -import java.util.Iterator; -import java.util.List; - -/** - * @Class Name : EgovFileMngDAO.java - * @Description : 파일정보 관리를 위한 데이터 처리 클래스 - * @Modification Information - * - * 수정일 수정자 수정내용 - * ------- ------- ------------------- - * 2009. 3. 25. 이삼섭 최초생성 - * - * @author 공통 서비스 개발팀 이삼섭 - * @since 2009. 3. 25. - * @version - * @see - * - */ -@Repository("FileManageDAO") -public class FileManageDAO extends EgovComAbstractDAO { - - /** - * 여러 개의 파일에 대한 정보(속성 및 상세)를 등록한다. - * - * @param fileList - * @return - * @throws Exception - */ - public String insertFileInfs(List> fileList) throws Exception { - FileVO vo = (FileVO) fileList.get(0); - String atchFileId = vo.getAtchFileId(); - - insert("FileManageDAO.insertFileMaster", vo); - - Iterator> iter = fileList.iterator(); - while (iter.hasNext()) { - vo = (FileVO) iter.next(); - - insert("FileManageDAO.insertFileDetail", vo); - } - - return atchFileId; - } - - /** - * 하나의 파일에 대한 정보(속성 및 상세)를 등록한다. - * - * @param vo - * @throws Exception - */ - public void insertFileInf(FileVO vo) throws Exception { - insert("FileManageDAO.insertFileMaster", vo); - insert("FileManageDAO.insertFileDetail", vo); - } - - /** - * 여러 개의 파일에 대한 정보(속성 및 상세)를 수정한다. - * - * @param fileList - * @throws Exception - */ - public void updateFileInfs(List> fileList) throws Exception { - FileVO vo; - Iterator> iter = fileList.iterator(); - while (iter.hasNext()) { - vo = (FileVO) iter.next(); - - insert("FileManageDAO.insertFileDetail", vo); - } - } - - /** - * 여러 개의 파일을 삭제한다. - * - * @param fileList - * @throws Exception - */ - public void deleteFileInfs(List> fileList) throws Exception { - Iterator> iter = fileList.iterator(); - FileVO vo; - while (iter.hasNext()) { - vo = (FileVO) iter.next(); - - delete("FileManageDAO.deleteFileDetail", vo); - } - } - - /** - * 하나의 파일을 삭제한다. - * - * @param fvo - * @throws Exception - */ - public void deleteFileInf(FileVO fvo) throws Exception { - delete("FileManageDAO.deleteFileDetail", fvo); - } - - /** - * 파일에 대한 목록을 조회한다. - * - * @param vo - * @return - * @throws Exception - */ - @SuppressWarnings("unchecked") - public List
- * << 개정이력(Modification Information) >> 수정일 수정자 수정내용 ------- --- - * ----- --------------------------- 2009.04.10 장동한 최초 생성 2011.05.31 - * JJY 경량환경 커스터마이징버전 생성 - *- * @author 조재영 - * @version 1.0 - * @created 09-6-2011 오전 10:08:07 - */ -@Repository("indvdlSchdulManageDao") -public class IndvdlSchdulManageDao extends EgovAbstractMapper { - - - /** - * 메인페이지/일정관리조회 목록을 Map(map)형식으로 조회한다. - * @param map - * @return - * @throws Exception - */ - public List> selectIndvdlSchdulManageMainList(Map, ?> map) throws Exception { - return list("IndvdlSchdulManage.selectIndvdlSchdulManageMainList", map); - } - - - /** - * 일정 목록을 Map(map)형식으로 조회한다. - * @param map - * @return - * @throws Exception - */ - public List> selectIndvdlSchdulManageRetrieve(Map, ?> map) throws Exception { - //// return list("IndvdlSchdulManage.selectIndvdlSchdulManageRetrieve", map); - return new ArrayList
- * << 개정이력(Modification Information) >> 수정일 수정자 수정내용 ------- --- - * ----- --------------------------- 2009.04.10 장동한 최초 생성 2011.05.31 - * JJY 경량환경 커스터마이징버전 생성 - *- * @author 조재영 - * @version 1.0 - * @created 09-6-2011 오전 10:08:07 - */ -@Getter -@Setter -public class IndvdlSchdulManageVO implements Serializable { - - /** - * serialVersionUID - */ - private static final long serialVersionUID = 1L; - - /** 일정ID */ - private String schdulId; - - /** 일정구분(회의/교육/세미나/강의 기타) */ - private String schdulSe; - - /** 일정부서ID */ - private String schdulDeptId; - - /** 일정종류(부서일정/개인일정) */ - private String schdulKindCode; - - /** 일정시작일자 */ - private String schdulBgnde; - - /** 일정종료일자 */ - private String schdulEndde; - - /** 일정명 */ - private String schdulNm; - - /** 일정내용 */ - private String schdulCn; - - /** 일정장소 */ - private String schdulPlace; - - /** 일정중요도코드 */ - private String schdulIpcrCode; - - /** 일정담담자ID */ - private String schdulChargerId; - - /** 첨부파일ID */ - private String atchFileId; - - /** 반복구분(반복, 연속, 요일반복) */ - private String reptitSeCode; - - /** 최초등록시점 */ - private String frstRegisterPnttm = ""; - - /** 최초등록자ID */ - private String frstRegisterId = ""; - - /** 최종수정시점 */ - private String lastUpdusrPnttm = ""; - - /** 최종수정ID */ - private String lastUpdusrId = ""; - - /** 일정시작일자(시간) */ - private String schdulBgndeHH = ""; - - /** 일정시작일자(분) */ - private String schdulBgndeMM = ""; - - /** 일정종료일자(시간) */ - private String schdulEnddeHH = ""; - - /** 일정종료일자(분) */ - private String schdulEnddeMM = ""; - - /** 일정시작일자(Year/Month/Day) */ - private String schdulBgndeYYYMMDD = ""; - - /** 일정종료일자(Year/Month/Day) */ - private String schdulEnddeYYYMMDD = ""; - - /** 담당부서 */ - private String schdulDeptName = ""; - - /** 담당자명 */ - private String schdulChargerName = ""; - - -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/LoginVO.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/LoginVO.java deleted file mode 100644 index ba891bc..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/LoginVO.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.repository; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Getter; -import lombok.Setter; - -import javax.validation.constraints.Email; -import java.io.Serializable; - -/** - * @Class Name : LoginVO.java - * @Description : Login VO class - * @Modification Information - * @ - * @ 수정일 수정자 수정내용 - * @ ------- -------- --------------------------- - * @ 2009.03.03 박지욱 최초 생성 - * - * @author 공통서비스 개발팀 박지욱 - * @since 2009.03.03 - * @version 1.0 - * @see - * - */ -@Schema(description = "사용자 정보 VO") -@Getter -@Setter -public class LoginVO implements Serializable{ - - /** - * - */ - private static final long serialVersionUID = -8274004534207618049L; - - @Schema(description = "아이디") - private String id; - - @Schema(description = "이름") - private String name; - - @Schema(description = "주민등록번호") - private String ihidNum; - - @Email(regexp = "[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}") - @Schema(description = "이메일주소") - private String email; - - @Schema(description = "비밀번호") - private String password; - - @Schema(description = "비밀번호 힌트") - private String passwordHint; - - @Schema(description = "비밀번호 정답") - private String passwordCnsr; - - @Schema(description = "사용자 구분", allowableValues = {"GNR", "ENT", "USR"}, defaultValue = "USR") - private String userSe; - - @Schema(description = "조직(부서)ID") - private String orgnztId; - - @Schema(description = "조직(부서)명") - private String orgnztNm; - - @Schema(description = "고유아이디") - private String uniqId; - - @Schema(description = "로그인 후 이동할 페이지") - private String url; - - @Schema(description = "사용자 IP정보") - private String ip; - - @Schema(description = "GPKI인증 DN") - private String dn; - - -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/ResponseCode.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/ResponseCode.java deleted file mode 100644 index bbe0674..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/repository/ResponseCode.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.repository; - -/** - * - * @author : 정완배 - * @since : 2023. 8. 9. - * @version : 1.0 - * - * @package : egovframework.com.cmm - * @filename : ResponseCode.java - * @modificationInformation - * - *
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ---------- ---------- ---------------------- - * 2023. 8. 9. 정완배 주석추가 - *- * - * - */ -public enum ResponseCode { - - SUCCESS(200, "성공했습니다."), - AUTH_ERROR(403, "인가된 사용자가 아닙니다."), - DELETE_ERROR(700, "삭제 중 내부 오류가 발생했습니다."), - SAVE_ERROR(800, "저장시 내부 오류가 발생했습니다."), - INPUT_CHECK_ERROR(900, "입력값 무결성 오류 입니다."); - - private int code; - private String message; - - private ResponseCode(int code, String message) { - this.code = code; - this.message = message; - } - - public int getCode() { - return code; - } - - public String getMessage() { - return message; - } - - - - -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/CmmnDetailCode.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/CmmnDetailCode.java deleted file mode 100644 index 500160e..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/CmmnDetailCode.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.service; - -import lombok.Getter; -import lombok.Setter; - -import java.io.Serializable; - -/** - * 공통상세코드 모델 클래스 - * @author 공통서비스 개발팀 이중호 - * @since 2009.04.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ------- -------- --------------------------- - * 2009.04.01 이중호 최초 생성 - * - *- */ -@Getter -@Setter -public class CmmnDetailCode implements Serializable { - - private static final long serialVersionUID = -6508801327314181679L; - - /* - * 코드ID - */ - private String codeId = ""; - - /* - * 코드ID명 - */ - private String codeIdNm = ""; - - /* - * 코드 - */ - private String code = ""; - - /* - * 코드명 - */ - private String codeNm = ""; - - /* - * 코드설명 - */ - private String codeDc = ""; - - /* - * 사용여부 - */ - private String useAt = ""; - - /* - * 최초등록자ID - */ - private String frstRegisterId = ""; - - /* - * 최종수정자ID - */ - private String lastUpdusrId = ""; - -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/EgovCmmUseService.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/EgovCmmUseService.java deleted file mode 100644 index 7918c32..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/EgovCmmUseService.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.service; - - -import com.dbnt.kcscbackend.admin.committee.schedules.repository.ComDefaultCodeVO; - -import java.util.List; -import java.util.Map; - -/** - * - * 공통코드등 전체 업무에서 공용해서 사용해야 하는 서비스를 정의하기 위한 서비스 인터페이스 - * @author 공통서비스 개발팀 이삼섭 - * @since 2009.04.01 - * @version 1.0 - * @see - * - *
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ------- -------- --------------------------- - * 2009.03.11 이삼섭 최초 생성 - * - *- */ -public interface EgovCmmUseService { - - /** - * 공통코드를 조회한다. - * - * @param vo - * @return List(코드) - * @throws Exception - */ - public List
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ------- ------------- ---------------------- - * 2011. 9. 23. 서준식 최초 생성 - *- */ -public abstract class EgovComAbstractDAO extends EgovAbstractMapper { - - @Override - @Resource(name = "egov.sqlSession") - public void setSqlSessionFactory(SqlSessionFactory sqlSession) { - super.setSqlSessionFactory(sqlSession); - } - -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/EgovFileMngService.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/EgovFileMngService.java deleted file mode 100644 index 43be25d..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/service/EgovFileMngService.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.dbnt.kcscbackend.admin.committee.schedules.service; - -import com.dbnt.kcscbackend.admin.committee.schedules.repository.FileVO; - -import java.util.List; -import java.util.Map; - -/** - * @Class Name : EgovFileMngService.java - * @Description : 파일정보의 관리를 위한 서비스 인터페이스 - * @Modification Information - * - * 수정일 수정자 수정내용 - * ------- ------- ------------------- - * 2009. 3. 25. 이삼섭 최초생성 - * - * @author 공통 서비스 개발팀 이삼섭 - * @since 2009. 3. 25. - * @version - * @see - * - */ -public interface EgovFileMngService { - - /** - * 파일에 대한 목록을 조회한다. - * - * @param fvo - * @return - * @throws Exception - */ - public List
- * << 개정이력(Modification Information) >> - * - * 수정일 수정자 수정내용 - * ------------- ------------ --------------------- - * 2021. 7. 20 윤주호 최초 생성 - *- * - */ -public class EgovIdGnrBuilder { - - // TODO : 기본값 설정, 예외처리 필요 - - private DataSource dataSource; - private EgovIdGnrStrategyImpl egovIdGnrStrategyImpl; - - private String preFix; - private int cipers; - private char fillChar; - - private int blockSize; - private String table; - private String tableName; - - public EgovIdGnrBuilder setDataSource(DataSource dataSource) { - this.dataSource = dataSource; - return this; - } - - public EgovIdGnrBuilder setEgovIdGnrStrategyImpl(EgovIdGnrStrategyImpl egovIdGnrStrategyImpl) { - this.egovIdGnrStrategyImpl = egovIdGnrStrategyImpl; - return this; - } - - public EgovIdGnrBuilder setPreFix(String preFix) { - this.preFix = preFix; - return this; - } - public EgovIdGnrBuilder setCipers(int cipers) { - this.cipers = cipers; - return this; - } - public EgovIdGnrBuilder setFillChar(char fillChar) { - this.fillChar = fillChar; - return this; - } - public EgovIdGnrBuilder setBlockSize(int blockSize) { - this.blockSize = blockSize; - return this; - } - public EgovIdGnrBuilder setTable(String table) { - this.table = table; - return this; - } - public EgovIdGnrBuilder setTableName(String tableName) { - this.tableName = tableName; - return this; - } - - public EgovTableIdGnrServiceImpl build() { - - EgovTableIdGnrServiceImpl egovTableIdGnrServiceImpl = new EgovTableIdGnrServiceImpl(); - egovTableIdGnrServiceImpl.setDataSource(dataSource); - if(egovIdGnrStrategyImpl != null) { - egovIdGnrStrategyImpl = new EgovIdGnrStrategyImpl(); - egovIdGnrStrategyImpl.setPrefix(preFix); - egovIdGnrStrategyImpl.setCipers(cipers); - egovIdGnrStrategyImpl.setFillChar(fillChar); - - egovTableIdGnrServiceImpl.setStrategy(egovIdGnrStrategyImpl); - } - egovTableIdGnrServiceImpl.setBlockSize(blockSize); - egovTableIdGnrServiceImpl.setTable(table); - egovTableIdGnrServiceImpl.setTableName(tableName); - - return egovTableIdGnrServiceImpl; - } - - - -} diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/util/EgovStringUtil.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/util/EgovStringUtil.java deleted file mode 100644 index c6b663a..0000000 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/committee/schedules/util/EgovStringUtil.java +++ /dev/null @@ -1,888 +0,0 @@ -/** - * @Class Name : EgovStringUtil.java - * @Description : 문자열 데이터 처리 관련 유틸리티 - * @Modification Information - * - * 수정일 수정자 수정내용 - * ------- -------- --------------------------- - * 2009.01.13 박정규 최초 생성 - * 2009.02.13 이삼섭 내용 추가 - * - * @author 공통 서비스 개발팀 박정규 - * @since 2009. 01. 13 - * @version 1.0 - * @see - * - */ - -package com.dbnt.kcscbackend.admin.committee.schedules.util; - -/* - * Copyright 2001-2006 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the ";License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS"; BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import java.io.UnsupportedEncodingException; -import java.math.BigDecimal; -import java.security.SecureRandom; -import java.sql.Timestamp; -import java.text.SimpleDateFormat; -import java.util.Locale; - -public class EgovStringUtil { - - /** - * 빈 문자열
"".
- */
- public static final String EMPTY = "";
-
- /**
- * 랜덤 객체
- */
- public static SecureRandom rnd = new SecureRandom();
-
- /**
- * Padding을 할 수 있는 최대 수치
- */ - // private static final int PAD_LIMIT = 8192; - /** - *An array of Strings used for padding.
Used for efficient space padding. The length of each String expands as needed.
- */ - /* - private static final String[] PADDING = new String[Character.MAX_VALUE]; - - static { - // space padding is most common, start with 64 chars - PADDING[32] = " "; - } - */ - - /** - * 문자열이 지정한 길이를 초과했을때 지정한길이에다가 해당 문자열을 붙여주는 메서드. - * @param source 원본 문자열 배열 - * @param output 더할문자열 - * @param slength 지정길이 - * @return 지정길이로 잘라서 더할분자열 합친 문자열 - */ - public static String cutString(String source, String output, int slength) { - String returnVal = null; - if (source != null) { - if (source.length() > slength) { - returnVal = source.substring(0, slength) + output; - } else { - returnVal = source; - } - } - return returnVal; - } - - /** - * 문자열이 지정한 길이를 초과했을때 해당 문자열을 삭제하는 메서드 - * @param source 원본 문자열 배열 - * @param slength 지정길이 - * @return 지정길이로 잘라서 더할분자열 합친 문자열 - */ - public static String cutString(String source, int slength) { - String result = null; - if (source != null) { - if (source.length() > slength) { - result = source.substring(0, slength); - } else { - result = source; - } - } - return result; - } - - /** - *- * String이 비었거나("") 혹은 null 인지 검증한다. - *
- * - *
- * StringUtil.isEmpty(null) = true
- * StringUtil.isEmpty("") = true
- * StringUtil.isEmpty(" ") = false
- * StringUtil.isEmpty("bob") = false
- * StringUtil.isEmpty(" bob ") = false
- *
- *
- * @param str - 체크 대상 스트링오브젝트이며 null을 허용함
- * @return true - 입력받은 String 이 빈 문자열 또는 null인 경우
- */
- public static boolean isEmpty(String str) {
- return str == null || str.length() == 0;
- }
-
- /**
- * 기준 문자열에 포함된 모든 대상 문자(char)를 제거한다.
- * - *
- * StringUtil.remove(null, *) = null
- * StringUtil.remove("", *) = ""
- * StringUtil.remove("queued", 'u') = "qeed"
- * StringUtil.remove("queued", 'z') = "queued"
- *
- *
- * @param str 입력받는 기준 문자열
- * @param remove 입력받는 문자열에서 제거할 대상 문자열
- * @return 제거대상 문자열이 제거된 입력문자열. 입력문자열이 null인 경우 출력문자열은 null
- */
- public static String remove(String str, char remove) {
- if (isEmpty(str) || str.indexOf(remove) == -1) {
- return str;
- }
- char[] chars = str.toCharArray();
- int pos = 0;
- for (int i = 0; i < chars.length; i++) {
- if (chars[i] != remove) {
- chars[pos++] = chars[i];
- }
- }
- return new String(chars, 0, pos);
- }
-
- /**
- * 문자열 내부의 콤마 character(,)를 모두 제거한다.
- * - *
- * StringUtil.removeCommaChar(null) = null
- * StringUtil.removeCommaChar("") = ""
- * StringUtil.removeCommaChar("asdfg,qweqe") = "asdfgqweqe"
- *
- *
- * @param str 입력받는 기준 문자열
- * @return " , "가 제거된 입력문자열
- * 입력문자열이 null인 경우 출력문자열은 null
- */
- public static String removeCommaChar(String str) {
- return remove(str, ',');
- }
-
- /**
- * 문자열 내부의 마이너스 character(-)를 모두 제거한다.
- * - *
- * StringUtil.removeMinusChar(null) = null
- * StringUtil.removeMinusChar("") = ""
- * StringUtil.removeMinusChar("a-sdfg-qweqe") = "asdfgqweqe"
- *
- *
- * @param str 입력받는 기준 문자열
- * @return " - "가 제거된 입력문자열
- * 입력문자열이 null인 경우 출력문자열은 null
- */
- public static String removeMinusChar(String str) {
- return remove(str, '-');
- }
-
- /**
- * 원본 문자열의 포함된 특정 문자열을 새로운 문자열로 변환하는 메서드
- * @param source 원본 문자열
- * @param subject 원본 문자열에 포함된 특정 문자열
- * @param object 변환할 문자열
- * @return sb.toString() 새로운 문자열로 변환된 문자열
- */
- public static String replace(String source, String subject, String object) {
- StringBuffer rtnStr = new StringBuffer();
- String preStr = "";
- String nextStr = source;
- String srcStr = source;
-
- while (srcStr.indexOf(subject) >= 0) {
- preStr = srcStr.substring(0, srcStr.indexOf(subject));
- nextStr = srcStr.substring(srcStr.indexOf(subject) + subject.length(), srcStr.length());
- srcStr = nextStr;
- rtnStr.append(preStr).append(object);
- }
- rtnStr.append(nextStr);
- return rtnStr.toString();
- }
-
- /**
- * 원본 문자열의 포함된 특정 문자열 첫번째 한개만 새로운 문자열로 변환하는 메서드
- * @param source 원본 문자열
- * @param subject 원본 문자열에 포함된 특정 문자열
- * @param object 변환할 문자열
- * @return sb.toString() 새로운 문자열로 변환된 문자열 / source 특정문자열이 없는 경우 원본 문자열
- */
- public static String replaceOnce(String source, String subject, String object) {
- StringBuffer rtnStr = new StringBuffer();
- String preStr = "";
- String nextStr = source;
- if (source.indexOf(subject) >= 0) {
- preStr = source.substring(0, source.indexOf(subject));
- nextStr = source.substring(source.indexOf(subject) + subject.length(), source.length());
- rtnStr.append(preStr).append(object).append(nextStr);
- return rtnStr.toString();
- } else {
- return source;
- }
- }
-
- /**
- * subject에 포함된 각각의 문자를 object로 변환한다.
- *
- * @param source 원본 문자열
- * @param subject 원본 문자열에 포함된 특정 문자열
- * @param object 변환할 문자열
- * @return sb.toString() 새로운 문자열로 변환된 문자열
- */
- public static String replaceChar(String source, String subject, String object) {
- StringBuffer rtnStr = new StringBuffer();
- String preStr = "";
- String nextStr = source;
- String srcStr = source;
-
- char chA;
-
- for (int i = 0; i < subject.length(); i++) {
- chA = subject.charAt(i);
-
- if (srcStr.indexOf(chA) >= 0) {
- preStr = srcStr.substring(0, srcStr.indexOf(chA));
- nextStr = srcStr.substring(srcStr.indexOf(chA) + 1, srcStr.length());
- srcStr = rtnStr.append(preStr).append(object).append(nextStr).toString();
- }
- }
-
- return srcStr;
- }
-
- /**
- * str 중 searchStr의 시작(index) 위치를 반환.
입력값 중 null이 있을 경우 -1을 반환.
- * StringUtil.indexOf(null, *) = -1
- * StringUtil.indexOf(*, null) = -1
- * StringUtil.indexOf("", "") = 0
- * StringUtil.indexOf("aabaabaa", "a") = 0
- * StringUtil.indexOf("aabaabaa", "b") = 2
- * StringUtil.indexOf("aabaabaa", "ab") = 1
- * StringUtil.indexOf("aabaabaa", "") = 0
- *
- *
- * @param str 검색 문자열
- * @param searchStr 검색 대상문자열
- * @return 검색 문자열 중 검색 대상문자열이 있는 시작 위치 검색대상 문자열이 없거나 null인 경우 -1
- */
- public static int indexOf(String str, String searchStr) {
- if (str == null || searchStr == null) {
- return -1;
- }
- return str.indexOf(searchStr);
- }
-
- /**
- * 오라클의 decode 함수와 동일한 기능을 가진 메서드이다.
- * sourStr과 compareStr의 값이 같으면
- * returStr을 반환하며, 다르면 defaultStr을 반환한다.
- *
- * StringUtil.decode(null, null, "foo", "bar")= "foo"
- * StringUtil.decode("", null, "foo", "bar") = "bar"
- * StringUtil.decode(null, "", "foo", "bar") = "bar"
- * StringUtil.decode("하이", "하이", null, "bar") = null
- * StringUtil.decode("하이", "하이 ", "foo", null) = null
- * StringUtil.decode("하이", "하이", "foo", "bar") = "foo"
- * StringUtil.decode("하이", "하이 ", "foo", "bar") = "bar"
- *
- *
- * @param sourceStr 비교할 문자열
- * @param compareStr 비교 대상 문자열
- * @param returnStr sourceStr와 compareStr의 값이 같을 때 반환할 문자열
- * @param defaultStr sourceStr와 compareStr의 값이 다를 때 반환할 문자열
- * @return sourceStr과 compareStr의 값이 동일(equal)할 때 returnStr을 반환하며,
- * 오라클의 decode 함수와 동일한 기능을 가진 메서드이다.
- * sourStr과 compareStr의 값이 같으면
- * returStr을 반환하며, 다르면 sourceStr을 반환한다.
- *
- * StringUtil.decode(null, null, "foo") = "foo"
- * StringUtil.decode("", null, "foo") = ""
- * StringUtil.decode(null, "", "foo") = null
- * StringUtil.decode("하이", "하이", "foo") = "foo"
- * StringUtil.decode("하이", "하이 ", "foo") = "하이"
- * StringUtil.decode("하이", "바이", "foo") = "하이"
- *
- *
- * @param sourceStr 비교할 문자열
- * @param compareStr 비교 대상 문자열
- * @param returnStr sourceStr와 compareStr의 값이 같을 때 반환할 문자열
- * @return sourceStr과 compareStr의 값이 동일(equal)할 때 returnStr을 반환하며,
- * - * 인자로 받은 String이 null일 경우 ""로 리턴한다. - * @param src null값일 가능성이 있는 String 값. - * @return 만약 String이 null 값일 경우 ""로 바꾼 String 값. - *- */ - public static String nullConvert(Object src) { - //if (src != null && src.getClass().getName().equals("java.math.BigDecimal")) { - if (src != null && src instanceof BigDecimal) { - return ((BigDecimal)src).toString(); - } - - if (src == null || src.equals("null")) { - return ""; - } else { - return ((String)src).trim(); - } - } - - /** - *
- * 인자로 받은 String이 null일 경우 ""로 리턴한다. - * @param src null값일 가능성이 있는 String 값. - * @return 만약 String이 null 값일 경우 ""로 바꾼 String 값. - *- */ - public static String nullConvert(String src) { - - if (src == null || src.equals("null") || "".equals(src) || " ".equals(src)) { - return ""; - } else { - return src.trim(); - } - } - - /** - *
- * 인자로 받은 String이 null일 경우 "0"로 리턴한다. - * @param src null값일 가능성이 있는 String 값. - * @return 만약 String이 null 값일 경우 "0"로 바꾼 String 값. - *- */ - public static int zeroConvert(Object src) { - - if (src == null || src.equals("null")) { - return 0; - } else { - return Integer.parseInt(((String)src).trim()); - } - } - - /** - *
- * 인자로 받은 String이 null일 경우 ""로 리턴한다. - * @param src null값일 가능성이 있는 String 값. - * @return 만약 String이 null 값일 경우 ""로 바꾼 String 값. - *- */ - public static int zeroConvert(String src) { - - if (src == null || src.equals("null") || "".equals(src) || " ".equals(src)) { - return 0; - } else { - return Integer.parseInt(src.trim()); - } - } - - /** - *
문자열에서 {@link Character#isWhitespace(char)}에 정의된 - * 모든 공백문자를 제거한다.
- * - *
- * StringUtil.removeWhitespace(null) = null
- * StringUtil.removeWhitespace("") = ""
- * StringUtil.removeWhitespace("abc") = "abc"
- * StringUtil.removeWhitespace(" ab c ") = "abc"
- *
- *
- * @param str 공백문자가 제거도어야 할 문자열
- * @return the 공백문자가 제거된 문자열, null이 입력되면 null이 리턴
- */
- public static String removeWhitespace(String str) {
- if (isEmpty(str)) {
- return str;
- }
- int sz = str.length();
- char[] chs = new char[sz];
- int count = 0;
- for (int i = 0; i < sz; i++) {
- if (!Character.isWhitespace(str.charAt(i))) {
- chs[count++] = str.charAt(i);
- }
- }
- if (count == sz) {
- return str;
- }
-
- return new String(chs, 0, count);
- }
-
- /**
- * Html 코드가 들어간 문서를 표시할때 태그에 손상없이 보이기 위한 메서드
- *
- * @param strString
- * @return HTML 태그를 치환한 문자열
- */
- public static String checkHtmlView(String strString) {
- String strNew = "";
-
- StringBuffer strTxt = new StringBuffer("");
-
- char chrBuff;
- int len = strString.length();
-
- for (int i = 0; i < len; i++) {
- chrBuff = strString.charAt(i);
-
- switch (chrBuff) {
- case '<':
- strTxt.append("<");
- break;
- case '>':
- strTxt.append(">");
- break;
- case '"':
- strTxt.append(""");
- break;
- case 10:
- strTxt.append("{@link String#toLowerCase()}를 이용하여 소문자로 변환한다.
- * - *
- * StringUtil.lowerCase(null) = null
- * StringUtil.lowerCase("") = ""
- * StringUtil.lowerCase("aBc") = "abc"
- *
- *
- * @param str 소문자로 변환되어야 할 문자열
- * @return 소문자로 변환된 문자열, null이 입력되면 null 리턴
- */
- public static String lowerCase(String str) {
- if (str == null) {
- return null;
- }
-
- return str.toLowerCase();
- }
-
- /**
- * {@link String#toUpperCase()}를 이용하여 대문자로 변환한다.
- * - *
- * StringUtil.upperCase(null) = null
- * StringUtil.upperCase("") = ""
- * StringUtil.upperCase("aBc") = "ABC"
- *
- *
- * @param str 대문자로 변환되어야 할 문자열
- * @return 대문자로 변환된 문자열, null이 입력되면 null 리턴
- */
- public static String upperCase(String str) {
- if (str == null) {
- return null;
- }
-
- return str.toUpperCase();
- }
-
- /**
- * 입력된 String의 앞쪽에서 두번째 인자로 전달된 문자(stripChars)를 모두 제거한다.
- * - *
- * StringUtil.stripStart(null, *) = null
- * StringUtil.stripStart("", *) = ""
- * StringUtil.stripStart("abc", "") = "abc"
- * StringUtil.stripStart("abc", null) = "abc"
- * StringUtil.stripStart(" abc", null) = "abc"
- * StringUtil.stripStart("abc ", null) = "abc "
- * StringUtil.stripStart(" abc ", null) = "abc "
- * StringUtil.stripStart("yxabc ", "xyz") = "abc "
- *
- *
- * @param str 지정된 문자가 제거되어야 할 문자열
- * @param stripChars 제거대상 문자열
- * @return 지정된 문자가 제거된 문자열, null이 입력되면 null 리턴
- */
- public static String stripStart(String str, String stripChars) {
- int strLen;
- if (str == null || (strLen = str.length()) == 0) {
- return str;
- }
- int start = 0;
- if (stripChars == null) {
- while ((start != strLen) && Character.isWhitespace(str.charAt(start))) {
- start++;
- }
- } else if (stripChars.length() == 0) {
- return str;
- } else {
- while ((start != strLen) && (stripChars.indexOf(str.charAt(start)) != -1)) {
- start++;
- }
- }
-
- return str.substring(start);
- }
-
- /**
- * 입력된 String의 뒤쪽에서 두번째 인자로 전달된 문자(stripChars)를 모두 제거한다.
- * - *
- * StringUtil.stripEnd(null, *) = null
- * StringUtil.stripEnd("", *) = ""
- * StringUtil.stripEnd("abc", "") = "abc"
- * StringUtil.stripEnd("abc", null) = "abc"
- * StringUtil.stripEnd(" abc", null) = " abc"
- * StringUtil.stripEnd("abc ", null) = "abc"
- * StringUtil.stripEnd(" abc ", null) = " abc"
- * StringUtil.stripEnd(" abcyx", "xyz") = " abc"
- *
- *
- * @param str 지정된 문자가 제거되어야 할 문자열
- * @param stripChars 제거대상 문자열
- * @return 지정된 문자가 제거된 문자열, null이 입력되면 null 리턴
- */
- public static String stripEnd(String str, String stripChars) {
- int end;
- if (str == null || (end = str.length()) == 0) {
- return str;
- }
-
- if (stripChars == null) {
- while ((end != 0) && Character.isWhitespace(str.charAt(end - 1))) {
- end--;
- }
- } else if (stripChars.length() == 0) {
- return str;
- } else {
- while ((end != 0) && (stripChars.indexOf(str.charAt(end - 1)) != -1)) {
- end--;
- }
- }
-
- return str.substring(0, end);
- }
-
- /**
- * 입력된 String의 앞, 뒤에서 두번째 인자로 전달된 문자(stripChars)를 모두 제거한다.
- * - *
- * StringUtil.strip(null, *) = null
- * StringUtil.strip("", *) = ""
- * StringUtil.strip("abc", null) = "abc"
- * StringUtil.strip(" abc", null) = "abc"
- * StringUtil.strip("abc ", null) = "abc"
- * StringUtil.strip(" abc ", null) = "abc"
- * StringUtil.strip(" abcyx", "xyz") = " abc"
- *
- *
- * @param str 지정된 문자가 제거되어야 할 문자열
- * @param stripChars 제거대상 문자열
- * @return 지정된 문자가 제거된 문자열, null이 입력되면 null 리턴
- */
- public static String strip(String str, String stripChars) {
- if (isEmpty(str)) {
- return str;
- }
-
- String srcStr = str;
- srcStr = stripStart(srcStr, stripChars);
-
- return stripEnd(srcStr, stripChars);
- }
-
- /**
- * 문자열을 지정한 분리자에 의해 지정된 길이의 배열로 리턴하는 메서드.
- * @param source 원본 문자열
- * @param separator 분리자
- * @param arraylength 배열 길이
- * @return 분리자로 나뉘어진 문자열 배열
- */
- public static String[] split(String source, String separator, int arraylength) throws NullPointerException {
- String[] returnVal = new String[arraylength];
- int cnt = 0;
- int index0 = 0;
- int index = source.indexOf(separator);
- while (index >= 0 && cnt < (arraylength - 1)) {
- returnVal[cnt] = source.substring(index0, index);
- index0 = index + 1;
- index = source.indexOf(separator, index + 1);
- cnt++;
- }
- returnVal[cnt] = source.substring(index0);
- if (cnt < (arraylength - 1)) {
- for (int i = cnt + 1; i < arraylength; i++) {
- returnVal[i] = "";
- }
- }
-
- return returnVal;
- }
-
- /**
- * 문자열 A에서 Z사이의 랜덤 문자열을 구하는 기능을 제공 시작문자열과 종료문자열 사이의 랜덤 문자열을 구하는 기능
- *
- * @param startChr
- * - 첫 문자
- * @param endChr
- * - 마지막문자
- * @return 랜덤문자
- * @exception MyException
- * @see
- */
- public static String getRandomStr(char startChr, char endChr) {
-
- int randomInt;
- String randomStr = null;
-
- // 시작문자 및 종료문자를 아스키숫자로 변환한다.
- int startInt = Integer.valueOf(startChr);
- int endInt = Integer.valueOf(endChr);
-
- // 시작문자열이 종료문자열보가 클경우
- if (startInt > endInt) {
- throw new IllegalArgumentException("Start String: " + startChr + " End String: " + endChr);
- }
-
- do {
- // 시작문자 및 종료문자 중에서 랜덤 숫자를 발생시킨다.
- randomInt = rnd.nextInt(endInt + 1);
- } while (randomInt < startInt); // 입력받은 문자 'A'(65)보다 작으면 다시 랜덤 숫자 발생.
-
- // 랜덤 숫자를 문자로 변환 후 스트링으로 다시 변환
- randomStr = (char)randomInt + "";
-
- // 랜덤문자열를 리턴
- return randomStr;
- }
-
- /**
- * 문자열을 다양한 문자셋(EUC-KR[KSC5601],UTF-8..)을 사용하여 인코딩하는 기능 역으로 디코딩하여 원래의 문자열을
- * 복원하는 기능을 제공함 String temp = new String(문자열.getBytes("바꾸기전 인코딩"),"바꿀 인코딩");
- * String temp = new String(문자열.getBytes("8859_1"),"KSC5601"); => UTF-8 에서
- * EUC-KR
- *
- * @param srcString
- * - 문자열
- * @param srcCharsetNm
- * - 원래 CharsetNm
- * @param charsetNm
- * - CharsetNm
- * @return 인(디)코딩 문자열
- * @exception MyException
- * @see
- */
- public static String getEncdDcd(String srcString, String srcCharsetNm, String cnvrCharsetNm) {
-
- String rtnStr = null;
-
- if (srcString == null) {
- return null;
- }
-
- try {
- rtnStr = new String(srcString.getBytes(srcCharsetNm), cnvrCharsetNm);
- } catch (UnsupportedEncodingException e) {
- rtnStr = null;
- }
-
- return rtnStr;
- }
-
- /**
- * 특수문자를 웹 브라우저에서 정상적으로 보이기 위해 특수문자를 처리('<' -> & lT)하는 기능이다
- * @param srcString - '<'
- * @return 변환문자열('<' -> "<"
- * @exception MyException
- * @see
- */
- public static String getSpclStrCnvr(String srcString) {
-
- String rtnStr = null;
-
- StringBuffer strTxt = new StringBuffer("");
-
- char chrBuff;
- int len = srcString.length();
-
- for (int i = 0; i < len; i++) {
- chrBuff = srcString.charAt(i);
-
- switch (chrBuff) {
- case '<':
- strTxt.append("<");
- break;
- case '>':
- strTxt.append(">");
- break;
- case '&':
- strTxt.append("&");
- break;
- default:
- strTxt.append(chrBuff);
- }
- }
-
- rtnStr = strTxt.toString();
-
- return rtnStr;
- }
-
- /**
- * 응용어플리케이션에서 고유값을 사용하기 위해 시스템에서17자리의TIMESTAMP값을 구하는 기능
- *
- * @param
- * @return Timestamp 값
- * @exception MyException
- * @see
- */
- public static String getTimeStamp() {
-
- String rtnStr = null;
-
- // 문자열로 변환하기 위한 패턴 설정(년도-월-일 시:분:초:초(자정이후 초))
- String pattern = "yyyyMMddhhmmssSSS";
-
- SimpleDateFormat sdfCurrent = new SimpleDateFormat(pattern, Locale.KOREA);
- Timestamp ts = new Timestamp(System.currentTimeMillis());
-
- rtnStr = sdfCurrent.format(ts.getTime());
-
- return rtnStr;
- }
-
- /**
- * html의 특수문자를 표현하기 위해
- *
- * @param srcString
- * @return String
- * @exception Exception
- * @see
- */
- public static String getHtmlStrCnvr(String srcString) {
-
- String tmpString = srcString;
-
- tmpString = tmpString.replaceAll("<", "<");
- tmpString = tmpString.replaceAll(">", ">");
- tmpString = tmpString.replaceAll("&", "&");
- tmpString = tmpString.replaceAll(" ", " ");
- tmpString = tmpString.replaceAll("'", "\'");
- tmpString = tmpString.replaceAll(""", "\"");
-
- return tmpString;
-
- }
-
- /**
- * 날짜 형식의 문자열 내부에 마이너스 character(-)를 추가한다.
- * - *
- * StringUtil.addMinusChar("20100901") = "2010-09-01"
- *
- *
- * @param date 입력받는 문자열
- * @return " - "가 추가된 입력문자열
- */
- public static String addMinusChar(String date) {
- if (date.length() == 8) {
- return date.substring(0, 4).concat("-").concat(date.substring(4, 6)).concat("-")
- .concat(date.substring(6, 8));
- } else {
- return "";
- }
- }
-}
diff --git a/kcsc-back-end/src/main/resources/admin/committee/schedules/mapper/config/mapper-config.xml b/kcsc-back-end/src/main/resources/admin/committee/schedules/mapper/config/mapper-config.xml
deleted file mode 100644
index 78fb306..0000000
--- a/kcsc-back-end/src/main/resources/admin/committee/schedules/mapper/config/mapper-config.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-