Class JobApplication
java.lang.Object
me.josephsf.jobportaljosephsfeir.model.JobApplication
Represents a job application submitted by a candidate for a specific job posting.
This class is mapped to the "job_applications" collection in MongoDB using the
Spring Data MongoDB Document annotation. It maintains the relationship
between a job posting and a candidate, along with application status, documents,
and review information.
Job applications progress through various statuses (applied, reviewing, shortlisted, rejected, accepted) as they move through the recruitment process. Recruiters can add review notes and interview notes to track the candidate's progress.
- Since:
- 2025-05-15
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new JobApplication instance with default values. -
Method Summary
Modifier and TypeMethodDescriptionGets the date and time when the application was submitted.Gets the ID of the candidate applying for the job.Gets the cover letter submitted with the application.Gets the date and time when the application record was created.getId()Gets the unique identifier of the job application.Gets the recruiter's notes on the candidate interview.getJobId()Gets the ID of the job being applied for.Gets the URL to the candidate's resume.Gets the date and time when the application was last reviewed.Gets the recruiter's notes on the application review.Gets the current status of the application.Gets the date and time when the application record was last updated.voidsetApplicationDate(LocalDateTime applicationDate) Sets the date and time when the application was submitted.voidsetCandidateId(String candidateId) Sets the ID of the candidate applying for the job.voidsetCoverLetter(String coverLetter) Sets the cover letter submitted with the application.voidsetCreatedAt(LocalDateTime createdAt) Sets the date and time when the application record was created.voidSets the unique identifier of the job application.voidsetInterviewNotes(String interviewNotes) Sets the recruiter's notes on the candidate interview.voidSets the ID of the job being applied for.voidsetResumeUrl(String resumeUrl) Sets the URL to the candidate's resume.voidsetReviewDate(LocalDateTime reviewDate) Sets the date and time when the application was last reviewed.voidsetReviewNotes(String reviewNotes) Sets the recruiter's notes on the application review.voidSets the current status of the application.voidsetUpdatedAt(LocalDateTime updatedAt) Sets the date and time when the application record was last updated.
-
Constructor Details
-
JobApplication
public JobApplication()Constructs a new JobApplication instance with default values. Sets creation, update, and application timestamps to the current time, and sets the status to "APPLIED" by default.
-
-
Method Details
-
getId
Gets the unique identifier of the job application.- Returns:
- the application ID
-
setId
Sets the unique identifier of the job application.- Parameters:
id- the application ID to set
-
getJobId
Gets the ID of the job being applied for.- Returns:
- the job ID
-
setJobId
Sets the ID of the job being applied for.- Parameters:
jobId- the job ID to set
-
getCandidateId
Gets the ID of the candidate applying for the job.- Returns:
- the candidate ID
-
setCandidateId
Sets the ID of the candidate applying for the job.- Parameters:
candidateId- the candidate ID to set
-
getStatus
Gets the current status of the application.- Returns:
- the application status
-
setStatus
Sets the current status of the application.- Parameters:
status- the application status to set
-
getCoverLetter
Gets the cover letter submitted with the application.- Returns:
- the cover letter text
-
setCoverLetter
Sets the cover letter submitted with the application.- Parameters:
coverLetter- the cover letter text to set
-
getResumeUrl
Gets the URL to the candidate's resume.- Returns:
- the resume URL
-
setResumeUrl
Sets the URL to the candidate's resume.- Parameters:
resumeUrl- the resume URL to set
-
getApplicationDate
Gets the date and time when the application was submitted.- Returns:
- the application date
-
setApplicationDate
Sets the date and time when the application was submitted.- Parameters:
applicationDate- the application date to set
-
getReviewDate
Gets the date and time when the application was last reviewed.- Returns:
- the review date
-
setReviewDate
Sets the date and time when the application was last reviewed.- Parameters:
reviewDate- the review date to set
-
getReviewNotes
Gets the recruiter's notes on the application review.- Returns:
- the review notes
-
setReviewNotes
Sets the recruiter's notes on the application review.- Parameters:
reviewNotes- the review notes to set
-
getInterviewNotes
Gets the recruiter's notes on the candidate interview.- Returns:
- the interview notes
-
setInterviewNotes
Sets the recruiter's notes on the candidate interview.- Parameters:
interviewNotes- the interview notes to set
-
getCreatedAt
Gets the date and time when the application record was created.- Returns:
- the creation timestamp
-
setCreatedAt
Sets the date and time when the application record was created.- Parameters:
createdAt- the creation timestamp to set
-
getUpdatedAt
Gets the date and time when the application record was last updated.- Returns:
- the update timestamp
-
setUpdatedAt
Sets the date and time when the application record was last updated.- Parameters:
updatedAt- the update timestamp to set
-