Class EmployeeStatutorySickLeave


  • public class EmployeeStatutorySickLeave
    extends Object
    EmployeeStatutorySickLeave
    • Constructor Detail

      • EmployeeStatutorySickLeave

        public EmployeeStatutorySickLeave()
    • Method Detail

      • statutoryLeaveID

        public EmployeeStatutorySickLeave statutoryLeaveID​(UUID statutoryLeaveID)
        The unique identifier (guid) of a statutory leave
        Parameters:
        statutoryLeaveID - UUID
        Returns:
        EmployeeStatutorySickLeave
      • getStatutoryLeaveID

        public UUID getStatutoryLeaveID()
        The unique identifier (guid) of a statutory leave
        Returns:
        statutoryLeaveID
      • setStatutoryLeaveID

        public void setStatutoryLeaveID​(UUID statutoryLeaveID)
        The unique identifier (guid) of a statutory leave
        Parameters:
        statutoryLeaveID - UUID
      • employeeID

        public EmployeeStatutorySickLeave employeeID​(UUID employeeID)
        The unique identifier (guid) of the employee
        Parameters:
        employeeID - UUID
        Returns:
        EmployeeStatutorySickLeave
      • getEmployeeID

        public UUID getEmployeeID()
        The unique identifier (guid) of the employee
        Returns:
        employeeID
      • setEmployeeID

        public void setEmployeeID​(UUID employeeID)
        The unique identifier (guid) of the employee
        Parameters:
        employeeID - UUID
      • leaveTypeID

        public EmployeeStatutorySickLeave leaveTypeID​(UUID leaveTypeID)
        The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay item
        Parameters:
        leaveTypeID - UUID
        Returns:
        EmployeeStatutorySickLeave
      • getLeaveTypeID

        public UUID getLeaveTypeID()
        The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay item
        Returns:
        leaveTypeID
      • setLeaveTypeID

        public void setLeaveTypeID​(UUID leaveTypeID)
        The unique identifier (guid) of the \"Statutory Sick Leave (non-pensionable)\" pay item
        Parameters:
        leaveTypeID - UUID
      • startDate

        public EmployeeStatutorySickLeave startDate​(org.threeten.bp.LocalDate startDate)
        The date when the leave starts
        Parameters:
        startDate - LocalDate
        Returns:
        EmployeeStatutorySickLeave
      • getStartDate

        public org.threeten.bp.LocalDate getStartDate()
        The date when the leave starts
        Returns:
        startDate
      • setStartDate

        public void setStartDate​(org.threeten.bp.LocalDate startDate)
        The date when the leave starts
        Parameters:
        startDate - LocalDate
      • endDate

        public EmployeeStatutorySickLeave endDate​(org.threeten.bp.LocalDate endDate)
        The date when the leave ends
        Parameters:
        endDate - LocalDate
        Returns:
        EmployeeStatutorySickLeave
      • getEndDate

        public org.threeten.bp.LocalDate getEndDate()
        The date when the leave ends
        Returns:
        endDate
      • setEndDate

        public void setEndDate​(org.threeten.bp.LocalDate endDate)
        The date when the leave ends
        Parameters:
        endDate - LocalDate
      • getType

        public String getType()
        the type of statutory leave
        Returns:
        type
      • setType

        public void setType​(String type)
        the type of statutory leave
        Parameters:
        type - String
      • status

        public EmployeeStatutorySickLeave status​(String status)
        the type of statutory leave
        Parameters:
        status - String
        Returns:
        EmployeeStatutorySickLeave
      • getStatus

        public String getStatus()
        the type of statutory leave
        Returns:
        status
      • setStatus

        public void setStatus​(String status)
        the type of statutory leave
        Parameters:
        status - String
      • workPattern

        public EmployeeStatutorySickLeave workPattern​(List<String> workPattern)
        The days of the work week the employee is scheduled to work at the time the leave is taken
        Parameters:
        workPattern - List<>
        Returns:
        EmployeeStatutorySickLeave
      • addWorkPatternItem

        public EmployeeStatutorySickLeave addWorkPatternItem​(String workPatternItem)
        The days of the work week the employee is scheduled to work at the time the leave is taken
        Parameters:
        workPatternItem - String
        Returns:
        EmployeeStatutorySickLeave
      • getWorkPattern

        public List<String> getWorkPattern()
        The days of the work week the employee is scheduled to work at the time the leave is taken
        Returns:
        workPattern
      • setWorkPattern

        public void setWorkPattern​(List<String> workPattern)
        The days of the work week the employee is scheduled to work at the time the leave is taken
        Parameters:
        workPattern - List<>
      • isPregnancyRelated

        public EmployeeStatutorySickLeave isPregnancyRelated​(Boolean isPregnancyRelated)
        Whether the sick leave was pregnancy related
        Parameters:
        isPregnancyRelated - Boolean
        Returns:
        EmployeeStatutorySickLeave
      • getIsPregnancyRelated

        public Boolean getIsPregnancyRelated()
        Whether the sick leave was pregnancy related
        Returns:
        isPregnancyRelated
      • setIsPregnancyRelated

        public void setIsPregnancyRelated​(Boolean isPregnancyRelated)
        Whether the sick leave was pregnancy related
        Parameters:
        isPregnancyRelated - Boolean
      • sufficientNotice

        public EmployeeStatutorySickLeave sufficientNotice​(Boolean sufficientNotice)
        Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave request
        Parameters:
        sufficientNotice - Boolean
        Returns:
        EmployeeStatutorySickLeave
      • getSufficientNotice

        public Boolean getSufficientNotice()
        Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave request
        Returns:
        sufficientNotice
      • setSufficientNotice

        public void setSufficientNotice​(Boolean sufficientNotice)
        Whether the employee provided sufficient notice and documentation as required by the employer supporting the sick leave request
        Parameters:
        sufficientNotice - Boolean
      • isEntitled

        public EmployeeStatutorySickLeave isEntitled​(Boolean isEntitled)
        Whether the leave was entitled to receive payment
        Parameters:
        isEntitled - Boolean
        Returns:
        EmployeeStatutorySickLeave
      • getIsEntitled

        public Boolean getIsEntitled()
        Whether the leave was entitled to receive payment
        Returns:
        isEntitled
      • setIsEntitled

        public void setIsEntitled​(Boolean isEntitled)
        Whether the leave was entitled to receive payment
        Parameters:
        isEntitled - Boolean
      • entitlementWeeksRequested

        public EmployeeStatutorySickLeave entitlementWeeksRequested​(Double entitlementWeeksRequested)
        The amount of requested time (in weeks)
        Parameters:
        entitlementWeeksRequested - Double
        Returns:
        EmployeeStatutorySickLeave
      • getEntitlementWeeksRequested

        public Double getEntitlementWeeksRequested()
        The amount of requested time (in weeks)
        Returns:
        entitlementWeeksRequested
      • setEntitlementWeeksRequested

        public void setEntitlementWeeksRequested​(Double entitlementWeeksRequested)
        The amount of requested time (in weeks)
        Parameters:
        entitlementWeeksRequested - Double
      • entitlementWeeksQualified

        public EmployeeStatutorySickLeave entitlementWeeksQualified​(Double entitlementWeeksQualified)
        The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requested
        Parameters:
        entitlementWeeksQualified - Double
        Returns:
        EmployeeStatutorySickLeave
      • getEntitlementWeeksQualified

        public Double getEntitlementWeeksQualified()
        The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requested
        Returns:
        entitlementWeeksQualified
      • setEntitlementWeeksQualified

        public void setEntitlementWeeksQualified​(Double entitlementWeeksQualified)
        The amount of statutory sick leave time off (in weeks) that is available to take at the time the leave was requested
        Parameters:
        entitlementWeeksQualified - Double
      • entitlementWeeksRemaining

        public EmployeeStatutorySickLeave entitlementWeeksRemaining​(Double entitlementWeeksRemaining)
        A calculated amount of time (in weeks) that remains for the statutory sick leave period
        Parameters:
        entitlementWeeksRemaining - Double
        Returns:
        EmployeeStatutorySickLeave
      • getEntitlementWeeksRemaining

        public Double getEntitlementWeeksRemaining()
        A calculated amount of time (in weeks) that remains for the statutory sick leave period
        Returns:
        entitlementWeeksRemaining
      • setEntitlementWeeksRemaining

        public void setEntitlementWeeksRemaining​(Double entitlementWeeksRemaining)
        A calculated amount of time (in weeks) that remains for the statutory sick leave period
        Parameters:
        entitlementWeeksRemaining - Double
      • overlapsWithOtherLeave

        public EmployeeStatutorySickLeave overlapsWithOtherLeave​(Boolean overlapsWithOtherLeave)
        Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period. While this is allowed it could affect payment amounts
        Parameters:
        overlapsWithOtherLeave - Boolean
        Returns:
        EmployeeStatutorySickLeave
      • getOverlapsWithOtherLeave

        public Boolean getOverlapsWithOtherLeave()
        Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period. While this is allowed it could affect payment amounts
        Returns:
        overlapsWithOtherLeave
      • setOverlapsWithOtherLeave

        public void setOverlapsWithOtherLeave​(Boolean overlapsWithOtherLeave)
        Whether another leave (Paternity, Shared Parental specifically) occurs during the requested leave's period. While this is allowed it could affect payment amounts
        Parameters:
        overlapsWithOtherLeave - Boolean
      • setEntitlementFailureReasons

        public void setEntitlementFailureReasons​(List<EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum> entitlementFailureReasons)
        If the leave requested was considered \"not entitled\", the reasons why are listed here.
        Parameters:
        entitlementFailureReasons - List<>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object