This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/java/com/nis/domain/configuration/AreaIpCfg.java
wangxin 5a5bdddba4 (1)IP Pattern拆分为源IP Pattern,目的IP Pattern,Port Pattern
拆分为源端口Pattern,目的端口Pattern
(2)show more修改,并移动刀ipRegion.js中
(3)IP复用未作修改
(4)删除部分废弃的导入模板以及废弃的导入方法
2019-04-18 10:15:23 +08:00

96 lines
2.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

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

/**
*@Title: AreaIpCfg.java
*@Package com.nis.domain.configuration
*@Description TODO
*@author dell
*@date 2018年2月8日 上午9:47:29
*@version 版本号
*/
package com.nis.domain.configuration;
import com.nis.util.Constants;
/**
* @ClassName: AreaIpCfg.java
* @Description: TODO
* @author (dell)
* @date 2018年2月8日 上午9:47:29
* @version V1.0
*/
public class AreaIpCfg extends BaseIpCfg {
private static final String tableName="area_ip_cfg";
private static final String maatTable="DF_IP_RANGE";
/**
* @Fields serialVersionUID:TODO用一句话描述这个变量表示什么
*
* @since 1.0.0
*/
private static final long serialVersionUID = 2367503808235405524L;
/* (是否区域gk对此表无意义直接设置0值)
* @see com.nis.domain.configuration.BaseCfg#setIsAreaEffective(java.lang.Integer)
*/
@Override
public void setIsAreaEffective(Integer isAreaEffective) {
// TODO Auto-generated method stub
this.isAreaEffective=0;
}
/* (区域生效id对此表无意义直接设置null值)
* @see com.nis.domain.configuration.BaseCfg#setAreaEffectiveIds(java.lang.String)
*/
@Override
public void setAreaEffectiveIds(String areaEffectiveIds) {
// TODO Auto-generated method stub
this.areaEffectiveIds=null;
}
/* (non-Javadoc)
* @see com.nis.domain.configuration.BaseIpCfg#initDefaultValue()
*/
@Override
public void initDefaultValue() {
// TODO Auto-generated method stub
super.initDefaultValue();
this.protocolId=0;
this.isAreaEffective=0;
this.areaEffectiveIds=null;
this.cfgType=Constants.AREA_REGION;
this.cfgRegionCode=1;
this.protocol=0;
this.srcPortPattern=1;
this.destPortPattern=1;
this.srcPort="0";
this.destPort="0";
this.direction=0;
if(this.ipType!=null && (this.ipType==4||this.ipType==46)){
this.destIpAddress="0.0.0.0";
}else if(this.ipType!=null && (this.ipType==6 || this.ipType==64)){
this.destIpAddress="::";
}else{
this.destIpAddress="0.0.0.0";
}
}
/**
* tablename
* @return tablename
*/
public static String getTablename() {
return tableName;
}
/**
* maattable
* @return maattable
*/
public static String getMaattable() {
return maatTable;
}
}