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
|
// 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.setRemoveConstraints(SelectionCriteria.fromJson(asCsv(CPROFILE_REMOVE_CONSTRAINT, c.getParams())));
|
||||||
details.setSuggestedAcknowledgements(splitValues(asValues(CPROFILE_SUGGESTED_ACKNOWLEDGEMENT, c.getParams()), CSV_DELIMITER));
|
details.setSuggestedAcknowledgements(splitValues(asValues(CPROFILE_SUGGESTED_ACKNOWLEDGEMENT, c.getParams()), CSV_DELIMITER));
|
||||||
|
details.setPlan(null);
|
||||||
try {
|
try {
|
||||||
details.setCreationDate(CommunityMappingUtils.asLocalDateTime(asCsv(CPROFILE_CREATIONDATE, c.getParams())));
|
details.setCreationDate(CommunityMappingUtils.asLocalDateTime(asCsv(CPROFILE_CREATIONDATE, c.getParams())));
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
|
|
|
@ -114,6 +114,9 @@ public class DbCommunity implements Serializable {
|
||||||
@Column(name = "suggested_acknowledgements", columnDefinition = "text[]")
|
@Column(name = "suggested_acknowledgements", columnDefinition = "text[]")
|
||||||
private String[] suggestedAcknowledgements;
|
private String[] suggestedAcknowledgements;
|
||||||
|
|
||||||
|
@Column(name = "plan")
|
||||||
|
private String plan;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
@ -266,4 +269,12 @@ public class DbCommunity implements Serializable {
|
||||||
this.suggestedAcknowledgements = suggestedAcknowledgements;
|
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.setMainZenodoCommunity(details.getZenodoCommunity());
|
||||||
c.setOtherZenodoCommunities(toStringArray(details.getOtherZenodoCommunities()));
|
c.setOtherZenodoCommunities(toStringArray(details.getOtherZenodoCommunities()));
|
||||||
c.setSuggestedAcknowledgements(toStringArray(details.getSuggestedAcknowledgements()));
|
c.setSuggestedAcknowledgements(toStringArray(details.getSuggestedAcknowledgements()));
|
||||||
|
c.setPlan(details.getPlan());
|
||||||
c.setCreationDate(ObjectUtils.firstNonNull(details.getCreationDate(), LocalDateTime.now()));
|
c.setCreationDate(ObjectUtils.firstNonNull(details.getCreationDate(), LocalDateTime.now()));
|
||||||
c.setLastUpdateDate(LocalDateTime.now());
|
c.setLastUpdateDate(LocalDateTime.now());
|
||||||
return c;
|
return c;
|
||||||
|
@ -114,6 +115,9 @@ public class CommunityMappingUtils {
|
||||||
if (details.getOtherZenodoCommunities() != null) {
|
if (details.getOtherZenodoCommunities() != null) {
|
||||||
c.setOtherZenodoCommunities(toStringArray(details.getOtherZenodoCommunities()));
|
c.setOtherZenodoCommunities(toStringArray(details.getOtherZenodoCommunities()));
|
||||||
}
|
}
|
||||||
|
if (details.getPlan() != null) {
|
||||||
|
c.setPlan(details.getPlan());
|
||||||
|
}
|
||||||
|
|
||||||
c.setLastUpdateDate(LocalDateTime.now());
|
c.setLastUpdateDate(LocalDateTime.now());
|
||||||
}
|
}
|
||||||
|
@ -145,6 +149,7 @@ public class CommunityMappingUtils {
|
||||||
summary.setClaim(c.getClaim());
|
summary.setClaim(c.getClaim());
|
||||||
summary.setMembership(c.getMembership());
|
summary.setMembership(c.getMembership());
|
||||||
summary.setZenodoCommunity(c.getMainZenodoCommunity());
|
summary.setZenodoCommunity(c.getMainZenodoCommunity());
|
||||||
|
summary.setPlan(c.getPlan());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CommunityProject toCommunityProject(final DbProject dbEntry) {
|
public static CommunityProject toCommunityProject(final DbProject dbEntry) {
|
||||||
|
|
Loading…
Reference in New Issue