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 public class ProposalOrganization extends PersistableBusinessObjectBase implements Primaryable, MutableInactivatable {
30
31 private String chartOfAccountsCode;
32 private String organizationCode;
33 private Long proposalNumber;
34 private boolean proposalPrimaryOrganizationIndicator;
35 private boolean active = true;
36
37 private Organization organization;
38 private Chart chartOfAccounts;
39
40
41
42
43 public ProposalOrganization() {
44 }
45
46
47
48
49
50
51 public String getChartOfAccountsCode() {
52 return chartOfAccountsCode;
53 }
54
55
56
57
58
59
60 public void setChartOfAccountsCode(String chartOfAccountsCode) {
61 this.chartOfAccountsCode = chartOfAccountsCode;
62 }
63
64
65
66
67
68
69
70 public String getOrganizationCode() {
71 return organizationCode;
72 }
73
74
75
76
77
78
79 public void setOrganizationCode(String organizationCode) {
80 this.organizationCode = organizationCode;
81 }
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 public boolean isProposalPrimaryOrganizationIndicator() {
106 return proposalPrimaryOrganizationIndicator;
107 }
108
109
110
111
112 public boolean isPrimary() {
113 return isProposalPrimaryOrganizationIndicator();
114 }
115
116
117
118
119 public void setProposalPrimaryOrganizationIndicator(boolean proposalPrimaryOrganizationIndicator) {
120 this.proposalPrimaryOrganizationIndicator = proposalPrimaryOrganizationIndicator;
121 }
122
123
124
125
126
127
128 public boolean isActive() {
129 return active;
130 }
131
132
133
134
135
136
137 public void setActive(boolean active) {
138 this.active = active;
139 }
140
141
142
143
144
145
146 public Organization getOrganization() {
147 return organization;
148 }
149
150
151
152
153
154
155
156 public void setOrganization(Organization organization) {
157 this.organization = organization;
158 }
159
160
161
162
163
164
165 public Chart getChartOfAccounts() {
166 return chartOfAccounts;
167 }
168
169
170
171
172
173
174
175 public void setChartOfAccounts(Chart chartOfAccounts) {
176 this.chartOfAccounts = chartOfAccounts;
177 }
178
179
180
181
182 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
183 LinkedHashMap m = new LinkedHashMap();
184 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
185 m.put("organizationCode", this.organizationCode);
186 if (this.proposalNumber != null) {
187 m.put("proposalNumber", this.proposalNumber.toString());
188 }
189 return m;
190 }
191
192
193
194
195
196
197 @Override
198 public String toString() {
199
200 return getChartOfAccountsCode() + "-" + getOrganizationCode() + " " + (isProposalPrimaryOrganizationIndicator() ? "primary" : "secondary");
201 }
202
203 }