use of field 'plan'
This commit is contained in:
parent
eeef1df437
commit
32f09af2a1
|
@ -269,7 +269,7 @@ public class CommunityImporterService {
|
|||
// In the map the string is the serialization of the json representing the selection criteria so it is a valid json
|
||||
details.setRemoveConstraints(SelectionCriteria.fromJson(asCsv(CPROFILE_REMOVE_CONSTRAINT, c.getParams())));
|
||||
details.setSuggestedAcknowledgements(splitValues(asValues(CPROFILE_SUGGESTED_ACKNOWLEDGEMENT, c.getParams()), CSV_DELIMITER));
|
||||
|
||||
details.setPlan(null);
|
||||
try {
|
||||
details.setCreationDate(CommunityMappingUtils.asLocalDateTime(asCsv(CPROFILE_CREATIONDATE, c.getParams())));
|
||||
} catch (final Exception e) {
|
||||
|
|
|
@ -114,6 +114,9 @@ public class DbCommunity implements Serializable {
|
|||
@Column(name = "suggested_acknowledgements", columnDefinition = "text[]")
|
||||
private String[] suggestedAcknowledgements;
|
||||
|
||||
@Column(name = "plan")
|
||||
private String plan;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
@ -266,4 +269,12 @@ public class DbCommunity implements Serializable {
|
|||
this.suggestedAcknowledgements = suggestedAcknowledgements;
|
||||
}
|
||||
|
||||
public String getPlan() {
|
||||
return plan;
|
||||
}
|
||||
|
||||
public void setPlan(final String plan) {
|
||||
this.plan = plan;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -63,6 +63,7 @@ public class CommunityMappingUtils {
|
|||
c.setMainZenodoCommunity(details.getZenodoCommunity());
|
||||
c.setOtherZenodoCommunities(toStringArray(details.getOtherZenodoCommunities()));
|
||||
c.setSuggestedAcknowledgements(toStringArray(details.getSuggestedAcknowledgements()));
|
||||
c.setPlan(details.getPlan());
|
||||
c.setCreationDate(ObjectUtils.firstNonNull(details.getCreationDate(), LocalDateTime.now()));
|
||||
c.setLastUpdateDate(LocalDateTime.now());
|
||||
return c;
|
||||
|
@ -114,6 +115,9 @@ public class CommunityMappingUtils {
|
|||
if (details.getOtherZenodoCommunities() != null) {
|
||||
c.setOtherZenodoCommunities(toStringArray(details.getOtherZenodoCommunities()));
|
||||
}
|
||||
if (details.getPlan() != null) {
|
||||
c.setPlan(details.getPlan());
|
||||
}
|
||||
|
||||
c.setLastUpdateDate(LocalDateTime.now());
|
||||
}
|
||||
|
@ -145,6 +149,7 @@ public class CommunityMappingUtils {
|
|||
summary.setClaim(c.getClaim());
|
||||
summary.setMembership(c.getMembership());
|
||||
summary.setZenodoCommunity(c.getMainZenodoCommunity());
|
||||
summary.setPlan(c.getPlan());
|
||||
}
|
||||
|
||||
public static CommunityProject toCommunityProject(final DbProject dbEntry) {
|
||||
|
|
Loading…
Reference in New Issue