2018-02-23 09:34:58 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*@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;
|
|
|
|
|
|
|
2018-05-29 12:48:27 +08:00
|
|
|
|
import com.nis.util.Constants;
|
|
|
|
|
|
|
2018-02-23 09:34:58 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @ClassName: AreaIpCfg.java
|
|
|
|
|
|
* @Description: TODO
|
|
|
|
|
|
* @author (dell)
|
|
|
|
|
|
* @date 2018年2月8日 上午9:47:29
|
|
|
|
|
|
* @version V1.0
|
|
|
|
|
|
*/
|
|
|
|
|
|
public class AreaIpCfg extends BaseIpCfg {
|
2018-04-08 16:15:06 +08:00
|
|
|
|
private static final String tableName="area_ip_cfg";
|
|
|
|
|
|
private static final String maatTable="DF_IP_RANGE";
|
2018-02-23 09:34:58 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
|
|
|
|
|
*
|
|
|
|
|
|
* @since 1.0.0
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 2367503808235405524L;
|
2018-03-05 16:30:16 +08:00
|
|
|
|
|
|
|
|
|
|
/* (是否区域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;
|
|
|
|
|
|
}
|
2018-02-23 09:34:58 +08:00
|
|
|
|
|
|
|
|
|
|
/* (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;
|
2018-02-24 15:59:48 +08:00
|
|
|
|
this.areaEffectiveIds=null;
|
2018-05-29 12:48:27 +08:00
|
|
|
|
this.cfgType=Constants.AREA_REGION;
|
|
|
|
|
|
this.cfgRegionCode=1;
|
|
|
|
|
|
this.protocol=0;
|
2019-04-18 10:15:23 +08:00
|
|
|
|
this.srcPortPattern=1;
|
|
|
|
|
|
this.destPortPattern=1;
|
2018-05-29 12:48:27 +08:00
|
|
|
|
this.srcPort="0";
|
|
|
|
|
|
this.destPort="0";
|
|
|
|
|
|
this.direction=0;
|
2018-06-11 17:47:44 +08:00
|
|
|
|
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";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-02-23 09:34:58 +08:00
|
|
|
|
}
|
2018-04-08 16:15:06 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* tablename
|
|
|
|
|
|
* @return tablename
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public static String getTablename() {
|
|
|
|
|
|
return tableName;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* maattable
|
|
|
|
|
|
* @return maattable
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public static String getMaattable() {
|
|
|
|
|
|
return maatTable;
|
|
|
|
|
|
}
|
2018-02-23 09:34:58 +08:00
|
|
|
|
|
|
|
|
|
|
}
|