dnet-applications/libs/dnet-exporter-model/src/main/java/eu/dnetlib/openaire/exporter/model/community/CommunitySummary.java

211 lines
4.5 KiB
Java
Raw Normal View History

package eu.dnetlib.openaire.exporter.model.community;
2022-02-04 10:12:15 +01:00
2023-06-15 11:27:59 +02:00
import java.time.LocalDateTime;
2022-02-04 10:12:15 +01:00
import com.fasterxml.jackson.annotation.JsonAutoDetect;
2022-02-07 10:09:18 +01:00
2022-08-19 15:21:40 +02:00
import io.swagger.v3.oas.annotations.media.Schema;
2022-02-04 10:12:15 +01:00
@JsonAutoDetect
public class CommunitySummary {
2022-08-19 15:21:40 +02:00
@Schema(description = "identifies the community")
2022-02-04 10:12:15 +01:00
protected String id;
2022-08-19 15:21:40 +02:00
@Schema(description = "values for this field reflect the index field _community_ in the index, e.g. 'egi||EGI Federation'")
2022-02-04 10:12:15 +01:00
protected String queryId;
2022-08-19 15:21:40 +02:00
@Schema(description = "community type")
2023-06-26 14:29:29 +02:00
protected CommunityType type;
2022-02-04 10:12:15 +01:00
2022-08-19 15:21:40 +02:00
@Schema(description = "community name")
2022-02-04 10:12:15 +01:00
protected String name;
2022-08-19 15:21:40 +02:00
@Schema(description = "community short name")
2022-02-04 10:12:15 +01:00
protected String shortName;
2022-08-19 15:21:40 +02:00
@Schema(description = "community creation date")
2023-06-15 11:27:59 +02:00
protected LocalDateTime creationDate;
2022-02-04 10:12:15 +01:00
2022-08-19 15:21:40 +02:00
@Schema(description = "community last update date")
2023-06-15 11:27:59 +02:00
protected LocalDateTime lastUpdateDate;
2022-02-04 10:12:15 +01:00
2022-08-19 15:21:40 +02:00
@Schema(description = "community description")
2022-02-04 10:12:15 +01:00
protected String description;
2022-08-19 15:21:40 +02:00
@Schema(description = "http url for the community logo")
2022-02-04 10:12:15 +01:00
protected String logoUrl;
2022-08-19 15:21:40 +02:00
@Schema(description = "status of the community, drives its visibility")
2022-02-04 10:12:15 +01:00
protected CommunityStatus status;
@Schema(description = "type of claim")
private CommunityClaimType claim;
@Schema(description = "type of membership")
private CommunityMembershipType membership;
2022-08-19 15:21:40 +02:00
@Schema(description = "Zenodo community associated to this community")
2022-02-04 10:12:15 +01:00
protected String zenodoCommunity;
2023-10-18 10:17:16 +02:00
@Schema(description = "community plan")
protected String plan;
2022-02-07 10:09:18 +01:00
public CommunitySummary() {}
2022-02-04 10:12:15 +01:00
public CommunitySummary(
2022-02-07 10:09:18 +01:00
final String id,
final String queryId,
2023-06-26 14:29:29 +02:00
final CommunityType type,
2022-02-07 10:09:18 +01:00
final String name,
final String shortName,
2023-06-15 11:27:59 +02:00
final LocalDateTime creationDate,
final LocalDateTime lastUpdateDate,
2022-02-07 10:09:18 +01:00
final String description,
final String logoUrl,
final CommunityStatus status,
2023-10-18 10:17:16 +02:00
final String zenodoCommunity,
final String plan) {
2022-02-04 10:12:15 +01:00
this.id = id;
this.queryId = queryId;
this.type = type;
this.name = name;
this.shortName = shortName;
this.creationDate = creationDate;
this.lastUpdateDate = lastUpdateDate;
this.description = description;
this.logoUrl = logoUrl;
this.status = status;
this.zenodoCommunity = zenodoCommunity;
2023-10-18 10:17:16 +02:00
this.plan = plan;
2022-02-04 10:12:15 +01:00
}
public CommunitySummary(final CommunitySummary summary) {
this(summary.getId(),
2022-02-07 10:09:18 +01:00
summary.getQueryId(),
summary.getType(),
summary.getName(),
summary.getShortName(),
summary.getCreationDate(),
summary.getLastUpdateDate(),
summary.getDescription(),
summary.getLogoUrl(),
summary.getStatus(),
2023-10-18 10:17:16 +02:00
summary.getZenodoCommunity(),
summary.getPlan());
2022-02-04 10:12:15 +01:00
}
public String getId() {
return id;
}
public void setId(final String id) {
this.id = id;
}
public String getQueryId() {
return queryId;
}
public void setQueryId(final String queryId) {
this.queryId = queryId;
}
2023-06-26 14:29:29 +02:00
public CommunityType getType() {
2022-02-04 10:12:15 +01:00
return type;
}
2023-06-26 14:29:29 +02:00
public void setType(final CommunityType type) {
2022-02-04 10:12:15 +01:00
this.type = type;
}
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
public String getShortName() {
return shortName;
}
public void setShortName(final String shortName) {
this.shortName = shortName;
}
2023-06-15 11:27:59 +02:00
public LocalDateTime getCreationDate() {
2022-02-07 10:09:18 +01:00
return creationDate;
}
2022-02-04 10:12:15 +01:00
2023-06-15 11:27:59 +02:00
public void setCreationDate(final LocalDateTime creationDate) {
2022-02-07 10:09:18 +01:00
this.creationDate = creationDate;
}
2022-02-04 10:12:15 +01:00
2023-06-15 11:27:59 +02:00
public LocalDateTime getLastUpdateDate() {
2022-02-07 10:09:18 +01:00
return lastUpdateDate;
}
2022-02-04 10:12:15 +01:00
2023-06-15 11:27:59 +02:00
public void setLastUpdateDate(final LocalDateTime lastUpdateDate) {
2022-02-07 10:09:18 +01:00
this.lastUpdateDate = lastUpdateDate;
}
2022-02-04 10:12:15 +01:00
public String getDescription() {
return description;
}
public void setDescription(final String description) {
this.description = description;
}
public String getLogoUrl() {
return logoUrl;
}
public void setLogoUrl(final String logoUrl) {
this.logoUrl = logoUrl;
}
public CommunityStatus getStatus() {
return status;
}
public void setStatus(final CommunityStatus status) {
this.status = status;
}
public CommunityClaimType getClaim() {
return claim;
}
public void setClaim(final CommunityClaimType claim) {
this.claim = claim;
}
public CommunityMembershipType getMembership() {
return membership;
}
public void setMembership(final CommunityMembershipType membership) {
this.membership = membership;
}
2022-02-04 10:12:15 +01:00
public String getZenodoCommunity() {
return zenodoCommunity;
}
2022-02-07 10:09:18 +01:00
public void setZenodoCommunity(final String zenodoCommunity) {
2022-02-04 10:12:15 +01:00
this.zenodoCommunity = zenodoCommunity;
}
2023-10-18 10:17:16 +02:00
public String getPlan() {
return plan;
}
public void setPlan(final String plan) {
this.plan = plan;
}
2022-02-04 10:12:15 +01:00
}