Class JobDto
java.lang.Object
me.josephsf.jobportaljosephsfeir.dto.JobDto
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the job category.Gets the company name.Gets the creation timestamp.Gets the application deadline.Gets the job description.Gets the employment type.getId()Gets the MongoDB document ID.Gets the active status of the job posting.Gets the job location.Gets the posted date.Gets the recruiter ID.Gets the list of job requirements.Gets the list of job responsibilities.Gets the salary.getTitle()Gets the job title.Gets the last update timestamp.voidsetCategory(String category) Sets the job category.voidsetCompanyName(String companyName) Sets the company name.voidsetCreatedAt(LocalDateTime createdAt) Sets the creation timestamp.voidsetDeadline(LocalDateTime deadline) Sets the application deadline.voidsetDescription(String description) Sets the job description.voidsetEmploymentType(String employmentType) Sets the employment type.voidSets the MongoDB document ID.voidsetIsActive(Boolean isActive) Sets the active status of the job posting.voidsetLocation(String location) Sets the job location.voidsetPostedDate(LocalDateTime postedDate) Sets the posted date.voidsetRecruiterId(String recruiterId) Sets the recruiter ID.voidsetRequirements(List<String> requirements) Sets the list of job requirements.voidsetResponsibilities(List<String> responsibilities) Sets the list of job responsibilities.voidSets the salary.voidSets the job title.voidsetUpdatedAt(LocalDateTime updatedAt) Sets the last update timestamp.
-
Constructor Details
-
JobDto
public JobDto()Default constructor for deserialization.
-
-
Method Details
-
getId
Gets the MongoDB document ID.- Returns:
- The document ID
-
setId
Sets the MongoDB document ID.- Parameters:
id- The document ID to set
-
getTitle
Gets the job title.- Returns:
- The job title
-
setTitle
Sets the job title.- Parameters:
title- The job title to set
-
getDescription
Gets the job description.- Returns:
- The job description
-
setDescription
Sets the job description.- Parameters:
description- The job description to set
-
getCompanyName
Gets the company name.- Returns:
- The company name
-
setCompanyName
Sets the company name.- Parameters:
companyName- The company name to set
-
getLocation
Gets the job location.- Returns:
- The job location
-
setLocation
Sets the job location.- Parameters:
location- The job location to set
-
getCategory
Gets the job category.- Returns:
- The job category
-
setCategory
Sets the job category.- Parameters:
category- The job category to set
-
getEmploymentType
Gets the employment type.- Returns:
- The employment type
-
setEmploymentType
Sets the employment type.- Parameters:
employmentType- The employment type to set
-
getSalary
Gets the salary.- Returns:
- The salary
-
setSalary
Sets the salary.- Parameters:
salary- The salary to set
-
getRecruiterId
Gets the recruiter ID.- Returns:
- The recruiter ID
-
setRecruiterId
Sets the recruiter ID.- Parameters:
recruiterId- The recruiter ID to set
-
getRequirements
Gets the list of job requirements.- Returns:
- The list of job requirements
-
setRequirements
Sets the list of job requirements.- Parameters:
requirements- The list of job requirements to set
-
getResponsibilities
Gets the list of job responsibilities.- Returns:
- The list of job responsibilities
-
setResponsibilities
Sets the list of job responsibilities.- Parameters:
responsibilities- The list of job responsibilities to set
-
getIsActive
Gets the active status of the job posting.- Returns:
- The active status (true if active, false if inactive)
-
setIsActive
Sets the active status of the job posting.- Parameters:
isActive- The active status to set
-
getPostedDate
Gets the posted date.- Returns:
- The posted date
-
setPostedDate
Sets the posted date.- Parameters:
postedDate- The posted date to set
-
getDeadline
Gets the application deadline.- Returns:
- The application deadline
-
setDeadline
Sets the application deadline.- Parameters:
deadline- The application deadline to set
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp to set
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- The last update timestamp
-
setUpdatedAt
Sets the last update timestamp.- Parameters:
updatedAt- The last update timestamp to set
-