Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package com.synopsys.integration.blackduck.api.manual.component;

import com.synopsys.integration.blackduck.api.core.BlackDuckComponent;

/**
* Class for a report creation request mapped to a JSON payload by Blackduck API
* for a HTTP POST request, e.g.
* {"reportFormat":"JSON","reportType":"SBOM","sbomType":"SPDX_22"}
*/
public class ReportBomRequest extends BlackDuckComponent {
private String reportFormat;
private String reportType;
private String sbomType;

public String getReportFormat() {
return reportFormat;
}

public void setReportFormat(String reportFormat) {
this.reportFormat = reportFormat;
}

public String getReportType() {
return reportType;
}

public void setReportType(String reportType) {
this.reportType = reportType;
}

public String getSbomType() {
return sbomType;
}

public void setSbomType(String sbomType) {
this.sbomType = sbomType;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.synopsys.integration.blackduck.api.manual.view;

import com.google.gson.JsonObject;
import com.synopsys.integration.blackduck.api.core.BlackDuckResponse;

/**
* Class representing an entry on the BDH reponse for a Bill of Materials report
* download request. The blackduck API uses this to map the JSON response into it.
*/
public class ReportBomContentView extends BlackDuckResponse {
private String fileName;
private JsonObject fileContent;
private String fileNamePrefix;

public String getFileName() {
return fileName;
}

public void setFileName(String fileName) {
this.fileName = fileName;
}

public JsonObject getFileContent() {
return fileContent;
}

public void setFileContent(JsonObject fileContent) {
this.fileContent = fileContent;
}

public String getFileNamePrefix() {
return fileNamePrefix;
}

public void setFileNamePrefix(String fileNamePrefix) {
this.fileNamePrefix = fileNamePrefix;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.synopsys.integration.blackduck.api.manual.view;

import java.util.List;

import com.synopsys.integration.blackduck.api.core.BlackDuckResponse;

/**
* Class representing the BDH reponse for a Bill of Materials report download request
* The blackduck API uses this to map the JSON response into it.
*/
public class ReportBomView extends BlackDuckResponse{

private List<ReportBomContentView> reportContent;

public List<ReportBomContentView> getReportContent() {
return reportContent;
}

public void setReportContent(List<ReportBomContentView> reportContent) {
this.reportContent = reportContent;
}

}