Updating offline phone home
@@ -25,9 +25,8 @@ package com.blackducksoftware.integration.hub.detect.hub;
import com.blackducksoftware.integration.hub.service.PhoneHomeService;
import com.blackducksoftware.integration.phonehome.PhoneHomeClient;
-import com.blackducksoftware.integration.phonehome.PhoneHomeRequestBodyBuilder;
-import com.blackducksoftware.integration.phonehome.enums.BlackDuckName;
-import com.blackducksoftware.integration.phonehome.enums.PhoneHomeSource;
+import com.blackducksoftware.integration.phonehome.PhoneHomeRequestBody;
+import com.blackducksoftware.integration.phonehome.enums.ProductIdEnum;
import com.blackducksoftware.integration.util.CIEnvironmentVariables;
public class OfflinePhoneHomeService extends PhoneHomeService {
@@ -38,13 +37,12 @@ public class OfflinePhoneHomeService extends PhoneHomeService {
}
@Override
- public PhoneHomeRequestBodyBuilder createInitialPhoneHomeRequestBodyBuilder() {
- final PhoneHomeRequestBodyBuilder phoneHomeRequestBodyBuilder = new PhoneHomeRequestBodyBuilder();
- phoneHomeRequestBodyBuilder.setRegistrationId("OFFLINE");
- phoneHomeRequestBodyBuilder.setHostName("OFFLINE");
- phoneHomeRequestBodyBuilder.setBlackDuckName(BlackDuckName.HUB);
- phoneHomeRequestBodyBuilder.setBlackDuckVersion("N/A");
- phoneHomeRequestBodyBuilder.setSource(PhoneHomeSource.INTEGRATIONS);
+ public PhoneHomeRequestBody.Builder createInitialPhoneHomeRequestBodyBuilder() {
+ final PhoneHomeRequestBody.Builder phoneHomeRequestBodyBuilder = new PhoneHomeRequestBody.Builder();
+ phoneHomeRequestBodyBuilder.setCustomerId("<unknown>");
+ phoneHomeRequestBodyBuilder.setHostName("<unknown>");
+ phoneHomeRequestBodyBuilder.setProductId(ProductIdEnum.HUB);
+ phoneHomeRequestBodyBuilder.setProductVersion("<unknown>");
return phoneHomeRequestBodyBuilder;
}
