Interface PayrollManagement

All Known Implementing Classes:
PayrollManager

public interface PayrollManagement
  • 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 process
      payrollPeriod - the period for which the payroll is being run
      Throws:
      EmployeeRecordsException - if an error occurs while processing employee records
      PayrollException - if an error occurs while processing payroll
    • submitBatchPayroll

      void submitBatchPayroll(List<PayrollRecord> tempPayrollRecords) throws PayrollException
      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 filled
      payrollPeriod - the period for which the payroll is being run
      Throws:
      EmployeeRecordsException
    • submitManualPayroll

      void submitManualPayroll(PayrollRecord payrollRecord)
      Submits manual processed payroll for the specified temporary payroll record.
      Parameters:
      payrollRecord - the payroll record to submit
    • getPayrollIDList

      List<String> getPayrollIDList(String period)
      Retrieves a list of payroll IDs for the specified payroll period.
      Parameters:
      period - the payroll period
      Returns:
      a list of payroll IDs
    • getPayrollRecord

      PayrollRecord getPayrollRecord(int employeeID, int month, String period)
      Retrieves the payroll record for the specified employee ID and year/month.
      Parameters:
      employeeID - the ID of the employee
      month - the month of the year
      period - the period of the payroll
      Returns:
      the payroll record
    • getPayrollRecord

      PayrollRecord getPayrollRecord(String payrollID)
      Retrieves the payroll record for the specified payroll ID.
      Parameters:
      payrollID - the ID of the payroll record
      Returns:
      the payroll record
    • getPayrollRecord_List

      List<PayrollRecord> getPayrollRecord_List(String period)
      Retrieves a list of payroll records for the specified period.
      Parameters:
      period - the period
      Returns:
      a list of payroll records
    • getHoursWorked

      double getHoursWorked(int employeeID, String period)
      Retrieves the number of hours worked for the specified employee ID and period.
      Parameters:
      employeeID - the ID of the employee
      period - the period
      Returns:
      the number of hours worked
    • getOvertimeHours

      double getOvertimeHours(int employeeID, String period)
      Retrieves the number of overtime hours for the specified employee ID and period.
      Parameters:
      employeeID - the ID of the employee
      period - the period
      Returns:
      the number of overtime hours