View Javadoc

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   * Created with IntelliJ IDEA.
14   * User: ?
15   * Date: 12/10/12
16   * Time: 6:24 PM
17   * To change this template use File | Settings | File Templates.
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  }