001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.kuali.module.chart.bo;
017:
018: import org.kuali.core.bo.KualiCodeBase;
019: import org.kuali.core.bo.user.UniversalUser;
020: import org.kuali.core.service.UniversalUserService;
021: import org.kuali.kfs.context.SpringContext;
022:
023: /**
024: *
025: */
026: public class ProjectCode extends KualiCodeBase {
027:
028: private static final long serialVersionUID = 4529316062843227897L;
029:
030: private String projectDescription;
031: private String projectManagerUniversalId;
032: private String chartOfAccountsCode;
033: private String organizationCode;
034:
035: private UniversalUser projectManagerUniversal;
036: private Chart chartOfAccounts;
037: private Org organization;
038:
039: /**
040: * Default no-arg constructor.
041: */
042: public ProjectCode() {
043: }
044:
045: /**
046: * Gets the projectDescription attribute.
047: *
048: * @return Returns the projectDescription
049: */
050: public String getProjectDescription() {
051: return projectDescription;
052: }
053:
054: /**
055: * Sets the projectDescription attribute.
056: *
057: * @param projectDescription The projectDescription to set.
058: */
059: public void setProjectDescription(String projectDescription) {
060: this .projectDescription = projectDescription;
061: }
062:
063: public UniversalUser getProjectManagerUniversal() {
064: projectManagerUniversal = SpringContext.getBean(
065: UniversalUserService.class)
066: .updateUniversalUserIfNecessary(
067: projectManagerUniversalId,
068: projectManagerUniversal);
069: return projectManagerUniversal;
070: }
071:
072: /**
073: * Sets the projectManagerUniversal attribute.
074: *
075: * @param projectManagerUniversal The projectManagerUniversal to set.
076: */
077: public void setProjectManagerUniversal(
078: UniversalUser projectManagerUniversal) {
079: this .projectManagerUniversal = projectManagerUniversal;
080: }
081:
082: /**
083: * Gets the chartOfAccounts attribute.
084: *
085: * @return Returns the chartOfAccounts
086: */
087: public Chart getChartOfAccounts() {
088: return chartOfAccounts;
089: }
090:
091: /**
092: * Sets the chartOfAccounts attribute.
093: *
094: * @param chartOfAccounts The chartOfAccounts to set.
095: */
096: public void setChartOfAccounts(Chart chartOfAccounts) {
097: this .chartOfAccounts = chartOfAccounts;
098: }
099:
100: /**
101: * Gets the organization attribute.
102: *
103: * @return Returns the organization
104: */
105: public Org getOrganization() {
106: return organization;
107: }
108:
109: /**
110: * Sets the organization attribute.
111: *
112: * @param organization The organization to set.
113: */
114: public void setOrganization(Org organization) {
115: this .organization = organization;
116: }
117:
118: /**
119: * @return Returns the chartOfAccountsCode.
120: */
121: public String getChartOfAccountsCode() {
122: return chartOfAccountsCode;
123: }
124:
125: /**
126: * @param chartOfAccountsCode The chartOfAccountsCode to set.
127: */
128: public void setChartOfAccountsCode(String chartOfAccountsCode) {
129: this .chartOfAccountsCode = chartOfAccountsCode;
130: }
131:
132: /**
133: * @return Returns the organizationCode.
134: */
135: public String getOrganizationCode() {
136: return organizationCode;
137: }
138:
139: /**
140: * @param organizationCode The organizationCode to set.
141: */
142: public void setOrganizationCode(String organizationCode) {
143: this .organizationCode = organizationCode;
144: }
145:
146: /**
147: * @return Returns the projectManagerUniversalId.
148: */
149: public String getProjectManagerUniversalId() {
150: return projectManagerUniversalId;
151: }
152:
153: /**
154: * @param projectManagerUniversalId The projectManagerUniversalId to set.
155: */
156: public void setProjectManagerUniversalId(
157: String projectManagerUniversalId) {
158: this.projectManagerUniversalId = projectManagerUniversalId;
159: }
160: }
|