FAICS/src/main/java/kcg/faics/cmmn/service/CodeService.java

370 lines
9.4 KiB
Java
Raw Normal View History

2022-03-17 02:42:45 +00:00
/**
* CommonService.java
* @author
* @since 2016. 10. 13.
*
*
* ------------- -------- ---------------------------
* 2016. 10. 13.
*
*/
package kcg.faics.cmmn.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import kcg.faics.cmmn.vo.CodeVO;
/**
* Service Interface.
*
* @author kimnomin
*
*/
public interface CodeService {
/**
* .
*/
String LIST_ALL_VAL = "ALL";
/**
* .
*/
String LIST_ALL_STR = "전체";
/**
* .
*/
String CODE1_AUTH = "AUTH";
/**
* .
*/
String CODE1_PLACE1 = "C001";
/**
* .
*/
String CODE1_POSITION = "C002";
/**
* .
*/
String CODE1_COPR = "CORP";
/**
* .
*/
String CODE1_EDU_COURSE = "EDUC";
/**
* .
*/
String CODE1_EDU_PLACE = "EDUP";
/**
* .
*/
Map<String, String[]> PLACE_CATEGORY = new TreeMap<String, String[]>(String.CASE_INSENSITIVE_ORDER) {
/**
* serialVersionUID.
*/
private static final long serialVersionUID = -8213220033671425747L;
{
//중부본부
put("ps90", new String[] { "PS14", "PS16", "PS05", "PS02", "PS50" });
//제주본부
put("PS91", new String[] { "PS13", "PS17" });
//서해본부
put("PS92", new String[] { "PS06", "PS07", "PS08", "PS09", "ps18" });
//남해본부
put("PS93", new String[] { "PS01", "PS11", "PS15", "PS12" });
//동해본부
//20171226 울진해양경찰서 추가(PS19)
put("PS94", new String[] { "PS03", "PS04", "PS10", "PS19" });
put("PS95", new String[] {});
put("PS96", new String[] {});
put("PS97", new String[] {});
put("PS99", new String[] {});
}
};
/**
* - .
*/
HashMap<String, String> CORP_GROUP = new HashMap<String, String>() {
/**
* serialVersionUID.
*/
private static final long serialVersionUID = -4741380958901687806L;
{
put("01", "업무협조기관");
put("02", "해운.항만관련 협회");
put("03", "외사관련업체");
put("04", "외국인고용업체");
put("05", "외국인투자업체");
}
};
/**
* .
*
* <pre>
* PHP
* PS98 -> PS17 .
*
* 20170330 5 (PS50)
* 20171226 (PS19)
* </pre>
*/
String[] POLICE_STATION_LIST = { "PS01", "PS02", "PS03", "PS04", "PS05", "PS06",
"PS07", "PS08", "PS09", "PS10", "PS11", "PS12", "PS13", "PS14", "PS16", "PS17", "ps18", "PS19", "PS50" };
/**
* .
*
* @param code1
*
* @param code2
*
* @return
* @throws Exception
*
*/
CodeVO getCodeValue(String code1, String code2) throws Exception;
/**
* .
*
* @param code1
*
* @param code2
*
* @return CodeVO
* @throws Exception
*
*/
List<CodeVO> getCodeValues(String code1, String code2) throws Exception;
/**
* 1 Detph .
*
* @param onlyCentral
* - true, - false
* @return 1
* @throws Exception
*
*/
List<CodeVO> getPlace1List(boolean onlyCentral) throws Exception;
/**
* 1 Detph .
*
* @param onlyCentral
* - true, - false
* @param includeAll
* "전체"
* @return 1
* @throws Exception
*
*/
List<CodeVO> getPlace1List(boolean onlyCentral, boolean includeAll) throws Exception;
/**
* codes .
*
* @param codes CODE
* @return
* @throws Exception
*
*/
List<CodeVO> getPlace1List(String[] codes) throws Exception;
/**
* codes .
*
* @param codes CODE
* @param includeAll "전체"
* @return
* @throws Exception
*
*/
List<CodeVO> getPlace1List(String[] codes, boolean includeAll) throws Exception;
/**
* 1 Depth code1 . get_agency_list
*
* @param place1Code
* 1 Depth Code
* @return
* @throws Exception
*
*/
List<CodeVO> getPlace1SubList(String place1Code) throws Exception;
/**
* 1 1 Depth code1 .
*
* @param place1Code
* 1 Depth Code
* @return
* @throws Exception
*
*/
List<CodeVO> getPlace1SubListWithMain(String place1Code) throws Exception;
/**
* 1 Depth code1 . get_agency_code
*
* @param place1Code
* 1 Depth Code
* @return
* @throws Exception
*
*/
String getPlace1HighCode(String place1Code) throws Exception;
/**
* .
*
* @param placeCode
* @return
* @throws Exception
*
*/
String getPlace1Str(final String placeCode) throws Exception;
/**
* .
*
* @param place1Code
* @param place2Code
* @return
* @throws Exception
*/
String getPlace2Str(final String place1Code, String place2Code) throws Exception;
/**
* .
*
* @param positionCode
* @return
* @throws Exception
*/
String getPositionStr(final String positionCode) throws Exception;
/**
* .
* @return
* @throws Exception
*
*/
List<CodeVO> getPositionList() throws Exception;
/**
* .
* @param codeVO
* @return
* @throws Exception
*
*/
List<CodeVO> getPlace2List(CodeVO codeVO) throws Exception;
/**
* .
* @param codeVO
* @return
* @throws Exception
*
*/
List<CodeVO> getPlace3List(CodeVO codeVO) throws Exception;
/**
* .
* @return
* @throws Exception
*
*/
List<CodeVO> getDutiesList() throws Exception;
/**
* .
* @return
* @throws Exception
*
*/
List<CodeVO> getJobTypeList() throws Exception;
/**
* .
* @return
* @throws Exception
*
*/
List<CodeVO> getScholarshipList() throws Exception;
/**
* / .
*
* @return /
* @throws Exception
*
*/
List<CodeVO> getCorpOrgList() throws Exception;
/**
* .
*
* @param includeAll
* "전체"
* @return
* @throws Exception
*
*/
List<CodeVO> getEduCourse(final boolean includeAll) throws Exception;
/**
* .
*
* @param includeAll
* "전체"
* @return
* @throws Exception
*
*/
List<CodeVO> getEduPlace(final boolean includeAll) throws Exception;
/**
* .
*
* @return
* @throws Exception
*
*/
List<CodeVO> getAuthList() throws Exception;
/**
* code .
*
* @param codeVO CodeVO
* @return - 1, - 0
* @throws Exception
*/
int updateCode(final CodeVO codeVO) throws Exception;
/**
* code .
*
* @param codeVO CodeVO
* @return - 1, - 0
* @throws Exception
*/
int insertCode(final CodeVO codeVO) throws Exception;
/**
* code .
*
* @param codeVO CodeVO
* @return - 1, - 0
* @throws Exception
*/
int deleteCode(final CodeVO codeVO) throws Exception;
}