- All Known Implementing Classes:
PayrollManager
public interface PayrollManagement
Defines the interface for managing payroll records.
Available methods:
runBatchPayroll(List, String)
submitBatchPayroll(List)
runManualPayroll(PayrollRecord, String)
submitManualPayroll(PayrollRecord)
getAllPayrollRecords()
getPayrollIDList(String)
getPayrollRecord(int, int, String)
getPayrollRecord(String)
getPayrollRecord_List(String)
getHoursWorked(int, String)
getOvertimeHours(int, String)
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of all payroll records.double
getHoursWorked
(int employeeID, String period) Retrieves the number of hours worked for the specified employee ID and period.double
getOvertimeHours
(int employeeID, String period) Retrieves the number of overtime hours for the specified employee ID and period.getPayrollIDList
(String period) Retrieves a list of payroll IDs for the specified payroll period.getPayrollRecord
(int employeeID, int month, String period) Retrieves the payroll record for the specified employee ID and year/month.getPayrollRecord
(String payrollID) Retrieves the payroll record for the specified payroll ID.getPayrollRecord_List
(String period) Retrieves a list of payroll records for the specified period.void
runBatchPayroll
(List<PayrollRecord> tempPayrollRecords, String payrollPeriod) Runs batch payroll for the specified temporary payroll records and payroll period.runManualPayroll
(PayrollRecord tempPayrollRecord, String payrollPeriod) Runs manual payroll for the specified temporary payroll record and period.void
submitBatchPayroll
(List<PayrollRecord> tempPayrollRecords) Submits batch processed payroll for the specified temporary payroll records.void
submitManualPayroll
(PayrollRecord payrollRecord) Submits manual processed payroll for the specified temporary payroll record.
-
Method Details
-
runBatchPayroll
void runBatchPayroll(List<PayrollRecord> tempPayrollRecords, String payrollPeriod) throws EmployeeRecordsException, PayrollException Runs batch payroll for the specified temporary payroll records and payroll period.- Parameters:
tempPayrollRecords
- the temporary payroll records to processpayrollPeriod
- the period for which the payroll is being run- Throws:
EmployeeRecordsException
- if an error occurs while processing employee recordsPayrollException
- if an error occurs while processing payroll
-
submitBatchPayroll
Submits batch processed payroll for the specified temporary payroll records.- Parameters:
tempPayrollRecords
- the temporary payroll records to submit- Throws:
PayrollException
- if an error occurs while submitting payroll
-
getAllPayrollRecords
List<PayrollRecord> getAllPayrollRecords()Retrieves a list of all payroll records.- Returns:
- a list of all payroll records
-
runManualPayroll
PayrollRecord runManualPayroll(PayrollRecord tempPayrollRecord, String payrollPeriod) throws EmployeeRecordsException Runs manual payroll for the specified temporary payroll record and period.- Parameters:
tempPayrollRecord
- the temporary payroll record to process, has empty fields which needs calculations to be filledpayrollPeriod
- the period for which the payroll is being run- Throws:
EmployeeRecordsException
-
submitManualPayroll
Submits manual processed payroll for the specified temporary payroll record.- Parameters:
payrollRecord
- the payroll record to submit
-
getPayrollIDList
Retrieves a list of payroll IDs for the specified payroll period.- Parameters:
period
- the payroll period- Returns:
- a list of payroll IDs
-
getPayrollRecord
Retrieves the payroll record for the specified employee ID and year/month.- Parameters:
employeeID
- the ID of the employeemonth
- the month of the yearperiod
- the period of the payroll- Returns:
- the payroll record
-
getPayrollRecord
Retrieves the payroll record for the specified payroll ID.- Parameters:
payrollID
- the ID of the payroll record- Returns:
- the payroll record
-
getPayrollRecord_List
Retrieves a list of payroll records for the specified period.- Parameters:
period
- the period- Returns:
- a list of payroll records
-
getHoursWorked
Retrieves the number of hours worked for the specified employee ID and period.- Parameters:
employeeID
- the ID of the employeeperiod
- the period- Returns:
- the number of hours worked
-
getOvertimeHours
Retrieves the number of overtime hours for the specified employee ID and period.- Parameters:
employeeID
- the ID of the employeeperiod
- the period- Returns:
- the number of overtime hours
-