org.kuali.kpme.tklm.leave.accrual.bucket
Class PendingLeaveBalance

java.lang.Object
  extended by org.kuali.kpme.tklm.leave.accrual.bucket.LeaveBalance
      extended by org.kuali.kpme.tklm.leave.accrual.bucket.PendingLeaveBalance
All Implemented Interfaces:
LeaveBalanceContract, PendingLeaveBalanceContract

public class PendingLeaveBalance
extends LeaveBalance
implements PendingLeaveBalanceContract


Field Summary
 
Fields inherited from class org.kuali.kpme.tklm.leave.accrual.bucket.LeaveBalance
accrualCategory, asOfDate, balance, calendarPeriodBeginDate, calendarPeriodEndDate, principalCalendar
 
Constructor Summary
PendingLeaveBalance(AccrualCategory accrualCategory, PrincipalHRAttributes principalCalendar)
           
 
Method Summary
 void add(LeaveBlock leaveBlock)
          A hook for adding leave blocks via leave calendar action
 void adjust(LeaveBlock leaveBlock)
          A hook for editing leave blocks via leave calendar action
 void clear()
           
 String getBalanceType()
          The balance type associated with the LeaveBalance
 void remove(LeaveBlock leaveBlock)
          A hook for removing leave blocks via leave calendar action
 
Methods inherited from class org.kuali.kpme.tklm.leave.accrual.bucket.LeaveBalance
add, getAccrualCategory, getAccrualCategoryRuleForDate, getBalance, getEmployeeOverride, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.kpme.tklm.api.leave.accrual.bucket.LeaveBalanceContract
getAccrualCategory, getBalance
 

Constructor Detail

PendingLeaveBalance

public PendingLeaveBalance(AccrualCategory accrualCategory,
                           PrincipalHRAttributes principalCalendar)
Method Detail

add

public void add(LeaveBlock leaveBlock)
         throws UsageLimitException,
                MaximumBalanceException,
                NegativeBalanceException
Description copied from class: LeaveBalance
A hook for adding leave blocks via leave calendar action

Specified by:
add in class LeaveBalance
Parameters:
leaveBlock - The leave block to be added to the bucket
Throws:
UsageLimitException
MaximumBalanceException
NegativeBalanceException

remove

public void remove(LeaveBlock leaveBlock)
            throws UsageLimitException,
                   MaximumBalanceException,
                   NegativeBalanceException
Description copied from class: LeaveBalance
A hook for removing leave blocks via leave calendar action

Specified by:
remove in class LeaveBalance
Throws:
UsageLimitException
MaximumBalanceException
NegativeBalanceException

getBalanceType

public String getBalanceType()
Description copied from interface: LeaveBalanceContract
The balance type associated with the LeaveBalance

This is an abstract method that gets overridden in sub classes

Specified by:
getBalanceType in interface LeaveBalanceContract
Specified by:
getBalanceType in class LeaveBalance
Returns:

adjust

public void adjust(LeaveBlock leaveBlock)
            throws UsageLimitException,
                   MaximumBalanceException,
                   NegativeBalanceException
Description copied from class: LeaveBalance
A hook for editing leave blocks via leave calendar action

Specified by:
adjust in class LeaveBalance
Throws:
UsageLimitException
MaximumBalanceException
NegativeBalanceException

clear

public void clear()
Overrides:
clear in class LeaveBalance


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