Skip to content

Commit

Permalink
feat(Person Custom Objects): Adding person custom objects 26-35. (#411)
Browse files Browse the repository at this point in the history
* feat(Person Custom Objects): Adding person custom objects 26-35.

* Added missing commit

* Added missing commit
  • Loading branch information
ndickerson authored Jun 28, 2023
1 parent 29535c1 commit 74a47fe
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 21 deletions.
9 changes: 2 additions & 7 deletions dataloader.iml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: com.bullhorn:sdk-rest:1.4.46" level="project" />
<orderEntry type="library" name="Maven: com.bullhorn:sdk-rest:1.4.61" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:4.2.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:4.2.6.RELEASE" level="project" />
Expand All @@ -51,14 +51,8 @@
<orderEntry type="library" name="Maven: org.hibernate:hibernate-validator:5.3.6.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.0.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.1" level="project" />
<orderEntry type="library" name="Maven: log4j:log4j:1.2.17" level="project" />
<orderEntry type="library" name="Maven: com.esotericsoftware.kryo:kryo:2.24.0" level="project" />
<orderEntry type="library" name="Maven: com.esotericsoftware.minlog:minlog:1.2" level="project" />
<orderEntry type="library" name="Maven: de.javakaffee:kryo-serializers:0.37" level="project" />
<orderEntry type="library" name="Maven: com.esotericsoftware:kryo:3.0.3" level="project" />
<orderEntry type="library" name="Maven: com.esotericsoftware:reflectasm:1.10.1" level="project" />
<orderEntry type="library" name="Maven: com.esotericsoftware:minlog:1.3.0" level="project" />
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:2.6.1" level="project" />
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest:2.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.tika:tika-parsers:1.14" level="project" />
<orderEntry type="library" name="Maven: org.apache.tika:tika-core:1.14" level="project" />
Expand Down Expand Up @@ -126,6 +120,7 @@
<orderEntry type="library" name="Maven: net.jcip:jcip-annotations:1.0" level="project" />
<orderEntry type="library" name="Maven: net.java.dev.jna:jna:4.1.0" level="project" />
<orderEntry type="library" name="Maven: edu.ucar:grib:4.5.5" level="project" />
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:2.5.0" level="project" />
<orderEntry type="library" name="Maven: org.jdom:jdom2:2.0.4" level="project" />
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.7.2" level="project" />
<orderEntry type="library" name="Maven: edu.ucar:jj2000:5.2" level="project" />
Expand Down
10 changes: 10 additions & 0 deletions dataloader.properties
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ loginUrl=https://rest.bullhornstaffing.com/rest-services/login
#personCustomObjectInstance23ExistField=person.customText1,text1
#personCustomObjectInstance24ExistField=person.customText1,text1
#personCustomObjectInstance25ExistField=person.customText1,text1
#personCustomObjectInstance26ExistField=person.customText1,text1
#personCustomObjectInstance27ExistField=person.customText1,text1
#personCustomObjectInstance28ExistField=person.customText1,text1
#personCustomObjectInstance29ExistField=person.customText1,text1
#personCustomObjectInstance30ExistField=person.customText1,text1
#personCustomObjectInstance31ExistField=person.customText1,text1
#personCustomObjectInstance32ExistField=person.customText1,text1
#personCustomObjectInstance33ExistField=person.customText1,text1
#personCustomObjectInstance34ExistField=person.customText1,text1
#personCustomObjectInstance35ExistField=person.customText1,text1
#placementCustomObjectInstance1ExistField=placement.customText1,text1
#placementCustomObjectInstance2ExistField=placement.customText1,text1
#placementCustomObjectInstance3ExistField=placement.customText1,text1
Expand Down
4 changes: 2 additions & 2 deletions examples/load/BillingProfile.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
externalID ,clientCorporation.externalID,billingClientCorporation.externalID,billingContact.externalID,billingLocation.externalID,invoiceStatementMessageTemplate.name ,invoiceTerm.externalID,effectiveDate,title ,billingAttention,owner.name ,billingCorporateUser.name,deliveryMethod,description ,toRecipients ,ccRecipients ,bccRecipients ,status,isDeleted,customDate1,customDate2,customDate3,customFloat1,customFloat2,customFloat3,customInt1,customInt2,customInt3,customText1 ,customText2 ,customText3 ,customText4 ,customText5 ,customText6 ,customText7 ,customText8 ,customText9 ,customText10 ,customText11 ,customText12 ,customText13 ,customText14 ,customText15 ,customText16 ,customText17 ,customText18 ,customText19 ,customText20 ,customTextBlock1 ,customTextBlock2 ,customTextBlock3
billingProfile-ext-1,clientCorporation-ext-1 ,clientCorporation-ext-1 ,clientContact-ext-1 ,location-ext-1 ,invoiceStatementMessageTemplate-ext-1,invoiceTerm-ext-1 ,2001-01-01 ,Contractor,Frank ,Sales CorporateUser,Manager CorporateUser ,Print ,Billed to Client,[email protected],[email protected],[email protected],Active,FALSE ,1/1/16 0:00,1/2/16 0:00,1/3/16 0:00,1 ,2 ,3 ,1 ,1 ,3 ,billingProfile-ext-1,custom text field 20,custom text field 3,custom text field 4,custom text field 5,custom text field 6,custom text field 7,custom text field 8,custom text field 9,custom text field 10,custom text field 11,custom text field 12,custom text field 13,custom text field 14,custom text field 15,custom text field 16,custom text field 17,custom text field 18,custom text field 19,custom text field 1,custom text block 1,custom text block 2,custom text block 3
externalID ,clientCorporation.externalID,billingClientCorporation.externalID,billingContact.externalID,billingLocation.externalID,invoiceStatementMessageTemplate.name ,invoiceTerm.externalID,effectiveDate,title ,billingAttention,owner.name ,billingCorporateUser.name,description ,toRecipients ,ccRecipients ,bccRecipients ,status,isDeleted,customDate1,customDate2,customDate3,customFloat1,customFloat2,customFloat3,customInt1,customInt2,customInt3,customText1 ,customText2 ,customText3 ,customText4 ,customText5 ,customText6 ,customText7 ,customText8 ,customText9 ,customText10 ,customText11 ,customText12 ,customText13 ,customText14 ,customText15 ,customText16 ,customText17 ,customText18 ,customText19 ,customText20 ,customTextBlock1 ,customTextBlock2 ,customTextBlock3
billingProfile-ext-1,clientCorporation-ext-1 ,clientCorporation-ext-1 ,clientContact-ext-1 ,location-ext-1 ,invoiceStatementMessageTemplate-ext-1,invoiceTerm-ext-1 ,2001-01-01 ,Contractor,Frank ,Sales CorporateUser,Manager CorporateUser ,Billed to Client,[email protected],[email protected],[email protected],Active,FALSE ,1/1/16 0:00,1/2/16 0:00,1/3/16 0:00,1 ,2 ,3 ,1 ,1 ,3 ,billingProfile-ext-1,custom text field 20,custom text field 3,custom text field 4,custom text field 5,custom text field 6,custom text field 7,custom text field 8,custom text field 9,custom text field 10,custom text field 11,custom text field 12,custom text field 13,custom text field 14,custom text field 15,custom text field 16,custom text field 17,custom text field 18,custom text field 19,custom text field 1,custom text block 1,custom text block 2,custom text block 3
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<dependency>
<groupId>com.bullhorn</groupId>
<artifactId>sdk-rest</artifactId>
<version>1.4.46</version>
<version>1.4.61</version>
</dependency>

<dependency>
Expand Down
30 changes: 20 additions & 10 deletions src/main/java/com/bullhorn/dataloader/enums/EntityInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,26 @@ public enum EntityInfo {
PERSON_CUSTOM_OBJECT_INSTANCE_23(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_23, 1077),
PERSON_CUSTOM_OBJECT_INSTANCE_24(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_24, 1078),
PERSON_CUSTOM_OBJECT_INSTANCE_25(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_25, 1079),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_1(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_1, 1080),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_2(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_2, 1081),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_3(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_3, 1082),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_4(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_4, 1083),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_5(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_5, 1084),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_6(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_6, 1085),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_7(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_7, 1086),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_8(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_8, 1087),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_9(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_9, 1088),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_10(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_10, 1089),
PERSON_CUSTOM_OBJECT_INSTANCE_26(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_26, 1080),
PERSON_CUSTOM_OBJECT_INSTANCE_27(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_27, 1081),
PERSON_CUSTOM_OBJECT_INSTANCE_28(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_28, 1082),
PERSON_CUSTOM_OBJECT_INSTANCE_29(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_29, 1083),
PERSON_CUSTOM_OBJECT_INSTANCE_30(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_30, 1084),
PERSON_CUSTOM_OBJECT_INSTANCE_31(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_31, 1085),
PERSON_CUSTOM_OBJECT_INSTANCE_32(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_32, 1086),
PERSON_CUSTOM_OBJECT_INSTANCE_33(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_33, 1087),
PERSON_CUSTOM_OBJECT_INSTANCE_34(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_34, 1088),
PERSON_CUSTOM_OBJECT_INSTANCE_35(BullhornEntityInfo.PERSON_CUSTOM_OBJECT_INSTANCE_35, 1089),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_1(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_1, 1090),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_2(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_2, 1091),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_3(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_3, 1092),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_4(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_4, 1093),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_5(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_5, 1094),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_6(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_6, 1095),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_7(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_7, 1096),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_8(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_8, 1097),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_9(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_9, 1098),
PLACEMENT_CUSTOM_OBJECT_INSTANCE_10(BullhornEntityInfo.PLACEMENT_CUSTOM_OBJECT_INSTANCE_10, 1099),

// Entities that can be referenced, but not loaded
ADDRESS(BullhornEntityInfo.ADDRESS, 2000),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private <S extends SearchEntity> SearchResult<S> doGetByExternalId(RestApi restA
for (int i = 0; i < jsonArray.length(); ++i) {
JSONObject jsonObject = jsonArray.getJSONObject(i);
jsonObject.put(StringConsts.EXTERNAL_ID, externalId);
list.add(restJsonConverter.jsonToEntityDoNotUnwrapRoot(jsonObject.toString(), type));
list.add(restJsonConverter.jsonToEntity(jsonObject.toString(), type));
}
searchResult.setList(list);
} catch (Exception e) {
Expand Down
10 changes: 10 additions & 0 deletions src/test/resources/integrationTest/integrationTest.properties
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ personCustomObjectInstance22ExistField=person.customText1,text1
personCustomObjectInstance23ExistField=person.customText1,text1
personCustomObjectInstance24ExistField=person.customText1,text1
personCustomObjectInstance25ExistField=person.customText1,text1
personCustomObjectInstance26ExistField=person.customText1,text1
personCustomObjectInstance27ExistField=person.customText1,text1
personCustomObjectInstance28ExistField=person.customText1,text1
personCustomObjectInstance29ExistField=person.customText1,text1
personCustomObjectInstance30ExistField=person.customText1,text1
personCustomObjectInstance31ExistField=person.customText1,text1
personCustomObjectInstance32ExistField=person.customText1,text1
personCustomObjectInstance33ExistField=person.customText1,text1
personCustomObjectInstance34ExistField=person.customText1,text1
personCustomObjectInstance35ExistField=person.customText1,text1
placementCustomObjectInstance1ExistField=placement.customText1,text1
placementCustomObjectInstance2ExistField=placement.customText1,text1
placementCustomObjectInstance3ExistField=placement.customText1,text1
Expand Down

0 comments on commit 74a47fe

Please sign in to comment.