org.kuali.hr.lm.balancetransfer
Class BalanceTransfer

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.hr.time.HrBusinessObject
              extended by org.kuali.hr.lm.balancetransfer.BalanceTransfer
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.core.api.mo.common.GloballyUnique, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.krad.bo.BusinessObject, org.kuali.rice.krad.bo.PersistableBusinessObject

public class BalanceTransfer
extends HrBusinessObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
BalanceTransfer()
           
 
Method Summary
 BalanceTransfer adjust(BigDecimal transferAmount)
          Returns a balance transfer object adjusted for the new transfer amount.
 void approve()
           
 void cancel()
           
 void disapprove()
           
 String getAccrualCategoryRule()
           
 String getAccruedLeaveBlockId()
           
 BigDecimal getAmountTransferred()
           
 String getBalanceTransferId()
           
 AccrualCategory getCreditedAccrualCategory()
           
 AccrualCategory getDebitedAccrualCategory()
           
 String getDebitedLeaveBlockId()
           
 String getDocumentHeaderId()
           
 BigDecimal getForfeitedAmount()
           
 String getForfeitedLeaveBlockId()
           
 String getFromAccrualCategory()
           
 String getId()
           
 List<LeaveBlock> getLeaveBlocks()
           
 String getLeaveCalendarDocumentId()
           
 org.kuali.rice.kim.api.identity.Person getPrincipal()
           
 String getPrincipalId()
           
 String getSstoId()
           
 String getStatus()
           
 String getToAccrualCategory()
           
 BigDecimal getTransferAmount()
           
protected  String getUniqueKey()
           
 void setAccrualCategoryRule(String accrualCategoryRule)
           
 void setAccruedLeaveBlockId(String accruedLeaveBlockId)
           
 void setAmountTransferred(BigDecimal amountTransferrerd)
           
 void setBalanceTransferId(String balanceTransferId)
           
 void setDebitedLeaveBlockId(String debitedLeaveBlockId)
           
 void setDocumentHeaderId(String documentHeaderId)
           
 void setForfeitedAmount(BigDecimal forfeitedAmount)
           
 void setForfeitedLeaveBlockId(String forfeitedLeaveBlockId)
           
 void setFromAccrualCategory(String fromAccrualCategory)
           
 void setId(String id)
           
 void setLeaveCalendarDocumentId(String leaveCalendarDocumentId)
           
 void setPrincipal(org.kuali.rice.kim.api.identity.Person principal)
           
 void setPrincipalId(String principalId)
           
 void setSstoId(String sstoId)
           
 void setStatus(String status)
           
 void setToAccrualCategory(String toAccrualCategory)
           
 void setTransferAmount(BigDecimal transferAmount)
           
 
Methods inherited from class org.kuali.hr.time.HrBusinessObject
getEffectiveDate, getTimestamp, isActive, setActive, setEffectiveDate, setTimestamp
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

BalanceTransfer

public BalanceTransfer()
Method Detail

getPrincipalId

public String getPrincipalId()

setPrincipalId

public void setPrincipalId(String principalId)

getToAccrualCategory

public String getToAccrualCategory()

setToAccrualCategory

public void setToAccrualCategory(String toAccrualCategory)

getFromAccrualCategory

public String getFromAccrualCategory()

setFromAccrualCategory

public void setFromAccrualCategory(String fromAccrualCategory)

getTransferAmount

public BigDecimal getTransferAmount()

setTransferAmount

public void setTransferAmount(BigDecimal transferAmount)

getForfeitedAmount

public BigDecimal getForfeitedAmount()

setForfeitedAmount

public void setForfeitedAmount(BigDecimal forfeitedAmount)

getBalanceTransferId

public String getBalanceTransferId()

setBalanceTransferId

public void setBalanceTransferId(String balanceTransferId)

getAccrualCategoryRule

public String getAccrualCategoryRule()

setAccrualCategoryRule

public void setAccrualCategoryRule(String accrualCategoryRule)

getUniqueKey

protected String getUniqueKey()
Specified by:
getUniqueKey in class HrBusinessObject

getId

public String getId()
Specified by:
getId in class HrBusinessObject

setId

public void setId(String id)
Specified by:
setId in class HrBusinessObject

getPrincipal

public org.kuali.rice.kim.api.identity.Person getPrincipal()

setPrincipal

public void setPrincipal(org.kuali.rice.kim.api.identity.Person principal)

getCreditedAccrualCategory

public AccrualCategory getCreditedAccrualCategory()

getDebitedAccrualCategory

public AccrualCategory getDebitedAccrualCategory()

getLeaveCalendarDocumentId

public String getLeaveCalendarDocumentId()

setLeaveCalendarDocumentId

public void setLeaveCalendarDocumentId(String leaveCalendarDocumentId)

adjust

public BalanceTransfer adjust(BigDecimal transferAmount)
Returns a balance transfer object adjusted for the new transfer amount. "this" must be a default initialized balance transfer. i.e. transfer amount plus forfeited amount equal to the amount of leave in excess of the from accrual category's max balance for the given principal. calling this method without first validating the supplied transfer amount via BalanceTransferValidationUtils may produce undesired results.

Parameters:
transferAmount - The desired transfer amount
Returns:
A balance transfer object with forfeited and amount transfer amounts adjusted to transferAmount

getLeaveBlocks

public List<LeaveBlock> getLeaveBlocks()

getStatus

public String getStatus()

setStatus

public void setStatus(String status)

disapprove

public void disapprove()

approve

public void approve()

cancel

public void cancel()

getAccruedLeaveBlockId

public String getAccruedLeaveBlockId()

setAccruedLeaveBlockId

public void setAccruedLeaveBlockId(String accruedLeaveBlockId)

getForfeitedLeaveBlockId

public String getForfeitedLeaveBlockId()

setForfeitedLeaveBlockId

public void setForfeitedLeaveBlockId(String forfeitedLeaveBlockId)

getDebitedLeaveBlockId

public String getDebitedLeaveBlockId()

setDebitedLeaveBlockId

public void setDebitedLeaveBlockId(String debitedLeaveBlockId)

getAmountTransferred

public BigDecimal getAmountTransferred()

setAmountTransferred

public void setAmountTransferred(BigDecimal amountTransferrerd)

getSstoId

public String getSstoId()

setSstoId

public void setSstoId(String sstoId)

getDocumentHeaderId

public String getDocumentHeaderId()

setDocumentHeaderId

public void setDocumentHeaderId(String documentHeaderId)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.