diff --git a/src/main/java/com/nis/domain/Page.java b/src/main/java/com/nis/domain/Page.java index fd7225d..a471a22 100644 --- a/src/main/java/com/nis/domain/Page.java +++ b/src/main/java/com/nis/domain/Page.java @@ -18,7 +18,6 @@ import org.apache.ibatis.mapping.ResultMapping; import org.apache.ibatis.session.SqlSessionFactory; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.nis.domain.restful.DfIpPortLog; import com.nis.util.Configurations; import com.nis.util.Constants; import com.nis.util.CookieUtil; @@ -809,6 +808,6 @@ public class Page { // this.list = page.getContent(); // public static void main(String[] args) { - Page page=new Page(); +// Page page=new Page(); } } diff --git a/src/main/java/com/nis/web/controller/restful/ServiceController.java b/src/main/java/com/nis/web/controller/restful/ServiceController.java index 0286c42..05b90d7 100644 --- a/src/main/java/com/nis/web/controller/restful/ServiceController.java +++ b/src/main/java/com/nis/web/controller/restful/ServiceController.java @@ -9,30 +9,15 @@ 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.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.ControlLog; -import com.nis.domain.Page; -import com.nis.domain.restful.ConfigSource; -import com.nis.domain.restful.DfIpPortLog; -import com.nis.restful.RestBusinessCode; -import com.nis.restful.RestServiceException; -import com.nis.util.StringUtil; import com.nis.web.controller.BaseRestController; import com.nis.web.service.restful.ControlLogService; -import com.wordnik.swagger.annotations.ApiOperation; /** * @ClassName: ServiceController diff --git a/src/main/java/com/nis/web/controller/restful/ServicesRequestLogController.java b/src/main/java/com/nis/web/controller/restful/ServicesRequestLogController.java index 0f534a9..861a510 100644 --- a/src/main/java/com/nis/web/controller/restful/ServicesRequestLogController.java +++ b/src/main/java/com/nis/web/controller/restful/ServicesRequestLogController.java @@ -12,7 +12,6 @@ import org.springframework.web.bind.annotation.RestController; import com.nis.domain.Page; import com.nis.domain.ServicesRequestLog; -import com.nis.domain.restful.DfIpPortLog; import com.nis.domain.restful.ServicesRequestLogBean; import com.nis.restful.RestServiceException; import com.nis.util.Constants; diff --git a/src/main/java/com/nis/web/dao/DfLogSearchDao.java b/src/main/java/com/nis/web/dao/DfLogSearchDao.java deleted file mode 100644 index 37eb9d8..0000000 --- a/src/main/java/com/nis/web/dao/DfLogSearchDao.java +++ /dev/null @@ -1,58 +0,0 @@ -/** -* @Title: DfLogSearchDao.java -* @Package com.nis.web.dao -* @Description: TODO(用一句话描述该文件做什么) -* @author (ddm) -* @date 2016年9月5日 下午44:6:25 -* @version V1.0 -*/ -package com.nis.web.dao; - -import java.util.List; - - -import com.nis.domain.ControlLog; -import com.nis.domain.LogEntity; -import com.nis.domain.restful.DfDnsLog; -import com.nis.domain.restful.DfFtpLog; -import com.nis.domain.restful.DfIpsecLog; -import com.nis.domain.restful.DfL2tpLog; -import com.nis.domain.restful.DfMailLog; -import com.nis.domain.restful.DfOpenvpnLog; -import com.nis.domain.restful.DfPptpLog; -import com.nis.domain.restful.DfSshLog; -import com.nis.domain.restful.DfSslLog; -import com.nis.domain.restful.DfTunnelRandomLog; - -/** -* @ClassName: DfLogSearchDao -* @Description: TODO(这里用一句话描述这个类的作用) -* @author (ddm) -* @date 2016年9月5日 下午2:6:25 -* @version V1.0 -*/ -@MyBatisDao -public interface DfLogSearchDao extends CrudDao { - - List findMailLogs(DfMailLog log); - List findDnsLogs(DfDnsLog log); - List findFtpLogs(DfFtpLog log); - List findPptpLogs(DfPptpLog log); - List findL2tpLogs(DfL2tpLog log); - List findIpsecLogs(DfIpsecLog log); - List findOpenvpnLogs(DfOpenvpnLog log); - List findSshLogs(DfSshLog log); - List findSslLogs(DfSslLog log); - List findTunnelRandomLogs(DfTunnelRandomLog log); - List findMailLogsCluster(DfMailLog log); - List findDnsLogsCluster(DfDnsLog log); - List findFtpLogsCluster(DfFtpLog log); - List findPptpLogsCluster(DfPptpLog log); - List findL2tpLogsCluster(DfL2tpLog log); - List findIpsecLogsCluster(DfIpsecLog log); - List findOpenvpnLogsCluster(DfOpenvpnLog log); - List findSshLogsCluster(DfSshLog log); - List findSslLogsCluster(DfSslLog log); - List findTunnelRandomLogsCluster(DfTunnelRandomLog log); - -} diff --git a/src/main/java/com/nis/web/dao/DfLogSearchDao.xml b/src/main/java/com/nis/web/dao/DfLogSearchDao.xml deleted file mode 100644 index 947004e..0000000 --- a/src/main/java/com/nis/web/dao/DfLogSearchDao.xml +++ /dev/null @@ -1,1190 +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,INJECTED_PKT_FILE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,RD,QTYPE,QCLASS,OPCODE,QNAME,CHEAT_TYPE - ,CHEAT_RCODE,CHEAT_STRATEGY,CHEAT_Rr - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,FTP_URL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_TYPE,ENCRYPT_MODE,CONTENT_TYPE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_TYPE,ENCRYPT_MODE,CHAP_NAME,CONTENT_TYPE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_NAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/DfLogSearchDaoCluster.java b/src/main/java/com/nis/web/dao/DfLogSearchDaoCluster.java deleted file mode 100644 index 5d8ce75..0000000 --- a/src/main/java/com/nis/web/dao/DfLogSearchDaoCluster.java +++ /dev/null @@ -1,48 +0,0 @@ -/** -* @Title: DfLogSearchDao.java -* @Package com.nis.web.dao -* @Description: TODO(用一句话描述该文件做什么) -* @author (ddm) -* @date 2016年9月5日 下午44:6:25 -* @version V1.0 -*/ -package com.nis.web.dao; - -import java.util.List; - - -import com.nis.domain.ControlLog; -import com.nis.domain.LogEntity; -import com.nis.domain.restful.DfDnsLog; -import com.nis.domain.restful.DfFtpLog; -import com.nis.domain.restful.DfIpsecLog; -import com.nis.domain.restful.DfL2tpLog; -import com.nis.domain.restful.DfMailLog; -import com.nis.domain.restful.DfOpenvpnLog; -import com.nis.domain.restful.DfPptpLog; -import com.nis.domain.restful.DfSshLog; -import com.nis.domain.restful.DfSslLog; -import com.nis.domain.restful.DfTunnelRandomLog; - -/** -* @ClassName: DfLogSearchDao -* @Description: TODO(这里用一句话描述这个类的作用) -* @author (ddm) -* @date 2016年9月5日 下午2:6:25 -* @version V1.0 -*/ -@MyBatisDao -public interface DfLogSearchDaoCluster extends CrudDao { - - List findMailLogsCluster(DfMailLog log); - List findDnsLogsCluster(DfDnsLog log); - List findFtpLogsCluster(DfFtpLog log); - List findPptpLogsCluster(DfPptpLog log); - List findL2tpLogsCluster(DfL2tpLog log); - List findIpsecLogsCluster(DfIpsecLog log); - List findOpenvpnLogsCluster(DfOpenvpnLog log); - List findSshLogsCluster(DfSshLog log); - List findSslLogsCluster(DfSslLog log); - List findTunnelRandomLogsCluster(DfTunnelRandomLog log); - -} diff --git a/src/main/java/com/nis/web/dao/DfLogSearchDaoCluster.xml b/src/main/java/com/nis/web/dao/DfLogSearchDaoCluster.xml deleted file mode 100644 index b19c6b0..0000000 --- a/src/main/java/com/nis/web/dao/DfLogSearchDaoCluster.xml +++ /dev/null @@ -1,1120 +0,0 @@ - - - - - - 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,INJECTED_PKT_FILE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,RD,QTYPE,QCLASS,OPCODE,QNAME,CHEAT_TYPE - ,CHEAT_RCODE,CHEAT_STRATEGY,CHEAT_Rr - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,FTP_URL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_TYPE,ENCRYPT_MODE,CONTENT_TYPE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_TYPE,ENCRYPT_MODE,CHAP_NAME,CONTENT_TYPE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ,TUNNEL_NAME - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/service/restful/DfLogSearchService.java b/src/main/java/com/nis/web/service/restful/DfLogSearchService.java deleted file mode 100644 index 360cacc..0000000 --- a/src/main/java/com/nis/web/service/restful/DfLogSearchService.java +++ /dev/null @@ -1,394 +0,0 @@ -/** -* @Title: DfLogSearchService.java -* @Package com.nis.web.service.restful -* @Description: TODO(用一句话描述该文件做什么) -* @author (ddm) -* @date 2016年9月15日 下午2:08:12 -* @version V1.0 -*/ -package com.nis.web.service.restful; - -import java.io.IOException; -import java.sql.SQLException; -import java.util.ArrayList; -import java.text.ParseException; -import java.util.List; - -import org.apache.log4j.Logger; - -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.LogEntity; -import com.nis.domain.Page; -import com.nis.domain.restful.DfDnsLog; -import com.nis.domain.restful.DfFtpLog; -import com.nis.domain.restful.DfIpsecLog; -import com.nis.domain.restful.DfL2tpLog; -import com.nis.domain.restful.DfMailLog; -import com.nis.domain.restful.DfOpenvpnLog; -import com.nis.domain.restful.DfPptpLog; -import com.nis.domain.restful.DfSshLog; -import com.nis.domain.restful.DfSslLog; -import com.nis.domain.restful.DfTunnelRandomLog; -//import com.nis.util.MysqlJDBC; -import com.nis.util.Constants; -import com.nis.web.dao.DfLogSearchDao; -import com.nis.web.dao.DfLogSearchDaoCluster; -import com.nis.web.service.BaseLogService; - -/** -* @ClassName: DfLogSearchService -* @Description: TODO(这里用一句话描述这个类的作用) -* @author (ddm) -* @date 2016年9月5日 下午2:08:12 -* @version V1.0 -*/ -@Service -public class DfLogSearchService extends BaseLogService{ - protected final Logger logger = Logger.getLogger(this.getClass()); - /** - * 持久层对象 - */ - @Autowired - protected DfLogSearchDao dao; - @Autowired - protected DfLogSearchDaoCluster daoCluster; - - /** - * 获取单条数据 - * @param id - * @return - */ - public LogEntity get(Long id) { - return dao.get(id); - } - - /** - * 获取单条数据 - * @param entity - * @return - */ - public LogEntity get(LogEntity entity) { - return dao.get(entity); - } - - /** - * 查询列表数据 - * @param entity - * @return - */ - public List findList(LogEntity entity) { - return dao.findList(entity); - } - - - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findMailPage(Page page, DfMailLog entity,String activeSys) throws Exception{ - 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 Exception - */ - public Page findDnsPage(Page page, DfDnsLog entity,String activeSys) throws Exception{ - 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 Exception - */ - public Page findFtpPage(Page page, DfFtpLog entity,String activeSys) throws SQLException, 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 Exception - */ - public Page findPptpPage(Page page, DfPptpLog entity,String activeSys) throws Exception { - 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 Exception - */ - public Page findL2tpPage(Page page, DfL2tpLog entity,String activeSys) throws Exception{ - 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 Exception - */ - public Page findIpsecPage(Page page, DfIpsecLog entity,String activeSys) throws Exception{ - 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 Exception - */ - public Page findOpenvpnPage(Page page, DfOpenvpnLog entity,String activeSys) throws Exception { - 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 Exception - */ - public Page findSshPage(Page page, DfSshLog entity,String activeSys) throws Exception { - 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 Exception - */ - public Page findSslPage(Page page, DfSslLog entity,String activeSys) throws Exception{ - 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; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findTunnelRandomPage(Page page, DfTunnelRandomLog entity,String activeSys) throws Exception{ - entity.setPage(page); - if(Constants.IS_USE_ES){ - List resultList=new ArrayList<>(); - elasticsearchSqlDao.findLogs(resultList, entity,activeSys); - page.setList(resultList); - }else{ - page.setList(dao.findTunnelRandomLogs(entity)); - } - return page; - } - - - - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findMailPageCluster(Page page, DfMailLog entity,String activeSys) throws Exception{ - entity.setPage(page); - page.setList(daoCluster.findMailLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findDnsPageCluster(Page page, DfDnsLog entity,String activeSys) throws Exception{ - entity.setPage(page); - page.setList(daoCluster.findDnsLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findFtpPageCluster(Page page, DfFtpLog entity,String activeSys) throws SQLException, IllegalArgumentException, IllegalAccessException, ClientProtocolException, ParseException, JSONException, IOException { - entity.setPage(page); - page.setList(daoCluster.findFtpLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findPptpPageCluster(Page page, DfPptpLog entity,String activeSys) throws Exception { - entity.setPage(page); - page.setList(daoCluster.findPptpLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findL2tpPageCluster(Page page, DfL2tpLog entity,String activeSys) throws Exception{ - entity.setPage(page); - page.setList(daoCluster.findL2tpLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findIpsecPageCluster(Page page, DfIpsecLog entity,String activeSys) throws Exception{ - entity.setPage(page); - page.setList(daoCluster.findIpsecLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findOpenvpnPageCluster(Page page, DfOpenvpnLog entity,String activeSys) throws Exception { - entity.setPage(page); - page.setList(daoCluster.findOpenvpnLogsCluster(entity)); - return page; - } - - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findSshPageCluster(Page page, DfSshLog entity,String activeSys) throws Exception { - entity.setPage(page); - page.setList(daoCluster.findSshLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findSslPageCluster(Page page, DfSslLog entity,String activeSys) throws Exception{ - entity.setPage(page); - page.setList(daoCluster.findSslLogsCluster(entity)); - return page; - } - /** - * 查询分页数据 - * @param page 分页对象 - * @param entity - * @return - * @throws Exception - */ - public Page findTunnelRandomPageCluster(Page page, DfTunnelRandomLog entity,String activeSys) throws Exception{ - entity.setPage(page); - page.setList(daoCluster.findTunnelRandomLogsCluster(entity)); - return page; - } - -}