Class Experience

java.lang.Object
me.josephsf.jobportaljosephsfeir.model.Experience

public class Experience extends Object
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 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 title
      company - the company name
      location - the job location
      startDate - the employment start date
      endDate - the employment end date (null if current)
      description - the job description
      isCurrent - flag indicating if this is the current position
  • Method Details

    • 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
    • getCompany

      public String getCompany()
      Gets the company name.
      Returns:
      the company name
    • setCompany

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

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

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

      public LocalDate getStartDate()
      Gets the employment start date.
      Returns:
      the start date
    • setStartDate

      public void setStartDate(LocalDate startDate)
      Sets the employment start date.
      Parameters:
      startDate - the start date to set
    • getEndDate

      public LocalDate getEndDate()
      Gets the employment end date. Will be null if this is the current position.
      Returns:
      the end date or null if current
    • setEndDate

      public void setEndDate(LocalDate endDate)
      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

      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
    • getIsCurrent

      public Boolean getIsCurrent()
      Gets whether this is the candidate's current position.
      Returns:
      true if this is the current position, false otherwise
    • setIsCurrent

      public void setIsCurrent(Boolean isCurrent)
      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