View Javadoc
1   /*
2    * Copyright 2009 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.integration;
17  
18  import java.util.Collections;
19  import java.util.List;
20  import java.util.Map;
21  
22  import org.kuali.ole.sys.service.impl.OleModuleServiceImpl;
23  import org.kuali.rice.krad.bo.BusinessObject;
24  import org.kuali.rice.krad.bo.ExternalizableBusinessObject;
25  
26  public class UnimplementedKfsModuleServiceImpl extends OleModuleServiceImpl {
27  
28      public <T extends ExternalizableBusinessObject> T getExternalizableBusinessObject(Class<T> businessObjectClass, Map<String, Object> fieldValues) {
29          return null;
30      }
31  
32      public <T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsList(Class<T> businessObjectClass, Map<String, Object> fieldValues) {
33          return Collections.emptyList();
34      }
35  
36      public <T extends ExternalizableBusinessObject> List<T> getExternalizableBusinessObjectsListForLookup(Class<T> businessObjectClass, Map<String, Object> fieldValues, boolean unbounded) {
37          return Collections.emptyList();
38      }
39  
40      @SuppressWarnings("unchecked")
41      public List<? extends ExternalizableBusinessObject> retrieveExternalizableBusinessObjectsList(
42              BusinessObject businessObject, String externalizableRelationshipName, Class externalizableClazz) {
43          return Collections.emptyList();
44      }
45  
46      @SuppressWarnings("unchecked")
47      @Override
48      public boolean isExternalizableBusinessObjectInquirable(Class boClass) {
49          return false;
50      }
51  
52      @SuppressWarnings("unchecked")
53      @Override
54      public boolean isExternalizableBusinessObjectLookupable(Class boClass) {
55          return false;
56      }
57  
58      public <T extends ExternalizableBusinessObject> T retrieveExternalizableBusinessObjectIfNecessary(BusinessObject businessObject, T currentInstanceExternalizableBO, String externalizableRelationshipName) {
59          return currentInstanceExternalizableBO;
60      };
61  
62      @SuppressWarnings("unchecked")
63      @Override
64      public String getExternalizableBusinessObjectInquiryUrl(Class inquiryBusinessObjectClass, Map<String, String[]> parameters) {
65          return "";
66      }
67  
68      @SuppressWarnings("unchecked")
69      @Override
70      public String getExternalizableBusinessObjectLookupUrl(Class inquiryBusinessObjectClass, Map<String, String> parameters) {
71          return "";
72      }
73  
74      @Override
75      public boolean isExternalJob(String jobName) {
76          return false;
77      }
78  }