update for customer name

This commit is contained in:
Greg DiCristofaro 2023-07-26 08:48:51 -04:00
parent d1ad7e06e0
commit 154a5ea406
2 changed files with 14 additions and 7 deletions

View File

@ -41,6 +41,7 @@ public class DecryptedLicenseResponse {
private final String limitType; private final String limitType;
private final String timezone; private final String timezone;
private final String customerEmail; private final String customerEmail;
private final String customerName;
@JsonCreator @JsonCreator
public DecryptedLicenseResponse( public DecryptedLicenseResponse(
@ -55,7 +56,8 @@ public class DecryptedLicenseResponse {
@JsonProperty("product") String product, @JsonProperty("product") String product,
@JsonProperty("limitType") String limitType, @JsonProperty("limitType") String limitType,
@JsonProperty("timezone") String timezone, @JsonProperty("timezone") String timezone,
@JsonProperty("customerEmail") String customerEmail @JsonProperty("customerEmail") String customerEmail,
@JsonProperty("customerName") String customerName
) { ) {
this.boostLicenseId = boostLicenseId; this.boostLicenseId = boostLicenseId;
this.licenseHostId = licenseHostId; this.licenseHostId = licenseHostId;
@ -67,6 +69,7 @@ public class DecryptedLicenseResponse {
this.limitType = limitType; this.limitType = limitType;
this.timezone = timezone; this.timezone = timezone;
this.customerEmail = customerEmail; this.customerEmail = customerEmail;
this.customerName = customerName;
} }
public String getBoostLicenseId() { public String getBoostLicenseId() {
@ -108,4 +111,8 @@ public class DecryptedLicenseResponse {
public String getCustomerEmail() { public String getCustomerEmail() {
return customerEmail; return customerEmail;
} }
public String getCustomerName() {
return customerName;
}
} }

View File

@ -408,15 +408,15 @@ public class CTMalwareScannerOptionsPanel extends CTOptionsSubPanel {
} else { } else {
this.licenseInfoExpiresLabel.setVisible(true); this.licenseInfoExpiresLabel.setVisible(true);
this.licenseInfoExpiresLabel.setText(Bundle.CTMalwareScannerOptionsPanel_licenseInfo_expires( this.licenseInfoExpiresLabel.setText(Bundle.CTMalwareScannerOptionsPanel_licenseInfo_expires(
this.licenseInfo.getDecryptedLicense().getExpirationDate() == null this.licenseInfo.getDecryptedLicense().getExpirationDate() == null
? "" ? ""
: LICENSE_EXPIRES_FORMAT.format(this.licenseInfo.getDecryptedLicense().getExpirationDate()))); : LICENSE_EXPIRES_FORMAT.format(this.licenseInfo.getDecryptedLicense().getExpirationDate())));
this.licenseInfoIdLabel.setVisible(true); this.licenseInfoIdLabel.setVisible(true);
this.licenseInfoIdLabel.setText(Bundle.CTMalwareScannerOptionsPanel_licenseInfo_id(this.licenseInfo.getDecryptedLicense().getBoostLicenseId())); this.licenseInfoIdLabel.setText(Bundle.CTMalwareScannerOptionsPanel_licenseInfo_id(StringUtils.defaultString(this.licenseInfo.getDecryptedLicense().getBoostLicenseId())));
this.licenseInfoUserLabel.setVisible(true); this.licenseInfoUserLabel.setVisible(true);
this.licenseInfoUserLabel.setText(Bundle.CTMalwareScannerOptionsPanel_licenseInfo_userInfo( this.licenseInfoUserLabel.setText(Bundle.CTMalwareScannerOptionsPanel_licenseInfo_userInfo(
"TBD", StringUtils.defaultString(this.licenseInfo.getDecryptedLicense().getCustomerName()),
this.licenseInfo.getDecryptedLicense().getCustomerEmail())); StringUtils.defaultString(this.licenseInfo.getDecryptedLicense().getCustomerEmail())));
} }
this.malwareScansPanel.setVisible(StringUtils.isNotBlank(this.authTokenMessage) || authTokenResponse != null); this.malwareScansPanel.setVisible(StringUtils.isNotBlank(this.authTokenMessage) || authTokenResponse != null);