fix(all):清除历史无用日志处理类
This commit is contained in:
@@ -1,104 +0,0 @@
|
||||
/**
|
||||
* @Title: DfDnsLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午10:16:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfDnsLog
|
||||
* @Description: DNSXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午11:41:50
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfDnsLog extends LogEntity<DfDnsLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 4159362642752335782L;
|
||||
|
||||
|
||||
@ApiModelProperty(value="递归请求", required=true)
|
||||
protected Long rd;
|
||||
@ApiModelProperty(value="查询类型", required=true)
|
||||
protected Long qtype;
|
||||
@ApiModelProperty(value="查询类", required=true)
|
||||
protected Long qclass;
|
||||
@ApiModelProperty(value="OPCODE", required=true)
|
||||
protected Long opcode;
|
||||
@ApiModelProperty(value="查询内容", required=true)
|
||||
protected String qname;
|
||||
@ApiModelProperty(value="欺骗包的应答类型", required=true)
|
||||
protected String cheatType;
|
||||
@ApiModelProperty(value="欺骗包RCODE", required=true)
|
||||
protected Long cheatRcode;
|
||||
@ApiModelProperty(value="欺骗策略", required=true)
|
||||
protected String cheatStrategy;
|
||||
@ApiModelProperty(value="欺骗记录", required=true)
|
||||
protected String cheatRr;
|
||||
public Long getRd() {
|
||||
return rd;
|
||||
}
|
||||
public void setRd(Long rd) {
|
||||
this.rd = rd;
|
||||
}
|
||||
public Long getQtype() {
|
||||
return qtype;
|
||||
}
|
||||
public void setQtype(Long qtype) {
|
||||
this.qtype = qtype;
|
||||
}
|
||||
public Long getQclass() {
|
||||
return qclass;
|
||||
}
|
||||
public void setQclass(Long qclass) {
|
||||
this.qclass = qclass;
|
||||
}
|
||||
public Long getOpcode() {
|
||||
return opcode;
|
||||
}
|
||||
public void setOpcode(Long opcode) {
|
||||
this.opcode = opcode;
|
||||
}
|
||||
public String getQname() {
|
||||
return qname;
|
||||
}
|
||||
public void setQname(String qname) {
|
||||
this.qname = qname;
|
||||
}
|
||||
public void setCheatRcode(Long cheatRcode) {
|
||||
this.cheatRcode = cheatRcode;
|
||||
}
|
||||
public void setCheatType(String cheatType) {
|
||||
this.cheatType = cheatType;
|
||||
}
|
||||
public Long getCheatRcode() {
|
||||
return cheatRcode;
|
||||
}
|
||||
public String getCheatType() {
|
||||
return cheatType;
|
||||
}
|
||||
public String getCheatStrategy() {
|
||||
return cheatStrategy;
|
||||
}
|
||||
public void setCheatStrategy(String cheatStrategy) {
|
||||
this.cheatStrategy = cheatStrategy;
|
||||
}
|
||||
public String getCheatRr() {
|
||||
return cheatRr;
|
||||
}
|
||||
public void setCheatRr(String cheatRr) {
|
||||
this.cheatRr = cheatRr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
/**
|
||||
* @Title: DfFtpLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午10:16:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfFtpLog
|
||||
* @Description: FTPXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午12:13:24
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfFtpLog extends LogEntity<DfFtpLog>{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -3468485265584781756L;
|
||||
|
||||
@ApiModelProperty(value="FTP链接", required=true)
|
||||
protected String ftpUrl;
|
||||
|
||||
public String getFtpUrl() {
|
||||
return ftpUrl;
|
||||
}
|
||||
public void setFtpUrl(String ftpUrl) {
|
||||
this.ftpUrl = ftpUrl;
|
||||
}
|
||||
}
|
||||
@@ -1,268 +0,0 @@
|
||||
/**
|
||||
*@Title: DfIpPortUdp.java
|
||||
*@Package com.nis.domain.restful
|
||||
*@Description TODO
|
||||
*@author dell
|
||||
*@date 2016<31>?9<>?13<31>? 上午9:11:55
|
||||
*@version 版本<E78988>?
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.nis.domain.BaseEntity;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName: DfIpPortUdp.java
|
||||
* @Description: TODO
|
||||
* @author (wx)
|
||||
* @date 2016<31>?9<>?13<31>? 上午9:11:55
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfIpPortUdp extends BaseEntity<DfIpPortUdp>{
|
||||
/**
|
||||
* @Fields serialVersionUID:TODO(用<EFBC88>?句话描述这个变量表示<E8A1A8>?么)
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
private static final long serialVersionUID = -6162892672391456265L;
|
||||
@ApiModelProperty(value="序号", required=true)
|
||||
private Long cfgId;
|
||||
@ApiModelProperty(value="地址类型", required=true)
|
||||
private Integer addrType;
|
||||
@ApiModelProperty(value="源IP", required=true)
|
||||
private String srcIp;
|
||||
@ApiModelProperty(value="源IP掩码", required=true)
|
||||
private String maskSrcIp;
|
||||
@ApiModelProperty(value="源端口", required=true)
|
||||
private String srcPort;
|
||||
@ApiModelProperty(value="源端口掩码", required=true)
|
||||
private String maskSrcPort;
|
||||
@ApiModelProperty(value="目的IP", required=true)
|
||||
private String dstIp;
|
||||
@ApiModelProperty(value="目的IP掩码", required=true)
|
||||
private String maskDstIp;
|
||||
@ApiModelProperty(value="目的端口", required=true)
|
||||
private String dstPort;
|
||||
@ApiModelProperty(value="目的端口掩码", required=true)
|
||||
private String maskDstPort;
|
||||
@ApiModelProperty(value="协议udp,固定为0", required=true)
|
||||
private Integer protocol;
|
||||
@ApiModelProperty(value="方向,0双向,1单向", required=true)
|
||||
private Integer direction;
|
||||
@ApiModelProperty(value="有效标志, 0无效,1有效", required=true)
|
||||
private Integer isValid;
|
||||
@ApiModelProperty(value="序号", required=true)
|
||||
private Date opTime;
|
||||
@ApiModelProperty(value="生效范围", required=true)
|
||||
private String effectiveRange;
|
||||
@ApiModelProperty(value="生效系统", required=true)
|
||||
private Integer activeSys;
|
||||
private Date lastUpdate;
|
||||
private Long procSeq;
|
||||
|
||||
/**
|
||||
* effectiveRange
|
||||
* @return effectiveRange
|
||||
*/
|
||||
|
||||
public String getEffectiveRange() {
|
||||
return effectiveRange;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param effectiveRange the effectiveRange to set
|
||||
*/
|
||||
public void setEffectiveRange(String effectiveRange) {
|
||||
this.effectiveRange = effectiveRange;
|
||||
}
|
||||
|
||||
/**
|
||||
* activeSys
|
||||
* @return activeSys
|
||||
*/
|
||||
|
||||
public Integer getActiveSys() {
|
||||
return activeSys;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param activeSys the activeSys to set
|
||||
*/
|
||||
public void setActiveSys(Integer activeSys) {
|
||||
this.activeSys = activeSys;
|
||||
}
|
||||
|
||||
/**
|
||||
* lastUpdate
|
||||
* @return lastUpdate
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Date getLastUpdate() {
|
||||
return lastUpdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param lastUpdate the lastUpdate to set
|
||||
*/
|
||||
public void setLastUpdate(Date lastUpdate) {
|
||||
this.lastUpdate = lastUpdate;
|
||||
}
|
||||
|
||||
/**
|
||||
* procSeq
|
||||
* @return procSeq
|
||||
*/
|
||||
@JsonIgnore
|
||||
public Long getProcSeq() {
|
||||
return procSeq;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param procSeq the procSeq to set
|
||||
*/
|
||||
public void setProcSeq(Long procSeq) {
|
||||
this.procSeq = procSeq;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.nis.domain.BaseEntity#getId()
|
||||
*/
|
||||
@Override
|
||||
@JsonIgnore
|
||||
public Long getId() {
|
||||
// TODO Auto-generated method stub
|
||||
return super.getId();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.nis.domain.BaseEntity#setId(java.lang.Long)
|
||||
*/
|
||||
@Override
|
||||
@JsonIgnore
|
||||
public void setId(Long id) {
|
||||
// TODO Auto-generated method stub
|
||||
super.setId(id);
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Integer getAddrType() {
|
||||
return addrType;
|
||||
}
|
||||
|
||||
public void setAddrType(Integer addrType) {
|
||||
this.addrType = addrType;
|
||||
}
|
||||
|
||||
public String getSrcIp() {
|
||||
return srcIp;
|
||||
}
|
||||
|
||||
public void setSrcIp(String srcIp) {
|
||||
this.srcIp = srcIp == null ? null : srcIp.trim();
|
||||
}
|
||||
|
||||
public String getMaskSrcIp() {
|
||||
return maskSrcIp;
|
||||
}
|
||||
|
||||
public void setMaskSrcIp(String maskSrcIp) {
|
||||
this.maskSrcIp = maskSrcIp == null ? null : maskSrcIp.trim();
|
||||
}
|
||||
|
||||
public String getSrcPort() {
|
||||
return srcPort;
|
||||
}
|
||||
|
||||
public void setSrcPort(String srcPort) {
|
||||
this.srcPort = srcPort == null ? null : srcPort.trim();
|
||||
}
|
||||
|
||||
public String getMaskSrcPort() {
|
||||
return maskSrcPort;
|
||||
}
|
||||
|
||||
public void setMaskSrcPort(String maskSrcPort) {
|
||||
this.maskSrcPort = maskSrcPort == null ? null : maskSrcPort.trim();
|
||||
}
|
||||
|
||||
public String getDstIp() {
|
||||
return dstIp;
|
||||
}
|
||||
|
||||
public void setDstIp(String dstIp) {
|
||||
this.dstIp = dstIp == null ? null : dstIp.trim();
|
||||
}
|
||||
|
||||
public String getMaskDstIp() {
|
||||
return maskDstIp;
|
||||
}
|
||||
|
||||
public void setMaskDstIp(String maskDstIp) {
|
||||
this.maskDstIp = maskDstIp == null ? null : maskDstIp.trim();
|
||||
}
|
||||
|
||||
public String getDstPort() {
|
||||
return dstPort;
|
||||
}
|
||||
|
||||
public void setDstPort(String dstPort) {
|
||||
this.dstPort = dstPort == null ? null : dstPort.trim();
|
||||
}
|
||||
|
||||
public String getMaskDstPort() {
|
||||
return maskDstPort;
|
||||
}
|
||||
|
||||
public void setMaskDstPort(String maskDstPort) {
|
||||
this.maskDstPort = maskDstPort == null ? null : maskDstPort.trim();
|
||||
}
|
||||
|
||||
public Integer getProtocol() {
|
||||
return protocol;
|
||||
}
|
||||
|
||||
public void setProtocol(Integer protocol) {
|
||||
this.protocol = protocol;
|
||||
}
|
||||
|
||||
public Integer getDirection() {
|
||||
return direction;
|
||||
}
|
||||
|
||||
public void setDirection(Integer direction) {
|
||||
this.direction = direction;
|
||||
}
|
||||
|
||||
public Integer getIsValid() {
|
||||
return isValid;
|
||||
}
|
||||
|
||||
public void setIsValid(Integer isValid) {
|
||||
this.isValid = isValid;
|
||||
}
|
||||
@JsonSerialize(using=JsonDateSerializer.class)
|
||||
public Date getOpTime() {
|
||||
return opTime;
|
||||
}
|
||||
|
||||
public void setOpTime(Date opTime) {
|
||||
this.opTime = opTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,128 +0,0 @@
|
||||
/**
|
||||
*@Title: DfIpPortUdpSource.java
|
||||
*@Package com.nis.domain.restful
|
||||
*@Description TODO
|
||||
*@author dell
|
||||
*@date 2016年9月13日 上午9:12:48
|
||||
*@version 版本号
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName: DfIpPortUdpSource.java
|
||||
* @Description: TODO
|
||||
* @author (dell)
|
||||
* @date 2016年9月13日 上午9:12:48
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfIpPortUdpSource extends ConfigCommonSource{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
private static final long serialVersionUID = 5423347084696349283L;
|
||||
private static final String DEFAULT_VERSION = "1.0";
|
||||
private List<DfIpPortUdp> dfIpPortUdpList;
|
||||
|
||||
/**
|
||||
* 创建一个新的实例 DfIpPortUdpSource.
|
||||
*
|
||||
*/
|
||||
public DfIpPortUdpSource() {
|
||||
super();
|
||||
// TODO Auto-generated constructor stub
|
||||
this.version=DEFAULT_VERSION;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 创建一个新的实例 DfIpPortUdpSource.
|
||||
*
|
||||
*/
|
||||
public DfIpPortUdpSource(String version) {
|
||||
this.version=version;
|
||||
}
|
||||
/**
|
||||
* @return version
|
||||
*/
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param version 要设置的 version
|
||||
*/
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return operator
|
||||
*/
|
||||
public String getOperator() {
|
||||
return operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param operator 要设置的 operator
|
||||
*/
|
||||
public void setOperator(String operator) {
|
||||
this.operator = operator;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return opTime
|
||||
*/
|
||||
public Date getOpTime() {
|
||||
return opTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param opTime 要设置的 opTime
|
||||
*/
|
||||
public void setOpTime(Date opTime) {
|
||||
this.opTime = opTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return opAction
|
||||
*/
|
||||
public Integer getOpAction() {
|
||||
return opAction;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param opAction 要设置的 opAction
|
||||
*/
|
||||
public void setOpAction(Integer opAction) {
|
||||
this.opAction = opAction;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* dfIpPortUdpList
|
||||
* @return dfIpPortUdpList
|
||||
*/
|
||||
|
||||
public List<DfIpPortUdp> getDfIpPortUdpList() {
|
||||
return dfIpPortUdpList;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param dfIpPortUdpList the dfIpPortUdpList to set
|
||||
*/
|
||||
public void setDfIpPortUdpList(List<DfIpPortUdp> dfIpPortUdpList) {
|
||||
this.dfIpPortUdpList = dfIpPortUdpList;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
/**
|
||||
* @Title: DfIpsecLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午1:57:20
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfIpsecLog
|
||||
* @Description: FTPXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午1:57:20
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfIpsecLog extends LogEntity<DfIpsecLog>{
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 1960565928453529561L;
|
||||
|
||||
@ApiModelProperty(value="交换协议", required=true)
|
||||
protected Integer exProtocol;
|
||||
@ApiModelProperty(value="ISAKMP模式", required=true)
|
||||
protected Long isakmpMode;
|
||||
|
||||
protected String searchExProtocol;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchExProtocol() {
|
||||
return searchExProtocol;
|
||||
}
|
||||
public void setSearchExProtocol(String searchExProtocol) {
|
||||
this.searchExProtocol = searchExProtocol;
|
||||
}
|
||||
|
||||
public Integer getExProtocol() {
|
||||
return exProtocol;
|
||||
}
|
||||
public void setExProtocol(Integer exProtocol) {
|
||||
this.exProtocol = exProtocol;
|
||||
}
|
||||
|
||||
public Long getIsakmpMode() {
|
||||
return isakmpMode;
|
||||
}
|
||||
public void setIsakmpMode(Long isakmpMode) {
|
||||
this.isakmpMode = isakmpMode;
|
||||
}
|
||||
}
|
||||
@@ -1,132 +0,0 @@
|
||||
/**
|
||||
* @Title: DfKeyConvertUrl.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: 关键字业务转换URL日志
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日 上午9:27:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyConvertUrl
|
||||
* @Description: 关键字业务转换URL日志
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日 上午9:27:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfKeyConvertUrl implements Serializable {
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 7985571037717090551L;
|
||||
|
||||
@ApiModelProperty(value="序列号", required=true)
|
||||
protected Integer id;
|
||||
@ApiModelProperty(value="命中关键字ID", required=true)
|
||||
protected Integer keyId;
|
||||
@ApiModelProperty(value="URL地址", required=true)
|
||||
protected String url;
|
||||
@ApiModelProperty(value="操作时间", required=true)
|
||||
protected Date opTime;
|
||||
|
||||
|
||||
protected String searchId;
|
||||
protected String optStartTime;
|
||||
protected String optEndTime;
|
||||
|
||||
@JsonIgnore
|
||||
public String getOptStartTime() {
|
||||
return optStartTime;
|
||||
}
|
||||
public void setOptStartTime(String optStartTime) {
|
||||
this.optStartTime = optStartTime;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getOptEndTime() {
|
||||
return optEndTime;
|
||||
}
|
||||
public void setOptEndTime(String optEndTime) {
|
||||
this.optEndTime = optEndTime;
|
||||
}
|
||||
@JsonIgnore
|
||||
public String getSearchId() {
|
||||
return searchId;
|
||||
}
|
||||
public void setSearchId(String searchId) {
|
||||
this.searchId = searchId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 当前实体分页对象
|
||||
*/
|
||||
protected Page<DfKeyConvertUrl> page;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Page<DfKeyConvertUrl> getPage() {
|
||||
if (page == null){
|
||||
page = new Page<DfKeyConvertUrl>();
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public Page<DfKeyConvertUrl> setPage(Page<DfKeyConvertUrl> page) {
|
||||
this.page = page;
|
||||
return page;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
public Integer getKeyId() {
|
||||
return keyId;
|
||||
}
|
||||
public void setKeyId(Integer keyId) {
|
||||
this.keyId = keyId;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
@JsonSerialize(using=JsonDateSerializer.class)
|
||||
public Date getOpTime() {
|
||||
return opTime;
|
||||
}
|
||||
public void setOpTime(Date opTime) {
|
||||
this.opTime = opTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ReflectionToStringBuilder.toString(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,134 +0,0 @@
|
||||
/**
|
||||
* @Title: DfKeyMailAdd.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: 关键字业务转换邮件地址日志
|
||||
* @author (ZBC)
|
||||
* @date 2016年11月09日 下午02:25:00
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyMailAdd
|
||||
* @Description: 关键字业务转换邮件地址日志
|
||||
* @author (ZBC)
|
||||
* @date 2016年11月09日 下午02:25:00
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfKeyMailAdd implements Serializable {
|
||||
|
||||
/**
|
||||
* serialVersionUID
|
||||
*/
|
||||
private static final long serialVersionUID = -2380470456434492094L;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "序列号", required = true)
|
||||
protected Integer id;
|
||||
@ApiModelProperty(value = "命中关键字ID", required = true)
|
||||
protected Integer keyId;
|
||||
@ApiModelProperty(value = "邮件地址", required = true)
|
||||
protected String mailAddr;
|
||||
@ApiModelProperty(value = "操作时间", required = true)
|
||||
protected Date opTime;
|
||||
|
||||
protected String searchId;
|
||||
protected String optStartTime;
|
||||
protected String optEndTime;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchId() {
|
||||
return searchId;
|
||||
}
|
||||
public void setSearchId(String searchId) {
|
||||
this.searchId = searchId;
|
||||
}
|
||||
@JsonIgnore
|
||||
public String getOptStartTime() {
|
||||
return optStartTime;
|
||||
}
|
||||
|
||||
public void setOptStartTime(String optStartTime) {
|
||||
this.optStartTime = optStartTime;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getOptEndTime() {
|
||||
return optEndTime;
|
||||
}
|
||||
|
||||
public void setOptEndTime(String optEndTime) {
|
||||
this.optEndTime = optEndTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* 当前实体分页对象
|
||||
*/
|
||||
protected Page<DfKeyMailAdd> page;
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Page<DfKeyMailAdd> getPage() {
|
||||
if (page == null) {
|
||||
page = new Page<DfKeyMailAdd>();
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public Page<DfKeyMailAdd> setPage(Page<DfKeyMailAdd> page) {
|
||||
this.page = page;
|
||||
return page;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getKeyId() {
|
||||
return keyId;
|
||||
}
|
||||
|
||||
public void setKeyId(Integer keyId) {
|
||||
this.keyId = keyId;
|
||||
}
|
||||
|
||||
public String getMailAddr() {
|
||||
return mailAddr;
|
||||
}
|
||||
|
||||
public void setMailAddr(String mailAddr) {
|
||||
this.mailAddr = mailAddr;
|
||||
}
|
||||
|
||||
@JsonSerialize(using = JsonDateSerializer.class)
|
||||
public Date getOpTime() {
|
||||
return opTime;
|
||||
}
|
||||
|
||||
public void setOpTime(Date opTime) {
|
||||
this.opTime = opTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ReflectionToStringBuilder.toString(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
/**
|
||||
* @Title: DfL2tpLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午1:23:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfL2tpLog
|
||||
* @Description: FTPXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午1:23:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfL2tpLog extends LogEntity<DfL2tpLog>{
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -6210309297068552716L;
|
||||
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected Integer encryptMode;
|
||||
@ApiModelProperty(value="用户名称", required=true)
|
||||
protected String chapName;
|
||||
@ApiModelProperty(value="内容类型", required=true)
|
||||
protected Integer contentType;
|
||||
|
||||
public String getChapName() {
|
||||
return chapName;
|
||||
}
|
||||
public void setChapName(String chapName) {
|
||||
this.chapName = chapName;
|
||||
}
|
||||
protected String searchEncryptMode;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
public Integer getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(Integer encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
public Integer getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(Integer contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
/**
|
||||
* @Title: DfMailLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午10:16:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfMailLog
|
||||
* @Description: MAILXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午10:59:09
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfMailLog extends LogEntity<DfMailLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 4734386604389185710L;
|
||||
|
||||
|
||||
@ApiModelProperty(value="邮件协议类型", required=true)
|
||||
protected String mailProto;
|
||||
@ApiModelProperty(value="发件人", required=true)
|
||||
protected String mailFrom;
|
||||
@ApiModelProperty(value="收件人", required=true)
|
||||
protected String mailTo;
|
||||
@ApiModelProperty(value="主题", required=true)
|
||||
protected String subject;
|
||||
@ApiModelProperty(value="EML文件转储路径", required=true)
|
||||
protected String emlFile;
|
||||
|
||||
protected String searchMailFrom;
|
||||
protected String searchMailTo;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchMailFrom() {
|
||||
return searchMailFrom;
|
||||
}
|
||||
public void setSearchMailFrom(String searchMailFrom) {
|
||||
this.searchMailFrom = searchMailFrom;
|
||||
}
|
||||
public void setSearchMailTo(String searchMailTo) {
|
||||
this.searchMailTo = searchMailTo;
|
||||
}
|
||||
@JsonIgnore
|
||||
public String getSearchMailTo() {
|
||||
return searchMailTo;
|
||||
}
|
||||
|
||||
public String getMailProto() {
|
||||
return mailProto;
|
||||
}
|
||||
public void setMailProto(String mailProto) {
|
||||
this.mailProto = mailProto;
|
||||
}
|
||||
public String getMailFrom() {
|
||||
return mailFrom;
|
||||
}
|
||||
public String getMailTo() {
|
||||
return mailTo;
|
||||
}
|
||||
public void setMailTo(String mailTo) {
|
||||
this.mailTo = mailTo;
|
||||
}
|
||||
public void setMailFrom(String mailFrom) {
|
||||
this.mailFrom = mailFrom;
|
||||
}
|
||||
public String getSubject() {
|
||||
return subject;
|
||||
}
|
||||
public void setSubject(String subject) {
|
||||
this.subject = subject;
|
||||
}
|
||||
public String getEmlFile() {
|
||||
return emlFile;
|
||||
}
|
||||
public void setEmlFile(String emlFile) {
|
||||
this.emlFile = emlFile;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
/**
|
||||
* @Title: DfOpenvpnLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午1:57:20
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfOpenvpnLog
|
||||
* @Description: OPENVPNXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午2:06:45
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfOpenvpnLog extends LogEntity<DfOpenvpnLog>{
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -5331151634423058789L;
|
||||
|
||||
@ApiModelProperty(value="版本信息", required=true)
|
||||
protected String version;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected String encryptMode;
|
||||
@ApiModelProperty(value="是否有HMAC", required=true)
|
||||
protected Integer hmac;
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
|
||||
protected String searchEncryptMode;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
public String getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(String encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
public Integer getHmac() {
|
||||
return hmac;
|
||||
}
|
||||
public void setHmac(Integer hmac) {
|
||||
this.hmac = hmac;
|
||||
}
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
/**
|
||||
* @Title: DfPptpLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午1:23:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfPptpLog
|
||||
* @Description: FTPXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午1:23:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfPptpLog extends LogEntity<DfPptpLog>{
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 2472051411161697356L;
|
||||
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected Integer encryptMode;
|
||||
@ApiModelProperty(value="内容类型", required=true)
|
||||
protected Integer contentType;
|
||||
|
||||
protected String searchEncryptMode;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
public Integer getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(Integer encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
public Integer getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
public void setContentType(Integer contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
/**
|
||||
* @Title: DfSshLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午2:21:10
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfSshLog
|
||||
* @Description: SSHXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午2:21:10
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfSshLog extends LogEntity<DfSshLog>{
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -8122097197353956263L;
|
||||
|
||||
@ApiModelProperty(value="版本信息", required=true)
|
||||
protected String version;
|
||||
@ApiModelProperty(value="主机密钥", required=true)
|
||||
protected String hostKey;
|
||||
@ApiModelProperty(value="主机cookie", required=true)
|
||||
protected String hostCookie;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected String encryptMode;
|
||||
@ApiModelProperty(value="消息认证码", required=true)
|
||||
protected String mac;
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
|
||||
protected String searchEncryptMode;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
public String getHostCookie() {
|
||||
return hostCookie;
|
||||
}
|
||||
public String getHostKey() {
|
||||
return hostKey;
|
||||
}
|
||||
public void setHostCookie(String hostCookie) {
|
||||
this.hostCookie = hostCookie;
|
||||
}
|
||||
public void setHostKey(String hostKey) {
|
||||
this.hostKey = hostKey;
|
||||
}
|
||||
public String getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(String encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
public String getMac() {
|
||||
return mac;
|
||||
}
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
/**
|
||||
* @Title: DfSslLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午2:34:10
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfSslLog
|
||||
* @Description: SSLXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午2:34:10
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfSslLog extends LogEntity<DfSslLog>{
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -1758562698030781445L;
|
||||
|
||||
@ApiModelProperty(value="版本信息", required=true)
|
||||
protected String version;
|
||||
@ApiModelProperty(value="SNI", required=true)
|
||||
protected String sni;
|
||||
@ApiModelProperty(value="个体证书转储路径", required=true)
|
||||
protected String individualCertFile;
|
||||
@ApiModelProperty(value="中级证书转储路径", required=true)
|
||||
protected String middleCertFile;
|
||||
@ApiModelProperty(value="根证书转储路径", required=true)
|
||||
protected String rootCertFile;
|
||||
@ApiModelProperty(value="其他证书链转储路径", required=true)
|
||||
protected String chainCertFile;
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
public String getSni() {
|
||||
return sni;
|
||||
}
|
||||
public void setSni(String sni) {
|
||||
this.sni = sni;
|
||||
}
|
||||
public String getIndividualCertFile() {
|
||||
return individualCertFile;
|
||||
}
|
||||
public void setIndividualCertFile(String individualCertFile) {
|
||||
this.individualCertFile = individualCertFile;
|
||||
}
|
||||
public String getMiddleCertFile() {
|
||||
return middleCertFile;
|
||||
}
|
||||
public void setMiddleCertFile(String middleCertFile) {
|
||||
this.middleCertFile = middleCertFile;
|
||||
}
|
||||
public String getRootCertFile() {
|
||||
return rootCertFile;
|
||||
}
|
||||
public void setRootCertFile(String rootCertFile) {
|
||||
this.rootCertFile = rootCertFile;
|
||||
}
|
||||
public String getChainCertFile() {
|
||||
return chainCertFile;
|
||||
}
|
||||
public void setChainCertFile(String chainCertFile) {
|
||||
this.chainCertFile = chainCertFile;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfTunnelRandomLog
|
||||
* @Description: 隧道协议随机封堵
|
||||
* @author (ddm)
|
||||
* @date 2016年12月23日 上午11:18:14
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DfTunnelRandomLog extends LogEntity<DfTunnelRandomLog>{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 111411360809146865L;
|
||||
@ApiModelProperty(value="隧道协议信息", required=true)
|
||||
protected Long tunnelName;
|
||||
|
||||
public Long getTunnelName() {
|
||||
return tunnelName;
|
||||
}
|
||||
public void setTunnelName(Long tunnelName) {
|
||||
this.tunnelName = tunnelName;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,128 +0,0 @@
|
||||
/**
|
||||
* @Title: DjDnsLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 上午10:16:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.nis.domain.Page;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjDnsLog
|
||||
* @Description: DNSXX日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 上午11:41:50
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjDnsLog extends LogEntity<DjDnsLog> {
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 3747868295576943355L;
|
||||
|
||||
@ApiModelProperty(value = "请求/应答", required = true)
|
||||
protected Long qr;
|
||||
@ApiModelProperty(value = "递归请求", required = true)
|
||||
protected Long rd;
|
||||
@ApiModelProperty(value = "递归应答", required = true)
|
||||
protected Long ra;
|
||||
@ApiModelProperty(value = "资源记录", required = true)
|
||||
protected String rr;
|
||||
@ApiModelProperty(value = "查询类型", required = true)
|
||||
protected Long qtype;
|
||||
@ApiModelProperty(value = "查询类", required = true)
|
||||
protected Long qclass;
|
||||
@ApiModelProperty(value = "OPCODE", required = true)
|
||||
protected Long opcode;
|
||||
@ApiModelProperty(value = "查询内容", required = true)
|
||||
protected String qname;
|
||||
@ApiModelProperty(value = "DNS:1,DNSSEC:2", required = true)
|
||||
protected Long dnsSub;
|
||||
|
||||
public DjDnsLog() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
public Long getQr() {
|
||||
return qr;
|
||||
}
|
||||
|
||||
public void setQr(Long qr) {
|
||||
this.qr = qr;
|
||||
}
|
||||
|
||||
public Long getRd() {
|
||||
return rd;
|
||||
}
|
||||
|
||||
public void setRd(Long rd) {
|
||||
this.rd = rd;
|
||||
}
|
||||
|
||||
public Long getRa() {
|
||||
return ra;
|
||||
}
|
||||
|
||||
public void setRa(Long ra) {
|
||||
this.ra = ra;
|
||||
}
|
||||
|
||||
public String getRr() {
|
||||
return rr;
|
||||
}
|
||||
|
||||
public void setRr(String rr) {
|
||||
this.rr = rr;
|
||||
}
|
||||
|
||||
public Long getQtype() {
|
||||
return qtype;
|
||||
}
|
||||
|
||||
public void setQtype(Long qtype) {
|
||||
this.qtype = qtype;
|
||||
}
|
||||
|
||||
public Long getQclass() {
|
||||
return qclass;
|
||||
}
|
||||
|
||||
public void setQclass(Long qclass) {
|
||||
this.qclass = qclass;
|
||||
}
|
||||
|
||||
public Long getOpcode() {
|
||||
return opcode;
|
||||
}
|
||||
|
||||
public void setOpcode(Long opcode) {
|
||||
this.opcode = opcode;
|
||||
}
|
||||
|
||||
public String getQname() {
|
||||
return qname;
|
||||
}
|
||||
|
||||
public void setQname(String qname) {
|
||||
this.qname = qname;
|
||||
}
|
||||
|
||||
public Long getDnsSub() {
|
||||
return dnsSub;
|
||||
}
|
||||
|
||||
public void setDnsSub(Long dnsSub) {
|
||||
this.dnsSub = dnsSub;
|
||||
}
|
||||
}
|
||||
@@ -1,135 +0,0 @@
|
||||
/**
|
||||
* @Title: DjFlowControlStop.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: 监测规则流控实体
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日 下午17:51:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.util.JsonDateSerializer;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjFlowControlStop
|
||||
* @Description: 监测规则流控实体
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日 下午17:51:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjFlowControlStop implements Serializable {
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 5092754867586897432L;
|
||||
|
||||
|
||||
@ApiModelProperty(value="配置ID", required=true)
|
||||
protected Long cfgId;
|
||||
@ApiModelProperty(value="业务", required=true)
|
||||
protected Integer service;
|
||||
@ApiModelProperty(value="动作", required=true)
|
||||
protected Integer action;
|
||||
@ApiModelProperty(value="操作时间", required=true)
|
||||
protected Date opTime;
|
||||
|
||||
|
||||
/*protected String searchCfgId;*/
|
||||
protected String optStartTime;
|
||||
protected String optEndTime;
|
||||
|
||||
/*@JsonIgnore
|
||||
public String getSearchCfgId() {
|
||||
return searchCfgId;
|
||||
}
|
||||
public void setSearchCfgId(String searchCfgId) {
|
||||
this.searchCfgId = searchCfgId;
|
||||
}*/
|
||||
@JsonIgnore
|
||||
public String getOptStartTime() {
|
||||
return optStartTime;
|
||||
}
|
||||
public void setOptStartTime(String optStartTime) {
|
||||
this.optStartTime = optStartTime;
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
public String getOptEndTime() {
|
||||
return optEndTime;
|
||||
}
|
||||
public void setOptEndTime(String optEndTime) {
|
||||
this.optEndTime = optEndTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 当前实体分页对象
|
||||
*/
|
||||
protected Page<DjFlowControlStop> page;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
@XmlTransient
|
||||
public Page<DjFlowControlStop> getPage() {
|
||||
if (page == null){
|
||||
page = new Page<DjFlowControlStop>();
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
public Page<DjFlowControlStop> setPage(Page<DjFlowControlStop> page) {
|
||||
this.page = page;
|
||||
return page;
|
||||
}
|
||||
|
||||
public Long getCfgId() {
|
||||
return cfgId;
|
||||
}
|
||||
public void setCfgId(Long cfgId) {
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Integer getService() {
|
||||
return service;
|
||||
}
|
||||
public void setService(Integer service) {
|
||||
this.service = service;
|
||||
}
|
||||
public Integer getAction() {
|
||||
return action;
|
||||
}
|
||||
public void setAction(Integer action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
@JsonSerialize(using=JsonDateSerializer.class)
|
||||
public Date getOpTime() {
|
||||
return opTime;
|
||||
}
|
||||
public void setOpTime(Date opTime) {
|
||||
this.opTime = opTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ReflectionToStringBuilder.toString(this);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
/**
|
||||
* @Title: DjFtpLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午17:51:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjFtpLog
|
||||
* @Description: FTPXX日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午17:51:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjFtpLog extends LogEntity<DjFtpLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 172160853794852639L;
|
||||
|
||||
@ApiModelProperty(value="FTP链接", required=true)
|
||||
protected String ftpUrl;
|
||||
|
||||
public String getFtpUrl() {
|
||||
return ftpUrl;
|
||||
}
|
||||
public void setFtpUrl(String ftpUrl) {
|
||||
this.ftpUrl = ftpUrl;
|
||||
}
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
/**
|
||||
* @Title: DjHttpKeywordLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午16:04:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjHttpKeywordLog
|
||||
* @Description: HTTP关键字XX日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午16:04:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjHttpKeywordLog extends LogEntity<DjHttpKeywordLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -7872876035772453423L;
|
||||
|
||||
|
||||
@ApiModelProperty(value="TCP初始序列号", required=true)
|
||||
protected Long c2sIsn;
|
||||
@ApiModelProperty(value="是否HTTP代理标志", required=true)
|
||||
protected Long httpProxyFlag;
|
||||
@ApiModelProperty(value="HTTP会话序列号", required=true)
|
||||
protected Long httpSeq;
|
||||
@ApiModelProperty(value="url地址", required=true)
|
||||
protected String url;
|
||||
@ApiModelProperty(value="请求行", required=true)
|
||||
protected String reqLine;
|
||||
@ApiModelProperty(value="请求头转储文件", required=true)
|
||||
protected String reqHdrFile;
|
||||
@ApiModelProperty(value="请求体转储文件", required=true)
|
||||
protected String reqBodyFile;
|
||||
@ApiModelProperty(value="应答行", required=true)
|
||||
protected String resLine;
|
||||
@ApiModelProperty(value="应答头转储文件", required=true)
|
||||
protected String resHdrFile;
|
||||
@ApiModelProperty(value="应答体体转储文件", required=true)
|
||||
protected String resBodyFile;
|
||||
|
||||
|
||||
|
||||
protected String searchUrl;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchUrl() {
|
||||
return searchUrl;
|
||||
}
|
||||
|
||||
public void setSearchUrl(String searchUrl) {
|
||||
this.searchUrl = searchUrl;
|
||||
}
|
||||
public Long getC2sIsn() {
|
||||
return c2sIsn;
|
||||
}
|
||||
public void setC2sIsn(Long c2sIsn) {
|
||||
this.c2sIsn = c2sIsn;
|
||||
}
|
||||
public Long getHttpProxyFlag() {
|
||||
return httpProxyFlag;
|
||||
}
|
||||
public void setHttpProxyFlag(Long httpProxyFlag) {
|
||||
this.httpProxyFlag = httpProxyFlag;
|
||||
}
|
||||
public Long getHttpSeq() {
|
||||
return httpSeq;
|
||||
}
|
||||
public void setHttpSeq(Long httpSeq) {
|
||||
this.httpSeq = httpSeq;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
public String getReqLine() {
|
||||
return reqLine;
|
||||
}
|
||||
public void setReqLine(String reqLine) {
|
||||
this.reqLine = reqLine;
|
||||
}
|
||||
public String getReqHdrFile() {
|
||||
return reqHdrFile;
|
||||
}
|
||||
public void setReqHdrFile(String reqHdrFile) {
|
||||
this.reqHdrFile = reqHdrFile;
|
||||
}
|
||||
public String getReqBodyFile() {
|
||||
return reqBodyFile;
|
||||
}
|
||||
public void setReqBodyFile(String reqBodyFile) {
|
||||
this.reqBodyFile = reqBodyFile;
|
||||
}
|
||||
public String getResLine() {
|
||||
return resLine;
|
||||
}
|
||||
public void setResLine(String resLine) {
|
||||
this.resLine = resLine;
|
||||
}
|
||||
public String getResHdrFile() {
|
||||
return resHdrFile;
|
||||
}
|
||||
public void setResHdrFile(String resHdrFile) {
|
||||
this.resHdrFile = resHdrFile;
|
||||
}
|
||||
public String getResBodyFile() {
|
||||
return resBodyFile;
|
||||
}
|
||||
public void setResBodyFile(String resBodyFile) {
|
||||
this.resBodyFile = resBodyFile;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,150 +0,0 @@
|
||||
/**
|
||||
* @Title: DjHttpReqLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月5日 下午10:18:32
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjHttpReqLog
|
||||
* @Description: HTTP协议监测请求日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月5日 下午1:58:33
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjHttpReqLog extends LogEntity<DjHttpReqLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -2103649235895046586L;
|
||||
|
||||
@ApiModelProperty(value="TCP初始序列号", required=true)
|
||||
protected Long c2sIsn;
|
||||
@ApiModelProperty(value="是否HTTP代理标志", required=true)
|
||||
protected Long httpProxyFlag;
|
||||
@ApiModelProperty(value="HTTP会话序列号", required=true)
|
||||
protected Long httpSeq;
|
||||
@ApiModelProperty(value="url地址", required=true)
|
||||
protected String url;
|
||||
@ApiModelProperty(value="请求行", required=true)
|
||||
protected String reqLine;
|
||||
@ApiModelProperty(value="请求头转储文件", required=true)
|
||||
protected String reqHdrFile;
|
||||
@ApiModelProperty(value="请求体转储文件", required=true)
|
||||
protected String reqBodyFile;
|
||||
|
||||
@ApiModelProperty(value="Cookie值", required=true)
|
||||
protected String cookie;
|
||||
@ApiModelProperty(value="referer值", required=true)
|
||||
protected String referer;
|
||||
@ApiModelProperty(value="UA值", required=true)
|
||||
protected String ua;
|
||||
@ApiModelProperty(value="请求头用户自定义域名称", required=true)
|
||||
protected String reqUserDefineKey;
|
||||
@ApiModelProperty(value="请求头用户自定义域值", required=true)
|
||||
protected String reqUserDefineValue;
|
||||
|
||||
|
||||
protected String searchUrl;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchUrl() {
|
||||
return searchUrl;
|
||||
}
|
||||
|
||||
public void setSearchUrl(String searchUrl) {
|
||||
this.searchUrl = searchUrl;
|
||||
}
|
||||
public Long getC2sIsn() {
|
||||
return c2sIsn;
|
||||
}
|
||||
public void setC2sIsn(Long c2sIsn) {
|
||||
this.c2sIsn = c2sIsn;
|
||||
}
|
||||
public Long getHttpProxyFlag() {
|
||||
return httpProxyFlag;
|
||||
}
|
||||
public void setHttpProxyFlag(Long httpProxyFlag) {
|
||||
this.httpProxyFlag = httpProxyFlag;
|
||||
}
|
||||
public Long getHttpSeq() {
|
||||
return httpSeq;
|
||||
}
|
||||
public void setHttpSeq(Long httpSeq) {
|
||||
this.httpSeq = httpSeq;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
public String getReqLine() {
|
||||
return reqLine;
|
||||
}
|
||||
public void setReqLine(String reqLine) {
|
||||
this.reqLine = reqLine;
|
||||
}
|
||||
public String getReqHdrFile() {
|
||||
return reqHdrFile;
|
||||
}
|
||||
public void setReqHdrFile(String reqHdrFile) {
|
||||
this.reqHdrFile = reqHdrFile;
|
||||
}
|
||||
public String getReqBodyFile() {
|
||||
return reqBodyFile;
|
||||
}
|
||||
public void setReqBodyFile(String reqBodyFile) {
|
||||
this.reqBodyFile = reqBodyFile;
|
||||
}
|
||||
|
||||
public String getCookie() {
|
||||
return cookie;
|
||||
}
|
||||
|
||||
public void setCookie(String cookie) {
|
||||
this.cookie = cookie;
|
||||
}
|
||||
|
||||
public String getReferer() {
|
||||
return referer;
|
||||
}
|
||||
|
||||
public void setReferer(String referer) {
|
||||
this.referer = referer;
|
||||
}
|
||||
|
||||
public String getUa() {
|
||||
return ua;
|
||||
}
|
||||
|
||||
public void setUa(String ua) {
|
||||
this.ua = ua;
|
||||
}
|
||||
|
||||
public String getReqUserDefineKey() {
|
||||
return reqUserDefineKey;
|
||||
}
|
||||
|
||||
public void setReqUserDefineKey(String reqUserDefineKey) {
|
||||
this.reqUserDefineKey = reqUserDefineKey;
|
||||
}
|
||||
|
||||
public String getReqUserDefineValue() {
|
||||
return reqUserDefineValue;
|
||||
}
|
||||
|
||||
public void setReqUserDefineValue(String reqUserDefineValue) {
|
||||
this.reqUserDefineValue = reqUserDefineValue;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,172 +0,0 @@
|
||||
/**
|
||||
* @Title: DjHttpResLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 上午10:59:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjHttpResLog
|
||||
* @Description: HTTP协议监测响应日志对象
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 上午10:59:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjHttpResLog extends LogEntity<DjHttpResLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 6976709092668535766L;
|
||||
|
||||
@ApiModelProperty(value="TCP初始序列号", required=true)
|
||||
protected Long c2sIsn;
|
||||
@ApiModelProperty(value="是否HTTP代理标志", required=true)
|
||||
protected Long httpProxyFlag;
|
||||
@ApiModelProperty(value="HTTP会话序列号", required=true)
|
||||
protected Long httpSeq;
|
||||
@ApiModelProperty(value="url地址", required=true)
|
||||
protected String url;
|
||||
@ApiModelProperty(value="请求行", required=true)
|
||||
protected String reqLine;
|
||||
@ApiModelProperty(value="请求头转储文件", required=true)
|
||||
protected String reqHdrFile;
|
||||
@ApiModelProperty(value="请求体转储文件", required=true)
|
||||
protected String reqBodyFile;
|
||||
@ApiModelProperty(value="应答行", required=true)
|
||||
protected String resLine;
|
||||
@ApiModelProperty(value="应答头转储文件", required=true)
|
||||
protected String resHdrFile;
|
||||
@ApiModelProperty(value="应答体体转储文件", required=true)
|
||||
protected String resBodyFile;
|
||||
@ApiModelProperty(value="SET-Cookie", required=true)
|
||||
protected String setCookie;
|
||||
@ApiModelProperty(value="CONTENT-LEN值", required=true)
|
||||
protected String contentLen;
|
||||
@ApiModelProperty(value="CONTENT-TYPE值", required=true)
|
||||
protected String contentType;
|
||||
@ApiModelProperty(value="请求头用户自定义域名称", required=true)
|
||||
protected String resUserDefineKey;
|
||||
@ApiModelProperty(value="请求头用户自定义域值", required=true)
|
||||
protected String resUserDefineValue;
|
||||
|
||||
protected String searchUrl;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchUrl() {
|
||||
return searchUrl;
|
||||
}
|
||||
|
||||
public void setSearchUrl(String searchUrl) {
|
||||
this.searchUrl = searchUrl;
|
||||
}
|
||||
|
||||
public Long getC2sIsn() {
|
||||
return c2sIsn;
|
||||
}
|
||||
public void setC2sIsn(Long c2sIsn) {
|
||||
this.c2sIsn = c2sIsn;
|
||||
}
|
||||
public Long getHttpProxyFlag() {
|
||||
return httpProxyFlag;
|
||||
}
|
||||
public void setHttpProxyFlag(Long httpProxyFlag) {
|
||||
this.httpProxyFlag = httpProxyFlag;
|
||||
}
|
||||
public Long getHttpSeq() {
|
||||
return httpSeq;
|
||||
}
|
||||
public void setHttpSeq(Long httpSeq) {
|
||||
this.httpSeq = httpSeq;
|
||||
}
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
public String getReqLine() {
|
||||
return reqLine;
|
||||
}
|
||||
public void setReqLine(String reqLine) {
|
||||
this.reqLine = reqLine;
|
||||
}
|
||||
public String getReqHdrFile() {
|
||||
return reqHdrFile;
|
||||
}
|
||||
public void setReqHdrFile(String reqHdrFile) {
|
||||
this.reqHdrFile = reqHdrFile;
|
||||
}
|
||||
public String getReqBodyFile() {
|
||||
return reqBodyFile;
|
||||
}
|
||||
public void setReqBodyFile(String reqBodyFile) {
|
||||
this.reqBodyFile = reqBodyFile;
|
||||
}
|
||||
public String getResLine() {
|
||||
return resLine;
|
||||
}
|
||||
public void setResLine(String resLine) {
|
||||
this.resLine = resLine;
|
||||
}
|
||||
public String getResHdrFile() {
|
||||
return resHdrFile;
|
||||
}
|
||||
public void setResHdrFile(String resHdrFile) {
|
||||
this.resHdrFile = resHdrFile;
|
||||
}
|
||||
public String getResBodyFile() {
|
||||
return resBodyFile;
|
||||
}
|
||||
public void setResBodyFile(String resBodyFile) {
|
||||
this.resBodyFile = resBodyFile;
|
||||
}
|
||||
|
||||
public String getSetCookie() {
|
||||
return setCookie;
|
||||
}
|
||||
|
||||
public void setSetCookie(String setCookie) {
|
||||
this.setCookie = setCookie;
|
||||
}
|
||||
|
||||
public String getContentLen() {
|
||||
return contentLen;
|
||||
}
|
||||
|
||||
public void setContentLen(String contentLen) {
|
||||
this.contentLen = contentLen;
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
return contentType;
|
||||
}
|
||||
|
||||
public void setContentType(String contentType) {
|
||||
this.contentType = contentType;
|
||||
}
|
||||
|
||||
public String getResUserDefineKey() {
|
||||
return resUserDefineKey;
|
||||
}
|
||||
|
||||
public void setResUserDefineKey(String resUserDefineKey) {
|
||||
this.resUserDefineKey = resUserDefineKey;
|
||||
}
|
||||
|
||||
public String getResUserDefineValue() {
|
||||
return resUserDefineValue;
|
||||
}
|
||||
|
||||
public void setResUserDefineValue(String resUserDefineValue) {
|
||||
this.resUserDefineValue = resUserDefineValue;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
* @Title: DjIpPortLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午1:42:12
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
|
||||
/**
|
||||
* @ClassName: DjIpPortLog
|
||||
* @Description: 端口监测日志实体
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午1:42:12
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjIpPortLog extends LogEntity<DjIpPortLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 2011669272157526917L;
|
||||
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
/**
|
||||
* @Title: DjIpsecLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:16:20
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjIpsecLog
|
||||
* @Description: IPSEC密钥交换协议监测日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:16:20
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjIpsecLog extends LogEntity<DjIpsecLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 607608013629342421L;
|
||||
|
||||
@ApiModelProperty(value="交换协议", required=true)
|
||||
protected Integer exProtocol;
|
||||
@ApiModelProperty(value="ISAKMP模式", required=true)
|
||||
protected Long isakmpMode;
|
||||
|
||||
protected String searchExProtocol;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchExProtocol() {
|
||||
return searchExProtocol;
|
||||
}
|
||||
public void setSearchExProtocol(String searchExProtocol) {
|
||||
this.searchExProtocol = searchExProtocol;
|
||||
}
|
||||
public Integer getExProtocol() {
|
||||
return exProtocol;
|
||||
}
|
||||
public void setExProtocol(Integer exProtocol) {
|
||||
this.exProtocol = exProtocol;
|
||||
}
|
||||
public Long getIsakmpMode() {
|
||||
return isakmpMode;
|
||||
}
|
||||
public void setIsakmpMode(Long isakmpMode) {
|
||||
this.isakmpMode = isakmpMode;
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
/**
|
||||
* @Title: DjL2tpLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:04:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjL2tpLog
|
||||
* @Description: L2TP协议监测日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:04:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjL2tpLog extends LogEntity<DjL2tpLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 2028351016711817096L;
|
||||
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected Integer encryptMode;
|
||||
@ApiModelProperty(value="用户名称", required=true)
|
||||
protected String chapName;
|
||||
|
||||
public String getChapName() {
|
||||
return chapName;
|
||||
}
|
||||
public void setChapName(String chapName) {
|
||||
this.chapName = chapName;
|
||||
}
|
||||
|
||||
protected String searchEncryptMode;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
public Integer getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(Integer encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
/**
|
||||
* @Title: DfMailLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午10:16:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfMailLog
|
||||
* @Description: MAILXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 上午10:59:09
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjMailLog extends LogEntity<DjMailLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = -1302479250066779447L;
|
||||
|
||||
|
||||
@ApiModelProperty(value="邮件协议类型", required=true)
|
||||
protected String mailProto;
|
||||
@ApiModelProperty(value="发件人", required=true)
|
||||
protected String mailFrom;
|
||||
@ApiModelProperty(value="收件人", required=true)
|
||||
protected String mailTo;
|
||||
@ApiModelProperty(value="主题", required=true)
|
||||
protected String subject;
|
||||
@ApiModelProperty(value="EML文件转储路径", required=true)
|
||||
protected String emlFile;
|
||||
|
||||
|
||||
protected String searchMailFrom;
|
||||
protected String searchMailTo;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchMailFrom() {
|
||||
return searchMailFrom;
|
||||
}
|
||||
public void setSearchMailFrom(String searchMailFrom) {
|
||||
this.searchMailFrom = searchMailFrom;
|
||||
}
|
||||
public void setSearchMailTo(String searchMailTo) {
|
||||
this.searchMailTo = searchMailTo;
|
||||
}
|
||||
@JsonIgnore
|
||||
public String getSearchMailTo() {
|
||||
return searchMailTo;
|
||||
}
|
||||
|
||||
public String getMailProto() {
|
||||
return mailProto;
|
||||
}
|
||||
public void setMailProto(String mailProto) {
|
||||
this.mailProto = mailProto;
|
||||
}
|
||||
public String getMailFrom() {
|
||||
return mailFrom;
|
||||
}
|
||||
public void setMailFrom(String mailFrom) {
|
||||
this.mailFrom = mailFrom;
|
||||
}
|
||||
public String getMailTo() {
|
||||
return mailTo;
|
||||
}
|
||||
public void setMailTo(String mailTo) {
|
||||
this.mailTo = mailTo;
|
||||
}
|
||||
public String getSubject() {
|
||||
return subject;
|
||||
}
|
||||
public void setSubject(String subject) {
|
||||
this.subject = subject;
|
||||
}
|
||||
public String getEmlFile() {
|
||||
return emlFile;
|
||||
}
|
||||
public void setEmlFile(String emlFile) {
|
||||
this.emlFile = emlFile;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,73 +0,0 @@
|
||||
/**
|
||||
* @Title: DjOpenvpnLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:27:20
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjOpenvpnLog
|
||||
* @Description: OPENVPNXX日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:27:20
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjOpenvpnLog extends LogEntity<DjOpenvpnLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 8055018411430634752L;
|
||||
|
||||
@ApiModelProperty(value="版本信息", required=true)
|
||||
protected String version;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected String encryptMode;
|
||||
@ApiModelProperty(value="是否有HMAC", required=true)
|
||||
protected Integer hmac;
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
|
||||
protected String searchEncryptMode;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
public String getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(String encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
public Integer getHmac() {
|
||||
return hmac;
|
||||
}
|
||||
public void setHmac(Integer hmac) {
|
||||
this.hmac = hmac;
|
||||
}
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
/**
|
||||
* @Title: DjPptpLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午18:02:30
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjPptpLog
|
||||
* @Description: FTPXX日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午18:02:30
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjPptpLog extends LogEntity<DjPptpLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 4819972774275203145L;
|
||||
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected Integer encryptMode;
|
||||
|
||||
protected String searchEncryptMode;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
public Integer getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(Integer encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
/**
|
||||
* @Title: DjSshLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:42:10
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DjSshLog
|
||||
* @Description: SSHXX日志
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午19:42:10
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjSshLog extends LogEntity<DjSshLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 6940016532195865221L;
|
||||
|
||||
@ApiModelProperty(value="版本信息", required=true)
|
||||
protected String version;
|
||||
@ApiModelProperty(value="主机密钥", required=true)
|
||||
protected String hostKey;
|
||||
@ApiModelProperty(value="主机Cookie", required=true)
|
||||
protected String hostCookie;
|
||||
@ApiModelProperty(value="加密方式", required=true)
|
||||
protected String encryptMode;
|
||||
@ApiModelProperty(value="消息认证码", required=true)
|
||||
protected String mac;
|
||||
@ApiModelProperty(value="通道类型", required=true)
|
||||
protected Integer tunnelType;
|
||||
|
||||
|
||||
protected String searchEncryptMode;
|
||||
|
||||
@JsonIgnore
|
||||
public String getSearchEncryptMode() {
|
||||
return searchEncryptMode;
|
||||
}
|
||||
|
||||
public void setSearchEncryptMode(String searchEncryptMode) {
|
||||
this.searchEncryptMode = searchEncryptMode;
|
||||
}
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
public String getHostKey() {
|
||||
return hostKey;
|
||||
}
|
||||
public void setHostKey(String hostKey) {
|
||||
this.hostKey = hostKey;
|
||||
}
|
||||
public String getHostCookie() {
|
||||
return hostCookie;
|
||||
}
|
||||
public void setHostCookie(String hostCookie) {
|
||||
this.hostCookie = hostCookie;
|
||||
}
|
||||
public String getEncryptMode() {
|
||||
return encryptMode;
|
||||
}
|
||||
public void setEncryptMode(String encryptMode) {
|
||||
this.encryptMode = encryptMode;
|
||||
}
|
||||
public String getMac() {
|
||||
return mac;
|
||||
}
|
||||
public void setMac(String mac) {
|
||||
this.mac = mac;
|
||||
}
|
||||
public Integer getTunnelType() {
|
||||
return tunnelType;
|
||||
}
|
||||
public void setTunnelType(Integer tunnelType) {
|
||||
this.tunnelType = tunnelType;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
/**
|
||||
* @Title: DfSslLog.java
|
||||
* @Package com.nis.domain.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午2:34:10
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.domain.restful;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @ClassName: DfSslLog
|
||||
* @Description: SSLXX日志
|
||||
* @author (ddm)
|
||||
* @date 2016年9月7日 下午2:34:10
|
||||
* @version V1.0
|
||||
*/
|
||||
public class DjSslLog extends LogEntity<DjSslLog>{
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
|
||||
*/
|
||||
private static final long serialVersionUID = 1191890804422075638L;
|
||||
|
||||
@ApiModelProperty(value="版本信息", required=true)
|
||||
protected String version;
|
||||
@ApiModelProperty(value="SNI", required=true)
|
||||
protected String sni;
|
||||
|
||||
@ApiModelProperty(value="个体证书转储路径", required=true)
|
||||
protected String individualCertFile;
|
||||
@ApiModelProperty(value="中级证书转储路径", required=true)
|
||||
protected String middleCertFile;
|
||||
@ApiModelProperty(value="根证书转储路径", required=true)
|
||||
protected String rootCertFile;
|
||||
@ApiModelProperty(value="其他证书链转储路径", required=true)
|
||||
protected String chainCertFile;
|
||||
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
public String getSni() {
|
||||
return sni;
|
||||
}
|
||||
public void setSni(String sni) {
|
||||
this.sni = sni;
|
||||
}
|
||||
|
||||
public String getIndividualCertFile() {
|
||||
return individualCertFile;
|
||||
}
|
||||
public void setIndividualCertFile(String individualCertFile) {
|
||||
this.individualCertFile = individualCertFile;
|
||||
}
|
||||
public String getMiddleCertFile() {
|
||||
return middleCertFile;
|
||||
}
|
||||
public void setMiddleCertFile(String middleCertFile) {
|
||||
this.middleCertFile = middleCertFile;
|
||||
}
|
||||
public String getRootCertFile() {
|
||||
return rootCertFile;
|
||||
}
|
||||
public void setRootCertFile(String rootCertFile) {
|
||||
this.rootCertFile = rootCertFile;
|
||||
}
|
||||
public String getChainCertFile() {
|
||||
return chainCertFile;
|
||||
}
|
||||
public void setChainCertFile(String chainCertFile) {
|
||||
this.chainCertFile = chainCertFile;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,230 +0,0 @@
|
||||
/**
|
||||
*@Title: DfIpPortUdpController.java
|
||||
*@Package com.nis.web.controller.restful
|
||||
*@Description TODO
|
||||
*@author wx
|
||||
*@date 2016年9月7日 下午3:58:16
|
||||
*@version 版本号
|
||||
*/
|
||||
package com.nis.web.controller.restful;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.nis.web.service.AuditLogThread;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.nis.domain.restful.DfIpPortUdp;
|
||||
import com.nis.domain.restful.DfIpPortUdpSource;
|
||||
import com.nis.restful.RestBusinessCode;
|
||||
import com.nis.restful.RestServiceException;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.util.OracleErrorCodeUtil;
|
||||
import com.nis.util.StringUtil;
|
||||
import com.nis.web.controller.BaseRestController;
|
||||
import com.nis.web.service.ServicesRequestLogService;
|
||||
import com.nis.web.service.restful.DfIpPortUdpService;
|
||||
import com.wordnik.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @ClassName: DfIpPortUdpController.java
|
||||
* @Description: TODO
|
||||
* @author (wx)
|
||||
* @date 2016年9月7日 下午3:58:16
|
||||
* @version V1.0
|
||||
*/
|
||||
@RestController
|
||||
//@RequestMapping("${servicePath}/cfg/v1")
|
||||
public class DfIpPortUdpController extends BaseRestController {
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
@Autowired
|
||||
protected ServicesRequestLogService servicesRequestLogService;
|
||||
@Autowired
|
||||
protected DfIpPortUdpService dfIpPortUdpService;
|
||||
// @Autowired
|
||||
// protected CommonConfigService commonConfigService;
|
||||
// @Autowired
|
||||
// protected RedisDao redisDao;
|
||||
/**
|
||||
* saveDfIpPortUdpBatch(多条新增)
|
||||
* (这里描述这个方法适用条件 – 可选)
|
||||
* @param DfIpPortUdpSource
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*Map
|
||||
* @exception
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
@RequestMapping(value = "/dfIpPortUdpSources", method = RequestMethod.POST)
|
||||
@ApiOperation(value = "保存IP+端口Udp协议G设备封堵配置", httpMethod = "POST", notes = "save ip port udp")
|
||||
public Map saveDfIpPortUdpBatch(@RequestBody DfIpPortUdpSource dfIpPortUdpSource, HttpServletRequest request, HttpServletResponse response) {
|
||||
long start=System.currentTimeMillis();
|
||||
AuditLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_POST,request, dfIpPortUdpSource);
|
||||
super.checkOpAction(thread,System.currentTimeMillis()-start,dfIpPortUdpSource.getOpAction(), Constants.OPACTION_POST);
|
||||
try{
|
||||
this.chekckData(dfIpPortUdpSource,false);
|
||||
dfIpPortUdpService.saveDfIpPortUdpBatch(dfIpPortUdpSource.getDfIpPortUdpList());
|
||||
// commonConfigService.saveOrUpdateConfigState("DF_IP_PORT_UDP", dfIpPortUdpSource.getOpTime());
|
||||
// redisDao.saveMaps(dfIpPortUdpSource.getDfIpPortUdpList(), "DF_IP_PORT_UDP", DfIpPortUdp.class, "cfgId");
|
||||
}catch(Exception e){
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
e.printStackTrace();
|
||||
logger.error(e.getMessage());
|
||||
logger.error(e.getCause());
|
||||
if(e instanceof RestServiceException) throw e;
|
||||
String info=OracleErrorCodeUtil.getOraCode(e);
|
||||
if(!StringUtil.isEmpty(info))
|
||||
OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info);
|
||||
else
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"保存IP+端口Udp协议G设备封堵配置失败", RestBusinessCode.unknow_error.getValue());
|
||||
}
|
||||
return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"保存IP+端口Udp协议G设备封堵配置成功",dfIpPortUdpSource.getDfIpPortUdpList());
|
||||
}
|
||||
/**
|
||||
*
|
||||
* updateDfIpPortUdpBatch(多条更新)
|
||||
* (这里描述这个方法适用条件 – 可选)
|
||||
* @param DfIpPortUdpSource
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*Map
|
||||
* @exception
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
@RequestMapping(value = "/dfIpPortUdpSources", method = RequestMethod.PUT)
|
||||
@ApiOperation(value = "更新IP+端口Udp协议G设备封堵配置", httpMethod = "PUT", notes = "update ip port udp")
|
||||
public Map updateDfIpPortUdpBatch(@RequestBody DfIpPortUdpSource dfIpPortUdpSource, HttpServletRequest request, HttpServletResponse response){
|
||||
long start=System.currentTimeMillis();
|
||||
AuditLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_PUT,request, dfIpPortUdpSource);
|
||||
super.checkOpAction(thread,System.currentTimeMillis()-start,dfIpPortUdpSource.getOpAction(), Constants.OPACTION_PUT);
|
||||
try{
|
||||
this.chekckData(dfIpPortUdpSource,true);
|
||||
dfIpPortUdpService.updateDfIpPortUdpBatch(dfIpPortUdpSource.getDfIpPortUdpList());
|
||||
// commonConfigService.saveOrUpdateConfigState("DF_IP_PORT_UDP", dfIpPortUdpSource.getOpTime());
|
||||
// redisDao.updateMaps(dfIpPortUdpSource.getDfIpPortUdpList(), "DF_IP_PORT_UDP", DfIpPortUdp.class, "cfgId");
|
||||
}catch(Exception e){
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
e.printStackTrace();
|
||||
logger.error(e.getMessage());
|
||||
logger.error(e.getCause());
|
||||
if(e instanceof RestServiceException) throw e;
|
||||
String info=OracleErrorCodeUtil.getOraCode(e);
|
||||
if(!StringUtil.isEmpty(info))
|
||||
OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info);
|
||||
else
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"更新IP+端口Udp协议G设备封堵配置失败", RestBusinessCode.unknow_error.getValue());
|
||||
|
||||
}
|
||||
return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"更新IP+端口Udp协议G设备封堵配置成功",dfIpPortUdpSource.getDfIpPortUdpList());
|
||||
}
|
||||
/**
|
||||
*
|
||||
* deleteDfIpPortUdp(单条删除)
|
||||
* (这里描述这个方法适用条件 – 可选)
|
||||
* @param id
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*Map
|
||||
* @exception
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
@RequestMapping(value = "/dfIpPortUdpSources/{cfgId}", method = RequestMethod.DELETE)
|
||||
@ApiOperation(value = "删除IP+端口Udp协议G设备封堵配置", httpMethod = "DELETE", notes = "delete ip port udp")
|
||||
public Map deleteDfIpPortUdp(@PathVariable("cfgId") long id, HttpServletRequest request, HttpServletResponse response){
|
||||
long start=System.currentTimeMillis();
|
||||
AuditLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_DELETE,request, id);
|
||||
|
||||
try{
|
||||
dfIpPortUdpService.removeDfIpPortUdp(id);
|
||||
// commonConfigService.saveOrUpdateConfigState("DF_IP_PORT_UDP", new Date());
|
||||
}catch(Exception e){
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
e.printStackTrace();
|
||||
logger.error(e.getMessage());
|
||||
logger.error(e.getCause());
|
||||
if(e instanceof RestServiceException) throw e;
|
||||
String info=OracleErrorCodeUtil.getOraCode(e);
|
||||
if(!StringUtil.isEmpty(info))
|
||||
OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info);
|
||||
else
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"删除IP+端口Udp协议G设备封堵配置失败", RestBusinessCode.unknow_error.getValue());
|
||||
|
||||
}
|
||||
|
||||
return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"删除成功",id);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* deleteDfIpPortUdp(多条删除)
|
||||
* (这里描述这个方法适用条件 – 可选)
|
||||
* @param DfIpPortUdpSource
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*Map
|
||||
* @exception
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
@RequestMapping(value = "/dfIpPortUdpSources", method = RequestMethod.DELETE)
|
||||
@ApiOperation(value = "删除IP+端口Udp协议G设备封堵配置", httpMethod = "DELETE", notes = "delete ip port udp")
|
||||
public Map deleteDfIpPortUdp(@RequestBody DfIpPortUdpSource dfIpPortUdpSource, HttpServletRequest request, HttpServletResponse response){
|
||||
long start=System.currentTimeMillis();
|
||||
AuditLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_DELETE,request, dfIpPortUdpSource);
|
||||
super.checkOpAction(thread,System.currentTimeMillis()-start,dfIpPortUdpSource.getOpAction(), Constants.OPACTION_DELETE);
|
||||
try{
|
||||
dfIpPortUdpService.removeDfIpPortUdpBatch(dfIpPortUdpSource.getDfIpPortUdpList());
|
||||
// commonConfigService.saveOrUpdateConfigState("DF_IP_PORT_UDP", dfIpPortUdpSource.getOpTime());
|
||||
}catch(Exception e){
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
e.printStackTrace();
|
||||
logger.error(e.getMessage());
|
||||
logger.error(e.getCause());
|
||||
if(e instanceof RestServiceException) throw e;
|
||||
String info=OracleErrorCodeUtil.getOraCode(e);
|
||||
if(!StringUtil.isEmpty(info))
|
||||
OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info);
|
||||
else
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"删除IP+端口Udp协议G设备封堵配置失败", RestBusinessCode.unknow_error.getValue());
|
||||
}
|
||||
return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"批量删除成功",dfIpPortUdpSource.getDfIpPortUdpList());
|
||||
}
|
||||
/**
|
||||
*
|
||||
* chekckData(操作验证时间)
|
||||
* (这里描述这个方法适用条件 – 可选)
|
||||
* @param entity
|
||||
* @return
|
||||
*boolean
|
||||
* @exception
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private void chekckData(DfIpPortUdpSource entity,boolean update){
|
||||
Date now=new Date();
|
||||
for(DfIpPortUdp dfIpPortUdp :entity.getDfIpPortUdpList()){
|
||||
dfIpPortUdp.setLastUpdate(now);
|
||||
if(dfIpPortUdp.getOpTime()==null)
|
||||
dfIpPortUdp.setOpTime(entity.getOpTime());
|
||||
if(!update){//新增时判断非空值
|
||||
if(dfIpPortUdp.getEffectiveRange()==null)dfIpPortUdp.setEffectiveRange("0");
|
||||
if(dfIpPortUdp.getProtocol()==null)dfIpPortUdp.setProtocol(0);
|
||||
if(dfIpPortUdp.getDirection()==null)dfIpPortUdp.setDirection(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
/**
|
||||
* @Title: DfKeyConvertUrlController.java
|
||||
* @Package com.nis.web.controller.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日 上午10:17:20
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.controller.restful;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DfKeyConvertUrl;
|
||||
import com.nis.restful.RestServiceException;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.web.controller.BaseRestController;
|
||||
import com.nis.web.service.AuditLogThread;
|
||||
import com.nis.web.service.ServicesRequestLogService;
|
||||
import com.nis.web.service.restful.DfKeyConvertUrlService;
|
||||
import com.wordnik.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
*
|
||||
* @ClassName: DfKeyConvertUrlController
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日 上午10:17:20
|
||||
* @version V1.0
|
||||
*/
|
||||
@RestController
|
||||
//@RequestMapping("${servicePath}/log/v1")
|
||||
@SuppressWarnings({ "rawtypes" })
|
||||
public class DfKeyConvertUrlController extends BaseRestController{
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
|
||||
@Autowired
|
||||
protected DfKeyConvertUrlService dfKeyConvertUrlService;
|
||||
@Autowired
|
||||
protected ServicesRequestLogService servicesRequestLogService;
|
||||
|
||||
protected int logSource = 0;
|
||||
|
||||
@RequestMapping(value="/dfKeyConvertUrlSources", method = RequestMethod.GET)
|
||||
@ApiOperation(value="关键字业务转换URL日志信息获取" , httpMethod = "GET", notes="get log list")
|
||||
public Map dfKeyConvertUrlSources(
|
||||
@RequestParam(value = "searchActiveSys", required = false, defaultValue = Constants.ACTIVESYS_B) String searchActiveSys,
|
||||
Page page, DfKeyConvertUrl dfKeyConvertUrl, HttpServletRequest request,
|
||||
HttpServletResponse response, Model model) {
|
||||
|
||||
if(!Constants.ACTIVESYS_A.equals(searchActiveSys)
|
||||
&& !Constants.ACTIVESYS_C.equals(searchActiveSys)
|
||||
) {
|
||||
searchActiveSys=Constants.ACTIVESYS_B;
|
||||
}
|
||||
|
||||
long start=System.currentTimeMillis();
|
||||
AuditLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_GET,request, null);
|
||||
//请求参数校验
|
||||
dfKeyConvertUrlService.queryConditionCheck(thread,start,dfKeyConvertUrl,page);
|
||||
|
||||
Page<DfKeyConvertUrl> dfKeyConvertUrlPage = null;
|
||||
try {
|
||||
dfKeyConvertUrlPage = dfKeyConvertUrlService.findFlowControlStopPage(new Page<DfKeyConvertUrl>(request, response,DfKeyConvertUrl.class), dfKeyConvertUrl);
|
||||
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
e.printStackTrace();
|
||||
logger.error(e.getMessage());
|
||||
logger.error(e.getCause());
|
||||
if (!(e instanceof RestServiceException)) {
|
||||
e = new RestServiceException(thread, System.currentTimeMillis() - start, "关键字业务转换URL日志信息检索失败");
|
||||
}
|
||||
((RestServiceException) e).setLogSource(logSource);
|
||||
throw ((RestServiceException) e);
|
||||
}
|
||||
return serviceLogResponse(thread, System.currentTimeMillis()-start, request, "关键字业务转换URL日志信息检索成功",dfKeyConvertUrlPage
|
||||
, logSource);
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
/**
|
||||
* @Title: dfKeyMailAddController.java
|
||||
* @Package com.nis.web.controller.restful
|
||||
* @Description: 关键字业务转换邮件地址日志服务
|
||||
* @author (ZBC)
|
||||
* @date 2016年11月09日 下午02:25:00
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.controller.restful;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.nis.web.service.AuditLogThread;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DfKeyMailAdd;
|
||||
import com.nis.restful.RestServiceException;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.web.controller.BaseRestController;
|
||||
import com.nis.web.service.ServicesRequestLogService;
|
||||
import com.nis.web.service.restful.DfKeyMailAddService;
|
||||
import com.wordnik.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
*
|
||||
* @ClassName: dfKeyMailAddController
|
||||
* @Description: 关键字业务转换邮件地址日志服务
|
||||
* @author (ZBC)
|
||||
* @date 2016年11月09日 下午02:25:00
|
||||
* @version V1.0
|
||||
*/
|
||||
@RestController
|
||||
//@RequestMapping("${servicePath}/log/v1")
|
||||
@SuppressWarnings({ "rawtypes" })
|
||||
public class DfKeyMailAddController extends BaseRestController {
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
|
||||
@Autowired
|
||||
protected ServicesRequestLogService servicesRequestLogService;
|
||||
@Autowired
|
||||
protected DfKeyMailAddService dfKeyMailAddService;
|
||||
|
||||
protected int logSource = 0;
|
||||
|
||||
@RequestMapping(value = "/dfKeyMailAddSources", method = RequestMethod.GET)
|
||||
@ApiOperation(value = "关键字业务转换邮件地址日志信息获取", httpMethod = "GET", notes = "get log list")
|
||||
public Map dfKeyConvertUrlSources(
|
||||
@RequestParam(value = "searchActiveSys", required = false, defaultValue = Constants.ACTIVESYS_B) String searchActiveSys,
|
||||
Page page, DfKeyMailAdd dfKeyMailAdd, HttpServletRequest request,
|
||||
HttpServletResponse response, Model model) {
|
||||
|
||||
if(!Constants.ACTIVESYS_A.equals(searchActiveSys)
|
||||
&& !Constants.ACTIVESYS_C.equals(searchActiveSys)
|
||||
) {
|
||||
searchActiveSys=Constants.ACTIVESYS_B;
|
||||
}
|
||||
|
||||
long start = System.currentTimeMillis();
|
||||
AuditLogThread thread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_GET, request, null);
|
||||
// 请求参数校验
|
||||
dfKeyMailAddService.queryConditionCheck(thread, start, dfKeyMailAdd, page);
|
||||
|
||||
Page<DfKeyMailAdd> dfKeyMailAddPage = null;
|
||||
try {
|
||||
dfKeyMailAddPage = dfKeyMailAddService.findDfKeyMailAddPage(
|
||||
new Page<DfKeyMailAdd>(request, response, DfKeyMailAdd.class), dfKeyMailAdd);
|
||||
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
e.printStackTrace();
|
||||
logger.error(e.getMessage());
|
||||
logger.error(e.getCause());
|
||||
if (!(e instanceof RestServiceException)) {
|
||||
e = new RestServiceException(thread, System.currentTimeMillis() - start, "关键字业务转换邮件地址日志信息检索失败");
|
||||
}
|
||||
|
||||
((RestServiceException) e).setLogSource(logSource);
|
||||
throw ((RestServiceException) e);
|
||||
}
|
||||
return serviceLogResponse(thread, System.currentTimeMillis() - start, request, "关键字业务转换邮件地址日志信息检索成功",
|
||||
dfKeyMailAddPage, logSource);
|
||||
}
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
/**
|
||||
* @Title: DjLogSearchController.java
|
||||
* @Package com.nis.web.controller.restful
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日下午8:11:58
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.controller.restful;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DjFlowControlStop;
|
||||
import com.nis.restful.RestServiceException;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.web.controller.BaseRestController;
|
||||
import com.nis.web.service.AuditLogThread;
|
||||
import com.nis.web.service.ServicesRequestLogService;
|
||||
import com.nis.web.service.restful.IntervalTimeSearchService;
|
||||
import com.wordnik.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
*
|
||||
* @ClassName: DjLogSearchController
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日下午8:11:58
|
||||
* @version V1.0
|
||||
*/
|
||||
@RestController
|
||||
//@RequestMapping("${servicePath}/log/v1")
|
||||
@SuppressWarnings({ "rawtypes" })
|
||||
public class IntervalTimeSearchController extends BaseRestController{
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
|
||||
@Autowired
|
||||
protected IntervalTimeSearchService timeSearchService;
|
||||
@Autowired
|
||||
protected ServicesRequestLogService servicesRequestLogService;
|
||||
|
||||
protected Integer logSource = 0;
|
||||
|
||||
@RequestMapping(value="/djFlowControlStopSources", method = RequestMethod.GET)
|
||||
@ApiOperation(value="监测规则流控信息获取" , httpMethod = "GET", notes="get log list")
|
||||
public Map djFlowControlStopList(
|
||||
@RequestParam(value = "searchActiveSys", required = false, defaultValue = Constants.ACTIVESYS_B) String searchActiveSys,
|
||||
Page page, DjFlowControlStop flowControlStop, HttpServletRequest request,
|
||||
HttpServletResponse response, Model model) {
|
||||
|
||||
if (!Constants.ACTIVESYS_A.equals(searchActiveSys)
|
||||
&& !Constants.ACTIVESYS_C.equals(searchActiveSys)
|
||||
) {
|
||||
searchActiveSys=Constants.ACTIVESYS_B;
|
||||
|
||||
}
|
||||
|
||||
long start=System.currentTimeMillis();
|
||||
AuditLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_GET,request, null);
|
||||
//请求参数校验
|
||||
timeSearchService.queryConditionCheck(thread,start,flowControlStop,page);
|
||||
|
||||
Page<DjFlowControlStop> flowControlStopPage = null;
|
||||
try {
|
||||
flowControlStopPage = timeSearchService.findFlowControlStopPage(new Page<DjFlowControlStop>(request, response,DjFlowControlStop.class), flowControlStop);
|
||||
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
e.printStackTrace();
|
||||
logger.error(e);
|
||||
if (!(e instanceof RestServiceException)) {
|
||||
e = new RestServiceException(thread, System.currentTimeMillis() - start, "监测规则流控信息检索失败");
|
||||
}
|
||||
((RestServiceException) e).setLogSource(logSource);
|
||||
throw ((RestServiceException) e);
|
||||
}
|
||||
return serviceLogResponse(thread, System.currentTimeMillis()-start,request, "监测规则流控信息检索成功", flowControlStopPage
|
||||
, logSource);
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.nis.web.dao;
|
||||
|
||||
import com.nis.domain.restful.DfIpPortUdp;
|
||||
import com.nis.domain.restful.JdjInfo;
|
||||
/**
|
||||
* @ClassName: JdjInfoDao.java
|
||||
* @Description: TODO
|
||||
* @author (dell)
|
||||
* @date 2016年9月9日 上午10:02:33
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface DfIpPortUdpDao extends CrudDao<DfIpPortUdp>{
|
||||
int delete(long id);
|
||||
|
||||
int insert(DfIpPortUdp record);
|
||||
|
||||
int update(DfIpPortUdp record);
|
||||
|
||||
}
|
||||
@@ -1,240 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.DfIpPortUdpDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.restful.DfIpPortUdp">
|
||||
<id column="CFG_ID" jdbcType="BIGINT" property="cfgId" />
|
||||
<result column="ADDR_TYPE" jdbcType="INTEGER" property="addrType" />
|
||||
<result column="SRC_IP" jdbcType="VARCHAR" property="srcIp" />
|
||||
<result column="MASK_SRC_IP" jdbcType="VARCHAR" property="maskSrcIp" />
|
||||
<result column="SRC_PORT" jdbcType="VARCHAR" property="srcPort" />
|
||||
<result column="MASK_SRC_PORT" jdbcType="VARCHAR" property="maskSrcPort" />
|
||||
<result column="DST_IP" jdbcType="VARCHAR" property="dstIp" />
|
||||
<result column="MASK_DST_IP" jdbcType="VARCHAR" property="maskDstIp" />
|
||||
<result column="DST_PORT" jdbcType="VARCHAR" property="dstPort" />
|
||||
<result column="MASK_DST_PORT" jdbcType="VARCHAR" property="maskDstPort" />
|
||||
<result column="PROTOCOL" jdbcType="INTEGER" property="protocol" />
|
||||
<result column="DIRECTION" jdbcType="INTEGER" property="direction" />
|
||||
<result column="IS_VALID" jdbcType="INTEGER" property="isValid" />
|
||||
<result column="OP_TIME" jdbcType="TIMESTAMP" property="opTime" />
|
||||
<result property="lastUpdate" column="LAST_UPDATE"/>
|
||||
<result property="effectiveRange" column="EFFECTIVE_RANGE"/>
|
||||
<result property="activeSys" column="ACTIVE_SYS"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
CFG_ID, ADDR_TYPE, SRC_IP, MASK_SRC_IP, SRC_PORT, MASK_SRC_PORT, DST_IP, MASK_DST_IP,
|
||||
DST_PORT, MASK_DST_PORT, PROTOCOL, DIRECTION, IS_VALID, OP_TIME,lastUpdate,effectiveRange,activeSys
|
||||
</sql>
|
||||
<!--
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from DF_IP_PORT_UDP
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</select>
|
||||
-->
|
||||
<delete id="delete" parameterType="java.lang.Long">
|
||||
delete from DF_IP_PORT_UDP
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<!--
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
<selectKey resultType="java.lang.Long" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_DF_IP_PORT_UDP.Nextval as ID from DUAL
|
||||
</selectKey>
|
||||
insert into DF_IP_PORT_UDP (CFG_ID, ADDR_TYPE, SRC_IP,
|
||||
MASK_SRC_IP, SRC_PORT, MASK_SRC_PORT,
|
||||
DST_IP, MASK_DST_IP, DST_PORT,
|
||||
MASK_DST_PORT, PROTOCOL, DIRECTION,
|
||||
IS_VALID, OP_TIME)
|
||||
values (#{id,jdbcType=BIGINT}, #{addrType,jdbcType=INTEGER}, #{srcIp,jdbcType=VARCHAR},
|
||||
#{maskSrcIp,jdbcType=VARCHAR}, #{srcPort,jdbcType=VARCHAR}, #{maskSrcPort,jdbcType=VARCHAR},
|
||||
#{dstIp,jdbcType=VARCHAR}, #{maskDstIp,jdbcType=VARCHAR}, #{dstPort,jdbcType=VARCHAR},
|
||||
#{maskDstPort,jdbcType=VARCHAR}, #{protocol,jdbcType=INTEGER}, #{direction,jdbcType=INTEGER},
|
||||
#{isValid,jdbcType=INTEGER}, #{opTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
-->
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
<!--
|
||||
<selectKey resultType="java.lang.Long" order="BEFORE" keyProperty="cfgId">
|
||||
SELECT SEQ_DF_IP_PORT_UDP.Nextval as ID from DUAL
|
||||
</selectKey>
|
||||
-->
|
||||
insert into DF_IP_PORT_UDP
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
CFG_ID,
|
||||
<if test="addrType != null">
|
||||
ADDR_TYPE,
|
||||
</if>
|
||||
<if test="srcIp != null">
|
||||
SRC_IP,
|
||||
</if>
|
||||
<if test="maskSrcIp != null">
|
||||
MASK_SRC_IP,
|
||||
</if>
|
||||
<if test="srcPort != null">
|
||||
SRC_PORT,
|
||||
</if>
|
||||
<if test="maskSrcPort != null">
|
||||
MASK_SRC_PORT,
|
||||
</if>
|
||||
<if test="dstIp != null">
|
||||
DST_IP,
|
||||
</if>
|
||||
<if test="maskDstIp != null">
|
||||
MASK_DST_IP,
|
||||
</if>
|
||||
<if test="dstPort != null">
|
||||
DST_PORT,
|
||||
</if>
|
||||
<if test="maskDstPort != null">
|
||||
MASK_DST_PORT,
|
||||
</if>
|
||||
<if test="protocol != null">
|
||||
PROTOCOL,
|
||||
</if>
|
||||
<if test="direction != null">
|
||||
DIRECTION,
|
||||
</if>
|
||||
<if test="isValid != null">
|
||||
IS_VALID,
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
OP_TIME,
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
LAST_UPDATE,
|
||||
</if>
|
||||
<if test="effectiveRange != null">
|
||||
EFFECTIVE_RANGE,
|
||||
</if>
|
||||
<if test="activeSys != null">
|
||||
ACTIVE_SYS,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
#{cfgId,jdbcType=BIGINT},
|
||||
<if test="addrType != null">
|
||||
#{addrType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="srcIp != null">
|
||||
#{srcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcIp != null">
|
||||
#{maskSrcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="srcPort != null">
|
||||
#{srcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcPort != null">
|
||||
#{maskSrcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstIp != null">
|
||||
#{dstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstIp != null">
|
||||
#{maskDstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstPort != null">
|
||||
#{dstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstPort != null">
|
||||
#{maskDstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="protocol != null">
|
||||
#{protocol,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="direction != null">
|
||||
#{direction,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="isValid != null">
|
||||
#{isValid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
#{opTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
#{lastUpdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="effectiveRange != null">
|
||||
#{effectiveRange,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="activeSys != null">
|
||||
#{activeSys,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="update" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
update DF_IP_PORT_UDP
|
||||
<set>
|
||||
<if test="addrType != null">
|
||||
ADDR_TYPE = #{addrType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="srcIp != null">
|
||||
SRC_IP = #{srcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcIp != null">
|
||||
MASK_SRC_IP = #{maskSrcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="srcPort != null">
|
||||
SRC_PORT = #{srcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcPort != null">
|
||||
MASK_SRC_PORT = #{maskSrcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstIp != null">
|
||||
DST_IP = #{dstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstIp != null">
|
||||
MASK_DST_IP = #{maskDstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstPort != null">
|
||||
DST_PORT = #{dstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstPort != null">
|
||||
MASK_DST_PORT = #{maskDstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="protocol != null">
|
||||
PROTOCOL = #{protocol,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="direction != null">
|
||||
DIRECTION = #{direction,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="isValid != null">
|
||||
IS_VALID = #{isValid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
LAST_UPDATE = #{lastUpdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="effectiveRange != null">
|
||||
EFFECTIVE_RANGE=#{effectiveRange,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="activeSys != null">
|
||||
ACTIVE_SYS=#{activeSys,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--
|
||||
<update id="updateByPrimaryKey" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
update DF_IP_PORT_UDP
|
||||
set ADDR_TYPE = #{addrType,jdbcType=INTEGER},
|
||||
SRC_IP = #{srcIp,jdbcType=VARCHAR},
|
||||
MASK_SRC_IP = #{maskSrcIp,jdbcType=VARCHAR},
|
||||
SRC_PORT = #{srcPort,jdbcType=VARCHAR},
|
||||
MASK_SRC_PORT = #{maskSrcPort,jdbcType=VARCHAR},
|
||||
DST_IP = #{dstIp,jdbcType=VARCHAR},
|
||||
MASK_DST_IP = #{maskDstIp,jdbcType=VARCHAR},
|
||||
DST_PORT = #{dstPort,jdbcType=VARCHAR},
|
||||
MASK_DST_PORT = #{maskDstPort,jdbcType=VARCHAR},
|
||||
PROTOCOL = #{protocol,jdbcType=INTEGER},
|
||||
DIRECTION = #{direction,jdbcType=INTEGER},
|
||||
IS_VALID = #{isValid,jdbcType=INTEGER},
|
||||
OP_TIME = #{opTime,jdbcType=TIMESTAMP}
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</update>
|
||||
-->
|
||||
</mapper>
|
||||
@@ -1,28 +0,0 @@
|
||||
/**
|
||||
* @Title: DfKeyConvertUrlDao.java
|
||||
* @Package com.nis.web.dao
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日下午9:59:58
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.restful.DfKeyConvertUrl;
|
||||
import com.nis.domain.restful.DjFlowControlStop;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyConvertUrlDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日下午9:59:58
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface DfKeyConvertUrlDao extends CrudDao<Serializable>{
|
||||
|
||||
List<DfKeyConvertUrl> findDfKeyConvertUrlPage(DfKeyConvertUrl entity);
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.DfKeyConvertUrlDao">
|
||||
|
||||
<!-- DJ_FLOWCONTROL_STOP -->
|
||||
<sql id="dfKeyConvertUrlProperty">
|
||||
ID,KEY_ID,URL,OP_TIME
|
||||
</sql>
|
||||
<resultMap id="DfKeyConvertUrlMap" type="com.nis.domain.restful.DfKeyConvertUrl">
|
||||
<result column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="key_id" jdbcType="INTEGER" property="keyId" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="op_time" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
<select id="findDfKeyConvertUrlPage" parameterType="com.nis.domain.restful.DfKeyConvertUrl" resultMap="DfKeyConvertUrlMap">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="page !=null and page.fields != null and page.fields != ''">
|
||||
${page.fields}
|
||||
</when>
|
||||
<otherwise>
|
||||
<include refid="dfKeyConvertUrlProperty"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
FROM DF_KEY_CONVERT_URL
|
||||
<where>
|
||||
<if test="optStartTime != null and optStartTime !=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{optStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="optEndTime != null and optEndTime !=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{optEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="searchId != null and searchId !=''">
|
||||
AND id > ${searchId}
|
||||
</if>
|
||||
</where>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.restful.DfKeyMailAdd;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyMailAddDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (ZBC)
|
||||
* @date 2016年11月09日 下午02:25:00
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface DfKeyMailAddDao extends CrudDao<Serializable> {
|
||||
|
||||
List<DfKeyMailAdd> findDfKeyMailAddPage(DfKeyMailAdd entity);
|
||||
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.DfKeyMailAddDao">
|
||||
<!-- DF_KEY_MAIL_ADDR -->
|
||||
<sql id="dfKeyMailAddProperty">
|
||||
ID,KEY_ID,MAIL_ADDR,OP_TIME
|
||||
</sql>
|
||||
|
||||
<resultMap id="DfKeyMailAddMap" type="com.nis.domain.restful.DfKeyMailAdd">
|
||||
<result column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="key_id" jdbcType="INTEGER" property="keyId" />
|
||||
<result column="mail_addr" jdbcType="VARCHAR" property="mailAddr" />
|
||||
<result column="op_time" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
|
||||
<select id="findDfKeyMailAddPage" parameterType="com.nis.domain.restful.DfKeyMailAdd"
|
||||
resultMap="DfKeyMailAddMap">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="page !=null and page.fields != null and page.fields != ''">
|
||||
${page.fields}
|
||||
</when>
|
||||
<otherwise>
|
||||
<include refid="dfKeyMailAddProperty"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
FROM DF_KEY_MAIL_ADDR
|
||||
<where>
|
||||
<if test="optStartTime != null and optStartTime !=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{optStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="optEndTime != null and optEndTime !=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{optEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="searchId != null and searchId !=''">
|
||||
AND id > ${searchId}
|
||||
</if>
|
||||
</where>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,64 +0,0 @@
|
||||
/**
|
||||
* @Title: DjLogSearchDao.java
|
||||
* @Package com.nis.web.dao
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午2:32:25
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.nis.domain.restful.DjDnsLog;
|
||||
import com.nis.domain.restful.DjFtpLog;
|
||||
import com.nis.domain.restful.DjHttpKeywordLog;
|
||||
import com.nis.domain.restful.DjHttpReqLog;
|
||||
import com.nis.domain.restful.DjHttpResLog;
|
||||
import com.nis.domain.restful.DjIpPortLog;
|
||||
import com.nis.domain.restful.DjIpsecLog;
|
||||
import com.nis.domain.restful.DjL2tpLog;
|
||||
import com.nis.domain.restful.DjMailLog;
|
||||
import com.nis.domain.restful.DjOpenvpnLog;
|
||||
import com.nis.domain.restful.DjPptpLog;
|
||||
import com.nis.domain.restful.DjSshLog;
|
||||
import com.nis.domain.restful.DjSslLog;
|
||||
|
||||
/**
|
||||
* @ClassName: DjLogSearchDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午2:32:25
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
@SuppressWarnings("rawtypes")
|
||||
public interface DjLogSearchDao extends CrudDao<LogEntity>{
|
||||
|
||||
List<DjIpPortLog> findIpPortLogs(DjIpPortLog log);
|
||||
|
||||
List<DjHttpReqLog> findHttpReqLogs(DjHttpReqLog log);
|
||||
|
||||
List<DjHttpResLog> findHttpResLogs(DjHttpResLog log);
|
||||
|
||||
List<DjHttpKeywordLog> findHttpKeywordLogs(DjHttpKeywordLog log);
|
||||
|
||||
List<DjMailLog> findMailLogs(DjMailLog log);
|
||||
|
||||
List<DjDnsLog> findDnsLogs(DjDnsLog log);
|
||||
|
||||
List<DjFtpLog> findFtpLogs(DjFtpLog log);
|
||||
|
||||
List<DjPptpLog> findPptpLogs(DjPptpLog log);
|
||||
|
||||
List<DjL2tpLog> findL2tpLogs(DjL2tpLog log);
|
||||
|
||||
List<DjIpsecLog> findIpsecLogs(DjIpsecLog log);
|
||||
|
||||
List<DjOpenvpnLog> findOpenvpnLogs(DjOpenvpnLog log);
|
||||
|
||||
List<DjSshLog> findSshLogs(DjSshLog log);
|
||||
|
||||
List<DjSslLog> findSslLogs(DjSslLog log);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
* @Title: IntervalTimeSearchDao.java
|
||||
* @Package com.nis.web.dao
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日下午8:11:58
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.restful.DjFlowControlStop;
|
||||
|
||||
/**
|
||||
* @ClassName: IntervalTimeSearchDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日下午8:11:58
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface IntervalTimeSearchDao extends CrudDao<Serializable>{
|
||||
|
||||
List<DjFlowControlStop> findFlowControlStopPage(DjFlowControlStop entity);
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.IntervalTimeSearchDao">
|
||||
|
||||
<!-- DJ_FLOWCONTROL_STOP -->
|
||||
<sql id="flowControlStopProperty">
|
||||
CFG_ID,SERVICE,ACTION,OP_TIME
|
||||
</sql>
|
||||
<resultMap id="DjFlowControlStopMap" type="com.nis.domain.restful.DjFlowControlStop">
|
||||
<result column="CFG_ID" jdbcType="BIGINT" property="cfgId" />
|
||||
<result column="service" jdbcType="INTEGER" property="service" />
|
||||
<result column="action" jdbcType="INTEGER" property="action" />
|
||||
<result column="op_time" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
<select id="findFlowControlStopPage" parameterType="com.nis.domain.restful.DjFlowControlStop" resultMap="DjFlowControlStopMap">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="page !=null and page.fields != null and page.fields != ''">
|
||||
${page.fields}
|
||||
</when>
|
||||
<otherwise>
|
||||
<include refid="flowControlStopProperty"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
FROM DJ_FLOWCONTROL_STOP
|
||||
<where>
|
||||
<if test="optStartTime != null and optStartTime !=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{optStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="optEndTime != null and optEndTime !=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{optEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<!-- <if test="searchCfgId != null and searchCfgId !=''">
|
||||
AND cfg_id =${searchCfgId}
|
||||
</if> -->
|
||||
</where>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,46 +0,0 @@
|
||||
/**
|
||||
*@Title: DfIpPortUdpService.java
|
||||
*@Package com.nis.web.service.restful
|
||||
*@Description TODO
|
||||
*@author wx
|
||||
*@date 2016年9月7日 下午3:28:44
|
||||
*@version 版本号
|
||||
*/
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DfIpPortUdp;
|
||||
import com.nis.web.dao.DfIpPortUdpDao;
|
||||
import com.nis.web.service.CrudService;
|
||||
|
||||
/**
|
||||
* @ClassName: DfIpPortUdpService.java
|
||||
* @Description: TODO
|
||||
* @author (wx)
|
||||
* @date 2016年9月7日 下午3:28:44
|
||||
* @version V1.0
|
||||
*/
|
||||
@Service
|
||||
public class DfIpPortUdpService extends CrudService<DfIpPortUdpDao, DfIpPortUdp> {
|
||||
@Autowired
|
||||
public DfIpPortUdpDao dfIpPortUdpDao;
|
||||
public void saveDfIpPortUdpBatch(List<DfIpPortUdp> entity) {
|
||||
// TODO Auto-generated method stub
|
||||
super.saveBatch(entity,DfIpPortUdpDao.class);
|
||||
}
|
||||
public void updateDfIpPortUdpBatch(List<DfIpPortUdp> entity) {
|
||||
// TODO Auto-generated method stub
|
||||
super.updateBatch(entity, DfIpPortUdpDao.class);
|
||||
}
|
||||
public void removeDfIpPortUdp(long id) {
|
||||
dfIpPortUdpDao.delete(id);
|
||||
}
|
||||
public void removeDfIpPortUdpBatch(List<DfIpPortUdp> entity) {
|
||||
super.deleteBatch(entity, DfIpPortUdpDao.class);
|
||||
}
|
||||
}
|
||||
@@ -1,111 +0,0 @@
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DfKeyConvertUrl;
|
||||
import com.nis.restful.RestBusinessCode;
|
||||
import com.nis.restful.RestServiceException;
|
||||
import com.nis.util.StringUtil;
|
||||
import com.nis.web.dao.DfKeyConvertUrlDao;
|
||||
import com.nis.web.service.BaseLogService;
|
||||
import com.nis.web.service.AuditLogThread;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyConvertUrlService
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日上午10:12:58
|
||||
* @version V1.0
|
||||
*/
|
||||
@Service
|
||||
public class DfKeyConvertUrlService extends BaseLogService {
|
||||
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
/**
|
||||
* 持久层对象
|
||||
*/
|
||||
@Autowired
|
||||
protected DfKeyConvertUrlDao dao;
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
public Page<DfKeyConvertUrl> findFlowControlStopPage(Page<DfKeyConvertUrl> page,
|
||||
DfKeyConvertUrl entity) {
|
||||
entity.setPage(page);
|
||||
page.setList(dao.findDfKeyConvertUrlPage(entity));
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字业务转换url查询条件检查
|
||||
* wx
|
||||
* @param entity
|
||||
*/
|
||||
public void queryConditionCheck(AuditLogThread thread, long start, DfKeyConvertUrl entity, Page page) {
|
||||
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getSearchId())) {
|
||||
Long.parseLong(entity.getSearchId());
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchId参数格式错误",
|
||||
RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchId参数错误");
|
||||
}
|
||||
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getOptStartTime())) {
|
||||
sdf.parse(entity.getOptStartTime());
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optStartTime参数格式错误", RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optStartTime参数格式错误");
|
||||
}
|
||||
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getOptEndTime())) {
|
||||
sdf.parse(entity.getOptEndTime());
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optEndTime参数格式错误", RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optEndTime参数错误");
|
||||
}
|
||||
|
||||
try {
|
||||
checkCloumnIsExist(thread,start,DfKeyConvertUrl.class, page);
|
||||
} catch (RestServiceException e) {
|
||||
logger.error(e);
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "请求参数错误");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,107 +0,0 @@
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DfKeyMailAdd;
|
||||
import com.nis.restful.RestBusinessCode;
|
||||
import com.nis.restful.RestServiceException;
|
||||
import com.nis.util.StringUtil;
|
||||
import com.nis.web.dao.DfKeyMailAddDao;
|
||||
import com.nis.web.service.BaseLogService;
|
||||
import com.nis.web.service.AuditLogThread;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyMailAddService
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (ZBC)
|
||||
* @date 2016年11月09日 下午02:25:00
|
||||
* @version V1.0
|
||||
*/
|
||||
|
||||
@Service
|
||||
@SuppressWarnings({ "rawtypes" })
|
||||
public class DfKeyMailAddService extends BaseLogService {
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
@Autowired
|
||||
protected DfKeyMailAddDao dao;
|
||||
|
||||
public Page<DfKeyMailAdd> findDfKeyMailAddPage(Page<DfKeyMailAdd> page, DfKeyMailAdd entity) {
|
||||
entity.setPage(page);
|
||||
page.setList(dao.findDfKeyMailAddPage(entity));
|
||||
return page;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询条件检查
|
||||
*/
|
||||
public void queryConditionCheck(AuditLogThread thread, long start, DfKeyMailAdd entity, Page page) {
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getSearchId())) {
|
||||
Long.parseLong(entity.getSearchId());
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchId参数格式错误",
|
||||
RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchId参数错误");
|
||||
}
|
||||
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getOptStartTime())) {
|
||||
sdf.parse(entity.getOptStartTime());
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optStartTime参数格式错误", RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optStartTime参数格式错误");
|
||||
}
|
||||
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getOptEndTime())) {
|
||||
sdf.parse(entity.getOptEndTime());
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optEndTime参数格式错误", RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optEndTime参数错误");
|
||||
}
|
||||
|
||||
try {
|
||||
checkCloumnIsExist(thread,start,DfKeyMailAdd.class, page);
|
||||
} catch (RestServiceException e) {
|
||||
logger.error(e);
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "请求参数错误");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,379 +0,0 @@
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.ParseException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.http.client.ClientProtocolException;
|
||||
import org.json.JSONException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DjDnsLog;
|
||||
import com.nis.domain.restful.DjFtpLog;
|
||||
import com.nis.domain.restful.DjHttpKeywordLog;
|
||||
import com.nis.domain.restful.DjHttpReqLog;
|
||||
import com.nis.domain.restful.DjHttpResLog;
|
||||
import com.nis.domain.restful.DjIpPortLog;
|
||||
import com.nis.domain.restful.DjIpsecLog;
|
||||
import com.nis.domain.restful.DjL2tpLog;
|
||||
import com.nis.domain.restful.DjMailLog;
|
||||
import com.nis.domain.restful.DjOpenvpnLog;
|
||||
import com.nis.domain.restful.DjPptpLog;
|
||||
import com.nis.domain.restful.DjSshLog;
|
||||
import com.nis.domain.restful.DjSslLog;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.web.dao.DjLogSearchDao;
|
||||
import com.nis.web.service.BaseLogService;
|
||||
|
||||
/**
|
||||
* @ClassName: DjLogSearchService
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 上午11:15:12
|
||||
* @version V1.0
|
||||
*/
|
||||
@Service
|
||||
public class DjLogSearchService extends BaseLogService {
|
||||
|
||||
/**
|
||||
* 持久层对象
|
||||
*/
|
||||
@Autowired
|
||||
protected DjLogSearchDao dao;
|
||||
|
||||
/**
|
||||
* 查询端口封堵分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjIpPortLog> findIpPortPage(Page<DjIpPortLog> page, DjIpPortLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjIpPortLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findIpPortLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjHttpResLog> findHttpResPage(Page<DjHttpResLog> page, DjHttpResLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjHttpResLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findHttpResLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param httpReqLog
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjHttpReqLog> findHttpReqPage(Page<DjHttpReqLog> page, DjHttpReqLog httpReqLog,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
httpReqLog.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjHttpReqLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, httpReqLog,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findHttpReqLogs(httpReqLog));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjHttpKeywordLog> findHttpKeywordPage(Page<DjHttpKeywordLog> page, DjHttpKeywordLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjHttpKeywordLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findHttpKeywordLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjHttpKeywordLog> findHttpMultiPartPage(Page<DjHttpKeywordLog> page, DjHttpKeywordLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjHttpKeywordLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findHttpKeywordLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjMailLog> findMailPage(Page<DjMailLog> page, DjMailLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjMailLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findMailLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjDnsLog> findDnsPage(Page<DjDnsLog> page, DjDnsLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjDnsLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findDnsLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjFtpLog> findFtpPage(Page<DjFtpLog> page, DjFtpLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjFtpLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findFtpLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjPptpLog> findPptpPage(Page<DjPptpLog> page, DjPptpLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjPptpLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findPptpLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjL2tpLog> findL2tpPage(Page<DjL2tpLog> page, DjL2tpLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjL2tpLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findL2tpLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjIpsecLog> findIpsecPage(Page<DjIpsecLog> page, DjIpsecLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjIpsecLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findIpsecLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjOpenvpnLog> findOpenvpnPage(Page<DjOpenvpnLog> page, DjOpenvpnLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjOpenvpnLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findOpenvpnLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjSshLog> findSshPage(Page<DjSshLog> page, DjSshLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjSshLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findSshLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
* @throws IOException
|
||||
* @throws JSONException
|
||||
* @throws ParseException
|
||||
* @throws ClientProtocolException
|
||||
* @throws IllegalAccessException
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public Page<DjSslLog> findSslPage(Page<DjSslLog> page, DjSslLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException {
|
||||
entity.setPage(page);
|
||||
if(Constants.IS_USE_ES){
|
||||
List<DjSslLog> resultList=new ArrayList<>();
|
||||
elasticsearchSqlDao.findLogs(resultList, entity,activeSys);
|
||||
page.setList(resultList);
|
||||
}else{
|
||||
page.setList(dao.findSslLogs(entity));
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,109 +0,0 @@
|
||||
package com.nis.web.service.restful;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import com.nis.web.service.AuditLogThread;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.restful.DjFlowControlStop;
|
||||
import com.nis.restful.RestBusinessCode;
|
||||
import com.nis.restful.RestServiceException;
|
||||
import com.nis.util.StringUtil;
|
||||
import com.nis.web.dao.IntervalTimeSearchDao;
|
||||
import com.nis.web.service.BaseLogService;
|
||||
|
||||
/**
|
||||
* @ClassName: IntervalTimeSearchService
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日下午8:11:58
|
||||
* @version V1.0
|
||||
*/
|
||||
@Service
|
||||
public class IntervalTimeSearchService extends BaseLogService {
|
||||
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
protected final Logger logger = Logger.getLogger(this.getClass());
|
||||
/**
|
||||
* 持久层对象
|
||||
*/
|
||||
@Autowired
|
||||
protected IntervalTimeSearchDao dao;
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页对象
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
public Page<DjFlowControlStop> findFlowControlStopPage(Page<DjFlowControlStop> page,
|
||||
DjFlowControlStop entity) {
|
||||
entity.setPage(page);
|
||||
page.setList(dao.findFlowControlStopPage(entity));
|
||||
return page;
|
||||
}
|
||||
/**
|
||||
* 流控日志查询条件检查
|
||||
* wx
|
||||
* @param entity
|
||||
*/
|
||||
public void queryConditionCheck(AuditLogThread thread, long start, DjFlowControlStop entity, Page page) {
|
||||
/*try {
|
||||
if (!StringUtil.isBlank(entity.getSearchCfgId())) {
|
||||
Long.parseLong(entity.getSearchCfgId());
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchCfgId参数格式错误",
|
||||
RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "searchCfgId参数错误");
|
||||
}*/
|
||||
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getOptStartTime())) {
|
||||
sdf.parse(entity.getOptStartTime());
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optStartTime参数格式错误", RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optStartTime参数格式错误");
|
||||
}
|
||||
|
||||
try {
|
||||
if (!StringUtil.isBlank(entity.getOptEndTime())) {
|
||||
sdf.parse(entity.getOptEndTime());
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optEndTime参数格式错误", RestBusinessCode.param_formate_error.getValue());
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread,System.currentTimeMillis()-start,"optEndTime参数错误");
|
||||
}
|
||||
|
||||
try {
|
||||
checkCloumnIsExist(thread,start,DjFlowControlStop.class, page);
|
||||
} catch (RestServiceException e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
thread.setExceptionInfo(e.getMessage()+" "+e.getCause());
|
||||
logger.error(e);
|
||||
throw new RestServiceException(thread, System.currentTimeMillis() - start, "请求参数错误");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user