public void DisplayExperienceToEmployer(Member member, Resume resume, ProfessionalView view, IResumeHighlighter highlighter) { _highlighter = highlighter ?? _highlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration()); _hideRecentEmployers = !view.CanAccess(ProfessionalVisibility.RecentEmployers); DisplayExperienceInternal(member, resume); }
public void DisplayExperienceToSelf(Member member, Resume resume) { _highlighter = _highlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration()); _hideRecentEmployers = false; DisplayExperienceInternal(member, resume); }
protected override void OnInit(EventArgs e) { base.OnInit(e); _resumeHighlighter = (Model.CurrentSearch != null) ? ResumeHighlighterFactory.Create(ResumeHighlighterKind.Full, Model.CurrentSearch.Criteria, new HighlighterConfiguration()) : ResumeHighlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration()); }
public void DisplayContent(string content, bool allowEditing, IResumeHighlighter highlighter) { if (highlighter == null) { throw new ArgumentNullException("highlighter"); } this.content = content; this.allowEditing = allowEditing; this.highlighter = highlighter; }
internal static string GetJobTitleHtml(IJob job, IResumeHighlighter highlighter) { string jobHtml = ""; if (!string.IsNullOrEmpty(job.Title)) { jobHtml = highlighter.HighlightJobTitle(job.Title); } return(jobHtml); }
public void DisplayContent(IList <School> schools, bool allowEditing, IResumeHighlighter highlighter) { if (highlighter == null) { throw new ArgumentNullException("highlighter"); } _allowEditing = allowEditing; _highlighter = highlighter; _haveContent = !schools.IsNullOrEmpty(); repEducationRecords.DataSource = schools; repEducationRecords.DataBind(); }
internal static string GetJobTitleAndEmployerHtml(IJob job, IResumeHighlighter highlighter, bool hideRecentEmployers, IJob previousJobForResume) { // Do not show the company names for the "current" and "previous" jobs (as defined in // RequirementsForMyVisibilityBasicSettingsPage) if the candidate has chosen // to hide these or the employer hasn't paid, but tell the employer whether these are available. // Note that the experience is no longer hidden as of 3.0. string jobHtml = ""; jobHtml += GetJobTitleHtml(job, highlighter); jobHtml += !string.IsNullOrEmpty(job.Company) ? ", " : ""; jobHtml += GetEmployerHtml(job, highlighter, hideRecentEmployers, previousJobForResume); return(jobHtml); }
protected override void OnInit(EventArgs e) { base.OnInit(e); if (Model is SuggestedCandidatesListModel) { _resumeHighlighter = ResumeHighlighterFactory.Create(ResumeHighlighterKind.Snippet, Model.Criteria, new HighlighterConfiguration()); } else if (Model is SearchListModel) { _resumeHighlighter = ResumeHighlighterFactory.Create(ResumeHighlighterKind.Snippet, Model.Criteria, new HighlighterConfiguration()); } else { _resumeHighlighter = ResumeHighlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration()); } }
internal static string GetEmployerHtml(IJob job, IResumeHighlighter highlighter, bool hideRecentEmployers, IJob previousJobForResume) { // Do not show the company names for the "current" and "previous" jobs (as defined in // RequirementsForMyVisibilityBasicSettingsPage) if the candidate has chosen // to hide these or the employer hasn't paid, but tell the employer whether these are available. // Note that the experience is no longer hidden as of 3.0. string jobHtml = ""; if (!string.IsNullOrEmpty(job.Company)) { bool hideEmployer = hideRecentEmployers && (job.Dates == null || job.Dates.End == null || job == previousJobForResume); jobHtml += (hideEmployer ? "<Employer hidden>" : highlighter.HighlightJobTitle(job.Company)); } return(jobHtml); }
public void DisplayJobs(Resume resume, bool allowEditing, IResumeHighlighter highlighter, bool hideRecentEmployers) { if (highlighter == null) { throw new ArgumentNullException("highlighter"); } _allowEditing = allowEditing; _highlighter = highlighter; _hideRecentEmployers = hideRecentEmployers; if (resume == null) { return; } _previousJob = resume.PreviousJob; _haveContent = !resume.Jobs.IsNullOrEmpty(); repRecords.DataSource = resume.Jobs; repRecords.DataBind(); }
public void DisplayResume(Resume resume, bool allowEditing, IResumeHighlighter highlighter, bool hideRecentEmployers, bool hideReferees) { if (allowEditing && (hideRecentEmployers || hideReferees)) { throw new ArgumentException("allowEditing cannot be true while some content is hidden.", "allowEditing"); } highlighter = highlighter ?? _highlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration()); ucCareerObjective.DisplayContent(resume == null ? null : resume.Objective, allowEditing, highlighter); ucSummary.DisplayContent(resume == null ? null : resume.Summary, allowEditing, highlighter); ucEmploymentHistory.DisplayJobs(resume, allowEditing, highlighter, hideRecentEmployers); ucSkills.DisplayContent(resume == null ? null : resume.Skills, allowEditing, highlighter); ucEducationHistory.DisplayContent(resume == null ? null : resume.Schools, allowEditing, highlighter); ucCourses.DisplayContent(resume == null ? null : StringUtils.Join("\n", resume.Courses), allowEditing, highlighter); ucAwards.DisplayContent(resume == null ? null : StringUtils.Join("\n", resume.Awards), allowEditing, highlighter); ucProfessional.DisplayContent(resume == null ? null : resume.Professional, allowEditing, highlighter); ucInterests.DisplayContent(resume == null ? null : resume.Interests, allowEditing, highlighter); ucCitizenship.DisplayContent(resume == null ? null : resume.Citizenship, allowEditing, highlighter); ucAffiliation.DisplayContent(resume == null ? null : resume.Affiliations, allowEditing, highlighter); ucOther.DisplayContent(resume == null ? null : resume.Other, allowEditing, highlighter); string referees = (resume == null ? null : resume.Referees); if (string.IsNullOrEmpty(referees) || !hideReferees) { ucReferences.DisplayContent(referees, allowEditing, highlighter); } else { // No access to referees - display some placeholder text (and don't highlight it). ucReferences.DisplayContent(refereesHiddenText, allowEditing, _highlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration())); } }
public void DisplayToEmployer(Candidate candidate, Employer employer, IResumeHighlighter highlighter) { _highlighter = highlighter ?? _highlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration()); DisplayInternal(candidate, false); }
public void DisplayToSelf(Candidate candidate, bool isEditingAllowed) { _highlighter = _highlighterFactory.Create(ResumeHighlighterKind.Null, null, new HighlighterConfiguration()); DisplayInternal(candidate, isEditingAllowed); }