Class ApplicationDto
java.lang.Object
me.josephsf.jobportaljosephsfeir.dto.ApplicationDto
Data Transfer Object (DTO) for job applications in the Job Portal system.
This class represents the data structure used for transferring job application information between the client and server. It contains all relevant fields for creating and updating job applications, including required fields like jobId and candidateId, as well as optional fields like cover letter and resume URL.
The class includes validation annotations to ensure data integrity:
@NotBlankannotations enforce required fields@Sizeannotations enforce character limits on text fields
Some fields like status, applicationDate, reviewDate, and various timestamps are typically managed by the server but may be included in responses to the client.
- Since:
- 2025-05-14
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for creating an empty ApplicationDto instance. -
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 applicant's cover letter.Gets the creation timestamp of the application record.getId()Gets the application's unique identifier.Gets the notes about the interview process.getJobId()Gets the ID of the job being applied for.Gets the URL to the applicant's resume.Gets the date and time when the application was reviewed.Gets the recruiter's notes about the application review.Gets the current status of the application.Gets the last update timestamp of the application record.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 applicant's cover letter.voidsetCreatedAt(LocalDateTime createdAt) Sets the creation timestamp of the application record.voidSets the application's unique identifier.voidsetInterviewNotes(String interviewNotes) Sets the notes about the interview process.voidSets the ID of the job being applied for.voidsetResumeUrl(String resumeUrl) Sets the URL to the applicant's resume.voidsetReviewDate(LocalDateTime reviewDate) Sets the date and time when the application was reviewed.voidsetReviewNotes(String reviewNotes) Sets the recruiter's notes about the application review.voidSets the status of the application.voidsetUpdatedAt(LocalDateTime updatedAt) Sets the last update timestamp of the application record.
-
Constructor Details
-
ApplicationDto
public ApplicationDto()Default constructor for creating an empty ApplicationDto instance.
-
-
Method Details
-
getId
Gets the application's unique identifier.- Returns:
- The application ID
-
setId
Sets the application's unique identifier.- Parameters:
id- The application ID
-
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
-
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
-
getStatus
Gets the current status of the application.- Returns:
- The application status
-
setStatus
Sets the status of the application.- Parameters:
status- The application status
-
getCoverLetter
Gets the applicant's cover letter.- Returns:
- The cover letter text
-
setCoverLetter
Sets the applicant's cover letter.- Parameters:
coverLetter- The cover letter text
-
getResumeUrl
Gets the URL to the applicant's resume.- Returns:
- The resume URL
-
setResumeUrl
Sets the URL to the applicant's resume.- Parameters:
resumeUrl- The resume URL
-
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
-
getReviewDate
Gets the date and time when the application was reviewed.- Returns:
- The review date
-
setReviewDate
Sets the date and time when the application was reviewed.- Parameters:
reviewDate- The review date
-
getReviewNotes
Gets the recruiter's notes about the application review.- Returns:
- The review notes
-
setReviewNotes
Sets the recruiter's notes about the application review.- Parameters:
reviewNotes- The review notes
-
getInterviewNotes
Gets the notes about the interview process.- Returns:
- The interview notes
-
setInterviewNotes
Sets the notes about the interview process.- Parameters:
interviewNotes- The interview notes
-
getCreatedAt
Gets the creation timestamp of the application record.- Returns:
- The creation timestamp
-
setCreatedAt
Sets the creation timestamp of the application record.- Parameters:
createdAt- The creation timestamp
-
getUpdatedAt
Gets the last update timestamp of the application record.- Returns:
- The last update timestamp
-
setUpdatedAt
Sets the last update timestamp of the application record.- Parameters:
updatedAt- The last update timestamp
-