Class JobDto

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

public class JobDto extends Object
Data Transfer Object for job posting information.

This class encapsulates all the information related to a job posting in the Job Portal system. It is used for creating new job listings and updating existing ones. The class includes validation constraints to ensure that all required fields are provided and meet size requirements.

Job postings include:

  • Basic job details (title, description, company name, location)
  • Classification information (category, employment type)
  • Compensation details (salary)
  • Job requirements and responsibilities
  • Status indicators (active status, posting and deadline dates)
  • Reference to the recruiter who posted the job
Since:
2025-05-14
  • Constructor Details

    • JobDto

      public JobDto()
      Default constructor for deserialization.
  • Method Details

    • getId

      public String getId()
      Gets the MongoDB document ID.
      Returns:
      The document ID
    • setId

      public void setId(String id)
      Sets the MongoDB document ID.
      Parameters:
      id - The document ID to set
    • getTitle

      public String getTitle()
      Gets the job title.
      Returns:
      The job title
    • setTitle

      public void setTitle(String title)
      Sets the job title.
      Parameters:
      title - The job title to set
    • getDescription

      public String getDescription()
      Gets the job description.
      Returns:
      The job description
    • setDescription

      public void setDescription(String description)
      Sets the job description.
      Parameters:
      description - The job description to set
    • getCompanyName

      public String getCompanyName()
      Gets the company name.
      Returns:
      The company name
    • setCompanyName

      public void setCompanyName(String companyName)
      Sets the company name.
      Parameters:
      companyName - The company name to set
    • getLocation

      public String getLocation()
      Gets the job location.
      Returns:
      The job location
    • setLocation

      public void setLocation(String location)
      Sets the job location.
      Parameters:
      location - The job location to set
    • getCategory

      public String getCategory()
      Gets the job category.
      Returns:
      The job category
    • setCategory

      public void setCategory(String category)
      Sets the job category.
      Parameters:
      category - The job category to set
    • getEmploymentType

      public String getEmploymentType()
      Gets the employment type.
      Returns:
      The employment type
    • setEmploymentType

      public void setEmploymentType(String employmentType)
      Sets the employment type.
      Parameters:
      employmentType - The employment type to set
    • getSalary

      public Double getSalary()
      Gets the salary.
      Returns:
      The salary
    • setSalary

      public void setSalary(Double salary)
      Sets the salary.
      Parameters:
      salary - The salary to set
    • getRecruiterId

      public String getRecruiterId()
      Gets the recruiter ID.
      Returns:
      The recruiter ID
    • setRecruiterId

      public void setRecruiterId(String recruiterId)
      Sets the recruiter ID.
      Parameters:
      recruiterId - The recruiter ID to set
    • getRequirements

      public List<String> getRequirements()
      Gets the list of job requirements.
      Returns:
      The list of job requirements
    • setRequirements

      public void setRequirements(List<String> requirements)
      Sets the list of job requirements.
      Parameters:
      requirements - The list of job requirements to set
    • getResponsibilities

      public List<String> getResponsibilities()
      Gets the list of job responsibilities.
      Returns:
      The list of job responsibilities
    • setResponsibilities

      public void setResponsibilities(List<String> responsibilities)
      Sets the list of job responsibilities.
      Parameters:
      responsibilities - The list of job responsibilities to set
    • getIsActive

      public Boolean getIsActive()
      Gets the active status of the job posting.
      Returns:
      The active status (true if active, false if inactive)
    • setIsActive

      public void setIsActive(Boolean isActive)
      Sets the active status of the job posting.
      Parameters:
      isActive - The active status to set
    • getPostedDate

      public LocalDateTime getPostedDate()
      Gets the posted date.
      Returns:
      The posted date
    • setPostedDate

      public void setPostedDate(LocalDateTime postedDate)
      Sets the posted date.
      Parameters:
      postedDate - The posted date to set
    • getDeadline

      public LocalDateTime getDeadline()
      Gets the application deadline.
      Returns:
      The application deadline
    • setDeadline

      public void setDeadline(LocalDateTime deadline)
      Sets the application deadline.
      Parameters:
      deadline - The application deadline to set
    • getCreatedAt

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

      public void setCreatedAt(LocalDateTime createdAt)
      Sets the creation timestamp.
      Parameters:
      createdAt - The creation timestamp to set
    • getUpdatedAt

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

      public void setUpdatedAt(LocalDateTime updatedAt)
      Sets the last update timestamp.
      Parameters:
      updatedAt - The last update timestamp to set