fix : egovIdgenService 설정 수정

main
이범준 1 year ago
parent 9177183307
commit 178df74e70

@ -927,7 +927,13 @@
</resource> </resource>
</resources> </resources>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<executions> <executions>
@ -1089,13 +1095,7 @@
<id>maven-snapshot</id> <id>maven-snapshot</id>
<!-- <url>https://xit.xit-nexus.com:8443/repository/maven-snapshots/</url>--> <!-- <url>https://xit.xit-nexus.com:8443/repository/maven-snapshots/</url>-->
<url>http://xit.xit-nexus.com:8081/repository/maven-snapshots/</url> <url>http://xit.xit-nexus.com:8081/repository/maven-snapshots/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</snapshotRepository> </snapshotRepository>
<repository> <repository>

@ -19,6 +19,8 @@ import lombok.extern.slf4j.Slf4j;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.egovframe.rte.fdl.security.intercept.EgovReloadableFilterInvocationSecurityMetadataSource; import org.egovframe.rte.fdl.security.intercept.EgovReloadableFilterInvocationSecurityMetadataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -34,8 +36,9 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
private XitFrameUnitMapper xitFrameUnitMapper; private XitFrameUnitMapper xitFrameUnitMapper;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource(name = "fileIdGnrService") @Autowired
private EgovIdGnrService fileIdgenService; @Qualifier("fileIdGnrService")
private EgovIdGnrService fileIdGnrService;
@Resource(name = "databaseSecurityMetadataSource") @Resource(name = "databaseSecurityMetadataSource")
private EgovReloadableFilterInvocationSecurityMetadataSource databaseSecurityMetadataSource; private EgovReloadableFilterInvocationSecurityMetadataSource databaseSecurityMetadataSource;
@Resource @Resource
@ -404,7 +407,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
boolean isFirstAdd = XitCmmnUtil.isEmpty(atchFileId) ? true : false; boolean isFirstAdd = XitCmmnUtil.isEmpty(atchFileId) ? true : false;
// 파일상세정보 // 파일상세정보
XitAttachFileRespVO vo = new XitAttachFileRespVO(); XitAttachFileRespVO vo = new XitAttachFileRespVO();
vo.setAtch_file_id(isFirstAdd ? fileIdgenService.getNextStringId() : atchFileId); vo.setAtch_file_id(isFirstAdd ? fileIdGnrService.getNextStringId() : atchFileId);
List<XitAttachFileRespVO> listDetailVO = new ArrayList<XitAttachFileRespVO>(); List<XitAttachFileRespVO> listDetailVO = new ArrayList<XitAttachFileRespVO>();
int fileSn = isFirstAdd ? 1 : xitFrameUnitMapper.findMaxFileSn(atchFileId); int fileSn = isFirstAdd ? 1 : xitFrameUnitMapper.findMaxFileSn(atchFileId);
for (XitAttachFileVO fileVO : listAttachFileVO) { for (XitAttachFileVO fileVO : listAttachFileVO) {

@ -16,6 +16,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -32,6 +33,7 @@ public class AuthGrpMgtServiceBean extends AbstractServiceBean implements AuthGr
private final AuthAuthorMgtMapper authAuthorMgtMapper; private final AuthAuthorMgtMapper authAuthorMgtMapper;
private final UserMgtMapper userMgtMapper; private final UserMgtMapper userMgtMapper;
@Autowired
@Qualifier("groupIdGnrService") @Qualifier("groupIdGnrService")
private final EgovIdGnrService groupIdGnrService; private final EgovIdGnrService groupIdGnrService;

@ -10,6 +10,7 @@ import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -22,6 +23,7 @@ import java.util.Map;
public class AuthRoleMgtServiceBean extends AbstractServiceBean implements AuthRoleMgtService { public class AuthRoleMgtServiceBean extends AbstractServiceBean implements AuthRoleMgtService {
private final AuthRoleMgtMapper mapper; private final AuthRoleMgtMapper mapper;
@Autowired
@Qualifier("groupIdGnrService") @Qualifier("groupIdGnrService")
private final EgovIdGnrService groupIdGnrService; private final EgovIdGnrService groupIdGnrService;

@ -10,6 +10,8 @@ import kr.xit.fims.framework.biz.mng.batch.service.XitBatchRegMngService;
import kr.xit.fims.framework.core.message.XitMessageSource; import kr.xit.fims.framework.core.message.XitMessageSource;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -23,8 +25,9 @@ public class XitBatchRegMngServiceBean extends AbstractServiceBean implements Xi
private XitBatchRegMngMapper xitBatchRegMngMapper; private XitBatchRegMngMapper xitBatchRegMngMapper;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource(name="xitBatchOpertIdGnrService") @Autowired
private EgovIdGnrService idgenService; @Qualifier("xitBatchOpertIdGnrService")
private EgovIdGnrService xitBatchOpertIdGnrService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@ -67,7 +70,7 @@ public class XitBatchRegMngServiceBean extends AbstractServiceBean implements Xi
* *
*/ */
try { try {
vo.setBatchOpertId(idgenService.getNextStringId()); vo.setBatchOpertId(xitBatchOpertIdGnrService.getNextStringId());
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }

@ -14,6 +14,8 @@ import kr.xit.fims.framework.biz.mng.batch.service.XitBatchScheduleMngService;
import kr.xit.fims.framework.core.message.XitMessageSource; import kr.xit.fims.framework.core.message.XitMessageSource;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -27,8 +29,9 @@ public class XitBatchScheduleMngServiceBean extends AbstractServiceBean implemen
private XitBatchScheduleMngMapper xitBatchScheduleMngMapper; private XitBatchScheduleMngMapper xitBatchScheduleMngMapper;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource(name="xitBatchSchdulIdGnrService") @Autowired
private EgovIdGnrService idgenService; @Qualifier("xitBatchSchdulIdGnrService")
private EgovIdGnrService xitBatchSchdulIdGnrService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@Resource @Resource
@ -97,7 +100,7 @@ public class XitBatchScheduleMngServiceBean extends AbstractServiceBean implemen
* *
*/ */
try { try {
vo.setBatchSchdulId(idgenService.getNextStringId()); vo.setBatchSchdulId(xitBatchSchdulIdGnrService.getNextStringId());
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }

@ -10,6 +10,7 @@ import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -22,8 +23,9 @@ import java.util.Map;
public class BoardTmplMgtServiceBean extends AbstractServiceBean implements BoardTmplMgtService { public class BoardTmplMgtServiceBean extends AbstractServiceBean implements BoardTmplMgtService {
private final BoardTmplMgtMapper mapper; private final BoardTmplMgtMapper mapper;
@Qualifier(value = "bbsIdGnrService") @Autowired
private final EgovIdGnrService egovIdGnrService; @Qualifier("bbsIdGnrService")
private final EgovIdGnrService bbsIdGnrService;
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
@ -47,7 +49,7 @@ public class BoardTmplMgtServiceBean extends AbstractServiceBean implements Boar
@Transactional @Transactional
public void addBoardTmpl(final XitBbsTmplateMngVO vo) { public void addBoardTmpl(final XitBbsTmplateMngVO vo) {
try { try {
vo.setTmplatId(egovIdGnrService.getNextStringId()); vo.setTmplatId(bbsIdGnrService.getNextStringId());
} catch (FdlException e) { } catch (FdlException e) {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage()); throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage());
} }

@ -11,6 +11,8 @@ import kr.xit.fims.framework.biz.mng.bbs.service.XitBbsCreateMngService;
import kr.xit.fims.framework.core.message.XitMessageSource; import kr.xit.fims.framework.core.message.XitMessageSource;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -26,8 +28,9 @@ public class XitBbsCreateMngServiceBean extends AbstractServiceBean implements X
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@Resource(name = "bbsIdGnrService") @Autowired
private EgovIdGnrService idgenService; @Qualifier("bbsIdGnrService")
private EgovIdGnrService bbsIdGnrService;
@Override @Override
public List<XitBbsCreateMngVO> findList(XitBbsCreateMngSearchVO searchVO) { public List<XitBbsCreateMngVO> findList(XitBbsCreateMngSearchVO searchVO) {
@ -70,7 +73,7 @@ public class XitBbsCreateMngServiceBean extends AbstractServiceBean implements X
//게시판마스터 //게시판마스터
String bbsId = null; String bbsId = null;
try { try {
bbsId = idgenService.getNextStringId(); bbsId = bbsIdGnrService.getNextStringId();
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }

@ -10,6 +10,8 @@ import kr.xit.fims.framework.biz.mng.bbs.service.XitBbsTmplateMngService;
import kr.xit.fims.framework.core.message.XitMessageSource; import kr.xit.fims.framework.core.message.XitMessageSource;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -25,8 +27,9 @@ public class XitBbsTmplateMngServiceBean extends AbstractServiceBean implements
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@Resource(name = "xitTmplatIdGnrService") @Autowired
private EgovIdGnrService idgenService; @Qualifier("xitTmplatIdGnrService")
private EgovIdGnrService xitTmplatIdGnrService;
@Override @Override
public List<XitBbsTmplateMngVO> findList(XitBbsTmplateMngSearchVO searchVO) { public List<XitBbsTmplateMngVO> findList(XitBbsTmplateMngSearchVO searchVO) {
@ -68,7 +71,7 @@ public class XitBbsTmplateMngServiceBean extends AbstractServiceBean implements
*/ */
String tmplatId = null; String tmplatId = null;
try { try {
tmplatId = idgenService.getNextStringId(); tmplatId = xitTmplatIdGnrService.getNextStringId();
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }

@ -21,6 +21,7 @@ import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -36,6 +37,7 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
private final AuthGrpMgtMapper authGrpMgtMapper; private final AuthGrpMgtMapper authGrpMgtMapper;
private final XitFrameCrudService xitFrameCrudService; private final XitFrameCrudService xitFrameCrudService;
private final XitMessageSource xitMessageSource; private final XitMessageSource xitMessageSource;
@Autowired
@Qualifier("usrEsntlIdGnrService") @Qualifier("usrEsntlIdGnrService")
private final EgovIdGnrService usrEsntlIdGnrService; private final EgovIdGnrService usrEsntlIdGnrService;

@ -19,6 +19,8 @@ import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -39,8 +41,9 @@ public class XitEntUserRegMngServiceBean extends AbstractServiceBean implements
private XitFrameUnitService xitFrameUnitService; private XitFrameUnitService xitFrameUnitService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@Resource(name="usrEsntlIdGnrService") @Autowired
private EgovIdGnrService idgenService; @Qualifier("usrEsntlIdGnrService")
private EgovIdGnrService usrEsntlIdGnrService;
@Override @Override
public List<XitEntUserRegMngVO> findList(XitEntUserRegMngSearchVO searchVO) { public List<XitEntUserRegMngVO> findList(XitEntUserRegMngSearchVO searchVO) {
@ -88,7 +91,7 @@ public class XitEntUserRegMngServiceBean extends AbstractServiceBean implements
*/ */
String esntlId = null; String esntlId = null;
try { try {
esntlId = idgenService.getNextStringId(); esntlId = usrEsntlIdGnrService.getNextStringId();
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }

@ -19,6 +19,8 @@ import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -39,8 +41,9 @@ public class XitGnrUserRegMngServiceBean extends AbstractServiceBean implements
private XitFrameUnitService xitFrameUnitService; private XitFrameUnitService xitFrameUnitService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@Resource(name="usrEsntlIdGnrService") @Autowired
private EgovIdGnrService idgenService; @Qualifier("usrEsntlIdGnrService")
private EgovIdGnrService usrEsntlIdGnrService;
@Override @Override
public List<XitGnrUserRegMngVO> findList(XitGnrUserRegMngSearchVO searchVO) { public List<XitGnrUserRegMngVO> findList(XitGnrUserRegMngSearchVO searchVO) {
@ -88,7 +91,7 @@ public class XitGnrUserRegMngServiceBean extends AbstractServiceBean implements
*/ */
String esntlId = null; String esntlId = null;
try { try {
esntlId = idgenService.getNextStringId(); esntlId = usrEsntlIdGnrService.getNextStringId();
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }

@ -10,7 +10,6 @@ import kr.xit.fims.framework.biz.mng.user.XitUserEtcOptionVO;
import kr.xit.fims.framework.biz.mng.user.service.XitUserEtcOptMngService; import kr.xit.fims.framework.biz.mng.user.service.XitUserEtcOptMngService;
import kr.xit.fims.framework.core.message.XitMessageSource; import kr.xit.fims.framework.core.message.XitMessageSource;
import kr.xit.fims.framework.core.utils.XitCmmnUtil; import kr.xit.fims.framework.core.utils.XitCmmnUtil;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@ -28,8 +27,7 @@ public class XitUserEtcOptMngServiceBean extends AbstractServiceBean implements
private XitFrameUnitService xitFrameUnitService; private XitFrameUnitService xitFrameUnitService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@Resource(name="usrEsntlIdGnrService")
private EgovIdGnrService idgenService;
@Override @Override
public List<XitUserEtcOptMngVO> findList(XitUserEtcOptMngSearchVO searchVO) { public List<XitUserEtcOptMngVO> findList(XitUserEtcOptMngSearchVO searchVO) {

@ -9,6 +9,8 @@ import kr.xit.fims.framework.core.utils.XitHttpRequestHelper;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService; import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
@ -26,8 +28,9 @@ import javax.servlet.http.HttpServletRequest;
public class XitLoginLogAspect { public class XitLoginLogAspect {
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource(name="xitConectLogIdGnrService") @Autowired
private EgovIdGnrService idgenService; @Qualifier("xitConectLogIdGnrService")
private EgovIdGnrService xitConectLogIdGnrService;
@Resource @Resource
private XitMessageSource xitMessageSource; private XitMessageSource xitMessageSource;
@ -61,7 +64,7 @@ public class XitLoginLogAspect {
*/ */
XitConectLogVO vo = new XitConectLogVO(); XitConectLogVO vo = new XitConectLogVO();
try { try {
vo.setLog_id(idgenService.getNextStringId()); vo.setLog_id(xitConectLogIdGnrService.getNextStringId());
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }
@ -104,7 +107,7 @@ public class XitLoginLogAspect {
*/ */
XitConectLogVO vo = new XitConectLogVO(); XitConectLogVO vo = new XitConectLogVO();
try { try {
vo.setLog_id(idgenService.getNextStringId()); vo.setLog_id(xitConectLogIdGnrService.getNextStringId());
} catch (FdlException e) { } catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage())); throw new RuntimeException(String.format("%s %s", xitMessageSource.getMessage("fail.common.insert"), e.getMessage()));
} }

@ -28,7 +28,9 @@
<!-- 사용자 고유ID Generation Config--> <!-- 사용자 고유ID Generation Config-->
<bean name="usrEsntlIdGnrService" class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" destroy-method="destroy"> <bean name="usrEsntlIdGnrService"
class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" /> <property name="dataSource" ref="dataSource" />
<property name="strategy" ref="usrEsntlStrategy" /> <property name="strategy" ref="usrEsntlStrategy" />
<property name="blockSize" value="10"/> <property name="blockSize" value="10"/>
@ -37,19 +39,22 @@
<property name="tableNameFieldName" value="TABLE_NM"/> <property name="tableNameFieldName" value="TABLE_NM"/>
</bean> </bean>
<!-- 사용자 고유ID Generation Strategy Config --> <!-- 사용자 고유ID Generation Strategy Config -->
<bean name="usrEsntlStrategy" class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl"> <bean name="usrEsntlStrategy"
class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="USRCNFRM_" /> <property name="prefix" value="USRCNFRM_" />
<property name="cipers" value="11" /> <property name="cipers" value="11" />
<property name="fillChar" value="0" /> <property name="fillChar" value="0" />
</bean> </bean>
<!-- 롤 ID Generation Config--> <!-- 롤 ID Generation Config-->
<bean name="xitRoleIdGnrService" class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" destroy-method="destroy"> <bean name="xitRoleIdGnrService"
class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" /> <property name="dataSource" ref="dataSource" />
<property name="strategy" ref="roleIdStrategy" /> <property name="strategy" ref="roleIdStrategy" />
<property name="blockSize" value="10"/> <property name="blockSize" value="10"/>
@ -58,16 +63,17 @@
<property name="tableNameFieldName" value="TABLE_NM"/> <property name="tableNameFieldName" value="TABLE_NM"/>
</bean> </bean>
<!-- 롤 ID Generation Strategy Config --> <!-- 롤 ID Generation Strategy Config -->
<bean name="roleIdStrategy" class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl"> <bean name="roleIdStrategy"
class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="" /> <property name="prefix" value="" />
<property name="cipers" value="6" /> <property name="cipers" value="6" />
<property name="fillChar" value="0" /> <property name="fillChar" value="0" />
</bean> </bean>
<!-- 권한그룹 ID Generation Config--> <!-- 권한그룹 ID Generation Config-->
<bean name="groupIdGnrService" <bean name="groupIdGnrService"
@ -143,7 +149,9 @@
<!-- 접속로그 ID Generation Config--> <!-- 접속로그 ID Generation Config-->
<bean name="xitConectLogIdGnrService" class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" destroy-method="destroy"> <bean name="xitConectLogIdGnrService"
class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" /> <property name="dataSource" ref="dataSource" />
<property name="strategy" ref="conectLogStrategy" /> <property name="strategy" ref="conectLogStrategy" />
<property name="blockSize" value="10"/> <property name="blockSize" value="10"/>
@ -189,7 +197,9 @@
<!-- 배치작업 ID --> <!-- 배치작업 ID -->
<bean name="xitBatchOpertIdGnrService" class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" destroy-method="destroy"> <bean name="xitBatchOpertIdGnrService"
class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" /> <property name="dataSource" ref="dataSource" />
<property name="strategy" ref="batchOpertIdStrategy" /> <property name="strategy" ref="batchOpertIdStrategy" />
<property name="blockSize" value="10"/> <property name="blockSize" value="10"/>
@ -197,14 +207,17 @@
<property name="tableName" value="BATCH_OPERT_ID"/> <property name="tableName" value="BATCH_OPERT_ID"/>
<property name="tableNameFieldName" value="TABLE_NM"/> <property name="tableNameFieldName" value="TABLE_NM"/>
</bean> </bean>
<bean name="batchOpertIdStrategy" class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl"> <bean name="batchOpertIdStrategy"
class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="BAT" /> <property name="prefix" value="BAT" />
<property name="cipers" value="17" /> <property name="cipers" value="17" />
<property name="fillChar" value="0" /> <property name="fillChar" value="0" />
</bean> </bean>
<!-- 배치작업 ID --> <!-- 배치작업 ID -->
<!-- 배치스케줄 ID --> <!-- 배치스케줄 ID -->
<bean name="xitBatchSchdulIdGnrService" class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl" destroy-method="destroy"> <bean name="xitBatchSchdulIdGnrService"
class="org.egovframe.rte.fdl.idgnr.impl.EgovTableIdGnrServiceImpl"
destroy-method="destroy">
<property name="dataSource" ref="dataSource" /> <property name="dataSource" ref="dataSource" />
<property name="strategy" ref="batchSchdulIdStrategy" /> <property name="strategy" ref="batchSchdulIdStrategy" />
<property name="blockSize" value="10"/> <property name="blockSize" value="10"/>
@ -212,7 +225,8 @@
<property name="tableName" value="BATCH_SCHDUL_ID"/> <property name="tableName" value="BATCH_SCHDUL_ID"/>
<property name="tableNameFieldName" value="TABLE_NM"/> <property name="tableNameFieldName" value="TABLE_NM"/>
</bean> </bean>
<bean name="batchSchdulIdStrategy" class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl"> <bean name="batchSchdulIdStrategy"
class="org.egovframe.rte.fdl.idgnr.impl.strategy.EgovIdGnrStrategyImpl">
<property name="prefix" value="BSC" /> <property name="prefix" value="BSC" />
<property name="cipers" value="17" /> <property name="cipers" value="17" />
<property name="fillChar" value="0" /> <property name="fillChar" value="0" />

Loading…
Cancel
Save