/* * The Kuali Financial System, a comprehensive financial management system for higher education. * * Copyright 2005-2014 The Kuali Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.kuali.kfs.module.bc.businessobject; import java.math.BigDecimal; import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.apache.ojb.broker.PersistenceBroker; import org.apache.ojb.broker.PersistenceBrokerException; import org.kuali.kfs.coa.businessobject.Account; import org.kuali.kfs.coa.businessobject.Chart; import org.kuali.kfs.coa.businessobject.ObjectCode; import org.kuali.kfs.coa.businessobject.SubAccount; import org.kuali.kfs.coa.businessobject.SubObjectCode; import org.kuali.kfs.module.bc.util.SalarySettingCalculator; import org.kuali.kfs.sys.KFSPropertyConstants; import org.kuali.rice.core.api.mo.common.active.MutableInactivatable; import org.kuali.rice.core.api.util.type.KualiDecimal; import org.kuali.rice.core.api.util.type.KualiInteger; import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; /** * */ public class PendingBudgetConstructionAppointmentFunding extends PersistableBusinessObjectBase implements MutableInactivatable { private Integer universityFiscalYear; private String chartOfAccountsCode; private String accountNumber; private String subAccountNumber; private String financialObjectCode; private String financialSubObjectCode; private String positionNumber; private String emplid; private String appointmentFundingDurationCode; private KualiInteger appointmentRequestedCsfAmount; private BigDecimal appointmentRequestedCsfFteQuantity; private BigDecimal appointmentRequestedCsfTimePercent; private KualiInteger appointmentTotalIntendedAmount; private BigDecimal appointmentTotalIntendedFteQuantity; private KualiInteger appointmentRequestedAmount; private BigDecimal appointmentRequestedTimePercent; private BigDecimal appointmentRequestedFteQuantity; private BigDecimal appointmentRequestedPayRate; private boolean appointmentFundingDeleteIndicator; private Integer appointmentFundingMonth; private boolean positionObjectChangeIndicator; private boolean positionSalaryChangeIndicator; private boolean active; private ObjectCode financialObject; private Chart chartOfAccounts; private Account account; private SubAccount subAccount; private SubObjectCode financialSubObject; private BudgetConstructionPosition budgetConstructionPosition; private BudgetConstructionAdministrativePost budgetConstructionAdministrativePost; private BudgetConstructionAccountReports budgetConstructionAccountReports; private BudgetConstructionIntendedIncumbent budgetConstructionIntendedIncumbent; private BudgetConstructionDuration budgetConstructionDuration; private List<BudgetConstructionCalculatedSalaryFoundationTracker> bcnCalculatedSalaryFoundationTracker; private List<BudgetConstructionSalaryFunding> budgetConstructionSalaryFunding; private List<BudgetConstructionAppointmentFundingReason> budgetConstructionAppointmentFundingReason; private KualiDecimal percentChange; private String adjustmentMeasurement; private KualiDecimal adjustmentAmount; private boolean persistedDeleteIndicator; private boolean vacatable; private boolean newLineIndicator; private boolean displayOnlyMode; private boolean budgetable; private boolean hourlyPaid; private boolean excludedFromTotal; private boolean override2PlugMode; private boolean purged; /** * Default constructor. */ public PendingBudgetConstructionAppointmentFunding() { budgetConstructionSalaryFunding = new ArrayList<BudgetConstructionSalaryFunding>(); bcnCalculatedSalaryFoundationTracker = new ArrayList<BudgetConstructionCalculatedSalaryFoundationTracker>(); budgetConstructionAppointmentFundingReason = new ArrayList<BudgetConstructionAppointmentFundingReason>(); positionObjectChangeIndicator = false; // assume pos change indicators false until set positionSalaryChangeIndicator = false; active = true; // assume active is true until set otherwise } /** * Gets(sets) the percentChange based on the current values of csf and request amounts Checks to see if a CSF object exists * * @return Returns percentChange */ public KualiDecimal getPercentChange() { percentChange = null; BudgetConstructionCalculatedSalaryFoundationTracker csfTracker = this.getEffectiveCSFTracker(); if (csfTracker != null) { KualiInteger baseAmount = csfTracker.getCsfAmount(); KualiInteger requestedAmount = this.getAppointmentRequestedAmount(); percentChange = SalarySettingCalculator.getPercentChange(baseAmount, requestedAmount); } return percentChange; } /** * Sets the percentChange attribute value. * * @param percentChange The percentChange to set. * @deprecated */ public void setPercentChange(KualiDecimal percentChange) { this.percentChange = percentChange; } /** * Gets the universityFiscalYear attribute. * * @return Returns the universityFiscalYear */ public Integer getUniversityFiscalYear() { return universityFiscalYear; } /** * Sets the universityFiscalYear attribute. * * @param universityFiscalYear The universityFiscalYear to set. */ public void setUniversityFiscalYear(Integer universityFiscalYear) { this.universityFiscalYear = universityFiscalYear; } /** * Gets the chartOfAccountsCode attribute. * * @return Returns the chartOfAccountsCode */ public String getChartOfAccountsCode() { return chartOfAccountsCode; } /** * Sets the chartOfAccountsCode attribute. * * @param chartOfAccountsCode The chartOfAccountsCode to set. */ public void setChartOfAccountsCode(String chartOfAccountsCode) { this.chartOfAccountsCode = chartOfAccountsCode; } /** * Gets the accountNumber attribute. * * @return Returns the accountNumber */ public String getAccountNumber() { return accountNumber; } /** * Sets the accountNumber attribute. * * @param accountNumber The accountNumber to set. */ public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } /** * Gets the subAccountNumber attribute. * * @return Returns the subAccountNumber */ public String getSubAccountNumber() { return subAccountNumber; } /** * Sets the subAccountNumber attribute. * * @param subAccountNumber The subAccountNumber to set. */ public void setSubAccountNumber(String subAccountNumber) { this.subAccountNumber = subAccountNumber; } /** * Gets the financialObjectCode attribute. * * @return Returns the financialObjectCode */ public String getFinancialObjectCode() { return financialObjectCode; } /** * Sets the financialObjectCode attribute. * * @param financialObjectCode The financialObjectCode to set. */ public void setFinancialObjectCode(String financialObjectCode) { this.financialObjectCode = financialObjectCode; } /** * Gets the financialSubObjectCode attribute. * * @return Returns the financialSubObjectCode */ public String getFinancialSubObjectCode() { return financialSubObjectCode; } /** * Sets the financialSubObjectCode attribute. * * @param financialSubObjectCode The financialSubObjectCode to set. */ public void setFinancialSubObjectCode(String financialSubObjectCode) { this.financialSubObjectCode = financialSubObjectCode; } /** * Gets the positionNumber attribute. * * @return Returns the positionNumber */ public String getPositionNumber() { return positionNumber; } /** * Sets the positionNumber attribute. * * @param positionNumber The positionNumber to set. */ public void setPositionNumber(String positionNumber) { this.positionNumber = positionNumber; } /** * Gets the emplid attribute. * * @return Returns the emplid */ public String getEmplid() { return emplid; } /** * Sets the emplid attribute. * * @param emplid The emplid to set. */ public void setEmplid(String emplid) { this.emplid = emplid; } /** * Gets the appointmentFundingDurationCode attribute. * * @return Returns the appointmentFundingDurationCode */ public String getAppointmentFundingDurationCode() { return appointmentFundingDurationCode; } /** * Sets the appointmentFundingDurationCode attribute. * * @param appointmentFundingDurationCode The appointmentFundingDurationCode to set. */ public void setAppointmentFundingDurationCode(String appointmentFundingDurationCode) { this.appointmentFundingDurationCode = appointmentFundingDurationCode; } /** * Gets the appointmentRequestedCsfAmount attribute. * * @return Returns the appointmentRequestedCsfAmount. */ public KualiInteger getAppointmentRequestedCsfAmount() { return appointmentRequestedCsfAmount; } /** * Sets the appointmentRequestedCsfAmount attribute value. * * @param appointmentRequestedCsfAmount The appointmentRequestedCsfAmount to set. */ public void setAppointmentRequestedCsfAmount(KualiInteger appointmentRequestedCsfAmount) { this.appointmentRequestedCsfAmount = appointmentRequestedCsfAmount; } /** * Gets the appointmentRequestedCsfFteQuantity attribute. * * @return Returns the appointmentRequestedCsfFteQuantity */ public BigDecimal getAppointmentRequestedCsfFteQuantity() { return appointmentRequestedCsfFteQuantity; } /** * Sets the appointmentRequestedCsfFteQuantity attribute. * * @param appointmentRequestedCsfFteQuantity The appointmentRequestedCsfFteQuantity to set. */ public void setAppointmentRequestedCsfFteQuantity(BigDecimal appointmentRequestedCsfFteQuantity) { this.appointmentRequestedCsfFteQuantity = appointmentRequestedCsfFteQuantity; } /** * Gets the appointmentRequestedCsfTimePercent attribute. * * @return Returns the appointmentRequestedCsfTimePercent */ public BigDecimal getAppointmentRequestedCsfTimePercent() { return appointmentRequestedCsfTimePercent; } /** * Sets the appointmentRequestedCsfTimePercent attribute. * * @param appointmentRequestedCsfTimePercent The appointmentRequestedCsfTimePercent to set. */ public void setAppointmentRequestedCsfTimePercent(BigDecimal appointmentRequestedCsfTimePercent) { this.appointmentRequestedCsfTimePercent = appointmentRequestedCsfTimePercent; } /** * Gets the appointmentTotalIntendedAmount attribute. * * @return Returns the appointmentTotalIntendedAmount. */ public KualiInteger getAppointmentTotalIntendedAmount() { return appointmentTotalIntendedAmount; } /** * Sets the appointmentTotalIntendedAmount attribute value. * * @param appointmentTotalIntendedAmount The appointmentTotalIntendedAmount to set. */ public void setAppointmentTotalIntendedAmount(KualiInteger appointmentTotalIntendedAmount) { this.appointmentTotalIntendedAmount = appointmentTotalIntendedAmount; } /** * Gets the appointmentTotalIntendedFteQuantity attribute. * * @return Returns the appointmentTotalIntendedFteQuantity */ public BigDecimal getAppointmentTotalIntendedFteQuantity() { return appointmentTotalIntendedFteQuantity; } /** * Sets the appointmentTotalIntendedFteQuantity attribute. * * @param appointmentTotalIntendedFteQuantity The appointmentTotalIntendedFteQuantity to set. */ public void setAppointmentTotalIntendedFteQuantity(BigDecimal appointmentTotalIntendedFteQuantity) { this.appointmentTotalIntendedFteQuantity = appointmentTotalIntendedFteQuantity; } /** * Gets the appointmentRequestedAmount attribute. * * @return Returns the appointmentRequestedAmount */ public KualiInteger getAppointmentRequestedAmount() { return appointmentRequestedAmount; } /** * Sets the appointmentRequestedAmount attribute. * * @param appointmentRequestedAmount The appointmentRequestedAmount to set. */ public void setAppointmentRequestedAmount(KualiInteger appointmentRequestedAmount) { this.appointmentRequestedAmount = appointmentRequestedAmount; } /** * Gets the appointmentRequestedTimePercent attribute. * * @return Returns the appointmentRequestedTimePercent */ public BigDecimal getAppointmentRequestedTimePercent() { return appointmentRequestedTimePercent; } /** * Sets the appointmentRequestedTimePercent attribute. * * @param appointmentRequestedTimePercent The appointmentRequestedTimePercent to set. */ public void setAppointmentRequestedTimePercent(BigDecimal appointmentRequestedTimePercent) { this.appointmentRequestedTimePercent = appointmentRequestedTimePercent; } /** * Gets the appointmentRequestedFteQuantity attribute. * * @return Returns the appointmentRequestedFteQuantity */ public BigDecimal getAppointmentRequestedFteQuantity() { return appointmentRequestedFteQuantity; } /** * Sets the appointmentRequestedFteQuantity attribute. * * @param appointmentRequestedFteQuantity The appointmentRequestedFteQuantity to set. */ public void setAppointmentRequestedFteQuantity(BigDecimal appointmentRequestedFteQuantity) { this.appointmentRequestedFteQuantity = appointmentRequestedFteQuantity; } /** * Gets the appointmentRequestedPayRate attribute. * * @return Returns the appointmentRequestedPayRate */ public BigDecimal getAppointmentRequestedPayRate() { return appointmentRequestedPayRate; } /** * Sets the appointmentRequestedPayRate attribute. * * @param appointmentRequestedPayRate The appointmentRequestedPayRate to set. */ public void setAppointmentRequestedPayRate(BigDecimal appointmentRequestedPayRate) { this.appointmentRequestedPayRate = appointmentRequestedPayRate; } /** * Gets the active attribute. * * @return Returns the active */ public boolean isActive() { return active; } /** * Sets the active attribute. * * @param active The active to set. */ public void setActive(boolean active) { this.active = active; } /** * Gets the appointmentFundingDeleteIndicator attribute. * * @return Returns the appointmentFundingDeleteIndicator */ public boolean isAppointmentFundingDeleteIndicator() { return !this.active; // return appointmentFundingDeleteIndicator; } /** * Sets the appointmentFundingDeleteIndicator attribute. * * @param appointmentFundingDeleteIndicator The appointmentFundingDeleteIndicator to set. */ public void setAppointmentFundingDeleteIndicator(boolean appointmentFundingDeleteIndicator) { this.active = !appointmentFundingDeleteIndicator; // this.appointmentFundingDeleteIndicator = appointmentFundingDeleteIndicator; } /** * Gets the appointmentFundingMonth attribute. * * @return Returns the appointmentFundingMonth */ public Integer getAppointmentFundingMonth() { return appointmentFundingMonth; } /** * Sets the appointmentFundingMonth attribute. * * @param appointmentFundingMonth The appointmentFundingMonth to set. */ public void setAppointmentFundingMonth(Integer appointmentFundingMonth) { this.appointmentFundingMonth = appointmentFundingMonth; } /** * Gets the positionObjectChangeIndicator attribute. * * @return Returns the positionObjectChangeIndicator */ public boolean isPositionObjectChangeIndicator() { return positionObjectChangeIndicator; } /** * Sets the positionObjectChangeIndicator attribute. * * @param positionObjectChangeIndicator The positionObjectChangeIndicator to set. */ public void setPositionObjectChangeIndicator(boolean positionObjectChangeIndicator) { this.positionObjectChangeIndicator = positionObjectChangeIndicator; } /** * Gets the positionSalaryChangeIndicator attribute. * * @return Returns the positionSalaryChangeIndicator */ public boolean isPositionSalaryChangeIndicator() { return positionSalaryChangeIndicator; } /** * Sets the positionSalaryChangeIndicator attribute. * * @param positionSalaryChangeIndicator The positionSalaryChangeIndicator to set. */ public void setPositionSalaryChangeIndicator(boolean positionSalaryChangeIndicator) { this.positionSalaryChangeIndicator = positionSalaryChangeIndicator; } /** * gets the boolean positionSalaryChangeIndicator or positionObjectChangeIndicator * * @return positionSalaryChangeIndicator or positionObjectChangeIndicator */ public boolean isPositionChangeIndicator() { return (this.isPositionSalaryChangeIndicator() || this.isPositionObjectChangeIndicator()); } /** * Gets the financialObject attribute. * * @return Returns the financialObject */ public ObjectCode getFinancialObject() { return financialObject; } /** * Sets the financialObject attribute. * * @param financialObject The financialObject to set. * @deprecated */ public void setFinancialObject(ObjectCode financialObject) { this.financialObject = financialObject; } /** * Gets the chartOfAccounts attribute. * * @return Returns the chartOfAccounts */ public Chart getChartOfAccounts() { return chartOfAccounts; } /** * Sets the chartOfAccounts attribute. * * @param chartOfAccounts The chartOfAccounts to set. * @deprecated */ public void setChartOfAccounts(Chart chartOfAccounts) { this.chartOfAccounts = chartOfAccounts; } /** * Gets the account attribute. * * @return Returns the account */ public Account getAccount() { return account; } /** * Sets the account attribute. * * @param account The account to set. * @deprecated */ public void setAccount(Account account) { this.account = account; } /** * Gets the financialSubObject attribute. * * @return Returns the financialSubObject. */ public SubObjectCode getFinancialSubObject() { return financialSubObject; } /** * Sets the financialSubObject attribute value. * * @param financialSubObject The financialSubObject to set. * @deprecated */ public void setFinancialSubObject(SubObjectCode financialSubObject) { this.financialSubObject = financialSubObject; } /** * Gets the subAccount attribute. * * @return Returns the subAccount. */ public SubAccount getSubAccount() { return subAccount; } /** * Sets the subAccount attribute value. * * @param subAccount The subAccount to set. * @deprecated */ public void setSubAccount(SubAccount subAccount) { this.subAccount = subAccount; } /** * Gets the budgetConstructionPosition attribute. * * @return Returns the budgetConstructionPosition */ public BudgetConstructionPosition getBudgetConstructionPosition() { return budgetConstructionPosition; } /** * Sets the budgetConstructionPosition attribute. * * @param budgetConstructionPosition The budgetConstructionPosition to set. * @deprecated */ public void setBudgetConstructionPosition(BudgetConstructionPosition budgetConstructionPosition) { this.budgetConstructionPosition = budgetConstructionPosition; } /** * Gets the budgetConstructionSalaryFunding attribute. * * @return Returns the budgetConstructionSalaryFunding. */ public List<BudgetConstructionSalaryFunding> getBudgetConstructionSalaryFunding() { return budgetConstructionSalaryFunding; } /** * Sets the budgetConstructionSalaryFunding attribute value. * * @param budgetConstructionSalaryFunding The budgetConstructionSalaryFunding to set. */ @Deprecated public void setBudgetConstructionSalaryFunding(List<BudgetConstructionSalaryFunding> budgetConstructionSalaryFunding) { this.budgetConstructionSalaryFunding = budgetConstructionSalaryFunding; } /** * Gets the budgetConstructionAppointmentFundingReason attribute. * * @return Returns the budgetConstructionAppointmentFundingReason. */ public List<BudgetConstructionAppointmentFundingReason> getBudgetConstructionAppointmentFundingReason() { return budgetConstructionAppointmentFundingReason; } /** * Sets the budgetConstructionAppointmentFundingReason attribute value. * * @param budgetConstructionAppointmentFundingReason The budgetConstructionAppointmentFundingReason to set. */ @Deprecated public void setBudgetConstructionAppointmentFundingReason(List<BudgetConstructionAppointmentFundingReason> budgetConstructionAppointmentFundingReason) { this.budgetConstructionAppointmentFundingReason = budgetConstructionAppointmentFundingReason; } /** * Gets the budgetConstructionAdministrativePost attribute. * * @return Returns the budgetConstructionAdministrativePost. */ public BudgetConstructionAdministrativePost getBudgetConstructionAdministrativePost() { return budgetConstructionAdministrativePost; } /** * Sets the budgetConstructionAdministrativePost attribute value. * * @param budgetConstructionAdministrativePost The budgetConstructionAdministrativePost to set. * @deprecated */ public void setBudgetConstructionAdministrativePost(BudgetConstructionAdministrativePost budgetConstructionAdministrativePost) { this.budgetConstructionAdministrativePost = budgetConstructionAdministrativePost; } /** * Gets the budgetConstructionAccountReports attribute. * * @return Returns the budgetConstructionAccountReports. */ public BudgetConstructionAccountReports getBudgetConstructionAccountReports() { return budgetConstructionAccountReports; } /** * Sets the budgetConstructionAccountReports attribute value. * * @param budgetConstructionAccountReports The budgetConstructionAccountReports to set. * @deprecated */ public void setBudgetConstructionAccountReports(BudgetConstructionAccountReports budgetConstructionAccountReports) { this.budgetConstructionAccountReports = budgetConstructionAccountReports; } /** * Gets the budgetConstructionDuration attribute. * * @return Returns the budgetConstructionDuration. */ public BudgetConstructionDuration getBudgetConstructionDuration() { return budgetConstructionDuration; } /** * Sets the budgetConstructionDuration attribute value. * * @param budgetConstructionDuration The budgetConstructionDuration to set. */ public void setBudgetConstructionDuration(BudgetConstructionDuration budgetConstructionDuration) { this.budgetConstructionDuration = budgetConstructionDuration; } /** * Gets the budgetConstructionIntendedIncumbent attribute. * * @return Returns the budgetConstructionIntendedIncumbent. */ public BudgetConstructionIntendedIncumbent getBudgetConstructionIntendedIncumbent() { return budgetConstructionIntendedIncumbent; } /** * Sets the budgetConstructionIntendedIncumbent attribute value. * * @param budgetConstructionIntendedIncumbent The budgetConstructionIntendedIncumbent to set. * @deprecated */ public void setBudgetConstructionIntendedIncumbent(BudgetConstructionIntendedIncumbent budgetConstructionIntendedIncumbent) { this.budgetConstructionIntendedIncumbent = budgetConstructionIntendedIncumbent; } /** * Gets the bcnCalculatedSalaryFoundationTracker attribute. * * @return Returns the bcnCalculatedSalaryFoundationTracker. */ public List<BudgetConstructionCalculatedSalaryFoundationTracker> getBcnCalculatedSalaryFoundationTracker() { return bcnCalculatedSalaryFoundationTracker; } /** * Sets the bcnCalculatedSalaryFoundationTracker attribute value. * * @param bcnCalculatedSalaryFoundationTracker The bcnCalculatedSalaryFoundationTracker to set. * @deprecated */ public void setBcnCalculatedSalaryFoundationTracker(List<BudgetConstructionCalculatedSalaryFoundationTracker> bcnCalculatedSalaryFoundationTracker) { this.bcnCalculatedSalaryFoundationTracker = bcnCalculatedSalaryFoundationTracker; } /** * Gets the adjustmentAmount attribute. * * @return Returns the adjustmentAmount. */ public KualiDecimal getAdjustmentAmount() { return adjustmentAmount; } /** * Sets the adjustmentAmount attribute value. * * @param adjustmentAmount The adjustmentAmount to set. */ public void setAdjustmentAmount(KualiDecimal adjustmentAmount) { this.adjustmentAmount = adjustmentAmount; } /** * Gets the adjustmentMeasurement attribute. * * @return Returns the adjustmentMeasurement. */ public String getAdjustmentMeasurement() { return adjustmentMeasurement; } /** * Sets the adjustmentMeasurement attribute value. * * @param adjustmentMeasurement The adjustmentMeasurement to set. */ public void setAdjustmentMeasurement(String adjustmentMeasurement) { this.adjustmentMeasurement = adjustmentMeasurement; } /** * get the effective calculated salary fundation for current appionment funding if any * * @return the the effective calculated salary fundation for current appionment funding if any; otherwise, null */ public BudgetConstructionCalculatedSalaryFoundationTracker getEffectiveCSFTracker() { if (bcnCalculatedSalaryFoundationTracker == null || bcnCalculatedSalaryFoundationTracker.size() <= 0) { return null; } return bcnCalculatedSalaryFoundationTracker.get(0); } /** * Gets the vacatable attribute. * * @return Returns the vacatable. */ public boolean isVacatable() { return vacatable; } /** * Sets the vacatable attribute value. * * @param vacatable The vacatable to set. */ public void setVacatable(boolean vacatable) { this.vacatable = vacatable; } /** * Gets the persistedDeleteIndicator attribute. * * @return Returns the persistedDeleteIndicator. */ public boolean isPersistedDeleteIndicator() { return persistedDeleteIndicator; } /** * Sets the persistedDeleteIndicator attribute value. * * @param persistedDeleteIndicator The persistedDeleteIndicator to set. */ public void setPersistedDeleteIndicator(boolean persistedDeleteIndicator) { this.persistedDeleteIndicator = persistedDeleteIndicator; } /** * Returns a map with the primitive field names as the key and the primitive values as the map value. * * @return Map a map with the primitive field names as the key and the primitive values as the map value. */ public Map<String, Object> getValuesMap() { Map<String, Object> valuesMap = new HashMap<String, Object>(); valuesMap.put(KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, getUniversityFiscalYear()); valuesMap.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, getChartOfAccountsCode()); valuesMap.put(KFSPropertyConstants.ACCOUNT_NUMBER, getAccountNumber()); valuesMap.put(KFSPropertyConstants.SUB_ACCOUNT_NUMBER, getSubAccountNumber()); valuesMap.put(KFSPropertyConstants.FINANCIAL_OBJECT_CODE, getFinancialObjectCode()); valuesMap.put(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE, getFinancialSubObjectCode()); valuesMap.put(KFSPropertyConstants.POSITION_NUMBER, getPositionNumber()); valuesMap.put(KFSPropertyConstants.EMPLID, getEmplid()); return valuesMap; } /** * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() */ protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); if (this.universityFiscalYear != null) { map.put(KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR, getUniversityFiscalYear().toString()); } map.put(KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE, getChartOfAccountsCode()); map.put(KFSPropertyConstants.ACCOUNT_NUMBER, getAccountNumber()); map.put(KFSPropertyConstants.SUB_ACCOUNT_NUMBER, getSubAccountNumber()); map.put(KFSPropertyConstants.FINANCIAL_OBJECT_CODE, getFinancialObjectCode()); map.put(KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE, getFinancialSubObjectCode()); map.put(KFSPropertyConstants.POSITION_NUMBER, getPositionNumber()); map.put(KFSPropertyConstants.EMPLID, getEmplid()); return map; } /** * build the given appointment funding key string */ public String getAppointmentFundingString() { String pattern = " {0}, {1}, {2}, {3}, {4}, {5}, {6}"; return MessageFormat.format(pattern, chartOfAccountsCode, accountNumber, subAccountNumber, financialObjectCode, financialSubObjectCode, emplid, positionNumber); } /** * @see org.kuali.rice.krad.bo.PersistableBusinessObjectBase#afterLookup(org.apache.ojb.broker.PersistenceBroker) */ @Override protected void postLoad() { super.postLoad(); this.setPersistedDeleteIndicator(this.isAppointmentFundingDeleteIndicator()); this.setNewLineIndicator(false); } /** * Gets the newLineIndicator attribute. * * @return Returns the newLineIndicator. */ public boolean isNewLineIndicator() { return newLineIndicator; } /** * Gets the hourlyPaid attribute. * * @return Returns the hourlyPaid. */ public boolean isHourlyPaid() { return hourlyPaid; } /** * Gets the displayOnlyMode attribute. * * @return Returns the displayOnlyMode. */ public boolean isDisplayOnlyMode() { return displayOnlyMode; } /** * Gets the budgetable attribute. * * @return Returns the budgetable. */ public boolean isBudgetable() { return budgetable; } /** * Gets the excludedFromTotal attribute. * * @return Returns the excludedFromTotal. */ public boolean isExcludedFromTotal() { return excludedFromTotal; } /** * Gets the override2PlugMode attribute. * * @return Returns the override2PlugMode. */ public boolean isOverride2PlugMode() { return override2PlugMode; } /** * Sets the displayOnlyMode attribute value. * * @param displayOnlyMode The displayOnlyMode to set. */ public void setDisplayOnlyMode(boolean displayOnlyMode) { this.displayOnlyMode = displayOnlyMode; } /** * Sets the budgetable attribute value. * * @param budgetable The budgetable to set. */ public void setBudgetable(boolean budgetable) { this.budgetable = budgetable; } /** * Sets the excludedFromTotal attribute value. * * @param excludedFromTotal The excludedFromTotal to set. */ public void setExcludedFromTotal(boolean excludedFromTotal) { this.excludedFromTotal = excludedFromTotal; } /** * Sets the override2PlugMode attribute value. * * @param override2PlugMode The override2PlugMode to set. */ public void setOverride2PlugMode(boolean override2PlugMode) { this.override2PlugMode = override2PlugMode; } /** * Sets the newLineIndicator attribute value. * * @param newLineIndicator The newLineIndicator to set. */ public void setNewLineIndicator(boolean newLineIndicator) { this.newLineIndicator = newLineIndicator; } /** * Sets the hourlyPaid attribute value. * * @param hourlyPaid The hourlyPaid to set. */ public void setHourlyPaid(boolean hourlyPaid) { this.hourlyPaid = hourlyPaid; } /** * Gets the purged attribute. * * @return Returns the purged. */ public boolean isPurged() { return purged; } /** * Sets the purged attribute value. * * @param purged The purged to set. */ public void setPurged(boolean purged) { this.purged = purged; } /** * @see org.kuali.rice.krad.bo.PersistableBusinessObjectBase#buildListOfDeletionAwareLists() */ @Override public List buildListOfDeletionAwareLists() { List managedLists = super.buildListOfDeletionAwareLists(); managedLists.add(getBudgetConstructionAppointmentFundingReason()); return managedLists; } }