1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.coa.businessobject;
17
18 import org.kuali.ole.sys.OLEConstants;
19 import org.kuali.ole.sys.context.SpringContext;
20 import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
21 import org.kuali.rice.kim.api.identity.Person;
22 import org.kuali.rice.krad.bo.KualiCodeBase;
23
24
25
26
27 public class ProjectCode extends KualiCodeBase implements MutableInactivatable {
28
29 private static final long serialVersionUID = 4529316062843227897L;
30
31 public static final String CACHE_NAME = OLEConstants.APPLICATION_NAMESPACE_CODE + "/" + "ProjectCode";
32
33 private String projectDescription;
34 private String projectManagerUniversalId;
35 private String chartOfAccountsCode;
36 private String organizationCode;
37
38 private Person projectManagerUniversal;
39 private Chart chartOfAccounts;
40 private Organization organization;
41
42
43
44
45 public ProjectCode() {
46 }
47
48
49
50
51
52
53 public String getProjectDescription() {
54 return projectDescription;
55 }
56
57
58
59
60
61
62 public void setProjectDescription(String projectDescription) {
63 this.projectDescription = projectDescription;
64 }
65
66 public Person getProjectManagerUniversal() {
67 projectManagerUniversal = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(projectManagerUniversalId, projectManagerUniversal);
68 return projectManagerUniversal;
69 }
70
71
72
73
74
75
76 public void setProjectManagerUniversal(Person projectManagerUniversal) {
77 this.projectManagerUniversal = projectManagerUniversal;
78 }
79
80
81
82
83
84
85 public Chart getChartOfAccounts() {
86 return chartOfAccounts;
87 }
88
89
90
91
92
93
94 public void setChartOfAccounts(Chart chartOfAccounts) {
95 this.chartOfAccounts = chartOfAccounts;
96 }
97
98
99
100
101
102
103 public Organization getOrganization() {
104 return organization;
105 }
106
107
108
109
110
111
112 public void setOrganization(Organization organization) {
113 this.organization = organization;
114 }
115
116
117
118
119 public String getChartOfAccountsCode() {
120 return chartOfAccountsCode;
121 }
122
123
124
125
126 public void setChartOfAccountsCode(String chartOfAccountsCode) {
127 this.chartOfAccountsCode = chartOfAccountsCode;
128 }
129
130
131
132
133 public String getOrganizationCode() {
134 return organizationCode;
135 }
136
137
138
139
140 public void setOrganizationCode(String organizationCode) {
141 this.organizationCode = organizationCode;
142 }
143
144
145
146
147 public String getProjectManagerUniversalId() {
148 return projectManagerUniversalId;
149 }
150
151
152
153
154 public void setProjectManagerUniversalId(String projectManagerUniversalId) {
155 this.projectManagerUniversalId = projectManagerUniversalId;
156 }
157
158 }
159