org.kuali.hr.lm.balancetransfer
Class BalanceTransfer
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
org.kuali.hr.time.HrBusinessObject
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
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
extension, versionNumber |
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 interface org.kuali.rice.core.api.mo.ModelObjectBasic |
toString |
BalanceTransfer
public BalanceTransfer()
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.