Class Experience
java.lang.Object
me.josephsf.jobportaljosephsfeir.model.Experience
Model class representing a work experience entry for a candidate in the Job Portal system.
The Experience class is an embedded document within the Candidate entity that captures details about a candidate's professional work history, including job titles, employers, locations, durations, and responsibilities.
This class is used to structure work history information within a candidate's profile. Multiple Experience instances can be included in a Candidate document to represent the complete professional background of a job seeker.
Experience records include:
- Job title or position held
- Company or organization name
- Work location
- Employment period (start and end dates)
- Job description and responsibilities
- Indicator of current employment
This information is used for candidate qualification evaluation, matching to job requirements, and displaying work history to recruiters.
- Since:
- 2025-05-15
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the company name.Gets the job description.Gets the employment end date.Gets whether this is the candidate's current position.Gets the job location.Gets the employment start date.getTitle()Gets the job title.voidsetCompany(String company) Sets the company name.voidsetDescription(String description) Sets the job description.voidsetEndDate(LocalDate endDate) Sets the employment end date.voidsetIsCurrent(Boolean isCurrent) Sets whether this is the candidate's current position.voidsetLocation(String location) Sets the job location.voidsetStartDate(LocalDate startDate) Sets the employment start date.voidSets the job title.
-
Constructor Details
-
Experience
public Experience()Default constructor. -
Experience
public Experience(String title, String company, String location, LocalDate startDate, LocalDate endDate, String description, Boolean isCurrent) Constructor with all experience details.- Parameters:
title- the job titlecompany- the company namelocation- the job locationstartDate- the employment start dateendDate- the employment end date (null if current)description- the job descriptionisCurrent- flag indicating if this is the current position
-
-
Method Details
-
getTitle
Gets the job title.- Returns:
- the job title
-
setTitle
Sets the job title.- Parameters:
title- the job title to set
-
getCompany
Gets the company name.- Returns:
- the company name
-
setCompany
Sets the company name.- Parameters:
company- the company name to set
-
getLocation
Gets the job location.- Returns:
- the location
-
setLocation
Sets the job location.- Parameters:
location- the location to set
-
getStartDate
Gets the employment start date.- Returns:
- the start date
-
setStartDate
Sets the employment start date.- Parameters:
startDate- the start date to set
-
getEndDate
Gets the employment end date. Will be null if this is the current position.- Returns:
- the end date or null if current
-
setEndDate
Sets the employment end date. Should be null if this is the current position.- Parameters:
endDate- the end date to set or null if current
-
getDescription
Gets the job description.- Returns:
- the job description
-
setDescription
Sets the job description.- Parameters:
description- the job description to set
-
getIsCurrent
Gets whether this is the candidate's current position.- Returns:
- true if this is the current position, false otherwise
-
setIsCurrent
Sets whether this is the candidate's current position. When set to true, the endDate should typically be null.- Parameters:
isCurrent- true if this is the current position, false otherwise
-