001: /*
002: * Copyright 2006-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:
017: package org.kuali.module.labor.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Options;
023: import org.kuali.module.chart.bo.Chart;
024: import org.kuali.module.chart.bo.ObjectCode;
025:
026: /**
027: * Labor business object for LaborObject.
028: */
029: public class LaborObject extends PersistableBusinessObjectBase {
030: private Integer universityFiscalYear;
031: private String chartOfAccountsCode;
032: private String financialObjectCode;
033: private boolean detailPositionRequiredIndicator;
034: private boolean financialObjectHoursRequiredIndicator;
035: private String financialObjectPayTypeCode;
036: private String financialObjectFringeOrSalaryCode;
037: private String positionObjectGroupCode;
038: private ObjectCode financialObject;
039: private Chart chartOfAccounts;
040: private PositionObjectGroup positionObjectGroup;
041: private Options option;
042:
043: /**
044: * Default constructor.
045: */
046: public LaborObject() {
047:
048: }
049:
050: /**
051: * Gets the universityFiscalYear
052: *
053: * @return Returns the universityFiscalYear
054: */
055: public Integer getUniversityFiscalYear() {
056: return universityFiscalYear;
057: }
058:
059: /**
060: * Sets the universityFiscalYear
061: *
062: * @param universityFiscalYear The universityFiscalYear to set.
063: */
064: public void setUniversityFiscalYear(Integer universityFiscalYear) {
065: this .universityFiscalYear = universityFiscalYear;
066: }
067:
068: /**
069: * Gets the chartOfAccountsCode
070: *
071: * @return Returns the chartOfAccountsCode
072: */
073: public String getChartOfAccountsCode() {
074: return chartOfAccountsCode;
075: }
076:
077: /**
078: * Sets the chartOfAccountsCode
079: *
080: * @param chartOfAccountsCode The chartOfAccountsCode to set.
081: */
082: public void setChartOfAccountsCode(String chartOfAccountsCode) {
083: this .chartOfAccountsCode = chartOfAccountsCode;
084: }
085:
086: /**
087: * Gets the financialObjectCode
088: *
089: * @return Returns the financialObjectCode
090: */
091: public String getFinancialObjectCode() {
092: return financialObjectCode;
093: }
094:
095: /**
096: * Sets the financialObjectCode
097: *
098: * @param financialObjectCode The financialObjectCode to set.
099: */
100: public void setFinancialObjectCode(String financialObjectCode) {
101: this .financialObjectCode = financialObjectCode;
102: }
103:
104: /**
105: * Gets the detailPositionRequiredIndicator
106: *
107: * @return Returns the detailPositionRequiredIndicator
108: */
109: public boolean isDetailPositionRequiredIndicator() {
110: return detailPositionRequiredIndicator;
111: }
112:
113: /**
114: * Sets the detailPositionRequiredIndicator
115: *
116: * @param detailPositionRequiredIndicator The detailPositionRequiredIndicator to set.
117: */
118: public void setDetailPositionRequiredIndicator(
119: boolean detailPositionRequiredIndicator) {
120: this .detailPositionRequiredIndicator = detailPositionRequiredIndicator;
121: }
122:
123: /**
124: * Gets the financialObjectHoursRequiredIndicator
125: *
126: * @return Returns the financialObjectHoursRequiredIndicator
127: */
128: public boolean isFinancialObjectHoursRequiredIndicator() {
129: return financialObjectHoursRequiredIndicator;
130: }
131:
132: /**
133: * Sets the financialObjectHoursRequiredIndicator
134: *
135: * @param financialObjectHoursRequiredIndicator The financialObjectHoursRequiredIndicator to set.
136: */
137: public void setFinancialObjectHoursRequiredIndicator(
138: boolean financialObjectHoursRequiredIndicator) {
139: this .financialObjectHoursRequiredIndicator = financialObjectHoursRequiredIndicator;
140: }
141:
142: /**
143: * Gets the financialObjectPayTypeCode
144: *
145: * @return Returns the financialObjectPayTypeCode
146: */
147: public String getFinancialObjectPayTypeCode() {
148: return financialObjectPayTypeCode;
149: }
150:
151: /**
152: * Sets the financialObjectPayTypeCode
153: *
154: * @param financialObjectPayTypeCode The financialObjectPayTypeCode to set.
155: */
156: public void setFinancialObjectPayTypeCode(
157: String financialObjectPayTypeCode) {
158: this .financialObjectPayTypeCode = financialObjectPayTypeCode;
159: }
160:
161: /**
162: * Gets the financialObjectFringeOrSalaryCode
163: *
164: * @return Returns the financialObjectFringeOrSalaryCode
165: */
166: public String getFinancialObjectFringeOrSalaryCode() {
167: return financialObjectFringeOrSalaryCode;
168: }
169:
170: /**
171: * Sets the financialObjectFringeOrSalaryCode
172: *
173: * @param financialObjectFringeOrSalaryCode The financialObjectFringeOrSalaryCode to set.
174: */
175: public void setFinancialObjectFringeOrSalaryCode(
176: String financialObjectFringeOrSalaryCode) {
177: this .financialObjectFringeOrSalaryCode = financialObjectFringeOrSalaryCode;
178: }
179:
180: /**
181: * Gets the positionObjectGroupCode
182: *
183: * @return Returns the positionObjectGroupCode
184: */
185: public String getPositionObjectGroupCode() {
186: return positionObjectGroupCode;
187: }
188:
189: /**
190: * Sets the positionObjectGroupCode
191: *
192: * @param positionObjectGroupCode The positionObjectGroupCode to set.
193: */
194: public void setPositionObjectGroupCode(
195: String positionObjectGroupCode) {
196: this .positionObjectGroupCode = positionObjectGroupCode;
197: }
198:
199: /**
200: * Gets the financialObject
201: *
202: * @return Returns the financialObject
203: */
204: public ObjectCode getFinancialObject() {
205: return financialObject;
206: }
207:
208: /**
209: * Sets the financialObject
210: *
211: * @param financialObject The financialObject to set.
212: */
213: @Deprecated
214: public void setFinancialObject(ObjectCode financialObject) {
215: this .financialObject = financialObject;
216: }
217:
218: /**
219: * Gets the chartOfAccounts
220: *
221: * @return Returns the chartOfAccounts
222: */
223: public Chart getChartOfAccounts() {
224: return chartOfAccounts;
225: }
226:
227: /**
228: * Sets the chartOfAccounts
229: *
230: * @param chartOfAccounts The chartOfAccounts to set.
231: */
232: @Deprecated
233: public void setChartOfAccounts(Chart chartOfAccounts) {
234: this .chartOfAccounts = chartOfAccounts;
235: }
236:
237: /**
238: * Gets the positionObjectGroup
239: *
240: * @return Returns the positionObjectGroup.
241: */
242: public PositionObjectGroup getPositionObjectGroup() {
243: return positionObjectGroup;
244: }
245:
246: /**
247: * Sets the positionObjectGroup
248: *
249: * @param positionObjectGroup The positionObjectGroup to set.
250: */
251: public void setPositionObjectGroup(
252: PositionObjectGroup positionObjectGroup) {
253: this .positionObjectGroup = positionObjectGroup;
254: }
255:
256: /**
257: * Gets the option
258: *
259: * @return Returns the option.
260: */
261: public Options getOption() {
262: return option;
263: }
264:
265: /**
266: * Sets the option
267: *
268: * @param option The option to set.
269: */
270: public void setOption(Options option) {
271: this .option = option;
272: }
273:
274: /**
275: * construct the key list of the business object.
276: *
277: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
278: */
279: protected LinkedHashMap toStringMapper() {
280: LinkedHashMap m = new LinkedHashMap();
281: if (this .universityFiscalYear != null) {
282: m.put("universityFiscalYear", this .universityFiscalYear
283: .toString());
284: }
285: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
286: m.put("financialObjectCode", this.financialObjectCode);
287:
288: return m;
289: }
290: }
|