org.kuali.kpme.tklm.leave.block.web
Class LeaveBlockDisplay

java.lang.Object
  extended by org.kuali.kpme.tklm.leave.block.web.LeaveBlockDisplay
All Implemented Interfaces:
Serializable, LeaveBlockDisplayContract

public class LeaveBlockDisplay
extends Object
implements Serializable, LeaveBlockDisplayContract

See Also:
Serialized Form

Constructor Summary
LeaveBlockDisplay(LeaveBlock leaveBlock)
           
 
Method Summary
 BigDecimal getAccrualBalance(String accrualCategory)
          The accrual balance associated with the LeaveBlockDisplay
 Collection<BigDecimal> getAccrualBalances()
          The accrual balances associated with the LeaveBlockDisplay
 String getAccrualCategory()
          The accrual category associated with the LeaveBlockDisplay
 String getAssignmentTitle()
          The assignment title associated with the LeaveBlockDisplay
 String getCalendarId()
          The calendar id associated with the LeaveBlockDisplay
 String getDescription()
          The description associated with the LeaveBlockDisplay
 String getDocumentId()
          The document id associated with the LeaveBlockDisplay
 String getDocumentStatus()
          The document status associated with the LeaveBlockDisplay
 String getEarnCode()
          The earn code associated with the LeaveBlockDisplay
 BigDecimal getLeaveAmount()
          The leave amount associated with the LeaveBlockDisplay
 Date getLeaveDate()
          The leave date associated with the LeaveBlockDisplay
 String getRequestStatus()
          The request status associated with the LeaveBlockDisplay
 Timestamp getTimestamp()
          The time stamp associated with the LeaveBlockDisplay
 void setAccrualBalance(String accrualCategory, BigDecimal accrualBalance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeaveBlockDisplay

public LeaveBlockDisplay(LeaveBlock leaveBlock)
Method Detail

getLeaveDate

public Date getLeaveDate()
Description copied from interface: LeaveBlockDisplayContract
The leave date associated with the LeaveBlockDisplay

Specified by:
getLeaveDate in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getLeaveDate()

getDocumentId

public String getDocumentId()
Description copied from interface: LeaveBlockDisplayContract
The document id associated with the LeaveBlockDisplay

Specified by:
getDocumentId in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getDocumentId()

getCalendarId

public String getCalendarId()
Description copied from interface: LeaveBlockDisplayContract
The calendar id associated with the LeaveBlockDisplay

Specified by:
getCalendarId in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getCalendarId()

getEarnCode

public String getEarnCode()
Description copied from interface: LeaveBlockDisplayContract
The earn code associated with the LeaveBlockDisplay

Specified by:
getEarnCode in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getEarnCode()

getDescription

public String getDescription()
Description copied from interface: LeaveBlockDisplayContract
The description associated with the LeaveBlockDisplay

If leaveBlock.getDescription() is null, call private retrieveDescriptionAccordingToLeaveType method

Specified by:
getDescription in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getDescription() if not null

getRequestStatus

public String getRequestStatus()
Description copied from interface: LeaveBlockDisplayContract
The request status associated with the LeaveBlockDisplay

If leaveBlock.getRequestStatus() is not null, it returns HrConstants.REQUEST_STATUS_STRINGS for the status

Specified by:
getRequestStatus in interface LeaveBlockDisplayContract
Returns:
HrConstants.REQUEST_STATUS_STRINGS for the leave block's request status

getDocumentStatus

public String getDocumentStatus()
Description copied from interface: LeaveBlockDisplayContract
The document status associated with the LeaveBlockDisplay

If leaveBlock.getDocumentId() is not null, it gets leave calendar document header based on the document id and returns KewApiConstants.DOCUMENT_STATUSES for the header's document status

Specified by:
getDocumentStatus in interface LeaveBlockDisplayContract
Returns:
KewApiConstants.DOCUMENT_STATUSES of the header document

getLeaveAmount

public BigDecimal getLeaveAmount()
Description copied from interface: LeaveBlockDisplayContract
The leave amount associated with the LeaveBlockDisplay

Specified by:
getLeaveAmount in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getLeaveAmount()

getTimestamp

public Timestamp getTimestamp()
Description copied from interface: LeaveBlockDisplayContract
The time stamp associated with the LeaveBlockDisplay

Specified by:
getTimestamp in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getTimestamp()

getAssignmentTitle

public String getAssignmentTitle()
Description copied from interface: LeaveBlockDisplayContract
The assignment title associated with the LeaveBlockDisplay

Specified by:
getAssignmentTitle in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getAssignmentTitle()

getAccrualCategory

public String getAccrualCategory()
Description copied from interface: LeaveBlockDisplayContract
The accrual category associated with the LeaveBlockDisplay

Specified by:
getAccrualCategory in interface LeaveBlockDisplayContract
Returns:
leaveBlock.getAccrualCategory()

getAccrualBalances

public Collection<BigDecimal> getAccrualBalances()
Description copied from interface: LeaveBlockDisplayContract
The accrual balances associated with the LeaveBlockDisplay

Specified by:
getAccrualBalances in interface LeaveBlockDisplayContract
Returns:
accrualBalances.values();

getAccrualBalance

public BigDecimal getAccrualBalance(String accrualCategory)
Description copied from interface: LeaveBlockDisplayContract
The accrual balance associated with the LeaveBlockDisplay

Specified by:
getAccrualBalance in interface LeaveBlockDisplayContract
Returns:
accrualBalances.get(accrualCategory)

setAccrualBalance

public void setAccrualBalance(String accrualCategory,
                              BigDecimal accrualBalance)


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