- composeAndSendMail(mode, policyNotificationDao, subject, message, checkPolicyName, watchList);
+ private String findPolicyFileName(PolicyVersion entityItem) {
+ String policyFileName = entityItem.getPolicyName();
+ if(policyFileName.contains("/")){
+ policyFileName = policyFileName.substring(0, policyFileName.indexOf('/'));
+ policyFileName = policyFileName.replace("/", File.separator);
+ }
+ if(policyFileName.contains("\\")){
+ policyFileName = policyFileName.substring(0, policyFileName.indexOf('\\'));
+ policyFileName = policyFileName.replace("\\", "\\\\");
+ }
+
+ policyFileName += "%";
+ return policyFileName;
+ }
+
+ private String findCheckPolicyName(String policyName) {
+ String checkPolicyName = policyName;
+ if(checkPolicyName.endsWith(".xml") || checkPolicyName.contains(".")){
+ checkPolicyName = checkPolicyName.substring(0, checkPolicyName.indexOf('.'));
+ }
+ return checkPolicyName;