1 package org.kuali.ole.service.impl;
2
3 import org.kuali.ole.select.bo.OleBibProtectedField;
4 import org.kuali.ole.service.OverlayValidationService;
5 import org.kuali.rice.krad.service.BusinessObjectService;
6 import org.kuali.rice.krad.service.KRADServiceLocator;
7
8 import java.util.HashMap;
9 import java.util.List;
10 import java.util.Map;
11
12
13
14
15
16
17
18
19
20 public class OverlayValidationServiceImpl implements OverlayValidationService {
21
22 @Override
23 public List<OleBibProtectedField> getGloballyProtectedFields(String tag) throws Exception {
24
25 BusinessObjectService businessObjectService = KRADServiceLocator.getBusinessObjectService();
26 Map<String,String> criteria = new HashMap<String,String>();
27 criteria.put("tag",tag);
28 List<OleBibProtectedField> oleBibProtectedFieldList = (List<OleBibProtectedField>) businessObjectService.findMatching(OleBibProtectedField.class, criteria);
29 return oleBibProtectedFieldList;
30 }
31 }