This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/java/com/nis/domain/configuration/BaseIpCfg.java
wangxin 848087dbef ①修复新增,修改,列表展示配置时分类性质标签展示的问题
②列表展示时采用遍历分类性质标签的方法展示,减少数据库查询时的压力
③取掉了一些不需要展示的列
④新增Maat转换的bean
⑤采用gson的方式对在bean上做注解做转换,禁止了htmlescape
2018-03-05 16:30:16 +08:00

298 lines
5.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
*@Title: BaseIpConfig.java
*@Package com.nis.domain.restful
*@Description TODO
*@author dell
*@date 2018年2月5日 下午5:02:24
*@version 版本号
*/
package com.nis.domain.configuration;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* @ClassName: BaseIpConfig.java
* @Description: 基础IP配置
* @author (dell)
* @date 2018年2月5日 下午5:02:24
* @version V1.0
*/
public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
/**
* @Fields serialVersionUID:TODO用一句话描述这个变量表示什么
*
* @since 1.0.0
*/
private static final long serialVersionUID = -1939538118388300002L;
/**
* ip类型
*/
@Expose
@SerializedName("ipType")
protected Integer ipType;
/**
* 源IP地址
*/
@Expose
@SerializedName("srcIp")
protected String srcIp ;
/**
* 源地址掩码
*/
@Expose
@SerializedName("srcIpMask")
protected String srcIpMask ;
/**
* 源端口
*/
@Expose
@SerializedName("srcPort")
protected String srcPort ;
/**
* 源端口掩码
*/
@Expose
@SerializedName("srcPortMask")
protected String srcPortMask ;
/**
* 目的IP地址
*/
@Expose
@SerializedName("dstIp")
protected String dstIp ;
/**
* 目的地址掩码
*/
@Expose
@SerializedName("dstIpMask")
protected String dstIpMask ;
/**
* 目的端口
*/
@Expose
@SerializedName("dstPort")
protected String dstPort ;
/**
* 目的端口掩码
*/
@Expose
@SerializedName("dstPortMask")
protected String dstPortMask ;
/**
* 方向
*/
@Expose
@SerializedName("direction")
protected Integer direction ;
/**
* 方向
*/
@Expose
@SerializedName("protocol")
protected Integer protocol ;
/**
* 协议ID
*/
@Expose
@SerializedName("protocolId")
protected Integer protocolId ;
/**
* 编译id
*/
protected Long compileId ;
/**
* ipType
* @return ipType
*/
public Integer getIpType() {
return ipType;
}
/**
* @param ipType the ipType to set
*/
public void setIpType(Integer ipType) {
this.ipType = ipType;
}
/**
* srcIp
* @return srcIp
*/
public String getSrcIp() {
return srcIp;
}
/**
* @param srcIp the srcIp to set
*/
public void setSrcIp(String srcIp) {
this.srcIp = srcIp;
}
/**
* srcIpMask
* @return srcIpMask
*/
public String getSrcIpMask() {
return srcIpMask;
}
/**
* @param srcIpMask the srcIpMask to set
*/
public void setSrcIpMask(String srcIpMask) {
this.srcIpMask = srcIpMask;
}
/**
* srcPort
* @return srcPort
*/
public String getSrcPort() {
return srcPort;
}
/**
* @param srcPort the srcPort to set
*/
public void setSrcPort(String srcPort) {
this.srcPort = srcPort;
}
/**
* srcPortMask
* @return srcPortMask
*/
public String getSrcPortMask() {
return srcPortMask;
}
/**
* @param srcPortMask the srcPortMask to set
*/
public void setSrcPortMask(String srcPortMask) {
this.srcPortMask = srcPortMask;
}
/**
* dstIp
* @return dstIp
*/
public String getDstIp() {
return dstIp;
}
/**
* @param dstIp the dstIp to set
*/
public void setDstIp(String dstIp) {
this.dstIp = dstIp;
}
/**
* dstIpMask
* @return dstIpMask
*/
public String getDstIpMask() {
return dstIpMask;
}
/**
* @param dstIpMask the dstIpMask to set
*/
public void setDstIpMask(String dstIpMask) {
this.dstIpMask = dstIpMask;
}
/**
* dstPort
* @return dstPort
*/
public String getDstPort() {
return dstPort;
}
/**
* @param dstPort the dstPort to set
*/
public void setDstPort(String dstPort) {
this.dstPort = dstPort;
}
/**
* dstPortMask
* @return dstPortMask
*/
public String getDstPortMask() {
return dstPortMask;
}
/**
* @param dstPortMask the dstPortMask to set
*/
public void setDstPortMask(String dstPortMask) {
this.dstPortMask = dstPortMask;
}
/**
* direction
* @return direction
*/
public Integer getDirection() {
return direction;
}
/**
* @param direction the direction to set
*/
public void setDirection(Integer direction) {
this.direction = direction;
}
/**
* protocol
* @return protocol
*/
public Integer getProtocol() {
return protocol;
}
/**
* @param protocol the protocol to set
*/
public void setProtocol(Integer protocol) {
this.protocol = protocol;
}
/**
* protocolId
* @return protocolId
*/
public Integer getProtocolId() {
return protocolId;
}
/**
* @param protocolId the protocolId to set
*/
public void setProtocolId(Integer protocolId) {
this.protocolId = protocolId;
}
/**
* compileId
* @return compileId
*/
public Long getCompileId() {
return compileId;
}
/**
* @param compileId the compileId to set
*/
public void setCompileId(Long compileId) {
this.compileId = compileId;
}
@Override
public void initDefaultValue(){
super.initDefaultValue();
// this.srcIp ="0.0.0.0";
this.srcPortMask = "65535" ;
// this.dstIp = "0.0.0.0" ;
this.dstPortMask = "65535";
this.direction = 0;
}
}