Package com.amos2020.javabackend.service
Class InterviewService
java.lang.Object
com.amos2020.javabackend.service.InterviewService
@Service
public class InterviewService
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description (package private) InterviewRepositoryrepository -
Constructor Summary
Constructors Constructor Description InterviewService(InterviewRepository repository) -
Method Summary
Modifier and Type Method Description InterviewcreateInterview(int auditId, java.sql.Date startDate, java.sql.Date endDate, java.lang.String note)Creates interview and returns the new interviewjava.util.List<Interview>getAllInterviews()Returns all existing interviewsjava.util.List<Interview>getAllInterviewsByAuditId(int auditId)Returns all existing interviewsInterviewgetInterviewById(int interviewId)Returns a interview for a specific id or throws NotFoundExceptionInterviewupdateInterview(Interview interview)Updates the data of an existing interview
-
Field Details
-
Constructor Details
-
Method Details
-
getInterviewById
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
Returns all existing interviews- Returns:
- List
-
getAllInterviewsByAuditId
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- intstartDate- DateendDate- Date- Returns:
- Created interview
-
updateInterview
Updates the data of an existing interview- Parameters:
interview- Interview- Returns:
- Updated interview
-