1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.module.cg.businessobject;
18
19 import java.util.LinkedHashMap;
20
21 import org.kuali.ole.coa.businessobject.Chart;
22 import org.kuali.ole.coa.businessobject.Organization;
23 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
24 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
25
26
27
28
29
30 public class AwardOrganization extends PersistableBusinessObjectBase implements Primaryable, MutableInactivatable {
31
32 private String chartOfAccountsCode;
33 private String organizationCode;
34 private Long proposalNumber;
35 private boolean awardPrimaryOrganizationIndicator;
36 private boolean active = true;
37
38 private Chart chartOfAccounts;
39 private Organization organization;
40
41
42
43
44 public AwardOrganization() {
45
46 }
47
48
49
50
51
52
53 public String getChartOfAccountsCode() {
54 return chartOfAccountsCode;
55 }
56
57
58
59
60
61
62 public void setChartOfAccountsCode(String chartOfAccountsCode) {
63 this.chartOfAccountsCode = chartOfAccountsCode;
64 }
65
66
67
68
69
70
71 public String getOrganizationCode() {
72 return organizationCode;
73 }
74
75
76
77
78
79
80 public void setOrganizationCode(String organizationCode) {
81 this.organizationCode = organizationCode;
82 }
83
84
85
86
87
88
89 public Long getProposalNumber() {
90 return proposalNumber;
91 }
92
93
94
95
96
97
98 public void setProposalNumber(Long proposalNumber) {
99 this.proposalNumber = proposalNumber;
100 }
101
102
103
104
105
106
107 public boolean isAwardPrimaryOrganizationIndicator() {
108 return awardPrimaryOrganizationIndicator;
109 }
110
111
112
113
114
115
116 public void setAwardPrimaryOrganizationIndicator(boolean awardPrimaryOrganizationIndicator) {
117 this.awardPrimaryOrganizationIndicator = awardPrimaryOrganizationIndicator;
118 }
119
120
121
122
123
124
125 public Chart getChartOfAccounts() {
126 return chartOfAccounts;
127 }
128
129
130
131
132
133
134
135
136 @Deprecated
137 public void setChartOfAccounts(Chart chartOfAccounts) {
138 this.chartOfAccounts = chartOfAccounts;
139 }
140
141
142
143
144
145
146 public Organization getOrganization() {
147 return organization;
148 }
149
150
151
152
153
154
155
156
157 @Deprecated
158 public void setOrganization(Organization organization) {
159 this.organization = organization;
160 }
161
162
163
164
165 public boolean isPrimary() {
166 return isAwardPrimaryOrganizationIndicator();
167 }
168
169
170
171
172 public boolean isActive() {
173 return active;
174 }
175
176
177
178
179 public void setActive(boolean active) {
180 this.active = active;
181 }
182
183
184
185
186 @SuppressWarnings("unchecked")
187
188 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
189 LinkedHashMap m = new LinkedHashMap();
190 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
191 m.put("organizationCode", this.organizationCode);
192 if (this.proposalNumber != null) {
193 m.put("proposalNumber", this.proposalNumber.toString());
194 }
195 return m;
196 }
197 }