diff --git a/src/main/java/com/nis/domain/restful/DfDnsLog.java b/src/main/java/com/nis/domain/restful/DfDnsLog.java deleted file mode 100644 index 9dfd3fe..0000000 --- a/src/main/java/com/nis/domain/restful/DfDnsLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - - - -} diff --git a/src/main/java/com/nis/domain/restful/DfFtpLog.java b/src/main/java/com/nis/domain/restful/DfFtpLog.java deleted file mode 100644 index 977b55d..0000000 --- a/src/main/java/com/nis/domain/restful/DfFtpLog.java +++ /dev/null @@ -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{ - - /** - * - */ - /** - * @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; - } -} diff --git a/src/main/java/com/nis/domain/restful/DfIpPortUdp.java b/src/main/java/com/nis/domain/restful/DfIpPortUdp.java deleted file mode 100644 index 11c99b1..0000000 --- a/src/main/java/com/nis/domain/restful/DfIpPortUdp.java +++ /dev/null @@ -1,268 +0,0 @@ -/** - *@Title: DfIpPortUdp.java - *@Package com.nis.domain.restful - *@Description TODO - *@author dell - *@date 2016�?9�?13�? 上午9:11:55 - *@version 版本�? - */ -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�?9�?13�? 上午9:11:55 - * @version V1.0 - */ -public class DfIpPortUdp extends BaseEntity{ - /** - * @Fields serialVersionUID:TODO(用�?句话描述这个变量表示�?么) - * - * @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; - } - - - -} diff --git a/src/main/java/com/nis/domain/restful/DfIpPortUdpSource.java b/src/main/java/com/nis/domain/restful/DfIpPortUdpSource.java deleted file mode 100644 index 09842dd..0000000 --- a/src/main/java/com/nis/domain/restful/DfIpPortUdpSource.java +++ /dev/null @@ -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 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 getDfIpPortUdpList() { - return dfIpPortUdpList; - } - - - /** - * @param dfIpPortUdpList the dfIpPortUdpList to set - */ - public void setDfIpPortUdpList(List dfIpPortUdpList) { - this.dfIpPortUdpList = dfIpPortUdpList; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DfIpsecLog.java b/src/main/java/com/nis/domain/restful/DfIpsecLog.java deleted file mode 100644 index 5aa93ab..0000000 --- a/src/main/java/com/nis/domain/restful/DfIpsecLog.java +++ /dev/null @@ -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{ - /** - * @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; - } -} diff --git a/src/main/java/com/nis/domain/restful/DfKeyConvertUrl.java b/src/main/java/com/nis/domain/restful/DfKeyConvertUrl.java deleted file mode 100644 index ca54e8e..0000000 --- a/src/main/java/com/nis/domain/restful/DfKeyConvertUrl.java +++ /dev/null @@ -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 page; - - - @JsonIgnore - @XmlTransient - public Page getPage() { - if (page == null){ - page = new Page(); - } - return page; - } - - public Page setPage(Page 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); - } - -} diff --git a/src/main/java/com/nis/domain/restful/DfKeyMailAdd.java b/src/main/java/com/nis/domain/restful/DfKeyMailAdd.java deleted file mode 100644 index 799c2f0..0000000 --- a/src/main/java/com/nis/domain/restful/DfKeyMailAdd.java +++ /dev/null @@ -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 page; - - @JsonIgnore - @XmlTransient - public Page getPage() { - if (page == null) { - page = new Page(); - } - return page; - } - - public Page setPage(Page 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); - } - -} diff --git a/src/main/java/com/nis/domain/restful/DfL2tpLog.java b/src/main/java/com/nis/domain/restful/DfL2tpLog.java deleted file mode 100644 index ca567cd..0000000 --- a/src/main/java/com/nis/domain/restful/DfL2tpLog.java +++ /dev/null @@ -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{ - /** - * @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; - } -} diff --git a/src/main/java/com/nis/domain/restful/DfMailLog.java b/src/main/java/com/nis/domain/restful/DfMailLog.java deleted file mode 100644 index 34c8602..0000000 --- a/src/main/java/com/nis/domain/restful/DfMailLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - - -} diff --git a/src/main/java/com/nis/domain/restful/DfOpenvpnLog.java b/src/main/java/com/nis/domain/restful/DfOpenvpnLog.java deleted file mode 100644 index 5a751ef..0000000 --- a/src/main/java/com/nis/domain/restful/DfOpenvpnLog.java +++ /dev/null @@ -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{ - /** - * @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; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DfPptpLog.java b/src/main/java/com/nis/domain/restful/DfPptpLog.java deleted file mode 100644 index ae24b7c..0000000 --- a/src/main/java/com/nis/domain/restful/DfPptpLog.java +++ /dev/null @@ -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{ - /** - * @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; - } - - -} diff --git a/src/main/java/com/nis/domain/restful/DfSshLog.java b/src/main/java/com/nis/domain/restful/DfSshLog.java deleted file mode 100644 index 12495d7..0000000 --- a/src/main/java/com/nis/domain/restful/DfSshLog.java +++ /dev/null @@ -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{ - /** - * @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; - } - - -} diff --git a/src/main/java/com/nis/domain/restful/DfSslLog.java b/src/main/java/com/nis/domain/restful/DfSslLog.java deleted file mode 100644 index f369ad6..0000000 --- a/src/main/java/com/nis/domain/restful/DfSslLog.java +++ /dev/null @@ -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{ - /** - * @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; - } - - - -} diff --git a/src/main/java/com/nis/domain/restful/DfTunnelRandomLog.java b/src/main/java/com/nis/domain/restful/DfTunnelRandomLog.java deleted file mode 100644 index 5c63795..0000000 --- a/src/main/java/com/nis/domain/restful/DfTunnelRandomLog.java +++ /dev/null @@ -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{ - - /** - * - */ - 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; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DjDnsLog.java b/src/main/java/com/nis/domain/restful/DjDnsLog.java deleted file mode 100644 index d563bdc..0000000 --- a/src/main/java/com/nis/domain/restful/DjDnsLog.java +++ /dev/null @@ -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 { - - /** - * @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; - } -} diff --git a/src/main/java/com/nis/domain/restful/DjFlowControlStop.java b/src/main/java/com/nis/domain/restful/DjFlowControlStop.java deleted file mode 100644 index ff48675..0000000 --- a/src/main/java/com/nis/domain/restful/DjFlowControlStop.java +++ /dev/null @@ -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 page; - - - @JsonIgnore - @XmlTransient - public Page getPage() { - if (page == null){ - page = new Page(); - } - return page; - } - - public Page setPage(Page 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); - } - -} diff --git a/src/main/java/com/nis/domain/restful/DjFtpLog.java b/src/main/java/com/nis/domain/restful/DjFtpLog.java deleted file mode 100644 index 24a01de..0000000 --- a/src/main/java/com/nis/domain/restful/DjFtpLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } -} diff --git a/src/main/java/com/nis/domain/restful/DjHttpKeywordLog.java b/src/main/java/com/nis/domain/restful/DjHttpKeywordLog.java deleted file mode 100644 index ffd5323..0000000 --- a/src/main/java/com/nis/domain/restful/DjHttpKeywordLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DjHttpReqLog.java b/src/main/java/com/nis/domain/restful/DjHttpReqLog.java deleted file mode 100644 index 9d5b9d7..0000000 --- a/src/main/java/com/nis/domain/restful/DjHttpReqLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DjHttpResLog.java b/src/main/java/com/nis/domain/restful/DjHttpResLog.java deleted file mode 100644 index 13b86ac..0000000 --- a/src/main/java/com/nis/domain/restful/DjHttpResLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DjIpPortLog.java b/src/main/java/com/nis/domain/restful/DjIpPortLog.java deleted file mode 100644 index cd61839..0000000 --- a/src/main/java/com/nis/domain/restful/DjIpPortLog.java +++ /dev/null @@ -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{ - - /** - * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) - */ - private static final long serialVersionUID = 2011669272157526917L; - -} diff --git a/src/main/java/com/nis/domain/restful/DjIpsecLog.java b/src/main/java/com/nis/domain/restful/DjIpsecLog.java deleted file mode 100644 index 1bc78c6..0000000 --- a/src/main/java/com/nis/domain/restful/DjIpsecLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } -} diff --git a/src/main/java/com/nis/domain/restful/DjL2tpLog.java b/src/main/java/com/nis/domain/restful/DjL2tpLog.java deleted file mode 100644 index 1bad9bb..0000000 --- a/src/main/java/com/nis/domain/restful/DjL2tpLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } -} diff --git a/src/main/java/com/nis/domain/restful/DjMailLog.java b/src/main/java/com/nis/domain/restful/DjMailLog.java deleted file mode 100644 index a284fbd..0000000 --- a/src/main/java/com/nis/domain/restful/DjMailLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - - -} diff --git a/src/main/java/com/nis/domain/restful/DjOpenvpnLog.java b/src/main/java/com/nis/domain/restful/DjOpenvpnLog.java deleted file mode 100644 index bbab7c2..0000000 --- a/src/main/java/com/nis/domain/restful/DjOpenvpnLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DjPptpLog.java b/src/main/java/com/nis/domain/restful/DjPptpLog.java deleted file mode 100644 index 33fd2e1..0000000 --- a/src/main/java/com/nis/domain/restful/DjPptpLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - - - -} diff --git a/src/main/java/com/nis/domain/restful/DjSshLog.java b/src/main/java/com/nis/domain/restful/DjSshLog.java deleted file mode 100644 index dc9c52d..0000000 --- a/src/main/java/com/nis/domain/restful/DjSshLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - -} diff --git a/src/main/java/com/nis/domain/restful/DjSslLog.java b/src/main/java/com/nis/domain/restful/DjSslLog.java deleted file mode 100644 index dad2489..0000000 --- a/src/main/java/com/nis/domain/restful/DjSslLog.java +++ /dev/null @@ -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{ - - /** - * @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; - } - -} diff --git a/src/main/java/com/nis/web/controller/restful/DfIpPortUdpController.java b/src/main/java/com/nis/web/controller/restful/DfIpPortUdpController.java deleted file mode 100644 index 6373a16..0000000 --- a/src/main/java/com/nis/web/controller/restful/DfIpPortUdpController.java +++ /dev/null @@ -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); - } - } - } -} diff --git a/src/main/java/com/nis/web/controller/restful/DfKeyConvertUrlController.java b/src/main/java/com/nis/web/controller/restful/DfKeyConvertUrlController.java deleted file mode 100644 index 89efd02..0000000 --- a/src/main/java/com/nis/web/controller/restful/DfKeyConvertUrlController.java +++ /dev/null @@ -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 dfKeyConvertUrlPage = null; - try { - dfKeyConvertUrlPage = dfKeyConvertUrlService.findFlowControlStopPage(new Page(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); - } -} diff --git a/src/main/java/com/nis/web/controller/restful/DfKeyMailAddController.java b/src/main/java/com/nis/web/controller/restful/DfKeyMailAddController.java deleted file mode 100644 index b496e74..0000000 --- a/src/main/java/com/nis/web/controller/restful/DfKeyMailAddController.java +++ /dev/null @@ -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 dfKeyMailAddPage = null; - try { - dfKeyMailAddPage = dfKeyMailAddService.findDfKeyMailAddPage( - new Page(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); - } -} diff --git a/src/main/java/com/nis/web/controller/restful/IntervalTimeSearchController.java b/src/main/java/com/nis/web/controller/restful/IntervalTimeSearchController.java deleted file mode 100644 index b66a5a2..0000000 --- a/src/main/java/com/nis/web/controller/restful/IntervalTimeSearchController.java +++ /dev/null @@ -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 flowControlStopPage = null; - try { - flowControlStopPage = timeSearchService.findFlowControlStopPage(new Page(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); - } -} diff --git a/src/main/java/com/nis/web/dao/DfIpPortUdpDao.java b/src/main/java/com/nis/web/dao/DfIpPortUdpDao.java deleted file mode 100644 index fc0e1b3..0000000 --- a/src/main/java/com/nis/web/dao/DfIpPortUdpDao.java +++ /dev/null @@ -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{ - int delete(long id); - - int insert(DfIpPortUdp record); - - int update(DfIpPortUdp record); - -} \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/DfIpPortUdpDao.xml b/src/main/java/com/nis/web/dao/DfIpPortUdpDao.xml deleted file mode 100644 index 2db55c7..0000000 --- a/src/main/java/com/nis/web/dao/DfIpPortUdpDao.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - 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 - - - - delete from DF_IP_PORT_UDP - where CFG_ID = #{cfgId,jdbcType=BIGINT} - - - - - 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, - - - LAST_UPDATE, - - - EFFECTIVE_RANGE, - - - ACTIVE_SYS, - - - - #{cfgId,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}, - - - #{lastUpdate,jdbcType=TIMESTAMP}, - - - #{effectiveRange,jdbcType=VARCHAR}, - - - #{activeSys,jdbcType=INTEGER}, - - - - - - update DF_IP_PORT_UDP - - - 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}, - - - LAST_UPDATE = #{lastUpdate,jdbcType=TIMESTAMP}, - - - EFFECTIVE_RANGE=#{effectiveRange,jdbcType=VARCHAR}, - - - ACTIVE_SYS=#{activeSys,jdbcType=INTEGER}, - - - where CFG_ID = #{cfgId,jdbcType=BIGINT} - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.java b/src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.java deleted file mode 100644 index 6f2d54b..0000000 --- a/src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.java +++ /dev/null @@ -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{ - - List findDfKeyConvertUrlPage(DfKeyConvertUrl entity); -} diff --git a/src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.xml b/src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.xml deleted file mode 100644 index 5f42fe1..0000000 --- a/src/main/java/com/nis/web/dao/DfKeyConvertUrlDao.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - ID,KEY_ID,URL,OP_TIME - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/DfKeyMailAddDao.java b/src/main/java/com/nis/web/dao/DfKeyMailAddDao.java deleted file mode 100644 index bd2c58e..0000000 --- a/src/main/java/com/nis/web/dao/DfKeyMailAddDao.java +++ /dev/null @@ -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 { - - List findDfKeyMailAddPage(DfKeyMailAdd entity); - -} diff --git a/src/main/java/com/nis/web/dao/DfKeyMailAddDao.xml b/src/main/java/com/nis/web/dao/DfKeyMailAddDao.xml deleted file mode 100644 index e611270..0000000 --- a/src/main/java/com/nis/web/dao/DfKeyMailAddDao.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - ID,KEY_ID,MAIL_ADDR,OP_TIME - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/DjLogSearchDao.java b/src/main/java/com/nis/web/dao/DjLogSearchDao.java deleted file mode 100644 index b8c09b4..0000000 --- a/src/main/java/com/nis/web/dao/DjLogSearchDao.java +++ /dev/null @@ -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{ - - List findIpPortLogs(DjIpPortLog log); - - List findHttpReqLogs(DjHttpReqLog log); - - List findHttpResLogs(DjHttpResLog log); - - List findHttpKeywordLogs(DjHttpKeywordLog log); - - List findMailLogs(DjMailLog log); - - List findDnsLogs(DjDnsLog log); - - List findFtpLogs(DjFtpLog log); - - List findPptpLogs(DjPptpLog log); - - List findL2tpLogs(DjL2tpLog log); - - List findIpsecLogs(DjIpsecLog log); - - List findOpenvpnLogs(DjOpenvpnLog log); - - List findSshLogs(DjSshLog log); - - List findSslLogs(DjSslLog log); -} diff --git a/src/main/java/com/nis/web/dao/DjLogSearchDao.xml b/src/main/java/com/nis/web/dao/DjLogSearchDao.xml deleted file mode 100644 index 7bea5db..0000000 --- a/src/main/java/com/nis/web/dao/DjLogSearchDao.xml +++ /dev/null @@ -1,1105 +0,0 @@ - - - - - - ID,CFG_ID,FOUND_TIME,RECV_TIME, - OVER_ID,PROTOCOL,SERVER_IP,CLIENT_IP, - SERVER_PORT,CLIENT_PORT,NEST_PROTOCOL,NEST_SERVER_IP,NEST_CLIENT_IP, - NEST_SERVER_PORT,NEST_CLIENT_PORT,SERVICE_TYPE,ENTRANCE_ID, - CLJ_IP,SCENE_FILE,ACTION,SERVER_LOCATE,CLIENT_LOCATE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,C2S_ISN,HTTP_PROXY_FLAG,HTTP_SEQ,URL,REQ_LINE,REQ_HDR_FILE,REQ_BODY_FILE,COOKIE,REFERER,UA,USER_DEFINE_KEY,USER_DEFINE_VALUE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,C2S_ISN,HTTP_PROXY_FLAG,HTTP_SEQ,URL,REQ_LINE,REQ_HDR_FILE, - REQ_BODY_FILE,RES_LINE,RES_HDR_FILE,RES_BODY_FILE,SET_COOKIE, - CONTENT_LEN,CONTENT_TYPE,USER_DEFINE_KEY,USER_DEFINE_VALUE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,C2S_ISN,HTTP_PROXY_FLAG,HTTP_SEQ,URL,REQ_LINE,REQ_HDR_FILE, - REQ_BODY_FILE,RES_LINE,RES_HDR_FILE,RES_BODY_FILE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,MAIL_PROTO,MAIL_FROM,MAIL_TO,SUBJECT,EML_FILE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,QR,RD,RA,RR,QTYPE,QCLASS,OPCODE,QNAME,DNS_SUB - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,FTP_URL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_TYPE,ENCRYPT_MODE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_TYPE,ENCRYPT_MODE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,EX_PROTOCOL,ISAKMP_MODE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,VERSION,ENCRYPT_MODE,HMAC,TUNNEL_TYPE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,VERSION,HOST_KEY,HOST_COOKIE,ENCRYPT_MODE,MAC,TUNNEL_TYPE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,VERSION,SNI,INDIVIDUAL_CERT_FILE,MIDDLE_CERT_FILE,ROOT_CERT_FILE,CHAIN_CERT_FILE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/IntervalTimeSearchDao.java b/src/main/java/com/nis/web/dao/IntervalTimeSearchDao.java deleted file mode 100644 index d669dd3..0000000 --- a/src/main/java/com/nis/web/dao/IntervalTimeSearchDao.java +++ /dev/null @@ -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{ - - List findFlowControlStopPage(DjFlowControlStop entity); -} diff --git a/src/main/java/com/nis/web/dao/IntervalTimeSearchDao.xml b/src/main/java/com/nis/web/dao/IntervalTimeSearchDao.xml deleted file mode 100644 index 65fb6f2..0000000 --- a/src/main/java/com/nis/web/dao/IntervalTimeSearchDao.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - CFG_ID,SERVICE,ACTION,OP_TIME - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/service/restful/DfIpPortUdpService.java b/src/main/java/com/nis/web/service/restful/DfIpPortUdpService.java deleted file mode 100644 index 7d1b005..0000000 --- a/src/main/java/com/nis/web/service/restful/DfIpPortUdpService.java +++ /dev/null @@ -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 { - @Autowired - public DfIpPortUdpDao dfIpPortUdpDao; - public void saveDfIpPortUdpBatch(List entity) { - // TODO Auto-generated method stub - super.saveBatch(entity,DfIpPortUdpDao.class); - } - public void updateDfIpPortUdpBatch(List entity) { - // TODO Auto-generated method stub - super.updateBatch(entity, DfIpPortUdpDao.class); - } - public void removeDfIpPortUdp(long id) { - dfIpPortUdpDao.delete(id); - } - public void removeDfIpPortUdpBatch(List entity) { - super.deleteBatch(entity, DfIpPortUdpDao.class); - } -} diff --git a/src/main/java/com/nis/web/service/restful/DfKeyConvertUrlService.java b/src/main/java/com/nis/web/service/restful/DfKeyConvertUrlService.java deleted file mode 100644 index 1270d33..0000000 --- a/src/main/java/com/nis/web/service/restful/DfKeyConvertUrlService.java +++ /dev/null @@ -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 findFlowControlStopPage(Page 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, "请求参数错误"); - } - - } -} diff --git a/src/main/java/com/nis/web/service/restful/DfKeyMailAddService.java b/src/main/java/com/nis/web/service/restful/DfKeyMailAddService.java deleted file mode 100644 index d3be51a..0000000 --- a/src/main/java/com/nis/web/service/restful/DfKeyMailAddService.java +++ /dev/null @@ -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 findDfKeyMailAddPage(Page 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, "请求参数错误"); - } - - } - - - - - -} diff --git a/src/main/java/com/nis/web/service/restful/DjLogSearchService.java b/src/main/java/com/nis/web/service/restful/DjLogSearchService.java deleted file mode 100644 index 23516fb..0000000 --- a/src/main/java/com/nis/web/service/restful/DjLogSearchService.java +++ /dev/null @@ -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 findIpPortPage(Page page, DjIpPortLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findHttpResPage(Page page, DjHttpResLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findHttpReqPage(Page page, DjHttpReqLog httpReqLog,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - httpReqLog.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findHttpKeywordPage(Page page, DjHttpKeywordLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findHttpMultiPartPage(Page page, DjHttpKeywordLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findMailPage(Page page, DjMailLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findDnsPage(Page page, DjDnsLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findFtpPage(Page page, DjFtpLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findPptpPage(Page page, DjPptpLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findL2tpPage(Page page, DjL2tpLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findIpsecPage(Page page, DjIpsecLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findOpenvpnPage(Page page, DjOpenvpnLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findSshPage(Page page, DjSshLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List 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 findSslPage(Page page, DjSslLog entity,String activeSys) throws IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - if(Constants.IS_USE_ES){ - List resultList=new ArrayList<>(); - elasticsearchSqlDao.findLogs(resultList, entity,activeSys); - page.setList(resultList); - }else{ - page.setList(dao.findSslLogs(entity)); - } - return page; - } - -} diff --git a/src/main/java/com/nis/web/service/restful/IntervalTimeSearchService.java b/src/main/java/com/nis/web/service/restful/IntervalTimeSearchService.java deleted file mode 100644 index bf92b7c..0000000 --- a/src/main/java/com/nis/web/service/restful/IntervalTimeSearchService.java +++ /dev/null @@ -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 findFlowControlStopPage(Page 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, "请求参数错误"); - } - - } - -}