1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.service.impl;
17
18 import org.kuali.rice.krad.bo.PersistableBusinessObject;
19 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
20 import org.kuali.rice.krad.bo.PersistableBusinessObjectExtension;
21 import org.kuali.rice.krad.service.LegacyAppFrameworkAdapterService;
22 import org.kuali.rice.krad.service.LegacyDataAdapter;
23
24
25
26
27 @Deprecated
28 public class LegacyAppFrameworkAdapterServiceImpl implements LegacyAppFrameworkAdapterService{
29
30 private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(LegacyAppFrameworkAdapterServiceImpl.class);
31
32 private LegacyDataAdapter legacyDataAdapter;
33
34 public LegacyDataAdapter getLegacyDataAdapter() {
35 return legacyDataAdapter;
36 }
37
38 public void setLegacyDataAdapter(LegacyDataAdapter legacyDataAdapter) {
39 this.legacyDataAdapter = legacyDataAdapter;
40 }
41 @Deprecated
42 public void refresh(PersistableBusinessObjectBase persistableBusinessObjectBase) {
43 getLegacyDataAdapter().retrieveNonKeyFields(persistableBusinessObjectBase);
44 }
45 @Deprecated
46 public void refreshNonUpdateableReferences(PersistableBusinessObjectBase persistableBusinessObjectBase) {
47 getLegacyDataAdapter().refreshAllNonUpdatingReferences(persistableBusinessObjectBase);
48 }
49 @Deprecated
50 public void retrieveReferenceObject(PersistableBusinessObject persistableBusinessObject, String referenceObjectName) {
51 getLegacyDataAdapter().retrieveReferenceObject(persistableBusinessObject,referenceObjectName);
52 }
53
54 @Override
55 public boolean isPersistable(Class<?> objectClass) {
56 return getLegacyDataAdapter().isPersistable(objectClass);
57 }
58
59 @Override
60 public PersistableBusinessObjectExtension getExtension(
61 Class<? extends PersistableBusinessObject> businessObjectClass) throws InstantiationException, IllegalAccessException {
62 return (PersistableBusinessObjectExtension) getLegacyDataAdapter().getExtension(businessObjectClass);
63 }
64
65 @Override
66 public void refreshReferenceObject(PersistableBusinessObject businessObject, String referenceObjectName) {
67 getLegacyDataAdapter().refreshReferenceObject(businessObject, referenceObjectName);
68 }
69
70 }