Class ApplicationDto

java.lang.Object
me.josephsf.jobportaljosephsfeir.dto.ApplicationDto

public class ApplicationDto extends Object
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:

  • @NotBlank annotations enforce required fields
  • @Size annotations 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 Details

    • ApplicationDto

      public ApplicationDto()
      Default constructor for creating an empty ApplicationDto instance.
  • Method Details

    • getId

      public String getId()
      Gets the application's unique identifier.
      Returns:
      The application ID
    • setId

      public void setId(String id)
      Sets the application's unique identifier.
      Parameters:
      id - The application ID
    • getJobId

      public String getJobId()
      Gets the ID of the job being applied for.
      Returns:
      The job ID
    • setJobId

      public void setJobId(String jobId)
      Sets the ID of the job being applied for.
      Parameters:
      jobId - The job ID
    • getCandidateId

      public String getCandidateId()
      Gets the ID of the candidate applying for the job.
      Returns:
      The candidate ID
    • setCandidateId

      public void setCandidateId(String candidateId)
      Sets the ID of the candidate applying for the job.
      Parameters:
      candidateId - The candidate ID
    • getStatus

      public String getStatus()
      Gets the current status of the application.
      Returns:
      The application status
    • setStatus

      public void setStatus(String status)
      Sets the status of the application.
      Parameters:
      status - The application status
    • getCoverLetter

      public String getCoverLetter()
      Gets the applicant's cover letter.
      Returns:
      The cover letter text
    • setCoverLetter

      public void setCoverLetter(String coverLetter)
      Sets the applicant's cover letter.
      Parameters:
      coverLetter - The cover letter text
    • getResumeUrl

      public String getResumeUrl()
      Gets the URL to the applicant's resume.
      Returns:
      The resume URL
    • setResumeUrl

      public void setResumeUrl(String resumeUrl)
      Sets the URL to the applicant's resume.
      Parameters:
      resumeUrl - The resume URL
    • getApplicationDate

      public LocalDateTime getApplicationDate()
      Gets the date and time when the application was submitted.
      Returns:
      The application date
    • setApplicationDate

      public void setApplicationDate(LocalDateTime applicationDate)
      Sets the date and time when the application was submitted.
      Parameters:
      applicationDate - The application date
    • getReviewDate

      public LocalDateTime getReviewDate()
      Gets the date and time when the application was reviewed.
      Returns:
      The review date
    • setReviewDate

      public void setReviewDate(LocalDateTime reviewDate)
      Sets the date and time when the application was reviewed.
      Parameters:
      reviewDate - The review date
    • getReviewNotes

      public String getReviewNotes()
      Gets the recruiter's notes about the application review.
      Returns:
      The review notes
    • setReviewNotes

      public void setReviewNotes(String reviewNotes)
      Sets the recruiter's notes about the application review.
      Parameters:
      reviewNotes - The review notes
    • getInterviewNotes

      public String getInterviewNotes()
      Gets the notes about the interview process.
      Returns:
      The interview notes
    • setInterviewNotes

      public void setInterviewNotes(String interviewNotes)
      Sets the notes about the interview process.
      Parameters:
      interviewNotes - The interview notes
    • getCreatedAt

      public LocalDateTime getCreatedAt()
      Gets the creation timestamp of the application record.
      Returns:
      The creation timestamp
    • setCreatedAt

      public void setCreatedAt(LocalDateTime createdAt)
      Sets the creation timestamp of the application record.
      Parameters:
      createdAt - The creation timestamp
    • getUpdatedAt

      public LocalDateTime getUpdatedAt()
      Gets the last update timestamp of the application record.
      Returns:
      The last update timestamp
    • setUpdatedAt

      public void setUpdatedAt(LocalDateTime updatedAt)
      Sets the last update timestamp of the application record.
      Parameters:
      updatedAt - The last update timestamp