View Javadoc
1   package org.kuali.ole.deliver.controller.notices;
2   
3   import org.apache.log4j.Logger;
4   import org.kuali.ole.OLEConstants;
5   import org.kuali.ole.deliver.drools.DroolsConstants;
6   import org.kuali.ole.deliver.util.NoticeInfo;
7   
8   import java.util.*;
9   
10  /**
11   * Created by sheiksalahudeenm on 10/21/15.
12   */
13  public class RecallOverDueAndLostNoticeDueDateProcessor extends OverDueAndLostNoticeDueDateProcessor {
14      
15      private static final Logger LOG = Logger.getLogger(RecallOverDueAndLostNoticeDueDateProcessor.class);
16  
17      @Override
18      public boolean isInterested(String noticeType) {
19          return noticeType.equalsIgnoreCase(OLEConstants.RECALL_OVERDUE_NOTICE);
20      }
21  
22      @Override
23      protected Map<String, Object> getNoticeInfoForTypeMap(NoticeInfo noticeInfo) {
24          return noticeInfo.getNoticeInfoForTypeMap().get(OLEConstants.RECALL_OVERDUE_NOTICE);
25      }
26  
27      @Override
28      protected String getNumberOfOverDueNoticeToSent(NoticeInfo noticeInfo) {
29          return (String) noticeInfo.getNoticeInfoForTypeMap().get
30                  (OLEConstants.RECALL_OVERDUE_NOTICE).get(DroolsConstants.NUMBER_OF_OVERDUE_NOTICES_TO_BE_SENT);
31      }
32  
33      @Override
34      public Map<String, Object> getLostNoticeMap(NoticeInfo noticeInfo) {
35          return noticeInfo.getNoticeInfoForTypeMap().get(OLEConstants.RECALL_LOST_NOTICE);
36      }
37  }