Skip to content

Commit

Permalink
ARPBE-64: Adding new fields (#415)
Browse files Browse the repository at this point in the history
* ARPBE-64: WIP - Adding fields to entities

* ARPBE-64: WIP - Finished adding fields to entities.

* ARPBE-64: Adding new entities

* ARPBE-64: changing pom.xml build configuration to work with lombok

* ARPBE-64: Adding test data as well as cleaning up entities that are seem redundant or are not queryable

* ARPBE-64: Fixing up tests in TestMockDataLoader to be more realistic
  • Loading branch information
scriptom authored Apr 12, 2023
1 parent 144c195 commit 3b60c7c
Show file tree
Hide file tree
Showing 161 changed files with 5,720 additions and 2,086 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
<release>17</release>
<fork>true</fork>
</configuration>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public class MockDataLoader {
*/
private <T extends BullhornEntity> List<T> jsonStringToEntityList(String jsonData, Class<T> type) {

ListWrapper<T> listWrapper = restJsonConverter.jsonToEntityDoNotUnwrapRoot(jsonData, BullhornEntityInfo.getTypesListWrapperType(type));
ListWrapper<T> listWrapper = restJsonConverter.jsonToEntityDoNotUnwrapRoot(jsonData, BullhornEntityInfo.getTypesListWrapperType(type));

return listWrapper.getData();

Expand Down Expand Up @@ -420,6 +420,7 @@ public class MockDataLoader {
entityFiles.put(CandidateCertification.class, "candidatecertification-data.txt");
entityFiles.put(CandidateEducation.class, "candidateeducation-data.txt");
entityFiles.put(CandidateReference.class, "candidatereference-data.txt");
entityFiles.put(CandidateSource.class, "candidatesource-data.txt");
entityFiles.put(CandidateWorkHistory.class, "candidateworkhistory-data.txt");
entityFiles.put(Category.class, "category-data.txt");
entityFiles.put(Certification.class, "certification-data.txt");
Expand All @@ -439,12 +440,14 @@ public class MockDataLoader {
entityFiles.put(ClientCorporationCertification.class, "clientcorporationcertification-data.txt");
entityFiles.put(CorporateUser.class, "corporateuser-data.txt");
entityFiles.put(CorporationDepartment.class, "corporationdepartment-data.txt");
entityFiles.put(Corporation.class, "corporation-data.txt");
entityFiles.put(Country.class, "country-data.txt");
entityFiles.put(Department.class, "department-data.txt");
entityFiles.put(DistributionList.class, "distributionlist-data.txt");
entityFiles.put(File.class, "file-data.txt");
entityFiles.put(GoalTarget.class, "goaltarget-data.txt");
entityFiles.put(HousingComplex.class, "housingcomplex-data.txt");
entityFiles.put(HousingComplexAmenity.class, "housingcomplexamenity-data.txt");
entityFiles.put(HousingComplexUnit.class, "housingcomplexunit-data.txt");
entityFiles.put(HousingComplexFurnitureDelivery.class, "housingcomplexfurnituredelivery-data.txt");
entityFiles.put(HousingComplexUtilityAccount.class, "housingcomplexutilityaccount-data.txt");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@
"customTextBlock10", "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "customTextBlock6",
"customTextBlock7", "customTextBlock8", "customTextBlock9", "dateAdded", "dateExpiration", "documentDeadline",
"fileAttachments", "jobSubmission", "matchingCredentialCount", "modifyingUser", "owner", "placement", "status", "userCertificationName",
"userCertificationStatus"})
"userCertificationStatus", "isDeleted", "isRequired"})
public class CertificationRequirement extends AbstractRequirement implements UpdateEntity, CreateEntity, QueryEntity,
AssociationEntity, EditHistoryEntity {

private Candidate candidate;
private JobSubmission jobSubmission;
private Placement placement;
private Boolean isDeleted;
private Boolean isRequired;

public CertificationRequirement() {
}
Expand Down Expand Up @@ -70,6 +72,22 @@ public void setPlacement(Placement placement) {
this.placement = placement;
}

public Boolean getDeleted() {
return isDeleted;
}

public void setDeleted(Boolean deleted) {
isDeleted = deleted;
}

public Boolean getRequired() {
return isRequired;
}

public void setRequired(Boolean required) {
isRequired = required;
}

@Override
public String toString() {
return "CertificationRequirement{" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
import javax.validation.constraints.Size;

import com.bullhornsdk.data.model.entity.core.standard.JobSubmission;
import com.bullhornsdk.data.model.entity.core.type.AssociationEntity;
import com.bullhornsdk.data.model.entity.core.type.CreateEntity;
import com.bullhornsdk.data.model.entity.core.type.EditHistoryEntity;
import com.bullhornsdk.data.model.entity.core.type.QueryEntity;
import com.bullhornsdk.data.model.entity.core.type.UpdateEntity;
import com.bullhornsdk.data.model.entity.core.type.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonRootName;
import org.joda.time.DateTime;

/**
* Created by mkesmetzis 27-Apr-20
Expand All @@ -28,16 +25,22 @@
"customTextBlock10", "customTextBlock2", "customTextBlock3", "customTextBlock4", "customTextBlock5", "customTextBlock6",
"customTextBlock7", "customTextBlock8", "customTextBlock9", "dateAdded", "dateExpiration", "documentDeadline",
"fileAttachments", "jobSubmission", "matchingCredentialCount", "modifyingUser", "owner", "status", "userCertificationName",
"userCertificationStatus"})
"userCertificationStatus", "dateLastModified", "isDeleted", "isRequired", "migrateGUID"})
public class JobSubmissionCertificationRequirement extends AbstractRequirement implements UpdateEntity, CreateEntity, QueryEntity,
AssociationEntity, EditHistoryEntity {
AssociationEntity, EditHistoryEntity, DateLastModifiedEntity {

private JobSubmission jobSubmission;
@Size(max = 100)
private String userCertificationName;
@Size(max = 30)
private String userCertificationStatus;

private DateTime dateLastModified;

private Boolean isRequired;

private String migrateGUID;

public JobSubmissionCertificationRequirement() {
}

Expand Down Expand Up @@ -77,6 +80,31 @@ public void setUserCertificationStatus(String userCertificationStatus) {
this.userCertificationStatus = userCertificationStatus;
}

@Override
public DateTime getDateLastModified() {
return dateLastModified;
}

public void setDateLastModified(DateTime dateLastModified) {
this.dateLastModified = dateLastModified;
}

public Boolean getRequired() {
return isRequired;
}

public void setRequired(Boolean required) {
isRequired = required;
}

public String getMigrateGUID() {
return migrateGUID;
}

public void setMigrateGUID(String migrateGUID) {
this.migrateGUID = migrateGUID;
}

@Override
public String toString() {
return "JobSubmissionCertificationRequirement{" +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.bullhornsdk.data.model.entity.core.customobject;

import com.bullhornsdk.data.model.entity.core.type.QueryEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.bullhornsdk.data.model.entity.embedded.OneToMany;
import com.fasterxml.jackson.annotation.*;
import org.joda.time.DateTime;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonRootName(value = "data")
@JsonPropertyOrder({"attributes", "corporationID", "dateAdded", "description", "displayType", "enabled", "icon", "isHIidden",
"name", "objectDepartments", "objectNumber", "reportID", "staticTemplateName", "tabName", "useClientDefinedName"})
public class UserCustomObject extends CustomObjectBase implements QueryEntity {

private Integer id;
Expand All @@ -16,6 +17,32 @@ public class UserCustomObject extends CustomObjectBase implements QueryEntity {

private Integer isPublic;

private Integer corporationID;

private DateTime dateAdded;

private String description;

private String displayType;

private Boolean enabled;

private String icon;

private Boolean isHidden;

private String name;

private Integer objectNumber;

private Integer reportID;

private String staticTemplateName;

private String tabName;

private Boolean useClientDefinedName;

public UserCustomObject() {
super();
}
Expand All @@ -25,10 +52,14 @@ public UserCustomObject(Integer id) {
}

@Override
public Integer getId() { return this.id; }
public Integer getId() {
return this.id;
}

@Override
public void setId(Integer id) { this.id = id; }
public void setId(Integer id) {
this.id = id;
}

@JsonProperty("type")
public String getType() {
Expand All @@ -50,6 +81,134 @@ public void setIsPublic(Integer isPublic) {
this.isPublic = isPublic;
}

@Override
public Integer getCorporationID() {
return corporationID;
}

@Override
public void setCorporationID(Integer corporationID) {
this.corporationID = corporationID;
}

@Override
public DateTime getDateAdded() {
return dateAdded;
}

@Override
public void setDateAdded(DateTime dateAdded) {
this.dateAdded = dateAdded;
}

@Override
public String getDescription() {
return description;
}

@Override
public void setDescription(String description) {
this.description = description;
}

@Override
public String getDisplayType() {
return displayType;
}

@Override
public void setDisplayType(String displayType) {
this.displayType = displayType;
}

@Override
public Boolean getEnabled() {
return enabled;
}

@Override
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}

@Override
public String getIcon() {
return icon;
}

@Override
public void setIcon(String icon) {
this.icon = icon;
}

public Boolean getHidden() {
return isHidden;
}

public void setHidden(Boolean hidden) {
isHidden = hidden;
}

@Override
public String getName() {
return name;
}

@Override
public void setName(String name) {
this.name = name;
}

@Override
public Integer getObjectNumber() {
return objectNumber;
}

@Override
public void setObjectNumber(Integer objectNumber) {
this.objectNumber = objectNumber;
}

@Override
public Integer getReportID() {
return reportID;
}

@Override
public void setReportID(Integer reportID) {
this.reportID = reportID;
}

@Override
public String getStaticTemplateName() {
return staticTemplateName;
}

@Override
public void setStaticTemplateName(String staticTemplateName) {
this.staticTemplateName = staticTemplateName;
}

@Override
public String getTabName() {
return tabName;
}

@Override
public void setTabName(String tabName) {
this.tabName = tabName;
}

@Override
public Boolean getUseClientDefinedName() {
return useClientDefinedName;
}

@Override
public void setUseClientDefinedName(Boolean useClientDefinedName) {
this.useClientDefinedName = useClientDefinedName;
}

@Override
public String toString() {
final StringBuffer sb = new StringBuffer("UserCustomObject{");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
@JsonPropertyOrder({ "id", "clientCorporation", "text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9", "text10", "text11", "text12", "text13",
"text14", "text15", "text16", "text17", "text18", "text19", "text20", "int1", "int2", "int3", "int4", "int5", "int6", "int7", "int8", "int9",
"int10", "float1", "float2", "float3", "float4", "float5", "float6", "float7", "float8", "float9", "float10", "textBlock1", "textBlock2",
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded" })
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded", "dateLastModified" })
public class ClientCorporationCustomObjectInstance1 extends ClientCorporationCustomObjectInstance {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
@JsonPropertyOrder({ "id", "clientCorporation", "text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9", "text10", "text11", "text12", "text13",
"text14", "text15", "text16", "text17", "text18", "text19", "text20", "int1", "int2", "int3", "int4", "int5", "int6", "int7", "int8", "int9",
"int10", "float1", "float2", "float3", "float4", "float5", "float6", "float7", "float8", "float9", "float10", "textBlock1", "textBlock2",
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded" })
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded", "dateLastModified" })
public class ClientCorporationCustomObjectInstance10 extends ClientCorporationCustomObjectInstance {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
@JsonPropertyOrder({ "id", "clientCorporation", "text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9", "text10", "text11", "text12", "text13",
"text14", "text15", "text16", "text17", "text18", "text19", "text20", "int1", "int2", "int3", "int4", "int5", "int6", "int7", "int8", "int9",
"int10", "float1", "float2", "float3", "float4", "float5", "float6", "float7", "float8", "float9", "float10", "textBlock1", "textBlock2",
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded" })
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded", "dateLastModified" })
public class ClientCorporationCustomObjectInstance11 extends ClientCorporationCustomObjectInstance {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
@JsonPropertyOrder({ "id", "clientCorporation", "text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9", "text10", "text11", "text12", "text13",
"text14", "text15", "text16", "text17", "text18", "text19", "text20", "int1", "int2", "int3", "int4", "int5", "int6", "int7", "int8", "int9",
"int10", "float1", "float2", "float3", "float4", "float5", "float6", "float7", "float8", "float9", "float10", "textBlock1", "textBlock2",
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded" })
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded", "dateLastModified" })
public class ClientCorporationCustomObjectInstance12 extends ClientCorporationCustomObjectInstance {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
@JsonPropertyOrder({ "id", "clientCorporation", "text1", "text2", "text3", "text4", "text5", "text6", "text7", "text8", "text9", "text10", "text11", "text12", "text13",
"text14", "text15", "text16", "text17", "text18", "text19", "text20", "int1", "int2", "int3", "int4", "int5", "int6", "int7", "int8", "int9",
"int10", "float1", "float2", "float3", "float4", "float5", "float6", "float7", "float8", "float9", "float10", "textBlock1", "textBlock2",
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded" })
"textBlock3", "textBlock4", "textBlock5", "date1", "date2", "date3", "date4", "date5", "date6", "date7", "date8", "date9", "date10", "dateAdded", "dateLastModified" })
public class ClientCorporationCustomObjectInstance13 extends ClientCorporationCustomObjectInstance {
}
Loading

0 comments on commit 3b60c7c

Please sign in to comment.