2020import com .sovren .models .api .dataenrichment .ontology .request .CompareProfessionsRequest ;
2121import com .sovren .models .api .dataenrichment .ontology .request .CompareSkillsToProfessionRequest ;
2222import com .sovren .models .api .dataenrichment .ontology .request .SuggestProfessionsRequest ;
23- import com .sovren .models .api .dataenrichment .ontology .request .SuggestSkillsRequest ;
23+ import com .sovren .models .api .dataenrichment .ontology .request .SuggestSkillsFromProfessionsRequest ;
2424import com .sovren .models .api .dataenrichment .ontology .response .CompareProfessionsResponse ;
2525import com .sovren .models .api .dataenrichment .ontology .response .CompareSkillsToProfessionResponse ;
2626import com .sovren .models .api .dataenrichment .ontology .response .SuggestProfessionsResponse ;
@@ -1657,14 +1657,14 @@ public CompareSkillsToProfessionResponse compareSkillsToProfessions(ParsedResume
16571657 * @return The API response body
16581658 * @throws SovrenException Thrown when an API error occurs
16591659 */
1660- public SuggestSkillsResponse suggestSkills (List <Integer > professionCodeIds , int limit ) throws SovrenException {
1661- SuggestSkillsRequest request = new SuggestSkillsRequest ();
1660+ public SuggestSkillsResponse suggestSkillsFromProfessions (List <Integer > professionCodeIds , int limit ) throws SovrenException {
1661+ SuggestSkillsFromProfessionsRequest request = new SuggestSkillsFromProfessionsRequest ();
16621662 request .ProfessionCodeIds = professionCodeIds ;
16631663 request .Limit = limit ;
16641664
16651665 RequestBody body = createJsonBody (request );
16661666 Request apiRequest = new Request .Builder ()
1667- .url (_endpoints .desOntologySuggestSkills ())
1667+ .url (_endpoints .desOntologySuggestSkillsFromProfessions ())
16681668 .post (body )
16691669 .build ();
16701670
@@ -1678,8 +1678,8 @@ public SuggestSkillsResponse suggestSkills(List<Integer> professionCodeIds, int
16781678 * @return The API response body
16791679 * @throws SovrenException Thrown when an API error occurs
16801680 */
1681- public SuggestSkillsResponse suggestSkills (List <Integer > professionCodeIds ) throws SovrenException {
1682- return suggestSkills (professionCodeIds , 10 );
1681+ public SuggestSkillsResponse suggestSkillsFromProfessions (List <Integer > professionCodeIds ) throws SovrenException {
1682+ return suggestSkillsFromProfessions (professionCodeIds , 10 );
16831683 }
16841684
16851685 /**
@@ -1689,7 +1689,7 @@ public SuggestSkillsResponse suggestSkills(List<Integer> professionCodeIds) thro
16891689 * @return The API response body
16901690 * @throws SovrenException Thrown when an API error occurs
16911691 */
1692- public SuggestSkillsResponse suggestSkills (ParsedResume resume , int limit ) throws SovrenException {
1692+ public SuggestSkillsResponse suggestSkillsFromProfessions (ParsedResume resume , int limit ) throws SovrenException {
16931693 if (resume != null && resume .EmploymentHistory != null && resume .EmploymentHistory .Positions != null ){
16941694 List <Integer > normalizedProfs = new ArrayList <Integer >();
16951695 for (Position position : resume .EmploymentHistory .Positions ){
@@ -1699,7 +1699,7 @@ public SuggestSkillsResponse suggestSkills(ParsedResume resume, int limit) throw
16991699 }
17001700
17011701 if (normalizedProfs .size () > 0 ){
1702- return suggestSkills (normalizedProfs ,limit );
1702+ return suggestSkillsFromProfessions (normalizedProfs ,limit );
17031703 }
17041704 }
17051705 throw new IllegalArgumentException ("No professions were found in the resume, or the resume was parsed without professions normalization enabled" );
@@ -1711,8 +1711,8 @@ public SuggestSkillsResponse suggestSkills(ParsedResume resume, int limit) throw
17111711 * @return The API response body
17121712 * @throws SovrenException Thrown when an API error occurs
17131713 */
1714- public SuggestSkillsResponse suggestSkills (ParsedResume resume ) throws SovrenException {
1715- return suggestSkills (resume , 10 );
1714+ public SuggestSkillsResponse suggestSkillsFromProfessions (ParsedResume resume ) throws SovrenException {
1715+ return suggestSkillsFromProfessions (resume , 10 );
17161716 }
17171717
17181718 /**
@@ -1722,12 +1722,12 @@ public SuggestSkillsResponse suggestSkills(ParsedResume resume) throws SovrenExc
17221722 * @return The API response body
17231723 * @throws SovrenException Thrown when an API error occurs
17241724 */
1725- public SuggestSkillsResponse suggestSkills (ParsedJob job , int limit ) throws SovrenException {
1725+ public SuggestSkillsResponse suggestSkillsFromProfessions (ParsedJob job , int limit ) throws SovrenException {
17261726 if (job != null && job .JobTitles != null && job .JobTitles .NormalizedProfession != null && job .JobTitles .NormalizedProfession .Profession != null && job .JobTitles .NormalizedProfession .Profession .CodeId != null ){
17271727 List <Integer > ids = new ArrayList <Integer >();
17281728 ids .add (job .JobTitles .NormalizedProfession .Profession .CodeId );
17291729
1730- return suggestSkills (ids ,limit );
1730+ return suggestSkillsFromProfessions (ids ,limit );
17311731 }
17321732 throw new IllegalArgumentException ("No professions were found in the job, or the job was parsed without professions normalization enabled" );
17331733 }
@@ -1738,8 +1738,8 @@ public SuggestSkillsResponse suggestSkills(ParsedJob job, int limit) throws Sovr
17381738 * @return The API response body
17391739 * @throws SovrenException Thrown when an API error occurs
17401740 */
1741- public SuggestSkillsResponse suggestSkills (ParsedJob job ) throws SovrenException {
1742- return suggestSkills (job , 10 );
1741+ public SuggestSkillsResponse suggestSkillsFromProfessions (ParsedJob job ) throws SovrenException {
1742+ return suggestSkillsFromProfessions (job , 10 );
17431743 }
17441744
17451745 /**
0 commit comments