This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 1ca4434222d76ee47cca65cad7d11a2d818fc10c Author: Kevin Morin <morin@codelutin.com> Date: Thu Apr 13 17:47:54 2017 +0200 refs #15 ajout des nouvelles propriétés des types de vote --- .../pollen/services/bean/VoteCountingTypeBean.java | 30 ++++++++++++++++++++++ .../services/service/VoteCountingTypeService.java | 3 +++ 2 files changed, 33 insertions(+) diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/bean/VoteCountingTypeBean.java b/pollen-services/src/main/java/org/chorem/pollen/services/bean/VoteCountingTypeBean.java index cdf6d48..b5ee6b9 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/bean/VoteCountingTypeBean.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/bean/VoteCountingTypeBean.java @@ -41,6 +41,12 @@ public class VoteCountingTypeBean { protected String renderType; + protected boolean canLimitNumberOfChoices; + + protected Double minimumValue; + + protected Double maximumValue; + public int getId() { return id; @@ -93,4 +99,28 @@ public class VoteCountingTypeBean { break; } } + + public boolean isCanLimitNumberOfChoices() { + return canLimitNumberOfChoices; + } + + public void setCanLimitNumberOfChoices(boolean canLimitNumberOfChoices) { + this.canLimitNumberOfChoices = canLimitNumberOfChoices; + } + + public Double getMinimumValue() { + return minimumValue; + } + + public void setMinimumValue(Double minimumValue) { + this.minimumValue = minimumValue; + } + + public Double getMaximumValue() { + return maximumValue; + } + + public void setMaximumValue(Double maximumValue) { + this.maximumValue = maximumValue; + } } diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/service/VoteCountingTypeService.java b/pollen-services/src/main/java/org/chorem/pollen/services/service/VoteCountingTypeService.java index 5a196f8..656c981 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/service/VoteCountingTypeService.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/service/VoteCountingTypeService.java @@ -74,6 +74,9 @@ public class VoteCountingTypeService extends PollenServiceSupport { newVoteCountingType.setHelper(voteCounting.getHelp(l)); newVoteCountingType.setShortHelper(voteCounting.getShortHelp(l)); newVoteCountingType.setRenderType(voteCounting.getVoteValueEditorType()); + newVoteCountingType.setCanLimitNumberOfChoices(voteCounting.canLimitNumberOfChoices()); + newVoteCountingType.setMinimumValue(voteCounting.getMinimumValue()); + newVoteCountingType.setMaximumValue(voteCounting.getMaximumValue()); return newVoteCountingType; } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.