Class InterviewService

java.lang.Object
com.amos2020.javabackend.service.InterviewService

@Service
public class InterviewService
extends java.lang.Object
  • Field Details

  • Constructor Details

  • Method Details

    • getInterviewById

      public Interview getInterviewById​(int interviewId) throws javassist.NotFoundException
      Returns a interview for a specific id or throws NotFoundException
      Parameters:
      interviewId - int
      Returns:
      Interview
      Throws:
      javassist.NotFoundException - If interviewId is invalid and no interview can be found
    • getAllInterviews

      public java.util.List<Interview> getAllInterviews()
      Returns all existing interviews
      Returns:
      List
    • getAllInterviewsByAuditId

      public java.util.List<Interview> getAllInterviewsByAuditId​(int auditId)
      Returns all existing interviews
      Parameters:
      auditId - int
      Returns:
      List
    • createInterview

      public Interview createInterview​(int auditId, java.sql.Date startDate, java.sql.Date endDate, java.lang.String note)
      Creates interview and returns the new interview
      Parameters:
      auditId - int
      startDate - Date
      endDate - Date
      Returns:
      Created interview
    • updateInterview

      public Interview updateInterview​(Interview interview)
      Updates the data of an existing interview
      Parameters:
      interview - Interview
      Returns:
      Updated interview