updated model classes
This commit is contained in:
parent
b5ada60da3
commit
eeef1df437
|
@ -159,6 +159,8 @@ public class CommunityDetails extends CommunitySummary {
|
||||||
.append(zenodoCommunity)
|
.append(zenodoCommunity)
|
||||||
.append(",\n\tsuggestedAcknowledgements = ")
|
.append(",\n\tsuggestedAcknowledgements = ")
|
||||||
.append(suggestedAcknowledgements)
|
.append(suggestedAcknowledgements)
|
||||||
|
.append(",\n\tplan = ")
|
||||||
|
.append(plan)
|
||||||
.append("\n]");
|
.append("\n]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,9 @@ public class CommunitySummary {
|
||||||
@Schema(description = "Zenodo community associated to this community")
|
@Schema(description = "Zenodo community associated to this community")
|
||||||
protected String zenodoCommunity;
|
protected String zenodoCommunity;
|
||||||
|
|
||||||
|
@Schema(description = "community plan")
|
||||||
|
protected String plan;
|
||||||
|
|
||||||
public CommunitySummary() {}
|
public CommunitySummary() {}
|
||||||
|
|
||||||
public CommunitySummary(
|
public CommunitySummary(
|
||||||
|
@ -61,7 +64,8 @@ public class CommunitySummary {
|
||||||
final String description,
|
final String description,
|
||||||
final String logoUrl,
|
final String logoUrl,
|
||||||
final CommunityStatus status,
|
final CommunityStatus status,
|
||||||
final String zenodoCommunity) {
|
final String zenodoCommunity,
|
||||||
|
final String plan) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.queryId = queryId;
|
this.queryId = queryId;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
|
@ -73,6 +77,7 @@ public class CommunitySummary {
|
||||||
this.logoUrl = logoUrl;
|
this.logoUrl = logoUrl;
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.zenodoCommunity = zenodoCommunity;
|
this.zenodoCommunity = zenodoCommunity;
|
||||||
|
this.plan = plan;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommunitySummary(final CommunitySummary summary) {
|
public CommunitySummary(final CommunitySummary summary) {
|
||||||
|
@ -86,7 +91,8 @@ public class CommunitySummary {
|
||||||
summary.getDescription(),
|
summary.getDescription(),
|
||||||
summary.getLogoUrl(),
|
summary.getLogoUrl(),
|
||||||
summary.getStatus(),
|
summary.getStatus(),
|
||||||
summary.getZenodoCommunity());
|
summary.getZenodoCommunity(),
|
||||||
|
summary.getPlan());
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
|
@ -193,4 +199,12 @@ public class CommunitySummary {
|
||||||
this.zenodoCommunity = zenodoCommunity;
|
this.zenodoCommunity = zenodoCommunity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPlan() {
|
||||||
|
return plan;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlan(final String plan) {
|
||||||
|
this.plan = plan;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,9 @@ public class CommunityWritableProperties {
|
||||||
@Schema(description = "type of supported claim")
|
@Schema(description = "type of supported claim")
|
||||||
private CommunityClaimType claim;
|
private CommunityClaimType claim;
|
||||||
|
|
||||||
|
@Schema(description = "community plan")
|
||||||
|
private String plan;
|
||||||
|
|
||||||
public List<String> getFos() {
|
public List<String> getFos() {
|
||||||
return fos;
|
return fos;
|
||||||
}
|
}
|
||||||
|
@ -174,4 +177,12 @@ public class CommunityWritableProperties {
|
||||||
public void setOtherZenodoCommunities(final List<String> otherZenodoCommunities) {
|
public void setOtherZenodoCommunities(final List<String> otherZenodoCommunities) {
|
||||||
this.otherZenodoCommunities = otherZenodoCommunities;
|
this.otherZenodoCommunities = otherZenodoCommunities;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPlan() {
|
||||||
|
return plan;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlan(final String plan) {
|
||||||
|
this.plan = plan;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,9 @@ public class SubCommunity {
|
||||||
@Schema(description = "it supports the claims", required = true)
|
@Schema(description = "it supports the claims", required = true)
|
||||||
private boolean claim = false;
|
private boolean claim = false;
|
||||||
|
|
||||||
|
@Schema(description = "it is browsable", required = true)
|
||||||
|
private boolean browsable = false;
|
||||||
|
|
||||||
public String getSubCommunityId() {
|
public String getSubCommunityId() {
|
||||||
return subCommunityId;
|
return subCommunityId;
|
||||||
}
|
}
|
||||||
|
@ -88,6 +91,14 @@ public class SubCommunity {
|
||||||
this.claim = claim;
|
this.claim = claim;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isBrowsable() {
|
||||||
|
return browsable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBrowsable(final boolean browsable) {
|
||||||
|
this.browsable = browsable;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
final StringBuilder builder = new StringBuilder();
|
final StringBuilder builder = new StringBuilder();
|
||||||
|
@ -105,6 +116,8 @@ public class SubCommunity {
|
||||||
.append(params)
|
.append(params)
|
||||||
.append(",\n\tclaim = ")
|
.append(",\n\tclaim = ")
|
||||||
.append(claim)
|
.append(claim)
|
||||||
|
.append(",\n\tbrowsable = ")
|
||||||
|
.append(browsable)
|
||||||
.append("\n]");
|
.append("\n]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue