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.financial.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Options;
023:
024: /**
025: * This class is used to represent a fiscal year function control business object.
026: */
027: public class FiscalYearFunctionControl extends
028: PersistableBusinessObjectBase {
029:
030: private Integer universityFiscalYear;
031: private String financialSystemFunctionControlCode;
032: private boolean financialSystemFunctionActiveIndicator;
033:
034: private FunctionControlCode functionControl;
035: private Options universityFiscal;
036:
037: /**
038: * Default constructor.
039: */
040: public FiscalYearFunctionControl() {
041:
042: }
043:
044: /**
045: * Gets the universityFiscalYear attribute.
046: *
047: * @return Returns the universityFiscalYear
048: */
049: public Integer getUniversityFiscalYear() {
050: return universityFiscalYear;
051: }
052:
053: /**
054: * Sets the universityFiscalYear attribute.
055: *
056: * @param universityFiscalYear The universityFiscalYear to set.
057: */
058: public void setUniversityFiscalYear(Integer universityFiscalYear) {
059: this .universityFiscalYear = universityFiscalYear;
060: }
061:
062: /**
063: * Gets the financialSystemFunctionControlCode attribute.
064: *
065: * @return Returns the financialSystemFunctionControlCode
066: */
067: public String getFinancialSystemFunctionControlCode() {
068: return financialSystemFunctionControlCode;
069: }
070:
071: /**
072: * Sets the financialSystemFunctionControlCode attribute.
073: *
074: * @param financialSystemFunctionControlCode The financialSystemFunctionControlCode to set.
075: */
076: public void setFinancialSystemFunctionControlCode(
077: String financialSystemFunctionControlCode) {
078: this .financialSystemFunctionControlCode = financialSystemFunctionControlCode;
079: }
080:
081: /**
082: * Gets the financialSystemFunctionActiveIndicator attribute.
083: *
084: * @return Returns the financialSystemFunctionActiveIndicator
085: */
086: public boolean isFinancialSystemFunctionActiveIndicator() {
087: return financialSystemFunctionActiveIndicator;
088: }
089:
090: /**
091: * Sets the financialSystemFunctionActiveIndicator attribute.
092: *
093: * @param financialSystemFunctionActiveIndicator The financialSystemFunctionActiveIndicator to set.
094: */
095: public void setFinancialSystemFunctionActiveIndicator(
096: boolean financialSystemFunctionActiveIndicator) {
097: this .financialSystemFunctionActiveIndicator = financialSystemFunctionActiveIndicator;
098: }
099:
100: /**
101: * @return Returns the functionControl.
102: */
103: public FunctionControlCode getFunctionControl() {
104: return functionControl;
105: }
106:
107: /**
108: * @param functionControl The functionControl to set.
109: * @deprecated
110: */
111: public void setFunctionControl(FunctionControlCode functionControl) {
112: this .functionControl = functionControl;
113: }
114:
115: /**
116: * Implementing equals since I need contains to behave reasonably.
117: *
118: * @see java.lang.Object#equals(java.lang.Object)
119: */
120: public boolean equals(Object obj) {
121: boolean equal = false;
122:
123: if (obj != null) {
124: if (this .getClass().equals(obj.getClass())) {
125: FiscalYearFunctionControl fiscalYearFunctionControl = (FiscalYearFunctionControl) obj;
126:
127: if (this .getUniversityFiscalYear().equals(
128: fiscalYearFunctionControl
129: .getUniversityFiscalYear())) {
130: equal = true;
131: }
132: }
133: }
134:
135: return equal;
136: }
137:
138: /**
139: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
140: */
141: protected LinkedHashMap toStringMapper() {
142: LinkedHashMap m = new LinkedHashMap();
143: if (this .universityFiscalYear != null) {
144: m.put("universityFiscalYear", this .universityFiscalYear
145: .toString());
146: }
147: m.put("financialSystemFunctionControlCode",
148: this .financialSystemFunctionControlCode);
149: return m;
150: }
151:
152: /**
153: * Gets the universityFiscal attribute.
154: *
155: * @return Returns the universityFiscal.
156: */
157: public Options getUniversityFiscal() {
158: return universityFiscal;
159: }
160:
161: /**
162: * Sets the universityFiscal attribute value.
163: *
164: * @param universityFiscal The universityFiscal to set.
165: */
166: public void setUniversityFiscal(Options universityFiscal) {
167: this.universityFiscal = universityFiscal;
168: }
169:
170: }
|