org.kuali.kfs.gl.businessobject
Class OrgReversionUnitOfWork

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by org.kuali.kfs.gl.businessobject.OrgReversionUnitOfWork
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject

public class OrgReversionUnitOfWork
extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase

This class represents a unit of work for the organization reversion

See Also:
Serialized Form

Field Summary
 String accountNumber
           
 Map<String,OrgReversionUnitOfWorkCategoryAmount> amounts
           
 String chartOfAccountsCode
           
 String subAccountNumber
           
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
OrgReversionUnitOfWork()
           
OrgReversionUnitOfWork(String chart, String acct, String subAcct)
           
 
Method Summary
 void addActualAmount(String categoryCode, org.kuali.rice.kns.util.KualiDecimal amount)
          This method adds to the actual amount for a specific category code
 void addBudgetAmount(String categoryCode, org.kuali.rice.kns.util.KualiDecimal amount)
          This method adds to the budget amount for a specific category code
 void addCarryForwardAmount(String categoryCode, org.kuali.rice.kns.util.KualiDecimal amount)
          This method adds to the carry forward amount for a specific category code
 void addEncumbranceAmount(String categoryCode, org.kuali.rice.kns.util.KualiDecimal amount)
          This method adds to the encumbrance amount for a specific category code
 void addTotalAvailable(org.kuali.rice.kns.util.KualiDecimal amount)
           
 void addTotalCarryForward(org.kuali.rice.kns.util.KualiDecimal amount)
           
 void addTotalCash(org.kuali.rice.kns.util.KualiDecimal amount)
           
 void addTotalReversion(org.kuali.rice.kns.util.KualiDecimal amount)
           
 void cascadeCategoryAmountKeys()
          This method updates the category amount keys for the current unit of work
 void clearAmounts()
          This method clears all amounts for this unit of work
 String getAccountNumber()
          Gets the accountNumber attribute.
 Map<String,OrgReversionUnitOfWorkCategoryAmount> getCategoryAmounts()
           
 String getChartOfAccountsCode()
          Gets the chartOfAccountsCode attribute.
 String getSubAccountNumber()
          Gets the subAccountNumber attribute.
 org.kuali.rice.kns.util.KualiDecimal getTotalAccountAvailable()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalAvailable()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalCarryForward()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalCash()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalReversion()
           
 boolean isInitialized()
          Returns true if COA code and account number are not blank.
 boolean isSame(String chart, String acct, String subAcct)
          This method returns true if this unit of work's chart of accounts code, account number, and sub account number match the passed in parameter values
 void setAccountNumber(String accountNumber)
          Sets the accountNumber attribute value.
 void setCategories(List<OrganizationReversionCategory> cats)
          Set category amounts
 void setChartOfAccountsCode(String chartOfAccountsCode)
          Sets the chartOfAccountsCode attribute value.
 void setFields(String chart, String acct, String subAcct)
           
 void setSubAccountNumber(String subAccountNumber)
          Sets the subAccountNumber attribute value.
 void setTotalAvailable(org.kuali.rice.kns.util.KualiDecimal totalAvailable)
           
 void setTotalCarryForward(org.kuali.rice.kns.util.KualiDecimal totalCarryForward)
           
 void setTotalCash(org.kuali.rice.kns.util.KualiDecimal totalCash)
           
 void setTotalReversion(org.kuali.rice.kns.util.KualiDecimal totalReversion)
           
 LinkedHashMap toStringMapper()
           
 boolean wouldHold(Balance balance)
          Return true of this unit of work has the same chart of accounts code, account number, and sub account number as the passed in balance
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow
 

Field Detail

chartOfAccountsCode

public String chartOfAccountsCode

accountNumber

public String accountNumber

subAccountNumber

public String subAccountNumber

amounts

public Map<String,OrgReversionUnitOfWorkCategoryAmount> amounts
Constructor Detail

OrgReversionUnitOfWork

public OrgReversionUnitOfWork()

OrgReversionUnitOfWork

public OrgReversionUnitOfWork(String chart,
                              String acct,
                              String subAcct)
Method Detail

isInitialized

public boolean isInitialized()
Returns true if COA code and account number are not blank.

Returns:
true if COA code and account number are not blank.

setFields

public void setFields(String chart,
                      String acct,
                      String subAcct)

setCategories

public void setCategories(List<OrganizationReversionCategory> cats)
Set category amounts

Parameters:
cats - list of organization reversion categories

addActualAmount

public void addActualAmount(String categoryCode,
                            org.kuali.rice.kns.util.KualiDecimal amount)
This method adds to the actual amount for a specific category code

Parameters:
categoryCode - category code
amount - amount

addBudgetAmount

public void addBudgetAmount(String categoryCode,
                            org.kuali.rice.kns.util.KualiDecimal amount)
This method adds to the budget amount for a specific category code

Parameters:
categoryCode - category code
amount - amount

addEncumbranceAmount

public void addEncumbranceAmount(String categoryCode,
                                 org.kuali.rice.kns.util.KualiDecimal amount)
This method adds to the encumbrance amount for a specific category code

Parameters:
categoryCode - category code
amount - amount

addCarryForwardAmount

public void addCarryForwardAmount(String categoryCode,
                                  org.kuali.rice.kns.util.KualiDecimal amount)
This method adds to the carry forward amount for a specific category code

Parameters:
categoryCode - category code
amount - amount

clearAmounts

public void clearAmounts()
This method clears all amounts for this unit of work


cascadeCategoryAmountKeys

public void cascadeCategoryAmountKeys()
This method updates the category amount keys for the current unit of work


isSame

public boolean isSame(String chart,
                      String acct,
                      String subAcct)
This method returns true if this unit of work's chart of accounts code, account number, and sub account number match the passed in parameter values

Parameters:
chart -
acct -
subAcct -
Returns:
true if this unit of work's chart of accounts code, account number, and sub account number match the passed in parameter values

wouldHold

public boolean wouldHold(Balance balance)
Return true of this unit of work has the same chart of accounts code, account number, and sub account number as the passed in balance

Parameters:
balance -
Returns:

getTotalAccountAvailable

public org.kuali.rice.kns.util.KualiDecimal getTotalAccountAvailable()

getTotalCarryForward

public org.kuali.rice.kns.util.KualiDecimal getTotalCarryForward()

setTotalCarryForward

public void setTotalCarryForward(org.kuali.rice.kns.util.KualiDecimal totalCarryForward)

getTotalReversion

public org.kuali.rice.kns.util.KualiDecimal getTotalReversion()

addTotalCarryForward

public void addTotalCarryForward(org.kuali.rice.kns.util.KualiDecimal amount)

setTotalReversion

public void setTotalReversion(org.kuali.rice.kns.util.KualiDecimal totalReversion)

addTotalReversion

public void addTotalReversion(org.kuali.rice.kns.util.KualiDecimal amount)

getTotalAvailable

public org.kuali.rice.kns.util.KualiDecimal getTotalAvailable()

addTotalAvailable

public void addTotalAvailable(org.kuali.rice.kns.util.KualiDecimal amount)

setTotalAvailable

public void setTotalAvailable(org.kuali.rice.kns.util.KualiDecimal totalAvailable)

addTotalCash

public void addTotalCash(org.kuali.rice.kns.util.KualiDecimal amount)

getTotalCash

public org.kuali.rice.kns.util.KualiDecimal getTotalCash()

setTotalCash

public void setTotalCash(org.kuali.rice.kns.util.KualiDecimal totalCash)

getCategoryAmounts

public Map<String,OrgReversionUnitOfWorkCategoryAmount> getCategoryAmounts()

toStringMapper

public LinkedHashMap toStringMapper()
Specified by:
toStringMapper in class org.kuali.rice.kns.bo.BusinessObjectBase
See Also:
BusinessObjectBase.toStringMapper()

getAccountNumber

public String getAccountNumber()
Gets the accountNumber attribute.

Returns:
Returns the accountNumber.

setAccountNumber

public void setAccountNumber(String accountNumber)
Sets the accountNumber attribute value.

Parameters:
accountNumber - The accountNumber to set.

getChartOfAccountsCode

public String getChartOfAccountsCode()
Gets the chartOfAccountsCode attribute.

Returns:
Returns the chartOfAccountsCode.

setChartOfAccountsCode

public void setChartOfAccountsCode(String chartOfAccountsCode)
Sets the chartOfAccountsCode attribute value.

Parameters:
chartOfAccountsCode - The chartOfAccountsCode to set.

getSubAccountNumber

public String getSubAccountNumber()
Gets the subAccountNumber attribute.

Returns:
Returns the subAccountNumber.

setSubAccountNumber

public void setSubAccountNumber(String subAccountNumber)
Sets the subAccountNumber attribute value.

Parameters:
subAccountNumber - The subAccountNumber to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.