0001: /*
0002: * Copyright 2005-2007 The Kuali Foundation.
0003: *
0004: * Licensed under the Educational Community License, Version 1.0 (the "License");
0005: * you may not use this file except in compliance with the License.
0006: * You may obtain a copy of the License at
0007: *
0008: * http://www.opensource.org/licenses/ecl1.php
0009: *
0010: * Unless required by applicable law or agreed to in writing, software
0011: * distributed under the License is distributed on an "AS IS" BASIS,
0012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013: * See the License for the specific language governing permissions and
0014: * limitations under the License.
0015: */
0016:
0017: package org.kuali.module.chart.bo;
0018:
0019: import java.sql.Timestamp;
0020: import java.util.Calendar;
0021: import java.util.Date;
0022: import java.util.LinkedHashMap;
0023: import java.util.List;
0024:
0025: import org.apache.commons.lang.StringUtils;
0026: import org.apache.commons.lang.time.DateUtils;
0027: import org.apache.ojb.broker.PersistenceBroker;
0028: import org.apache.ojb.broker.PersistenceBrokerException;
0029: import org.kuali.core.bo.Campus;
0030: import org.kuali.core.bo.PersistableBusinessObjectBase;
0031: import org.kuali.core.bo.user.UniversalUser;
0032: import org.kuali.core.service.DateTimeService;
0033: import org.kuali.core.service.UniversalUserService;
0034: import org.kuali.kfs.bo.PostalZipCode;
0035: import org.kuali.kfs.bo.State;
0036: import org.kuali.kfs.context.SpringContext;
0037: import org.kuali.module.chart.bo.codes.BudgetRecordingLevel;
0038: import org.kuali.module.chart.bo.codes.SufficientFundsCode;
0039: import org.kuali.module.chart.service.SubFundGroupService;
0040:
0041: /**
0042: *
0043: */
0044: public class PriorYearAccount extends PersistableBusinessObjectBase
0045: implements AccountIntf {
0046: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
0047: .getLogger(PriorYearAccount.class);
0048:
0049: private String chartOfAccountsCode;
0050: private String accountNumber;
0051: private String accountName;
0052: private boolean accountsFringesBnftIndicator;
0053: private Timestamp accountRestrictedStatusDate;
0054: private String accountCityName;
0055: private String accountStateCode;
0056: private String accountStreetAddress;
0057: private String accountZipCode;
0058: private Timestamp accountCreateDate;
0059: private Timestamp accountEffectiveDate;
0060: private Timestamp accountExpirationDate;
0061: private Integer awardPeriodEndYear;
0062: private String awardPeriodEndMonth;
0063: private Integer awardPeriodBeginYear;
0064: private String awardPeriodBeginMonth;
0065: private String acctIndirectCostRcvyTypeCd;
0066: private String acctCustomIndCstRcvyExclCd;
0067: private String financialIcrSeriesIdentifier;
0068: private boolean accountInFinancialProcessingIndicator;
0069: private String budgetRecordingLevelCode;
0070: private String accountSufficientFundsCode;
0071: private boolean pendingAcctSufficientFundsIndicator;
0072: private boolean extrnlFinEncumSufficntFndIndicator;
0073: private boolean intrnlFinEncumSufficntFndIndicator;
0074: private boolean finPreencumSufficientFundIndicator;
0075: private boolean financialObjectivePrsctrlIndicator;
0076: private String accountCfdaNumber;
0077: private boolean accountOffCampusIndicator;
0078: private boolean accountClosedIndicator;
0079:
0080: private String accountFiscalOfficerSystemIdentifier;
0081: private String accountsSupervisorySystemsIdentifier;
0082: private String accountManagerSystemIdentifier;
0083: private String organizationCode;
0084: private String accountTypeCode;
0085: private String accountPhysicalCampusCode;
0086: private String subFundGroupCode;
0087: private String financialHigherEdFunctionCd;
0088: private String accountRestrictedStatusCode;
0089: private String reportsToChartOfAccountsCode;
0090: private String reportsToAccountNumber;
0091: private String continuationFinChrtOfAcctCd;
0092: private String continuationAccountNumber;
0093: private String endowmentIncomeAcctFinCoaCd;
0094: private String endowmentIncomeAccountNumber;
0095: private String contractControlFinCoaCode;
0096: private String contractControlAccountNumber;
0097: private String incomeStreamFinancialCoaCode;
0098: private String incomeStreamAccountNumber;
0099: private String indirectCostRcvyFinCoaCode;
0100: private String indirectCostRecoveryAcctNbr;
0101:
0102: private Chart chartOfAccounts;
0103: private Org organization;
0104: private AcctType accountType;
0105: private Campus accountPhysicalCampus;
0106: private State accountState;
0107: private SubFundGroup subFundGroup;
0108: private HigherEdFunction financialHigherEdFunction;
0109: private RestrictedStatus accountRestrictedStatus;
0110: private Account reportsToAccount;
0111: private Account continuationAccount;
0112: private Account endowmentIncomeAccount;
0113: private Account contractControlAccount;
0114: private Account incomeStreamAccount;
0115: private Account indirectCostRecoveryAcct;
0116: private UniversalUser accountFiscalOfficerUser;
0117: private UniversalUser accountSupervisoryUser;
0118: private UniversalUser accountManagerUser;
0119: private PostalZipCode postalZipCode;
0120: private BudgetRecordingLevel budgetRecordingLevel;
0121: private SufficientFundsCode sufficientFundsCode;
0122:
0123: // Several kinds of Dummy Attributes for dividing sections on Inquiry page
0124: private String accountResponsibilitySectionBlank;
0125: private String accountResponsibilitySection;
0126: private String contractsAndGrantsSectionBlank;
0127: private String contractsAndGrantsSection;
0128: private String guidelinesAndPurposeSectionBlank;
0129: private String guidelinesAndPurposeSection;
0130: private String accountDescriptionSectionBlank;
0131: private String accountDescriptionSection;
0132:
0133: private AccountGuideline accountGuideline;
0134: private AccountDescription accountDescription;
0135:
0136: private List subAccounts;
0137: private boolean forContractsAndGrants;
0138:
0139: /**
0140: * Default no-arg constructor.
0141: */
0142: public PriorYearAccount() {
0143: }
0144:
0145: public void afterLookup(PersistenceBroker persistenceBroker)
0146: throws PersistenceBrokerException {
0147: super .afterLookup(persistenceBroker);
0148: // This is needed to put a value in the object so the persisted XML has a flag that
0149: // can be used in routing to determine if an account is a C&G Account
0150: forContractsAndGrants = SpringContext.getBean(
0151: SubFundGroupService.class).isForContractsAndGrants(
0152: getSubFundGroup());
0153: }
0154:
0155: /**
0156: * Gets the accountNumber attribute.
0157: *
0158: * @return Returns the accountNumber
0159: */
0160: public String getAccountNumber() {
0161: return accountNumber;
0162: }
0163:
0164: /**
0165: * Sets the accountNumber attribute.
0166: *
0167: * @param accountNumber The accountNumber to set.
0168: */
0169: public void setAccountNumber(String accountNumber) {
0170: this .accountNumber = accountNumber;
0171: }
0172:
0173: /**
0174: * Gets the accountName attribute.
0175: *
0176: * @return Returns the accountName
0177: */
0178: public String getAccountName() {
0179: return accountName;
0180: }
0181:
0182: /**
0183: * Sets the accountName attribute.
0184: *
0185: * @param accountName The accountName to set.
0186: */
0187: public void setAccountName(String accountName) {
0188: this .accountName = accountName;
0189: }
0190:
0191: /**
0192: * Gets the _AccountsFringesBnftIndicator_ attribute.
0193: *
0194: * @return Returns the _AccountsFringesBnftIndicator_
0195: */
0196: public boolean isAccountsFringesBnftIndicator() {
0197: return accountsFringesBnftIndicator;
0198: }
0199:
0200: /**
0201: * Sets the _AccountsFringesBnftIndicator_ attribute.
0202: *
0203: * @param _AccountsFringesBnftIndicator_ The _AccountsFringesBnftIndicator_ to set.
0204: */
0205: public void setAccountsFringesBnftIndicator(
0206: boolean _AccountsFringesBnftIndicator_) {
0207: this .accountsFringesBnftIndicator = _AccountsFringesBnftIndicator_;
0208: }
0209:
0210: /**
0211: * Gets the accountRestrictedStatusDate attribute.
0212: *
0213: * @return Returns the accountRestrictedStatusDate
0214: */
0215: public Timestamp getAccountRestrictedStatusDate() {
0216: return accountRestrictedStatusDate;
0217: }
0218:
0219: /**
0220: * Sets the accountRestrictedStatusDate attribute.
0221: *
0222: * @param accountRestrictedStatusDate The accountRestrictedStatusDate to set.
0223: */
0224: public void setAccountRestrictedStatusDate(
0225: Timestamp accountRestrictedStatusDate) {
0226: this .accountRestrictedStatusDate = accountRestrictedStatusDate;
0227: }
0228:
0229: /**
0230: * Gets the accountCityName attribute.
0231: *
0232: * @return Returns the accountCityName
0233: */
0234: public String getAccountCityName() {
0235: return accountCityName;
0236: }
0237:
0238: /**
0239: * Sets the accountCityName attribute.
0240: *
0241: * @param accountCityName The accountCityName to set.
0242: */
0243: public void setAccountCityName(String accountCityName) {
0244: this .accountCityName = accountCityName;
0245: }
0246:
0247: /**
0248: * Gets the accountStateCode attribute.
0249: *
0250: * @return Returns the accountStateCode
0251: */
0252: public String getAccountStateCode() {
0253: return accountStateCode;
0254: }
0255:
0256: /**
0257: * Sets the accountStateCode attribute.
0258: *
0259: * @param accountStateCode The accountStateCode to set.
0260: */
0261: public void setAccountStateCode(String accountStateCode) {
0262: this .accountStateCode = accountStateCode;
0263: }
0264:
0265: /**
0266: * Gets the accountStreetAddress attribute.
0267: *
0268: * @return Returns the accountStreetAddress
0269: */
0270: public String getAccountStreetAddress() {
0271: return accountStreetAddress;
0272: }
0273:
0274: /**
0275: * Sets the accountStreetAddress attribute.
0276: *
0277: * @param accountStreetAddress The accountStreetAddress to set.
0278: */
0279: public void setAccountStreetAddress(String accountStreetAddress) {
0280: this .accountStreetAddress = accountStreetAddress;
0281: }
0282:
0283: /**
0284: * Gets the accountZipCode attribute.
0285: *
0286: * @return Returns the accountZipCode
0287: */
0288: public String getAccountZipCode() {
0289: return accountZipCode;
0290: }
0291:
0292: /**
0293: * Sets the accountZipCode attribute.
0294: *
0295: * @param accountZipCode The accountZipCode to set.
0296: */
0297: public void setAccountZipCode(String accountZipCode) {
0298: this .accountZipCode = accountZipCode;
0299: }
0300:
0301: /**
0302: * Gets the accountCreateDate attribute.
0303: *
0304: * @return Returns the accountCreateDate
0305: */
0306: public Timestamp getAccountCreateDate() {
0307: return accountCreateDate;
0308: }
0309:
0310: /**
0311: * Sets the accountCreateDate attribute.
0312: *
0313: * @param accountCreateDate The accountCreateDate to set.
0314: */
0315: public void setAccountCreateDate(Timestamp accountCreateDate) {
0316: this .accountCreateDate = accountCreateDate;
0317: }
0318:
0319: /**
0320: * Gets the accountEffectiveDate attribute.
0321: *
0322: * @return Returns the accountEffectiveDate
0323: */
0324: public Timestamp getAccountEffectiveDate() {
0325: return accountEffectiveDate;
0326: }
0327:
0328: /**
0329: * Sets the accountEffectiveDate attribute.
0330: *
0331: * @param accountEffectiveDate The accountEffectiveDate to set.
0332: */
0333: public void setAccountEffectiveDate(Timestamp accountEffectiveDate) {
0334: this .accountEffectiveDate = accountEffectiveDate;
0335: }
0336:
0337: /**
0338: * Gets the accountExpirationDate attribute.
0339: *
0340: * @return Returns the accountExpirationDate
0341: */
0342: public Timestamp getAccountExpirationDate() {
0343: return accountExpirationDate;
0344: }
0345:
0346: /**
0347: * Sets the accountExpirationDate attribute.
0348: *
0349: * @param accountExpirationDate The accountExpirationDate to set.
0350: */
0351: public void setAccountExpirationDate(Timestamp accountExpirationDate) {
0352: this .accountExpirationDate = accountExpirationDate;
0353: }
0354:
0355: /**
0356: * This method determines whether the account is expired or not. Note that if Expiration Date is the same as today, then this
0357: * will return false. It will only return true if the account expiration date is one day earlier than today or earlier. Note
0358: * that this logic ignores all time components when doing the comparison. It only does the before/after comparison based on date
0359: * values, not time-values.
0360: *
0361: * @return true or false based on the logic outlined above
0362: */
0363: public boolean isExpired() {
0364: LOG.debug("entering isExpired()");
0365: // dont even bother trying to test if the accountExpirationDate is null
0366: if (this .accountExpirationDate == null) {
0367: return false;
0368: }
0369:
0370: return this .isExpired(SpringContext.getBean(
0371: DateTimeService.class).getCurrentCalendar());
0372: }
0373:
0374: /**
0375: * This method determines whether the account is expired or not. Note that if Expiration Date is the same date as testDate, then
0376: * this will return false. It will only return true if the account expiration date is one day earlier than testDate or earlier.
0377: * Note that this logic ignores all time components when doing the comparison. It only does the before/after comparison based on
0378: * date values, not time-values.
0379: *
0380: * @param testDate - Calendar instance with the date to test the Account's Expiration Date against. This is most commonly set to
0381: * today's date.
0382: * @return true or false based on the logic outlined above
0383: */
0384: public boolean isExpired(Calendar testDate) {
0385: if (LOG.isDebugEnabled()) {
0386: LOG.debug("entering isExpired(" + testDate + ")");
0387: }
0388:
0389: // dont even bother trying to test if the accountExpirationDate is null
0390: if (this .accountExpirationDate == null) {
0391: return false;
0392: }
0393:
0394: // remove any time-components from the testDate
0395: testDate = DateUtils.truncate(testDate, Calendar.DAY_OF_MONTH);
0396:
0397: // get a calendar reference to the Account Expiration
0398: // date, and remove any time components
0399: Calendar acctDate = Calendar.getInstance();
0400: acctDate.setTime(this .accountExpirationDate);
0401: acctDate = DateUtils.truncate(acctDate, Calendar.DAY_OF_MONTH);
0402:
0403: // if the Account Expiration Date is before the testDate
0404: if (acctDate.before(testDate)) {
0405: return true;
0406: } else {
0407: return false;
0408: }
0409: }
0410:
0411: /**
0412: * This method determines whether the account is expired or not. Note that if Expiration Date is the same date as testDate, then
0413: * this will return false. It will only return true if the account expiration date is one day earlier than testDate or earlier.
0414: * Note that this logic ignores all time components when doing the comparison. It only does the before/after comparison based on
0415: * date values, not time-values.
0416: *
0417: * @param testDate - java.util.Date instance with the date to test the Account's Expiration Date against. This is most commonly
0418: * set to today's date.
0419: * @return true or false based on the logic outlined above
0420: */
0421: public boolean isExpired(Date testDate) {
0422:
0423: // dont even bother trying to test if the accountExpirationDate is null
0424: if (this .accountExpirationDate == null) {
0425: return false;
0426: }
0427:
0428: Calendar acctDate = Calendar.getInstance();
0429: acctDate.setTime(testDate);
0430: return isExpired(acctDate);
0431: }
0432:
0433: /**
0434: * Gets the awardPeriodEndYear attribute.
0435: *
0436: * @return Returns the awardPeriodEndYear
0437: */
0438: public Integer getAwardPeriodEndYear() {
0439: return awardPeriodEndYear;
0440: }
0441:
0442: /**
0443: * Sets the awardPeriodEndYear attribute.
0444: *
0445: * @param awardPeriodEndYear The awardPeriodEndYear to set.
0446: */
0447: public void setAwardPeriodEndYear(Integer awardPeriodEndYear) {
0448: this .awardPeriodEndYear = awardPeriodEndYear;
0449: }
0450:
0451: /**
0452: * Gets the awardPeriodEndMonth attribute.
0453: *
0454: * @return Returns the awardPeriodEndMonth
0455: */
0456: public String getAwardPeriodEndMonth() {
0457: return awardPeriodEndMonth;
0458: }
0459:
0460: /**
0461: * Sets the awardPeriodEndMonth attribute.
0462: *
0463: * @param awardPeriodEndMonth The awardPeriodEndMonth to set.
0464: */
0465: public void setAwardPeriodEndMonth(String awardPeriodEndMonth) {
0466: this .awardPeriodEndMonth = awardPeriodEndMonth;
0467: }
0468:
0469: /**
0470: * Gets the awardPeriodBeginYear attribute.
0471: *
0472: * @return Returns the awardPeriodBeginYear
0473: */
0474: public Integer getAwardPeriodBeginYear() {
0475: return awardPeriodBeginYear;
0476: }
0477:
0478: /**
0479: * Sets the awardPeriodBeginYear attribute.
0480: *
0481: * @param awardPeriodBeginYear The awardPeriodBeginYear to set.
0482: */
0483: public void setAwardPeriodBeginYear(Integer awardPeriodBeginYear) {
0484: this .awardPeriodBeginYear = awardPeriodBeginYear;
0485: }
0486:
0487: /**
0488: * Gets the awardPeriodBeginMonth attribute.
0489: *
0490: * @return Returns the awardPeriodBeginMonth
0491: */
0492: public String getAwardPeriodBeginMonth() {
0493: return awardPeriodBeginMonth;
0494: }
0495:
0496: /**
0497: * Sets the awardPeriodBeginMonth attribute.
0498: *
0499: * @param awardPeriodBeginMonth The awardPeriodBeginMonth to set.
0500: */
0501: public void setAwardPeriodBeginMonth(String awardPeriodBeginMonth) {
0502: this .awardPeriodBeginMonth = awardPeriodBeginMonth;
0503: }
0504:
0505: /**
0506: * Gets the acctIndirectCostRcvyTypeCd attribute.
0507: *
0508: * @return Returns the acctIndirectCostRcvyTypeCd
0509: */
0510: public String getAcctIndirectCostRcvyTypeCd() {
0511: return acctIndirectCostRcvyTypeCd;
0512: }
0513:
0514: /**
0515: * Sets the acctIndirectCostRcvyTypeCd attribute.
0516: *
0517: * @param acctIndirectCostRcvyTypeCd The acctIndirectCostRcvyTypeCd to set.
0518: */
0519: public void setAcctIndirectCostRcvyTypeCd(
0520: String acctIndirectCostRcvyTypeCd) {
0521: this .acctIndirectCostRcvyTypeCd = acctIndirectCostRcvyTypeCd;
0522: }
0523:
0524: /**
0525: * Gets the acctCustomIndCstRcvyExclCd attribute.
0526: *
0527: * @return Returns the acctCustomIndCstRcvyExclCd
0528: */
0529: public String getAcctCustomIndCstRcvyExclCd() {
0530: return acctCustomIndCstRcvyExclCd;
0531: }
0532:
0533: /**
0534: * Sets the acctCustomIndCstRcvyExclCd attribute.
0535: *
0536: * @param acctCustomIndCstRcvyExclCd The acctCustomIndCstRcvyExclCd to set.
0537: */
0538: public void setAcctCustomIndCstRcvyExclCd(
0539: String acctCustomIndCstRcvyExclCd) {
0540: this .acctCustomIndCstRcvyExclCd = acctCustomIndCstRcvyExclCd;
0541: }
0542:
0543: /**
0544: * Gets the financialIcrSeriesIdentifier attribute.
0545: *
0546: * @return Returns the financialIcrSeriesIdentifier
0547: */
0548: public String getFinancialIcrSeriesIdentifier() {
0549: return financialIcrSeriesIdentifier;
0550: }
0551:
0552: /**
0553: * Sets the financialIcrSeriesIdentifier attribute.
0554: *
0555: * @param financialIcrSeriesIdentifier The financialIcrSeriesIdentifier to set.
0556: */
0557: public void setFinancialIcrSeriesIdentifier(
0558: String financialIcrSeriesIdentifier) {
0559: this .financialIcrSeriesIdentifier = financialIcrSeriesIdentifier;
0560: }
0561:
0562: /**
0563: * Gets the accountInFinancialProcessingIndicator attribute.
0564: *
0565: * @return Returns the accountInFinancialProcessingIndicator
0566: */
0567: public boolean getAccountInFinancialProcessingIndicator() {
0568: return accountInFinancialProcessingIndicator;
0569: }
0570:
0571: /**
0572: * Sets the accountInFinancialProcessingIndicator attribute.
0573: *
0574: * @param accountInFinancialProcessingIndicator The accountInFinancialProcessingIndicator to set.
0575: */
0576: public void setAccountInFinancialProcessingIndicator(
0577: boolean accountInFinancialProcessingIndicator) {
0578: this .accountInFinancialProcessingIndicator = accountInFinancialProcessingIndicator;
0579: }
0580:
0581: /**
0582: * Gets the budgetRecordingLevelCode attribute.
0583: *
0584: * @return Returns the budgetRecordingLevelCode
0585: */
0586: public String getBudgetRecordingLevelCode() {
0587: return budgetRecordingLevelCode;
0588: }
0589:
0590: /**
0591: * Sets the budgetRecordingLevelCode attribute.
0592: *
0593: * @param budgetRecordingLevelCode The budgetRecordingLevelCode to set.
0594: */
0595: public void setBudgetRecordingLevelCode(
0596: String budgetRecordingLevelCode) {
0597: this .budgetRecordingLevelCode = budgetRecordingLevelCode;
0598: }
0599:
0600: /**
0601: * Gets the accountSufficientFundsCode attribute.
0602: *
0603: * @return Returns the accountSufficientFundsCode
0604: */
0605: public String getAccountSufficientFundsCode() {
0606: return accountSufficientFundsCode;
0607: }
0608:
0609: /**
0610: * Sets the accountSufficientFundsCode attribute.
0611: *
0612: * @param accountSufficientFundsCode The accountSufficientFundsCode to set.
0613: */
0614: public void setAccountSufficientFundsCode(
0615: String accountSufficientFundsCode) {
0616: this .accountSufficientFundsCode = accountSufficientFundsCode;
0617: }
0618:
0619: /**
0620: * Gets the pendingAcctSufficientFundsIndicator attribute.
0621: *
0622: * @return Returns the pendingAcctSufficientFundsIndicator
0623: */
0624: public boolean isPendingAcctSufficientFundsIndicator() {
0625: return pendingAcctSufficientFundsIndicator;
0626: }
0627:
0628: /**
0629: * Sets the pendingAcctSufficientFundsIndicator attribute.
0630: *
0631: * @param pendingAcctSufficientFundsIndicator The pendingAcctSufficientFundsIndicator to set.
0632: */
0633: public void setPendingAcctSufficientFundsIndicator(
0634: boolean pendingAcctSufficientFundsIndicator) {
0635: this .pendingAcctSufficientFundsIndicator = pendingAcctSufficientFundsIndicator;
0636: }
0637:
0638: /**
0639: * Gets the extrnlFinEncumSufficntFndIndicator attribute.
0640: *
0641: * @return Returns the extrnlFinEncumSufficntFndIndicator
0642: */
0643: public boolean isExtrnlFinEncumSufficntFndIndicator() {
0644: return extrnlFinEncumSufficntFndIndicator;
0645: }
0646:
0647: /**
0648: * Sets the extrnlFinEncumSufficntFndIndicator attribute.
0649: *
0650: * @param extrnlFinEncumSufficntFndIndicator The extrnlFinEncumSufficntFndIndicator to set.
0651: */
0652: public void setExtrnlFinEncumSufficntFndIndicator(
0653: boolean extrnlFinEncumSufficntFndIndicator) {
0654: this .extrnlFinEncumSufficntFndIndicator = extrnlFinEncumSufficntFndIndicator;
0655: }
0656:
0657: /**
0658: * Gets the intrnlFinEncumSufficntFndIndicator attribute.
0659: *
0660: * @return Returns the intrnlFinEncumSufficntFndIndicator
0661: */
0662: public boolean isIntrnlFinEncumSufficntFndIndicator() {
0663: return intrnlFinEncumSufficntFndIndicator;
0664: }
0665:
0666: /**
0667: * Sets the intrnlFinEncumSufficntFndIndicator attribute.
0668: *
0669: * @param intrnlFinEncumSufficntFndIndicator The intrnlFinEncumSufficntFndIndicator to set.
0670: */
0671: public void setIntrnlFinEncumSufficntFndIndicator(
0672: boolean intrnlFinEncumSufficntFndIndicator) {
0673: this .intrnlFinEncumSufficntFndIndicator = intrnlFinEncumSufficntFndIndicator;
0674: }
0675:
0676: /**
0677: * Gets the finPreencumSufficientFundIndicator attribute.
0678: *
0679: * @return Returns the finPreencumSufficientFundIndicator
0680: */
0681: public boolean isFinPreencumSufficientFundIndicator() {
0682: return finPreencumSufficientFundIndicator;
0683: }
0684:
0685: /**
0686: * Sets the finPreencumSufficientFundIndicator attribute.
0687: *
0688: * @param finPreencumSufficientFundIndicator The finPreencumSufficientFundIndicator to set.
0689: */
0690: public void setFinPreencumSufficientFundIndicator(
0691: boolean finPreencumSufficientFundIndicator) {
0692: this .finPreencumSufficientFundIndicator = finPreencumSufficientFundIndicator;
0693: }
0694:
0695: /**
0696: * Gets the _FinancialObjectivePrsctrlIndicator_ attribute.
0697: *
0698: * @return Returns the _FinancialObjectivePrsctrlIndicator_
0699: */
0700: public boolean isFinancialObjectivePrsctrlIndicator() {
0701: return financialObjectivePrsctrlIndicator;
0702: }
0703:
0704: /**
0705: * Sets the _FinancialObjectivePrsctrlIndicator_ attribute.
0706: *
0707: * @param _FinancialObjectivePrsctrlIndicator_ The _FinancialObjectivePrsctrlIndicator_ to set.
0708: */
0709: public void setFinancialObjectivePrsctrlIndicator(
0710: boolean _FinancialObjectivePrsctrlIndicator_) {
0711: this .financialObjectivePrsctrlIndicator = _FinancialObjectivePrsctrlIndicator_;
0712: }
0713:
0714: /**
0715: * Gets the accountCfdaNumber attribute.
0716: *
0717: * @return Returns the accountCfdaNumber
0718: */
0719: public String getAccountCfdaNumber() {
0720: return accountCfdaNumber;
0721: }
0722:
0723: /**
0724: * Sets the accountCfdaNumber attribute.
0725: *
0726: * @param accountCfdaNumber The accountCfdaNumber to set.
0727: */
0728: public void setAccountCfdaNumber(String accountCfdaNumber) {
0729: this .accountCfdaNumber = accountCfdaNumber;
0730: }
0731:
0732: /**
0733: * Gets the accountOffCampusIndicator attribute.
0734: *
0735: * @return Returns the accountOffCampusIndicator
0736: */
0737: public boolean isAccountOffCampusIndicator() {
0738: return accountOffCampusIndicator;
0739: }
0740:
0741: /**
0742: * Sets the accountOffCampusIndicator attribute.
0743: *
0744: * @param accountOffCampusIndicator The accountOffCampusIndicator to set.
0745: */
0746: public void setAccountOffCampusIndicator(
0747: boolean accountOffCampusIndicator) {
0748: this .accountOffCampusIndicator = accountOffCampusIndicator;
0749: }
0750:
0751: /**
0752: * Gets the accountClosedIndicator attribute.
0753: *
0754: * @return Returns the accountClosedIndicator
0755: */
0756: public boolean isAccountClosedIndicator() {
0757: return accountClosedIndicator;
0758: }
0759:
0760: /**
0761: * Sets the accountClosedIndicator attribute.
0762: *
0763: * @param accountClosedIndicator The accountClosedIndicator to set.
0764: */
0765: public void setAccountClosedIndicator(boolean accountClosedIndicator) {
0766: this .accountClosedIndicator = accountClosedIndicator;
0767: }
0768:
0769: /**
0770: * Gets the chartOfAccounts attribute.
0771: *
0772: * @return Returns the chartOfAccounts
0773: */
0774: public Chart getChartOfAccounts() {
0775: return chartOfAccounts;
0776: }
0777:
0778: /**
0779: * Sets the chartOfAccounts attribute.
0780: *
0781: * @param chartOfAccounts The chartOfAccounts to set.
0782: * @deprecated
0783: */
0784: public void setChartOfAccounts(Chart chartOfAccounts) {
0785: this .chartOfAccounts = chartOfAccounts;
0786: }
0787:
0788: /**
0789: * Gets the organization attribute.
0790: *
0791: * @return Returns the organization
0792: */
0793: public Org getOrganization() {
0794: return organization;
0795: }
0796:
0797: /**
0798: * Sets the organization attribute.
0799: *
0800: * @param organization The organization to set.
0801: * @deprecated
0802: */
0803: public void setOrganization(Org organization) {
0804: this .organization = organization;
0805: }
0806:
0807: /**
0808: * Gets the accountType attribute.
0809: *
0810: * @return Returns the accountType
0811: */
0812: public AcctType getAccountType() {
0813: return accountType;
0814: }
0815:
0816: /**
0817: * Sets the accountType attribute.
0818: *
0819: * @param accountType The accountType to set.
0820: * @deprecated
0821: */
0822: public void setAccountType(AcctType accountType) {
0823: this .accountType = accountType;
0824: }
0825:
0826: /**
0827: * Gets the accountPhysicalCampus attribute.
0828: *
0829: * @return Returns the accountPhysicalCampus
0830: */
0831: public Campus getAccountPhysicalCampus() {
0832: return accountPhysicalCampus;
0833: }
0834:
0835: /**
0836: * Sets the accountPhysicalCampus attribute.
0837: *
0838: * @param accountPhysicalCampus The accountPhysicalCampus to set.
0839: * @deprecated
0840: */
0841: public void setAccountPhysicalCampus(Campus accountPhysicalCampus) {
0842: this .accountPhysicalCampus = accountPhysicalCampus;
0843: }
0844:
0845: /**
0846: * Gets the accountState attribute
0847: *
0848: * @return Returns the accountState
0849: */
0850: public State getAccountState() {
0851: return accountState;
0852: }
0853:
0854: /**
0855: * Sets the accountState attribute
0856: *
0857: * @param state
0858: * @deprecated
0859: */
0860: public void setAccountState(State state) {
0861: this .accountState = state;
0862: }
0863:
0864: /**
0865: * Gets the subFundGroup attribute.
0866: *
0867: * @return Returns the subFundGroup
0868: */
0869: public SubFundGroup getSubFundGroup() {
0870: return subFundGroup;
0871: }
0872:
0873: /**
0874: * Sets the subFundGroup attribute.
0875: *
0876: * @param subFundGroup The subFundGroup to set.
0877: * @deprecated
0878: */
0879: public void setSubFundGroup(SubFundGroup subFundGroup) {
0880: this .subFundGroup = subFundGroup;
0881: }
0882:
0883: /**
0884: * Gets the financialHigherEdFunction attribute.
0885: *
0886: * @return Returns the financialHigherEdFunction
0887: */
0888: public HigherEdFunction getFinancialHigherEdFunction() {
0889: return financialHigherEdFunction;
0890: }
0891:
0892: /**
0893: * Sets the financialHigherEdFunction attribute.
0894: *
0895: * @param financialHigherEdFunction The financialHigherEdFunction to set.
0896: * @deprecated
0897: */
0898: public void setFinancialHigherEdFunction(
0899: HigherEdFunction financialHigherEdFunction) {
0900: this .financialHigherEdFunction = financialHigherEdFunction;
0901: }
0902:
0903: /**
0904: * Gets the accountRestrictedStatus attribute.
0905: *
0906: * @return Returns the accountRestrictedStatus
0907: */
0908: public RestrictedStatus getAccountRestrictedStatus() {
0909: return accountRestrictedStatus;
0910: }
0911:
0912: /**
0913: * Sets the accountRestrictedStatus attribute.
0914: *
0915: * @param accountRestrictedStatus The accountRestrictedStatus to set.
0916: * @deprecated
0917: */
0918: public void setAccountRestrictedStatus(
0919: RestrictedStatus accountRestrictedStatus) {
0920: this .accountRestrictedStatus = accountRestrictedStatus;
0921: }
0922:
0923: /**
0924: * Gets the reportsToAccount attribute.
0925: *
0926: * @return Returns the reportsToAccount
0927: */
0928: public Account getReportsToAccount() {
0929: return reportsToAccount;
0930: }
0931:
0932: /**
0933: * Sets the reportsToAccount attribute.
0934: *
0935: * @param reportsToAccount The reportsToAccount to set.
0936: * @deprecated
0937: */
0938: public void setReportsToAccount(Account reportsToAccount) {
0939: this .reportsToAccount = reportsToAccount;
0940: }
0941:
0942: /**
0943: * Gets the endowmentIncomeAccount attribute.
0944: *
0945: * @return Returns the endowmentIncomeAccount
0946: */
0947: public Account getEndowmentIncomeAccount() {
0948: return endowmentIncomeAccount;
0949: }
0950:
0951: /**
0952: * Sets the endowmentIncomeAccount attribute.
0953: *
0954: * @param endowmentIncomeAccount The endowmentIncomeAccount to set.
0955: * @deprecated
0956: */
0957: public void setEndowmentIncomeAccount(Account endowmentIncomeAccount) {
0958: this .endowmentIncomeAccount = endowmentIncomeAccount;
0959: }
0960:
0961: /**
0962: * Gets the contractControlAccount attribute.
0963: *
0964: * @return Returns the contractControlAccount
0965: */
0966: public Account getContractControlAccount() {
0967: return contractControlAccount;
0968: }
0969:
0970: /**
0971: * Sets the contractControlAccount attribute.
0972: *
0973: * @param contractControlAccount The contractControlAccount to set.
0974: * @deprecated
0975: */
0976: public void setContractControlAccount(Account contractControlAccount) {
0977: this .contractControlAccount = contractControlAccount;
0978: }
0979:
0980: /**
0981: * Gets the incomeStreamAccount attribute.
0982: *
0983: * @return Returns the incomeStreamAccount
0984: */
0985: public Account getIncomeStreamAccount() {
0986: return incomeStreamAccount;
0987: }
0988:
0989: /**
0990: * Sets the incomeStreamAccount attribute.
0991: *
0992: * @param incomeStreamAccount The incomeStreamAccount to set.
0993: * @deprecated
0994: */
0995: public void setIncomeStreamAccount(Account incomeStreamAccount) {
0996: this .incomeStreamAccount = incomeStreamAccount;
0997: }
0998:
0999: /**
1000: * Gets the indirectCostRecoveryAcct attribute.
1001: *
1002: * @return Returns the indirectCostRecoveryAcct
1003: */
1004: public Account getIndirectCostRecoveryAcct() {
1005: return indirectCostRecoveryAcct;
1006: }
1007:
1008: /**
1009: * Sets the indirectCostRecoveryAcct attribute.
1010: *
1011: * @param indirectCostRecoveryAcct The indirectCostRecoveryAcct to set.
1012: * @deprecated
1013: */
1014: public void setIndirectCostRecoveryAcct(
1015: Account indirectCostRecoveryAcct) {
1016: this .indirectCostRecoveryAcct = indirectCostRecoveryAcct;
1017: }
1018:
1019: public UniversalUser getAccountFiscalOfficerUser() {
1020: accountFiscalOfficerUser = SpringContext.getBean(
1021: UniversalUserService.class)
1022: .updateUniversalUserIfNecessary(
1023: accountFiscalOfficerSystemIdentifier,
1024: accountFiscalOfficerUser);
1025: return accountFiscalOfficerUser;
1026: }
1027:
1028: /**
1029: * @param accountFiscalOfficerUser The accountFiscalOfficerUser to set.
1030: * @deprecated
1031: */
1032: public void setAccountFiscalOfficerUser(
1033: UniversalUser accountFiscalOfficerUser) {
1034: this .accountFiscalOfficerUser = accountFiscalOfficerUser;
1035: }
1036:
1037: public UniversalUser getAccountManagerUser() {
1038: accountManagerUser = SpringContext.getBean(
1039: UniversalUserService.class)
1040: .updateUniversalUserIfNecessary(
1041: accountManagerSystemIdentifier,
1042: accountManagerUser);
1043: return accountManagerUser;
1044: }
1045:
1046: /**
1047: * @param accountManagerUser The accountManagerUser to set.
1048: * @deprecated
1049: */
1050: public void setAccountManagerUser(UniversalUser accountManagerUser) {
1051: this .accountManagerUser = accountManagerUser;
1052: }
1053:
1054: public UniversalUser getAccountSupervisoryUser() {
1055: accountSupervisoryUser = SpringContext.getBean(
1056: UniversalUserService.class)
1057: .updateUniversalUserIfNecessary(
1058: accountsSupervisorySystemsIdentifier,
1059: accountSupervisoryUser);
1060: return accountSupervisoryUser;
1061: }
1062:
1063: /**
1064: * @param accountSupervisoryUser The accountSupervisoryUser to set.
1065: * @deprecated
1066: */
1067: public void setAccountSupervisoryUser(
1068: UniversalUser accountSupervisoryUser) {
1069: this .accountSupervisoryUser = accountSupervisoryUser;
1070: }
1071:
1072: /**
1073: * @return Returns the continuationAccount.
1074: */
1075: public Account getContinuationAccount() {
1076: return continuationAccount;
1077: }
1078:
1079: /**
1080: * @param continuationAccount The continuationAccount to set.
1081: * @deprecated
1082: */
1083: public void setContinuationAccount(Account continuationAccount) {
1084: this .continuationAccount = continuationAccount;
1085: }
1086:
1087: /**
1088: * @return Returns the accountGuideline.
1089: */
1090: public AccountGuideline getAccountGuideline() {
1091: return accountGuideline;
1092: }
1093:
1094: /**
1095: * @param accountGuideline The accountGuideline to set.
1096: * @deprecated
1097: */
1098: public void setAccountGuideline(AccountGuideline accountGuideline) {
1099: this .accountGuideline = accountGuideline;
1100: }
1101:
1102: /**
1103: * Gets the accountDescription attribute.
1104: *
1105: * @return Returns the accountDescription.
1106: */
1107: public AccountDescription getAccountDescription() {
1108: return accountDescription;
1109: }
1110:
1111: /**
1112: * Sets the accountDescription attribute value.
1113: *
1114: * @param accountDescription The accountDescription to set.
1115: */
1116: public void setAccountDescription(
1117: AccountDescription accountDescription) {
1118: this .accountDescription = accountDescription;
1119: }
1120:
1121: /**
1122: * @return Returns the subAccounts.
1123: */
1124: public List getSubAccounts() {
1125: return subAccounts;
1126: }
1127:
1128: /**
1129: * @param subAccounts The subAccounts to set.
1130: */
1131: public void setSubAccounts(List subAccounts) {
1132: this .subAccounts = subAccounts;
1133: }
1134:
1135: /**
1136: * @return Returns the chartOfAccountsCode.
1137: */
1138: public String getChartOfAccountsCode() {
1139: return chartOfAccountsCode;
1140: }
1141:
1142: /**
1143: * @param chartOfAccountsCode The chartOfAccountsCode to set.
1144: */
1145: public void setChartOfAccountsCode(String chartOfAccountsCode) {
1146: this .chartOfAccountsCode = chartOfAccountsCode;
1147: }
1148:
1149: /**
1150: * @return Returns the accountFiscalOfficerSystemIdentifier.
1151: */
1152: public String getAccountFiscalOfficerSystemIdentifier() {
1153: return accountFiscalOfficerSystemIdentifier;
1154: }
1155:
1156: /**
1157: * @param accountFiscalOfficerSystemIdentifier The accountFiscalOfficerSystemIdentifier to set.
1158: */
1159: public void setAccountFiscalOfficerSystemIdentifier(
1160: String accountFiscalOfficerSystemIdentifier) {
1161: this .accountFiscalOfficerSystemIdentifier = accountFiscalOfficerSystemIdentifier;
1162: }
1163:
1164: /**
1165: * @return Returns the accountManagerSystemIdentifier.
1166: */
1167: public String getAccountManagerSystemIdentifier() {
1168: return accountManagerSystemIdentifier;
1169: }
1170:
1171: /**
1172: * @param accountManagerSystemIdentifier The accountManagerSystemIdentifier to set.
1173: */
1174: public void setAccountManagerSystemIdentifier(
1175: String accountManagerSystemIdentifier) {
1176: this .accountManagerSystemIdentifier = accountManagerSystemIdentifier;
1177: }
1178:
1179: /**
1180: * @return Returns the accountPhysicalCampusCode.
1181: */
1182: public String getAccountPhysicalCampusCode() {
1183: return accountPhysicalCampusCode;
1184: }
1185:
1186: /**
1187: * @param accountPhysicalCampusCode The accountPhysicalCampusCode to set.
1188: */
1189: public void setAccountPhysicalCampusCode(
1190: String accountPhysicalCampusCode) {
1191: this .accountPhysicalCampusCode = accountPhysicalCampusCode;
1192: }
1193:
1194: /**
1195: * @return Returns the accountRestrictedStatusCode.
1196: */
1197: public String getAccountRestrictedStatusCode() {
1198: return accountRestrictedStatusCode;
1199: }
1200:
1201: /**
1202: * @param accountRestrictedStatusCode The accountRestrictedStatusCode to set.
1203: */
1204: public void setAccountRestrictedStatusCode(
1205: String accountRestrictedStatusCode) {
1206: this .accountRestrictedStatusCode = accountRestrictedStatusCode;
1207: }
1208:
1209: /**
1210: * @return Returns the accountsSupervisorySystemsIdentifier.
1211: */
1212: public String getAccountsSupervisorySystemsIdentifier() {
1213: return accountsSupervisorySystemsIdentifier;
1214: }
1215:
1216: /**
1217: * @param accountsSupervisorySystemsIdentifier The accountsSupervisorySystemsIdentifier to set.
1218: */
1219: public void setAccountsSupervisorySystemsIdentifier(
1220: String accountsSupervisorySystemsIdentifier) {
1221: this .accountsSupervisorySystemsIdentifier = accountsSupervisorySystemsIdentifier;
1222: }
1223:
1224: /**
1225: * @return Returns the accountTypeCode.
1226: */
1227: public String getAccountTypeCode() {
1228: return accountTypeCode;
1229: }
1230:
1231: /**
1232: * @param accountTypeCode The accountTypeCode to set.
1233: */
1234: public void setAccountTypeCode(String accountTypeCode) {
1235: this .accountTypeCode = accountTypeCode;
1236: }
1237:
1238: /**
1239: * @return Returns the continuationAccountNumber.
1240: */
1241: public String getContinuationAccountNumber() {
1242: return continuationAccountNumber;
1243: }
1244:
1245: /**
1246: * @param continuationAccountNumber The continuationAccountNumber to set.
1247: */
1248: public void setContinuationAccountNumber(
1249: String continuationAccountNumber) {
1250: this .continuationAccountNumber = continuationAccountNumber;
1251: }
1252:
1253: /**
1254: * @return Returns the continuationFinChrtOfAcctCd.
1255: */
1256: public String getContinuationFinChrtOfAcctCd() {
1257: return continuationFinChrtOfAcctCd;
1258: }
1259:
1260: /**
1261: * @param continuationFinChrtOfAcctCd The continuationFinChrtOfAcctCd to set.
1262: */
1263: public void setContinuationFinChrtOfAcctCd(
1264: String continuationFinChrtOfAcctCd) {
1265: this .continuationFinChrtOfAcctCd = continuationFinChrtOfAcctCd;
1266: }
1267:
1268: /**
1269: * @return Returns the contractControlAccountNumber.
1270: */
1271: public String getContractControlAccountNumber() {
1272: return contractControlAccountNumber;
1273: }
1274:
1275: /**
1276: * @param contractControlAccountNumber The contractControlAccountNumber to set.
1277: */
1278: public void setContractControlAccountNumber(
1279: String contractControlAccountNumber) {
1280: this .contractControlAccountNumber = contractControlAccountNumber;
1281: }
1282:
1283: /**
1284: * @return Returns the contractControlFinCoaCode.
1285: */
1286: public String getContractControlFinCoaCode() {
1287: return contractControlFinCoaCode;
1288: }
1289:
1290: /**
1291: * @param contractControlFinCoaCode The contractControlFinCoaCode to set.
1292: */
1293: public void setContractControlFinCoaCode(
1294: String contractControlFinCoaCode) {
1295: this .contractControlFinCoaCode = contractControlFinCoaCode;
1296: }
1297:
1298: /**
1299: * @return Returns the endowmentIncomeAccountNumber.
1300: */
1301: public String getEndowmentIncomeAccountNumber() {
1302: return endowmentIncomeAccountNumber;
1303: }
1304:
1305: /**
1306: * @param endowmentIncomeAccountNumber The endowmentIncomeAccountNumber to set.
1307: */
1308: public void setEndowmentIncomeAccountNumber(
1309: String endowmentIncomeAccountNumber) {
1310: this .endowmentIncomeAccountNumber = endowmentIncomeAccountNumber;
1311: }
1312:
1313: /**
1314: * @return Returns the endowmentIncomeAcctFinCoaCd.
1315: */
1316: public String getEndowmentIncomeAcctFinCoaCd() {
1317: return endowmentIncomeAcctFinCoaCd;
1318: }
1319:
1320: /**
1321: * @param endowmentIncomeAcctFinCoaCd The endowmentIncomeAcctFinCoaCd to set.
1322: */
1323: public void setEndowmentIncomeAcctFinCoaCd(
1324: String endowmentIncomeAcctFinCoaCd) {
1325: this .endowmentIncomeAcctFinCoaCd = endowmentIncomeAcctFinCoaCd;
1326: }
1327:
1328: /**
1329: * @return Returns the financialHigherEdFunctionCd.
1330: */
1331: public String getFinancialHigherEdFunctionCd() {
1332: return financialHigherEdFunctionCd;
1333: }
1334:
1335: /**
1336: * @param financialHigherEdFunctionCd The financialHigherEdFunctionCd to set.
1337: */
1338: public void setFinancialHigherEdFunctionCd(
1339: String financialHigherEdFunctionCd) {
1340: this .financialHigherEdFunctionCd = financialHigherEdFunctionCd;
1341: }
1342:
1343: /**
1344: * @return Returns the incomeStreamAccountNumber.
1345: */
1346: public String getIncomeStreamAccountNumber() {
1347: return incomeStreamAccountNumber;
1348: }
1349:
1350: /**
1351: * @param incomeStreamAccountNumber The incomeStreamAccountNumber to set.
1352: */
1353: public void setIncomeStreamAccountNumber(
1354: String incomeStreamAccountNumber) {
1355: this .incomeStreamAccountNumber = incomeStreamAccountNumber;
1356: }
1357:
1358: /**
1359: * @return Returns the incomeStreamFinancialCoaCode.
1360: */
1361: public String getIncomeStreamFinancialCoaCode() {
1362: return incomeStreamFinancialCoaCode;
1363: }
1364:
1365: /**
1366: * @param incomeStreamFinancialCoaCode The incomeStreamFinancialCoaCode to set.
1367: */
1368: public void setIncomeStreamFinancialCoaCode(
1369: String incomeStreamFinancialCoaCode) {
1370: this .incomeStreamFinancialCoaCode = incomeStreamFinancialCoaCode;
1371: }
1372:
1373: /**
1374: * @return Returns the indirectCostRcvyFinCoaCode.
1375: */
1376: public String getIndirectCostRcvyFinCoaCode() {
1377: return indirectCostRcvyFinCoaCode;
1378: }
1379:
1380: /**
1381: * @param indirectCostRcvyFinCoaCode The indirectCostRcvyFinCoaCode to set.
1382: */
1383: public void setIndirectCostRcvyFinCoaCode(
1384: String indirectCostRcvyFinCoaCode) {
1385: this .indirectCostRcvyFinCoaCode = indirectCostRcvyFinCoaCode;
1386: }
1387:
1388: /**
1389: * @return Returns the indirectCostRecoveryAcctNbr.
1390: */
1391: public String getIndirectCostRecoveryAcctNbr() {
1392: return indirectCostRecoveryAcctNbr;
1393: }
1394:
1395: /**
1396: * @param indirectCostRecoveryAcctNbr The indirectCostRecoveryAcctNbr to set.
1397: */
1398: public void setIndirectCostRecoveryAcctNbr(
1399: String indirectCostRecoveryAcctNbr) {
1400: this .indirectCostRecoveryAcctNbr = indirectCostRecoveryAcctNbr;
1401: }
1402:
1403: /**
1404: * @return Returns the organizationCode.
1405: */
1406: public String getOrganizationCode() {
1407: return organizationCode;
1408: }
1409:
1410: /**
1411: * @param organizationCode The organizationCode to set.
1412: */
1413: public void setOrganizationCode(String organizationCode) {
1414: this .organizationCode = organizationCode;
1415: }
1416:
1417: /**
1418: * @return Returns the reportsToAccountNumber.
1419: */
1420: public String getReportsToAccountNumber() {
1421: return reportsToAccountNumber;
1422: }
1423:
1424: /**
1425: * @param reportsToAccountNumber The reportsToAccountNumber to set.
1426: */
1427: public void setReportsToAccountNumber(String reportsToAccountNumber) {
1428: this .reportsToAccountNumber = reportsToAccountNumber;
1429: }
1430:
1431: /**
1432: * @return Returns the reportsToChartOfAccountsCode.
1433: */
1434: public String getReportsToChartOfAccountsCode() {
1435: return reportsToChartOfAccountsCode;
1436: }
1437:
1438: /**
1439: * @param reportsToChartOfAccountsCode The reportsToChartOfAccountsCode to set.
1440: */
1441: public void setReportsToChartOfAccountsCode(
1442: String reportsToChartOfAccountsCode) {
1443: this .reportsToChartOfAccountsCode = reportsToChartOfAccountsCode;
1444: }
1445:
1446: /**
1447: * @return Returns the subFundGroupCode.
1448: */
1449: public String getSubFundGroupCode() {
1450: return subFundGroupCode;
1451: }
1452:
1453: /**
1454: * @param subFundGroupCode The subFundGroupCode to set.
1455: */
1456: public void setSubFundGroupCode(String subFundGroupCode) {
1457: this .subFundGroupCode = subFundGroupCode;
1458: }
1459:
1460: /**
1461: * Gets the postalZipCode attribute.
1462: *
1463: * @return Returns the postalZipCode.
1464: */
1465: public PostalZipCode getPostalZipCode() {
1466: return postalZipCode;
1467: }
1468:
1469: /**
1470: * Sets the postalZipCode attribute value.
1471: *
1472: * @param postalZipCode The postalZipCode to set.
1473: */
1474: public void setPostalZipCode(PostalZipCode postalZipCode) {
1475: this .postalZipCode = postalZipCode;
1476: }
1477:
1478: /**
1479: * Gets the budgetRecordingLevel attribute.
1480: *
1481: * @return Returns the budgetRecordingLevel.
1482: */
1483: public BudgetRecordingLevel getBudgetRecordingLevel() {
1484: return budgetRecordingLevel;
1485: }
1486:
1487: /**
1488: * Sets the budgetRecordingLevel attribute value.
1489: *
1490: * @param budgetRecordingLevel The budgetRecordingLevel to set.
1491: */
1492: public void setBudgetRecordingLevel(
1493: BudgetRecordingLevel budgetRecordingLevel) {
1494: this .budgetRecordingLevel = budgetRecordingLevel;
1495: }
1496:
1497: /**
1498: * Gets the sufficientFundsCode attribute.
1499: *
1500: * @return Returns the sufficientFundsCode.
1501: */
1502: public SufficientFundsCode getSufficientFundsCode() {
1503: return sufficientFundsCode;
1504: }
1505:
1506: /**
1507: * Sets the sufficientFundsCode attribute value.
1508: *
1509: * @param sufficientFundsCode The sufficientFundsCode to set.
1510: */
1511: public void setSufficientFundsCode(
1512: SufficientFundsCode sufficientFundsCode) {
1513: this .sufficientFundsCode = sufficientFundsCode;
1514: }
1515:
1516: /**
1517: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
1518: */
1519: protected LinkedHashMap toStringMapper() {
1520: LinkedHashMap m = new LinkedHashMap();
1521:
1522: m.put("chartCode", this .chartOfAccountsCode);
1523: m.put("accountNumber", this .accountNumber);
1524:
1525: return m;
1526: }
1527:
1528: /**
1529: * Implementing equals since I need contains to behave reasonably in a hashed datastructure.
1530: *
1531: * @see java.lang.Object#equals(java.lang.Object)
1532: */
1533: public boolean equals(Object obj) {
1534: boolean equal = false;
1535:
1536: if (obj != null) {
1537: if (this .getClass().equals(obj.getClass())) {
1538: Account other = (Account) obj;
1539:
1540: if (StringUtils.equals(this .getChartOfAccountsCode(),
1541: other.getChartOfAccountsCode())) {
1542: if (StringUtils.equals(this .getAccountNumber(),
1543: other.getAccountNumber())) {
1544: equal = true;
1545: }
1546: }
1547: }
1548: }
1549:
1550: return equal;
1551: }
1552:
1553: /**
1554: * Calcluates hashCode based on current values of chartOfAccountsCode and accountNumber fields. Somewhat dangerous, since both
1555: * of those fields are mutable, but I don't expect people to be editing those values directly for Accounts stored in hashed
1556: * datastructures.
1557: *
1558: * @see java.lang.Object#hashCode()
1559: */
1560: public int hashCode() {
1561: String hashString = getChartOfAccountsCode() + "|"
1562: + getAccountNumber();
1563:
1564: return hashString.hashCode();
1565: }
1566:
1567: /**
1568: * Convenience method to make the primitive account fields from this Account easier to compare to the account fields from
1569: * another Account or an AccountingLine
1570: *
1571: * @return String representing the account associated with this Accounting
1572: */
1573: public String getAccountKey() {
1574: String key = getChartOfAccountsCode() + ":"
1575: + getAccountNumber();
1576: return key;
1577: }
1578:
1579: /**
1580: * Gets the dummy attribute.
1581: *
1582: * @return Returns the dummy.
1583: */
1584:
1585: /**
1586: * Gets the accountResponsibilitySection attribute.
1587: *
1588: * @return Returns the accountResponsibilitySection.
1589: */
1590: public String getAccountResponsibilitySection() {
1591: return accountResponsibilitySection;
1592: }
1593:
1594: /**
1595: * Sets the accountResponsibilitySection attribute value.
1596: *
1597: * @param accountResponsibilitySection The accountResponsibilitySection to set.
1598: */
1599: public void setAccountResponsibilitySection(
1600: String accountResponsibilitySection) {
1601: this .accountResponsibilitySection = accountResponsibilitySection;
1602: }
1603:
1604: /**
1605: * Gets the contractsAndGrantsSection attribute.
1606: *
1607: * @return Returns the contractsAndGrantsSection.
1608: */
1609: public String getContractsAndGrantsSection() {
1610: return contractsAndGrantsSection;
1611: }
1612:
1613: /**
1614: * Sets the contractsAndGrantsSection attribute value.
1615: *
1616: * @param contractsAndGrantsSection The contractsAndGrantsSection to set.
1617: */
1618: public void setContractsAndGrantsSection(
1619: String contractsAndGrantsSection) {
1620: this .contractsAndGrantsSection = contractsAndGrantsSection;
1621: }
1622:
1623: /**
1624: * Gets the accountDescriptionSection attribute.
1625: *
1626: * @return Returns the accountDescriptionSection.
1627: */
1628: public String getAccountDescriptionSection() {
1629: return accountDescriptionSection;
1630: }
1631:
1632: /**
1633: * Sets the accountDescriptionSection attribute value.
1634: *
1635: * @param accountDescriptionSection The accountDescriptionSection to set.
1636: */
1637: public void setAccountDescriptionSection(
1638: String accountDescriptionSection) {
1639: this .accountDescriptionSection = accountDescriptionSection;
1640: }
1641:
1642: /**
1643: * Gets the guidelinesAndPurposeSection attribute.
1644: *
1645: * @return Returns the guidelinesAndPurposeSection.
1646: */
1647: public String getGuidelinesAndPurposeSection() {
1648: return guidelinesAndPurposeSection;
1649: }
1650:
1651: /**
1652: * Sets the guidelinesAndPurposeSection attribute value.
1653: *
1654: * @param guidelinesAndPurposeSection The guidelinesAndPurposeSection to set.
1655: */
1656: public void setGuidelinesAndPurposeSection(
1657: String guidelinesAndPurposeSection) {
1658: this .guidelinesAndPurposeSection = guidelinesAndPurposeSection;
1659: }
1660:
1661: /**
1662: * Gets the accountResponsibilitySectionBlank attribute.
1663: *
1664: * @return Returns the accountResponsibilitySectionBlank.
1665: */
1666: public String getAccountResponsibilitySectionBlank() {
1667: return accountResponsibilitySectionBlank;
1668: }
1669:
1670: /**
1671: * Gets the contractsAndGrantsSectionBlank attribute.
1672: *
1673: * @return Returns the contractsAndGrantsSectionBlank.
1674: */
1675: public String getContractsAndGrantsSectionBlank() {
1676: return contractsAndGrantsSectionBlank;
1677: }
1678:
1679: /**
1680: * Gets the accountDescriptionSectionBlank attribute.
1681: *
1682: * @return Returns the accountDescriptionSectionBlank.
1683: */
1684: public String getAccountDescriptionSectionBlank() {
1685: return accountDescriptionSectionBlank;
1686: }
1687:
1688: /**
1689: * Gets the guidelinesAndPurposeSectionBlank attribute.
1690: *
1691: * @return Returns the guidelinesAndPurposeSectionBlank.
1692: */
1693: public String getGuidelinesAndPurposeSectionBlank() {
1694: return guidelinesAndPurposeSectionBlank;
1695: }
1696:
1697: /**
1698: * Gets the forContractsAndGrants attribute.
1699: *
1700: * @return Returns the forContractsAndGrants.
1701: */
1702: public boolean isForContractsAndGrants() {
1703: return forContractsAndGrants;
1704: }
1705: }
|