196 lines
4.9 KiB
Java
196 lines
4.9 KiB
Java
|
|
/**
|
|||
|
|
*@Title: BaseStringConfig.java
|
|||
|
|
*@Package com.nis.domain.restful
|
|||
|
|
*@Description TODO
|
|||
|
|
*@author dell
|
|||
|
|
*@date 2018年2月5日 下午5:26:02
|
|||
|
|
*@version 版本号
|
|||
|
|
*/
|
|||
|
|
package com.nis.domain.configuration;
|
|||
|
|
|
|||
|
|
import java.util.Date;
|
|||
|
|
|
|||
|
|
import org.apache.commons.lang3.StringEscapeUtils;
|
|||
|
|
|
|||
|
|
import com.google.gson.annotations.Expose;
|
|||
|
|
import com.google.gson.annotations.SerializedName;
|
|||
|
|
import com.nis.util.excel.ExcelField;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @Description: excel导入IP类配置
|
|||
|
|
*/
|
|||
|
|
public class IpCfgTemplate {
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
|||
|
|
*
|
|||
|
|
* @since 1.0.0
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
private Long cfgId;
|
|||
|
|
private Integer ipType;
|
|||
|
|
private Integer ipPattern;
|
|||
|
|
private String srcIpAddress;
|
|||
|
|
private String destIpAddress;
|
|||
|
|
private Integer portPattern;
|
|||
|
|
private String srcPort;
|
|||
|
|
private String destPort;
|
|||
|
|
private Integer protocol;
|
|||
|
|
protected Integer direction ;
|
|||
|
|
private String cfgDesc;
|
|||
|
|
private Integer requestId;
|
|||
|
|
private String requestName;
|
|||
|
|
private Integer isAreaEffective;
|
|||
|
|
private String classify;
|
|||
|
|
private String attribute;
|
|||
|
|
private String lable;
|
|||
|
|
private String classifyName;
|
|||
|
|
private String attributeName;
|
|||
|
|
private String lableName;
|
|||
|
|
private String areaEffectiveIds ;
|
|||
|
|
|
|||
|
|
@ExcelField(title="ip_type",align=2,sort=1)
|
|||
|
|
public Integer getIpType() {
|
|||
|
|
return ipType;
|
|||
|
|
}
|
|||
|
|
public void setIpType(Integer ipType) {
|
|||
|
|
this.ipType = ipType;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="ip_pattern",align=2,sort=2)
|
|||
|
|
public Integer getIpPattern() {
|
|||
|
|
return ipPattern;
|
|||
|
|
}
|
|||
|
|
public void setIpPattern(Integer ipPattern) {
|
|||
|
|
this.ipPattern = ipPattern;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="client_ip",align=2,sort=3)
|
|||
|
|
public String getSrcIpAddress() {
|
|||
|
|
return srcIpAddress;
|
|||
|
|
}
|
|||
|
|
public void setSrcIpAddress(String srcIpAddress) {
|
|||
|
|
this.srcIpAddress = srcIpAddress;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="server_ip",align=2,sort=4)
|
|||
|
|
public String getDestIpAddress() {
|
|||
|
|
return destIpAddress;
|
|||
|
|
}
|
|||
|
|
public void setDestIpAddress(String destIpAddress) {
|
|||
|
|
this.destIpAddress = destIpAddress;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="port_pattern",align=2,sort=5)
|
|||
|
|
public Integer getPortPattern() {
|
|||
|
|
return portPattern;
|
|||
|
|
}
|
|||
|
|
public void setPortPattern(Integer portPattern) {
|
|||
|
|
this.portPattern = portPattern;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="client_port",align=2,sort=6)
|
|||
|
|
public String getSrcPort() {
|
|||
|
|
return srcPort;
|
|||
|
|
}
|
|||
|
|
public void setSrcPort(String srcPort) {
|
|||
|
|
this.srcPort = srcPort;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="server_port",align=2,sort=7)
|
|||
|
|
public String getDestPort() {
|
|||
|
|
return destPort;
|
|||
|
|
}
|
|||
|
|
public void setDestPort(String destPort) {
|
|||
|
|
this.destPort = destPort;
|
|||
|
|
}
|
|||
|
|
public Long getCfgId() {
|
|||
|
|
return cfgId;
|
|||
|
|
}
|
|||
|
|
public void setCfgId(Long cfgId) {
|
|||
|
|
this.cfgId = cfgId;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="direction",align=2,sort=8)
|
|||
|
|
public Integer getDirection() {
|
|||
|
|
return direction;
|
|||
|
|
}
|
|||
|
|
public void setDirection(Integer direction) {
|
|||
|
|
this.direction = direction;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="config_describe",align=2,sort=11)
|
|||
|
|
public String getCfgDesc() {
|
|||
|
|
return cfgDesc;
|
|||
|
|
}
|
|||
|
|
public void setCfgDesc(String cfgDesc) {
|
|||
|
|
this.cfgDesc = cfgDesc;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="letter",align=2,sort=13)
|
|||
|
|
public Integer getRequestId() {
|
|||
|
|
return requestId;
|
|||
|
|
}
|
|||
|
|
public void setRequestId(Integer requestId) {
|
|||
|
|
this.requestId = requestId;
|
|||
|
|
}
|
|||
|
|
public String getRequestName() {
|
|||
|
|
return requestName;
|
|||
|
|
}
|
|||
|
|
public void setRequestName(String requestName) {
|
|||
|
|
this.requestName = requestName;
|
|||
|
|
}
|
|||
|
|
public Integer getIsAreaEffective() {
|
|||
|
|
return isAreaEffective;
|
|||
|
|
}
|
|||
|
|
public void setIsAreaEffective(Integer isAreaEffective) {
|
|||
|
|
this.isAreaEffective = isAreaEffective;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="classification",align=2,sort=71)
|
|||
|
|
public String getClassify() {
|
|||
|
|
return classify;
|
|||
|
|
}
|
|||
|
|
public void setClassify(String classify) {
|
|||
|
|
this.classify = classify;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="attribute",align=2,sort=72)
|
|||
|
|
public String getAttribute() {
|
|||
|
|
return attribute;
|
|||
|
|
}
|
|||
|
|
public void setAttribute(String attribute) {
|
|||
|
|
this.attribute = attribute;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="label",align=2,sort=73)
|
|||
|
|
public String getLable() {
|
|||
|
|
return lable;
|
|||
|
|
}
|
|||
|
|
public void setLable(String lable) {
|
|||
|
|
this.lable = lable;
|
|||
|
|
}
|
|||
|
|
public String getClassifyName() {
|
|||
|
|
return classifyName;
|
|||
|
|
}
|
|||
|
|
public void setClassifyName(String classifyName) {
|
|||
|
|
this.classifyName = classifyName;
|
|||
|
|
}
|
|||
|
|
public String getAttributeName() {
|
|||
|
|
return attributeName;
|
|||
|
|
}
|
|||
|
|
public void setAttributeName(String attributeName) {
|
|||
|
|
this.attributeName = attributeName;
|
|||
|
|
}
|
|||
|
|
public String getLableName() {
|
|||
|
|
return lableName;
|
|||
|
|
}
|
|||
|
|
public void setLableName(String lableName) {
|
|||
|
|
this.lableName = lableName;
|
|||
|
|
}
|
|||
|
|
// @ExcelField(title="area_effective",align=2,sort=70)
|
|||
|
|
public String getAreaEffectiveIds() {
|
|||
|
|
return areaEffectiveIds;
|
|||
|
|
}
|
|||
|
|
public void setAreaEffectiveIds(String areaEffectiveIds) {
|
|||
|
|
this.areaEffectiveIds = areaEffectiveIds;
|
|||
|
|
}
|
|||
|
|
@ExcelField(title="protocol",align=2,sort=9)
|
|||
|
|
public Integer getProtocol() {
|
|||
|
|
return protocol;
|
|||
|
|
}
|
|||
|
|
public void setProtocol(Integer protocol) {
|
|||
|
|
this.protocol = protocol;
|
|||
|
|
}
|
|||
|
|
}
|