1 package org.kuali.ole.deliver.bo.drools;
2
3 import org.apache.commons.lang3.StringUtils;
4 import org.kuali.rice.krad.bo.PersistableBusinessObject;
5 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
6
7 import java.util.ArrayList;
8 import java.util.Collection;
9 import java.util.List;
10
11
12
13
14 public class DroolsEditorBo extends PersistableBusinessObjectBase {
15
16 private String editorId;
17 private String editorType;
18 private String fileName;
19 private List<DroolsRuleBo> droolsRuleBos = new ArrayList<>();
20 private List<DroolsRuleBo> renewRuleBos = new ArrayList<>();
21 private List<DroolsRuleBo> noticesRuleBos = new ArrayList<>();
22 private List<DroolsRuleBo> checkoutRuleBos = new ArrayList<>();
23 private List<DroolsRuleBo> checkinRuleBos = new ArrayList<>();
24
25
26 public String getEditorId() {
27 return editorId;
28 }
29
30 public void setEditorId(String editorId) {
31 this.editorId = editorId;
32 }
33
34 public String getEditorType() {
35 return editorType;
36 }
37
38 public void setEditorType(String editorType) {
39 this.editorType = editorType;
40 }
41
42 public List<DroolsRuleBo> getDroolsRuleBos() {
43 return droolsRuleBos;
44 }
45
46 public void setDroolsRuleBos(List<DroolsRuleBo> droolsRuleBos) {
47 this.droolsRuleBos = droolsRuleBos;
48 }
49
50 @Override
51 public List<Collection<PersistableBusinessObject>> buildListOfDeletionAwareLists() {
52 List managedLists = super.buildListOfDeletionAwareLists();
53 managedLists.add(getDroolsRuleBos());
54 managedLists.add(getCheckoutRuleBos());
55 managedLists.add(getCheckinRuleBos());
56 managedLists.add(getRenewRuleBos());
57 managedLists.add(getNoticesRuleBos());
58 return managedLists;
59 }
60
61 public List<DroolsRuleBo> getRenewRuleBos() {
62 return renewRuleBos;
63 }
64
65 public void setRenewRuleBos(List<DroolsRuleBo> renewRuleBos) {
66 this.renewRuleBos = renewRuleBos;
67 }
68
69 public List<DroolsRuleBo> getNoticesRuleBos() {
70 return noticesRuleBos;
71 }
72
73 public void setNoticesRuleBos(List<DroolsRuleBo> noticesRuleBos) {
74 this.noticesRuleBos = noticesRuleBos;
75 }
76
77 public List<DroolsRuleBo> getCheckoutRuleBos() {
78 return checkoutRuleBos;
79 }
80
81 public void setCheckoutRuleBos(List<DroolsRuleBo> checkoutRuleBos) {
82 this.checkoutRuleBos = checkoutRuleBos;
83 }
84
85 public List<DroolsRuleBo> getCheckinRuleBos() {
86 return checkinRuleBos;
87 }
88
89 public void setCheckinRuleBos(List<DroolsRuleBo> checkinRuleBos) {
90 this.checkinRuleBos = checkinRuleBos;
91 }
92
93 public String getFileName() {
94 return fileName;
95 }
96
97 public void setFileName(String fileName) {
98 this.fileName = fileName;
99 }
100 }