View Javadoc
1   package org.kuali.ole.deliver.drools.rules;
2   
3   import org.apache.commons.io.FileUtils;
4   import org.apache.commons.lang3.StringUtils;
5   import org.kuali.ole.deliver.bo.drools.DroolsRuleBo;
6   import org.kuali.ole.deliver.drools.DroolsConstants;
7   
8   import java.io.File;
9   import java.io.IOException;
10  import java.net.URISyntaxException;
11  import java.net.URL;
12  import java.util.HashMap;
13  import java.util.Map;
14  
15  /**
16   * Created by pvsubrah on 7/9/15.
17   */
18  public class IsAddressVerifiedRuleFormulator extends RuleFormulatorUtil implements RuleFormulator {
19      @Override
20      public Map formulateRuleMap(DroolsRuleBo droolsRuleBo) {
21          return super.formulateRule(droolsRuleBo);
22      }
23  
24      @Override
25      public String formulateRules(DroolsRuleBo droolsRuleBo) {
26          return "";
27      }
28  
29      @Override
30      protected String getTemplateFileName() {
31          return "general-checks/address-verified.txt";
32      }
33  
34      @Override
35      protected void processExtraRules(DroolsRuleBo droolsRuleBo, Map map) {
36  
37      }
38  
39      @Override
40      public boolean isInterested(String value) {
41          return value.equals(DroolsConstants.GENERAL_CHECK_RULE_TYPE.ADDRESS_VERIFIED);
42      }
43  
44      @Override
45      public boolean isInterestedForParameters(String value) {
46          return false;
47      }
48  
49      @Override
50      public boolean isInterestedForThenCustomRules(String value) {
51          return false;
52      }
53  }