1 package org.kuali.ole.ncip.service.impl;
2
3 import org.kuali.rice.krad.service.KRADServiceLocator;
4
5 import java.util.Map;
6
7
8
9
10 public class Sip2PatronBlockServiceImpl extends Sip2LookupUserServiceImpl{
11
12 @Override
13 protected boolean userAddressInformationDesired() {
14 return false;
15 }
16
17 @Override
18 protected boolean loanedItemsDesired() {
19 return false;
20 }
21
22 @Override
23 protected boolean requestedItemsDesired() {
24 return false;
25 }
26
27 @Override
28 protected void preProcess(Map patronBlockParameters){
29 String blockedCardMessage = ((String) patronBlockParameters.get("blockedCardMessage"));
30 getOlePatronDocument().setGeneralBlock(true);
31 getOlePatronDocument().setGeneralBlockNotes(blockedCardMessage);
32 KRADServiceLocator.getBusinessObjectService().save(getOlePatronDocument());
33 }
34
35 }