Class MobileCardsUtils
java.lang.Object
overit.geocallapp.wfm.core.bl.mobilecard.MobileCardsUtils
Utility class for mobile cards.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckDuplicatedInterventionGroupRule(List<MobileCardInterventionRule> rules, MobileCardInterventionRule rule, int ruleIndex) Check if the rule pairs (User Types/Intevention States) are in conflict with the list of rules pairs rule can be a modified rule of the list or a new one .static voidCheck if pairs (User Types/Intevention States) are in conflict within a list of MobileCardInterventionRule .static voidcheckInterventionGroupRule(List<MobileCardInterventionRule> rules, MobileCardInterventionRule rule, int ruleIndex) A list ok checks on rule correctenss.static voidA list ok checks on Intervention Group rules.static voidCheck if pairs (User Types/Intevention States) are in conflict within a list of MobileCardInterventionRule .static voidcheckRuleCodeUnivocity(List<MobileCardInterventionRule> rules, MobileCardInterventionRule rule, int ruleIndex) Check if the rule has unique code in the list of rules.
-
Constructor Details
-
MobileCardsUtils
public MobileCardsUtils()
-
-
Method Details
-
checkInterventionGroupRule
public static void checkInterventionGroupRule(List<MobileCardInterventionRule> rules, MobileCardInterventionRule rule, int ruleIndex) throws DAValidateException A list ok checks on rule correctenss.- Parameters:
rules- list ofMobileCardInterventionRulerule- the ruleruleIndex- the rule index- Throws:
DAValidateException- if some problem founded
-
checkInterventionGroupRules
public static void checkInterventionGroupRules(List<MobileCardInterventionRule> rules) throws DAValidateException A list ok checks on Intervention Group rules.- Parameters:
rules- list ofMobileCardInterventionRule- Throws:
DAValidateException- if some problem founded
-
checkDuplicatedInterventionGroupRule
public static void checkDuplicatedInterventionGroupRule(List<MobileCardInterventionRule> rules, MobileCardInterventionRule rule, int ruleIndex) throws DAValidateException Check if the rule pairs (User Types/Intevention States) are in conflict with the list of rules pairs rule can be a modified rule of the list or a new one .- Parameters:
rules- list ofMobileCardInterventionRulerule- the ruleruleIndex- the rule index- Throws:
DAValidateException- if confilcts exists
-
checkDuplicatedInterventionGroupRules
public static void checkDuplicatedInterventionGroupRules(List<MobileCardInterventionRule> rules) throws DAValidateException Check if pairs (User Types/Intevention States) are in conflict within a list of MobileCardInterventionRule .- Parameters:
rules- list ofMobileCardInterventionRule- Throws:
DAValidateException- if confilcts exists
-
checkRuleCodeUnivocity
public static void checkRuleCodeUnivocity(List<MobileCardInterventionRule> rules, MobileCardInterventionRule rule, int ruleIndex) throws DAValidateException Check if the rule has unique code in the list of rules.- Parameters:
rules- list ofMobileCardInterventionRulerule- the ruleruleIndex- the rule index- Throws:
DAValidateException- if exists a tule with the same code
-
checkRuleCodesUnivocity
public static void checkRuleCodesUnivocity(List<MobileCardInterventionRule> rules) throws DAValidateException Check if pairs (User Types/Intevention States) are in conflict within a list of MobileCardInterventionRule .- Parameters:
rules- list ofMobileCardInterventionRule- Throws:
DAValidateException- if confilcts exists
-