软件适配器 认证参数接口

yun-zuoyi
汪云昊 6 years ago
parent 2ef0dd5c3b
commit 2325d18660

@ -1,7 +1,5 @@
package cn.estsh.i3plus.pojo.base.annotation;
import cn.estsh.i3plus.pojo.base.enumutil.ImppEnumUtil;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@ -82,4 +82,73 @@ public class SoftSwitchEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum VERIFICATION_METHOD{
LOGIN(1,"登录");
private int value;
private String description;
VERIFICATION_METHOD(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum KEY_TYPE{
ACCOUNT_PASSWORD(1,"账号密码");
private int value;
private String description;
KEY_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
//keyTypeId
}

@ -48,7 +48,7 @@ public class SuitCoreModel {
private String suitCaseStatusCode;
/**
*
*
*/
private BsSslKey sslKey;
@ -88,7 +88,7 @@ public class SuitCoreModel {
/**
*
* @param requestSource
* @param sslKey
* @param sslKey
* @param bsSuitCase
*/
public SuitCoreModel(Integer requestSource,BsSslKey sslKey, BsSuitCase bsSuitCase) {

@ -64,7 +64,7 @@ public class BsParamAdapter extends BaseBean {
private String transferParamName;
@Column(name = "TRANSFER_PARAM_VAL_TYPE_ID")
@ApiParam(value = "转换参数类型")
@ApiParam(value = "转换参数类型")
private Integer transferParamValTypeId;
}

@ -17,7 +17,7 @@ import javax.persistence.Transient;
import java.util.List;
/**
* @Description :
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
@ -29,9 +29,13 @@ import java.util.List;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SSL_KEY")
@Api(value = "安全证书", description = "安全证书")
@Api(value = "适配认证", description = "适配认证")
public class BsSslKey extends BaseBean {
@Column(name = "KEY_NAME")
@ApiParam(value = "证书名称")
private String keyName;
@Column(name = "VERIFICATION_METHOD_ID")
@ApiParam(value = "认证方式(枚举)")
private Integer verificationMethodId;
@ -40,13 +44,9 @@ public class BsSslKey extends BaseBean {
@ApiParam(value = "认证url")
private String verificationUrl;
@Column(name = "KEY_TYPE")
@Column(name = "KEY_TYPE_ID")
@ApiParam(value = "证书类型枚举")
private Integer keyType;
@Column(name = "KEY_NAME")
@ApiParam(value = "证书名称")
private String keyName;
private Integer keyTypeId;
@Column(name = "KEY_FILE_ID")
@ApiParam(value = "证书文件id")

@ -16,7 +16,7 @@ import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21
@ -28,7 +28,7 @@ import javax.persistence.Table;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "BS_SSL_KEY_PARAM")
@Api(value = "安全证书参数", description = "安全证书参数")
@Api(value = "适配认证参数", description = "适配认证参数")
@XStreamAlias("BsSslKeyParam")
public class BsSslKeyParam extends BaseBean {
@ -45,4 +45,8 @@ public class BsSslKeyParam extends BaseBean {
@ApiParam(value = "参数值")
private String paramValue;
@Column(name = "PARAM_DESCRIPTION")
@ApiParam(value = "参数描述")
private String paramDescription;
}

@ -95,9 +95,13 @@ public class BsSuitCase extends BaseBean {
private Integer failNum;
@Column(name = "SUIT_CASE_DESCRIPTION")
@ApiParam(value = "适配类型描述")
@ApiParam(value = "适配描述")
private String suitCaseDescription;
@Column(name = "SUIT_CASE_STATUS")
@ApiParam(value = "适配器状态")
private Integer suitCaseStatus;
@Transient
@ApiParam(value = "适配器参数")
List<BsSuitCaseParam> bsSuitCaseParamList;

@ -59,6 +59,10 @@ public class BsSuitRecord extends BaseBean {
@ApiParam(value = "适配方式id枚举")
private Integer suitMethodId;
@Column(name = "SUIT_METHOD_NAME_RDD")
@ApiParam(value = "适配方式名称枚举")
private Integer suitMethodNameRdd;
@Column(name = "SUIT_TYPE_ID")
@ApiParam(value = "适配类型id")
@JsonSerialize(using = ToStringSerializer.class)

@ -25,7 +25,7 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true)
@Table(name = "SUIT_RECORD_PARAM")
@Api(value = "适配记录参数", description = "适配记录参数")
public class SuitRecordParam extends BaseBean {
public class BsSuitRecordParam extends BaseBean {
@Column(name = "SUIT_RECORD_ID")
@ApiParam(value = "适配记录id")

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSslKeyParam;
/**
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-21 17:47
* @Modify:
**/
public interface BsSslKeyParamRepository extends BaseRepository<BsSslKeyParam, Long> {
}

@ -5,7 +5,7 @@ import cn.estsh.i3plus.pojo.softswitch.bean.BsSslKey;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Description :
* @Reference :
* @Author : yunhao
* @CreateDate : 2019-08-13 9:21

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.softswitch.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.softswitch.bean.SuitRecordParam;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitRecordParam;
import org.springframework.stereotype.Repository;
/**
@ -12,7 +12,7 @@ import org.springframework.stereotype.Repository;
* @Modify:
*/
@Repository
public interface SuitRecordParamRepository extends BaseRepository<SuitRecordParam,Long> {
public interface BsSuitRecordParamRepository extends BaseRepository<BsSuitRecordParam,Long> {
}

@ -177,7 +177,7 @@ public class SoftSwitchHqlPack {
}
/**
*
*
* @param bsSslKey
* @return
*/
@ -185,7 +185,7 @@ public class SoftSwitchHqlPack {
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(bsSslKey.getKeyName(),"keyName",ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSslKey.getKeyType(),"keyType",ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSslKey.getKeyTypeId(),"keyTypeId",ddlPackBean);
ddlPackBean.setOrderByStr(bsSslKey.orderBy());
@ -193,7 +193,7 @@ public class SoftSwitchHqlPack {
}
/**
*
*
* @param bsSslKey
* @return
*/
@ -206,4 +206,66 @@ public class SoftSwitchHqlPack {
return ddlPackBean;
}
/**
*
* @param bsSslKeyParam
* @return
*/
public static DdlPackBean packHqlBsSslKeyParam(BsSslKeyParam bsSslKeyParam){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(bsSslKeyParam.getSslKeyId(), "sslKeyId", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bsSslKeyParam.getParamName(), "paramName", ddlPackBean);
ddlPackBean.setOrderByStr(bsSslKeyParam.orderBy());
return ddlPackBean;
}
/**
*
* @param bsSslKeyParam
* @return
*/
public static DdlPackBean packHqlCheckBsSslKeyParamOnly(BsSslKeyParam bsSslKeyParam){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(bsSslKeyParam.getSslKeyId(), "sslKeyId", ddlPackBean);
DdlPreparedPack.getStringEqualPack(bsSslKeyParam.getParamName(), "paramName", ddlPackBean);
return ddlPackBean;
}
/**
*
* @param bsDataSource
* @return
*/
public static DdlPackBean packHqlBsDataSource(BsDataSource bsDataSource){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getStringLikerPack(bsDataSource.getDataSourceName(), "dataSourceName", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bsDataSource.getDataSourceCode(), "dataSourceCode", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsDataSource.getDataSourceTypeId(), "dataSourceTypeId", ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsDataSource.getIsValid(), "isValid", ddlPackBean);
ddlPackBean.setOrderByStr(bsDataSource.orderBy());
return ddlPackBean;
}
/**
*
* @param bsDataSource
* @return
*/
public static DdlPackBean packHqlCheckBsDataSourceOnly(BsDataSource bsDataSource){
DdlPackBean ddlPackBean = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(bsDataSource.getId(), "id", ddlPackBean);
DdlPreparedPack.getStringLikerPack(bsDataSource.getDataSourceCode(), "dataSourceCode", ddlPackBean);
return ddlPackBean;
}
}

Loading…
Cancel
Save