openaire-usage-stats-sushil.../src/main/java/eu/dnetlib/usagestats/sushilite/domain/SUSHI_Report_Header.java

145 lines
4.0 KiB
Java
Raw Normal View History

2021-01-05 13:22:04 +01:00
package eu.dnetlib.usagestats.sushilite.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
2021-01-06 15:28:49 +01:00
import com.fasterxml.jackson.annotation.JsonInclude;
2021-01-05 13:22:04 +01:00
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Created by dpie on 25/10/2019.
*/
2021-01-06 15:28:49 +01:00
@JsonPropertyOrder({"Created", "Created_By", "Customer_ID", "Report_ID", "Release", "Report_Name", "Institution_Name", "Institution_ID", "Report_Filters", "Report_Attributes", "Exceptions"})
2021-02-22 18:38:10 +01:00
public class SUSHI_Report_Header {
2021-01-05 13:22:04 +01:00
private String created;
private String createdBy;
private String customerID;
private String reportID;
private String release;
private String reportName;
private String institutionName;
2021-02-22 18:38:10 +01:00
private List<SUSHI_Org_Identifiers> institutionID = new ArrayList();
2021-01-05 13:22:04 +01:00
private List<Filter> reportFiters = new ArrayList();
private List<ReportAttribute> reportAttributes = new ArrayList();
2021-02-22 18:38:10 +01:00
private List<SUSHI_Error_Model> exceptions = new ArrayList();
2021-01-05 13:22:04 +01:00
2021-02-22 18:38:10 +01:00
public SUSHI_Report_Header() {
2021-01-05 13:22:04 +01:00
}
2021-02-22 18:38:10 +01:00
public SUSHI_Report_Header(String createdBy, String customerID, String reportID,
2021-01-06 15:28:49 +01:00
String release, String reportName, String institutionName,
2021-02-22 18:38:10 +01:00
List<SUSHI_Org_Identifiers> institutionID) {
2021-01-05 13:22:04 +01:00
//this.created = created;
this.createdBy = createdBy;
this.customerID = customerID;
this.reportID = reportID;
this.release = release;
this.reportName = reportName;
this.institutionName = institutionName;
this.institutionID = institutionID;
}
@JsonProperty("Created")
public String getCreated() {
return created;
}
@JsonProperty("Created_By")
public String getCreatedBy() {
return createdBy;
}
@JsonProperty("Customer_ID")
public String getCustomerID() {
return customerID;
}
2021-01-06 15:28:49 +01:00
2021-01-05 13:22:04 +01:00
@JsonProperty("Report_ID")
public String getReportID() {
return reportID;
}
@JsonProperty("Report_Name")
public String getReportName() {
return reportName;
}
2021-03-17 08:39:08 +01:00
@JsonInclude(JsonInclude.Include.NON_NULL)
2021-01-05 13:22:04 +01:00
@JsonProperty("Institution_Name")
public String getInstitutionName() {
return institutionName;
}
2021-03-17 08:39:08 +01:00
@JsonInclude(JsonInclude.Include.NON_NULL)
2021-01-05 13:22:04 +01:00
@JsonProperty("Institution_ID")
2021-02-22 18:38:10 +01:00
public List<SUSHI_Org_Identifiers> getInstitutionID() {
2021-01-05 13:22:04 +01:00
return institutionID;
}
@JsonProperty("Report_Filters")
public List<Filter> getReportFilters() {
return reportFiters;
}
@JsonProperty("Report_Attributes")
public List<ReportAttribute> getReportAttributes() {
return reportAttributes;
}
2021-01-06 15:28:49 +01:00
@JsonInclude(JsonInclude.Include.NON_NULL)
2021-01-05 13:22:04 +01:00
@JsonProperty("Exceptions")
2021-02-22 18:38:10 +01:00
public List<SUSHI_Error_Model> getExceptions() {
2021-01-05 13:22:04 +01:00
return exceptions;
}
public void setReportName(String reportName) {
this.reportName = reportName;
}
public void setCreated(String created) {
this.created = created;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public void setReportFiters(List<Filter> reportFiters) {
this.reportFiters = reportFiters;
}
public void setReportAttributes(List<ReportAttribute> reportAttributes) {
this.reportAttributes = reportAttributes;
}
2021-02-22 18:38:10 +01:00
public void setExceptions(List<SUSHI_Error_Model> exceptions) {
2021-01-05 13:22:04 +01:00
this.exceptions = exceptions;
}
2023-03-27 11:34:53 +02:00
public void setCustomerID(String customerID) {
this.customerID = customerID;
}
public void setReportID(String reportID) {
this.reportID = reportID;
}
public void setRelease(String release) {
this.release = release;
}
public void setInstitutionName(String institutionName) {
this.institutionName = institutionName;
}
public void setInstitutionID(List<SUSHI_Org_Identifiers> institutionID) {
this.institutionID = institutionID;
}
2021-01-06 15:28:49 +01:00
}