|
|
|
@ -2,6 +2,7 @@ package kr.xit.ens.kt.service;
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import kr.xit.biz.common.ApiConstants.SndngSeCode;
|
|
|
|
|
import kr.xit.biz.ens.model.cmm.CmmEnsRlaybsnmDTO;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdCerfRequest;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdCerfResponse;
|
|
|
|
@ -9,6 +10,7 @@ import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdInfoCfmRequest;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdInfoCfmResponse;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdInfoRequest;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtAcmdDTO.KtAcmdInfoResponse;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtCommonResponse;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtCommonDTO.KtMnsRequest;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtExcaDTO.KtExcaRequest;
|
|
|
|
@ -164,7 +166,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
@Override
|
|
|
|
|
@TraceLogging
|
|
|
|
|
public KtTokenResponse requestToken(final KtMnsRequest paramDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(paramDTO.getSignguCode(), paramDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(paramDTO);
|
|
|
|
|
final KtTokenRequest reqDTO = KtTokenRequest.builder()
|
|
|
|
|
.clientId(ktMnsInfo.getKtSvcClientId())
|
|
|
|
|
.clientSecret(ktMnsInfo.getKtSvcClientSecret())
|
|
|
|
@ -189,7 +191,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
@Override
|
|
|
|
|
@TraceLogging
|
|
|
|
|
public KtCommonResponse mainSend(final KtMainSendRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setServiceCd(ktMnsInfo.getKtServiceCode());
|
|
|
|
|
reqDTO.setServiceKey(ktMnsInfo.getKtSvcCerfKey());
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
@ -209,7 +211,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
@Override
|
|
|
|
|
@TraceLogging
|
|
|
|
|
public KtTokenConfirmResponse cfmToken(final KtTokenDTO.KtTokenConfirmRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setServiceCd(ktMnsInfo.getKtServiceCode());
|
|
|
|
|
reqDTO.setServiceKey(ktMnsInfo.getKtSvcCerfKey());
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
@ -229,7 +231,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
@Override
|
|
|
|
|
@TraceLogging
|
|
|
|
|
public KtCommonResponse readToken(final KtTokenReadRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setServiceCd(ktMnsInfo.getKtServiceCode());
|
|
|
|
|
reqDTO.setServiceKey(ktMnsInfo.getKtSvcCerfKey());
|
|
|
|
|
reqDTO.setMmsRdgTmst(DateUtils.getTodayAndNowTime("yyyyMMddHHmmss"));
|
|
|
|
@ -260,7 +262,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public KtCommonResponse beforeSend(final KtBefSendRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
|
|
|
|
|
reqDTO.setServiceCd(ktMnsInfo.getKtServiceCode());
|
|
|
|
|
reqDTO.setServiceKey(ktMnsInfo.getKtSvcCerfKey());
|
|
|
|
@ -280,7 +282,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtCommonResponse blacklist(final KtBlacklistRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -297,7 +299,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtSendSttcResponse sendSttc(final KtSendSttcRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -314,7 +316,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtSendSttcDtlResponse sendSttcDtl(final KtSendSttcDtlRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -331,7 +333,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtCommonResponse whitelist(final KtWhitelistRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -374,7 +376,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtAcmdCerfResponse cerfAcmd(final KtAcmdCerfRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -391,7 +393,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtCommonResponse excaAcmd(KtTokenExcaRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -408,7 +410,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtExcaResponse exca(final KtExcaRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -425,7 +427,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtAcmdInfoResponse infoAcmd(final KtAcmdInfoRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -442,7 +444,7 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public KtAcmdInfoCfmResponse cfmAcmd(final KtAcmdInfoCfmRequest reqDTO) {
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
|
|
|
|
|
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO);
|
|
|
|
|
reqDTO.setSignguCode(null);
|
|
|
|
|
reqDTO.setFfnlgCode(null);
|
|
|
|
|
reqDTO.setProfile(null);
|
|
|
|
@ -457,4 +459,8 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
private CmmEnsRlaybsnmDTO getRlaybsnmInfo(final KtCommonDTO.KtMnsRequest request){
|
|
|
|
|
return CmmKtMmsUtils.getRlaybsnmInfo(request.getSignguCode(), request.getFfnlgCode(), SndngSeCode.KT_BC);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|