1 package org.kuali.ole.select.bo;
2
3 import org.kuali.ole.OLEConstants;
4 import org.kuali.ole.select.document.OLEEResourceRecordDocument;
5 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6 import org.kuali.rice.krad.service.KRADServiceLocator;
7 import org.kuali.rice.krad.service.KRADServiceLocatorWeb;
8
9 import java.util.HashMap;
10 import java.util.Map;
11
12
13
14
15 public class OLELinkedEresource extends PersistableBusinessObjectBase {
16
17 private String linkedEresourceId;
18
19 private String linkedERSIdentifier;
20
21 private String oleERSIdentifier;
22
23 private String relationShipType;
24
25 private String chainString;
26
27 private boolean removeRelationShip;
28
29 private OLEEResourceRecordDocument oleeResourceRecordDocument;
30
31 public String getLinkedEresourceId() {
32 return linkedEresourceId;
33 }
34
35 public void setLinkedEresourceId(String linkedEresourceId) {
36 this.linkedEresourceId = linkedEresourceId;
37 }
38
39 public String getLinkedERSIdentifier() {
40 return linkedERSIdentifier;
41 }
42
43 public void setLinkedERSIdentifier(String linkedERSIdentifier) {
44 this.linkedERSIdentifier = linkedERSIdentifier;
45 }
46
47 public String getOleERSIdentifier() {
48 return oleERSIdentifier;
49 }
50
51 public void setOleERSIdentifier(String oleERSIdentifier) {
52 this.oleERSIdentifier = oleERSIdentifier;
53 }
54
55 public String getRelationShipType() {
56 return relationShipType;
57 }
58
59 public void setRelationShipType(String relationShipType) {
60 this.relationShipType = relationShipType;
61 }
62
63 public OLEEResourceRecordDocument getOleeResourceRecordDocument() {
64 Map eResMap = new HashMap();
65 eResMap.put(OLEConstants.OLEEResourceRecord.ERESOURCE_IDENTIFIER, this.linkedERSIdentifier);
66 oleeResourceRecordDocument = KRADServiceLocator.getBusinessObjectService().findByPrimaryKey(OLEEResourceRecordDocument.class, eResMap);
67 return oleeResourceRecordDocument;
68 }
69
70 public void setOleeResourceRecordDocument(OLEEResourceRecordDocument oleeResourceRecordDocument) {
71 this.oleeResourceRecordDocument = oleeResourceRecordDocument;
72 }
73
74 public boolean isRemoveRelationShip() {
75 return removeRelationShip;
76 }
77
78 public void setRemoveRelationShip(boolean removeRelationShip) {
79 this.removeRelationShip = removeRelationShip;
80 }
81
82 public String getChainString() {
83 return chainString;
84 }
85
86 public void setChainString(String chainString) {
87 this.chainString = chainString;
88 }
89 }