Class CandidateDto
java.lang.Object
me.josephsf.jobportaljosephsfeir.dto.CandidateDto
Data Transfer Object for candidate profile information.
This class encapsulates all the information related to a job candidate's profile in the Job Portal system. It includes personal details, professional experience, education, skills, and other relevant information for job seekers. The class contains validation constraints to ensure that mandatory fields are provided and meet size requirements.
A candidate profile includes:
- Personal information (name, contact details, location)
- Professional background (current title, experience level, years of experience)
- Skills list
- Professional experience history
- Educational background
- Resume and portfolio links
- Salary expectations and availability status
- Since:
- 2025-05-14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the creation timestamp.Gets the candidate's current job title.Gets the list of candidate's educational qualifications.Gets the candidate's expected salary.Gets the list of candidate's work experiences.Gets the candidate's experience level category.Gets the candidate's first name.getId()Gets the MongoDB document ID.Gets the candidate's availability status.Gets the candidate's last name.Gets the URL to the candidate's LinkedIn profile.Gets the candidate's location.Gets the candidate's phone number.Gets the URL to the candidate's portfolio website.Gets the candidate's profile summary/bio.Gets the URL to the candidate's resume.Gets the list of candidate's skills.Gets the last update timestamp.Gets the user ID associated with this candidate profile.Gets the candidate's years of professional experience.voidsetCreatedAt(LocalDateTime createdAt) Sets the creation timestamp.voidsetCurrentTitle(String currentTitle) Sets the candidate's current job title.voidsetEducation(List<Education> education) Sets the list of candidate's educational qualifications.voidsetExpectedSalary(Double expectedSalary) Sets the candidate's expected salary.voidsetExperience(List<Experience> experience) Sets the list of candidate's work experiences.voidsetExperienceLevel(String experienceLevel) Sets the candidate's experience level category.voidsetFirstName(String firstName) Sets the candidate's first name.voidSets the MongoDB document ID.voidsetIsAvailable(Boolean isAvailable) Sets the candidate's availability status.voidsetLastName(String lastName) Sets the candidate's last name.voidsetLinkedInUrl(String linkedInUrl) Sets the URL to the candidate's LinkedIn profile.voidsetLocation(String location) Sets the candidate's location.voidsetPhoneNumber(String phoneNumber) Sets the candidate's phone number.voidsetPortfolioUrl(String portfolioUrl) Sets the URL to the candidate's portfolio website.voidsetProfileSummary(String profileSummary) Sets the candidate's profile summary/bio.voidsetResumeUrl(String resumeUrl) Sets the URL to the candidate's resume.voidSets the list of candidate's skills.voidsetUpdatedAt(LocalDateTime updatedAt) Sets the last update timestamp.voidSets the user ID associated with this candidate profile.voidsetYearsOfExperience(Integer yearsOfExperience) Sets the candidate's years of professional experience.
-
Constructor Details
-
CandidateDto
public CandidateDto()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
-
getUserId
Gets the user ID associated with this candidate profile.- Returns:
- The user ID
-
setUserId
Sets the user ID associated with this candidate profile.- Parameters:
userId- The user ID to set
-
getFirstName
Gets the candidate's first name.- Returns:
- The first name
-
setFirstName
Sets the candidate's first name.- Parameters:
firstName- The first name to set
-
getLastName
Gets the candidate's last name.- Returns:
- The last name
-
setLastName
Sets the candidate's last name.- Parameters:
lastName- The last name to set
-
getPhoneNumber
Gets the candidate's phone number.- Returns:
- The phone number
-
setPhoneNumber
Sets the candidate's phone number.- Parameters:
phoneNumber- The phone number to set
-
getLocation
Gets the candidate's location.- Returns:
- The location
-
setLocation
Sets the candidate's location.- Parameters:
location- The location to set
-
getCurrentTitle
Gets the candidate's current job title.- Returns:
- The current job title
-
setCurrentTitle
Sets the candidate's current job title.- Parameters:
currentTitle- The current job title to set
-
getExperienceLevel
Gets the candidate's experience level category.- Returns:
- The experience level
-
setExperienceLevel
Sets the candidate's experience level category.- Parameters:
experienceLevel- The experience level to set
-
getYearsOfExperience
Gets the candidate's years of professional experience.- Returns:
- The years of experience
-
setYearsOfExperience
Sets the candidate's years of professional experience.- Parameters:
yearsOfExperience- The years of experience to set
-
getSkills
Gets the list of candidate's skills.- Returns:
- The list of skills
-
setSkills
Sets the list of candidate's skills.- Parameters:
skills- The list of skills to set
-
getExperience
Gets the list of candidate's work experiences.- Returns:
- The list of work experiences
-
setExperience
Sets the list of candidate's work experiences.- Parameters:
experience- The list of work experiences to set
-
getEducation
Gets the list of candidate's educational qualifications.- Returns:
- The list of educational qualifications
-
setEducation
Sets the list of candidate's educational qualifications.- Parameters:
education- The list of educational qualifications 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
-
getProfileSummary
Gets the candidate's profile summary/bio.- Returns:
- The profile summary
-
setProfileSummary
Sets the candidate's profile summary/bio.- Parameters:
profileSummary- The profile summary to set
-
getLinkedInUrl
Gets the URL to the candidate's LinkedIn profile.- Returns:
- The LinkedIn URL
-
setLinkedInUrl
Sets the URL to the candidate's LinkedIn profile.- Parameters:
linkedInUrl- The LinkedIn URL to set
-
getPortfolioUrl
Gets the URL to the candidate's portfolio website.- Returns:
- The portfolio URL
-
setPortfolioUrl
Sets the URL to the candidate's portfolio website.- Parameters:
portfolioUrl- The portfolio URL to set
-
getExpectedSalary
Gets the candidate's expected salary.- Returns:
- The expected salary
-
setExpectedSalary
Sets the candidate's expected salary.- Parameters:
expectedSalary- The expected salary to set
-
getIsAvailable
Gets the candidate's availability status.- Returns:
- The availability status (true if available, false if not available)
-
setIsAvailable
Sets the candidate's availability status.- Parameters:
isAvailable- The availability status 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
-