bASE--Risk

//参考base-4.0.2.jar
public class Risk implements Serializable
//规则名
public
String ruleName; //规则包名
public String rulePackageName; //风险评分
public Integer score = Integer.valueOf(0); //描述
public String comments; //通知策略
public NotifyPolicy notifyPolicy; //验证策略
public VerifyPolicy verifyPolicy; //风险类型
public List<String> riskTypes;
public Date createTime; public Map<String, Object> customization = new HashMap(); public String uuid; //风险权重
public Integer weight = Integer.valueOf(1);

 

//构造器比较多
public
Risk() { this(null, 0, 1, new Date()); } public Risk(String paramString) { this(); setUuid(paramString); } public Risk(String paramString, int paramInt, Date paramDate) { setRuleName(paramString); setScore(Integer.valueOf(paramInt)); setCreateTime(paramDate); } public Risk(String paramString, int paramInt1, int paramInt2, Date paramDate) { setRuleName(paramString); setScore(Integer.valueOf(paramInt1)); setWeight(Integer.valueOf(paramInt2)); setCreateTime(paramDate); } public Risk(String paramString1, String paramString2, int paramInt, String paramString3, NotifyPolicy paramNotifyPolicy, VerifyPolicy paramVerifyPolicy, String... paramVarArgs) { this(paramString1, paramString2, paramInt, 1, paramString3, paramNotifyPolicy, paramVerifyPolicy, paramVarArgs); } public Risk(String paramString1, String paramString2, int paramInt1, int paramInt2, String paramString3, NotifyPolicy paramNotifyPolicy, VerifyPolicy paramVerifyPolicy, String... paramVarArgs) { setRuleName(paramString1); setRulePackageName(paramString2); setScore(Integer.valueOf(paramInt1)); setWeight(Integer.valueOf(paramInt2)); setComments(paramString3); setNotifyPolicy(paramNotifyPolicy); setVerifyPolicy(paramVerifyPolicy); if (paramVarArgs != null) { ArrayList localArrayList = new ArrayList(); for (String str : paramVarArgs) { localArrayList.add(str); } setRiskTypes(localArrayList); } setCreateTime(new Date()); }

 

posted on 2016-07-18 22:01  潸何  阅读(267)  评论(0编辑  收藏  举报