Pollen-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
June 2012
- 5 participants
- 163 discussions
Author: tchemit
Date: 2012-06-10 22:39:26 +0200 (Sun, 10 Jun 2012)
New Revision: 3430
Url: http://chorem.org/repositories/revision/pollen/3430
Log:
reuse old site configuration + update slf4j version
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-06-10 20:38:36 UTC (rev 3429)
+++ trunk/pom.xml 2012-06-10 20:39:26 UTC (rev 3430)
@@ -189,7 +189,7 @@
<struts2Version>2.3.4</struts2Version>
<jqueryPluginVersion>3.3.1</jqueryPluginVersion>
<shiroVersion>1.2.0</shiroVersion>
- <slf4jVersion>1.6.4</slf4jVersion>
+ <slf4jVersion>1.6.5</slf4jVersion>
<jettyVersion>${jettyPluginVersion}</jettyVersion>
<hibernateVersion>3.6.10.Final</hibernateVersion>
@@ -434,6 +434,17 @@
<artifactId>doxia-module-jrst</artifactId>
<version>${jrstPluginVersion}</version>
</dependency>
+ <!-- dependencies needed by application config report -->
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <version>${h2Version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>${hibernateVersion}</version>
+ </dependency>
</dependencies>
</plugin>
@@ -589,62 +600,45 @@
</property>
</activation>
- <build>
+ <reporting>
<plugins>
<plugin>
- <artifactId>maven-site-plugin</artifactId>
- <inherited>false</inherited>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils-maven-report-plugin</artifactId>
+ <version>${nuitonUtilsVersion}</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>aggregate-application-config-report</report>
+ </reports>
+ </reportSet>
+ </reportSets>
<configuration>
- <reportPlugins>
- <plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-utils-maven-report-plugin</artifactId>
- <reports>
- <report>aggregate-application-config-report</report>
- </reports>
- <!--reportSets>
- <reportSet>
- <reports>
- <report>aggregate-application-config-report</report>
- </reports>
- </reportSet>
- </reportSets-->
- <configuration>
- <i18nBundleName>${pollenI18nBundle}</i18nBundleName>
- </configuration>
- </plugin>
-
- <plugin>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <reports>
- <report>project-team</report>
- <report>mailing-list</report>
- <report>cim</report>
- <report>issue-tracking</report>
- <report>license</report>
- <report>scm</report>
- <report>dependency-convergence</report>
- <report>dependency-management</report>
- </reports>
- </plugin>
- </reportPlugins>
+ <i18nBundleName>${pollenI18nBundle}</i18nBundleName>
</configuration>
- <!-- dependencies needed by application config report -->
- <dependencies>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>${h2Version}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>${hibernateVersion}</version>
- </dependency>
- </dependencies>
</plugin>
+
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>${projectInfoReportsPluginVersion}</version>
+ <reportSets>
+ <reportSet>
+
+ <reports>
+ <report>project-team</report>
+ <report>mailing-list</report>
+ <report>cim</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ <report>dependency-convergence</report>
+ <report>dependency-management</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
</plugins>
- </build>
+ </reporting>
</profile>
1
0
10 Jun '12
Author: tchemit
Date: 2012-06-10 22:38:36 +0200 (Sun, 10 Jun 2012)
New Revision: 3429
Url: http://chorem.org/repositories/revision/pollen/3429
Log:
improve doc
Removed:
trunk/src/site/fr/resources/images/logos/
Modified:
trunk/src/site/fr/rst/depouillement.rst
trunk/src/site/fr/rst/index.rst
trunk/src/site/fr/rst/install.rst.vm
trunk/src/site/rst/index.rst
trunk/src/site/rst/install.rst.vm
trunk/src/site/rst/methods.rst
trunk/src/site/site_en.xml
trunk/src/site/site_fr.xml
Modified: trunk/src/site/fr/rst/depouillement.rst
===================================================================
--- trunk/src/site/fr/rst/depouillement.rst 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/fr/rst/depouillement.rst 2012-06-10 20:38:36 UTC (rev 3429)
@@ -21,7 +21,7 @@
.. * #L%
.. -
Les méthodes de dépouillement de Pollen
-=======================================
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pollen permet différentes méthodes de dépouillement pour les consultations.
Chaque méthode a ses avantages et ses inconvénients.
Modified: trunk/src/site/fr/rst/index.rst
===================================================================
--- trunk/src/site/fr/rst/index.rst 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/fr/rst/index.rst 2012-06-10 20:38:36 UTC (rev 3429)
@@ -21,7 +21,7 @@
.. * #L%
.. -
Bienvenue sur le site de Pollen
--------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pollen est une application de consultation web. Elle est destinée aux petites entités
qui veulent un moyen simple de gérer des consultations tout en restant maître de leurs
Modified: trunk/src/site/fr/rst/install.rst.vm
===================================================================
--- trunk/src/site/fr/rst/install.rst.vm 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/fr/rst/install.rst.vm 2012-06-10 20:38:36 UTC (rev 3429)
@@ -22,7 +22,7 @@
.. * #L%
.. -
Installer Pollen
-================
+~~~~~~~~~~~~~~~~
Cette page décrit comment installer Pollen sur votre machine ou serveur.
Modified: trunk/src/site/rst/index.rst
===================================================================
--- trunk/src/site/rst/index.rst 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/rst/index.rst 2012-06-10 20:38:36 UTC (rev 3429)
@@ -21,7 +21,7 @@
.. * #L%
.. -
Welcome to Pollen website
--------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~
Pollen is web based poll/vote application. It is aimed to small entities that
want to have a way to manage votes without giving their data to someone.
Modified: trunk/src/site/rst/install.rst.vm
===================================================================
--- trunk/src/site/rst/install.rst.vm 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/rst/install.rst.vm 2012-06-10 20:38:36 UTC (rev 3429)
@@ -23,9 +23,9 @@
.. -
Install Pollen
-==============
+~~~~~~~~~~~~~~
-This page describes how to instal Pollen on your computer or server.
+This page describes how to install Pollen on your computer or server.
Foreword
========
@@ -50,7 +50,7 @@
- the mail sending configuration (see the `Configure mail sending`_ section).
If you want to know everything about Pollen configuration, go to the
-`configuration page`_.
+`configuration`_ page.
Connect to Pollen
-----------------
Modified: trunk/src/site/rst/methods.rst
===================================================================
--- trunk/src/site/rst/methods.rst 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/rst/methods.rst 2012-06-10 20:38:36 UTC (rev 3429)
@@ -21,7 +21,7 @@
.. * #L%
.. -
Pollen's votecounting methods
-=============================
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pollen allows you to chose between several votecounting methods for
consultations.
Modified: trunk/src/site/site_en.xml
===================================================================
--- trunk/src/site/site_en.xml 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/site_en.xml 2012-06-10 20:38:36 UTC (rev 3429)
@@ -89,8 +89,6 @@
</links>
<menu name="Install">
- <item name="Download Pollen"
- href="http://www.chorem.org/projects/pollen/files"/>
<item name="Install Pollen" href="install.html"/>
<item name="Configure Pollen" href="configure.html"/>
</menu>
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2012-06-10 20:09:43 UTC (rev 3428)
+++ trunk/src/site/site_fr.xml 2012-06-10 20:38:36 UTC (rev 3429)
@@ -89,8 +89,6 @@
</links>
<menu name="Installation">
- <item name="Télécharger Pollen"
- href="http://www.chorem.org/projects/pollen/files"/>
<item name="Installer Pollen" href="install.html"/>
<item name="Configurer Pollen" href="configure.html"/>
</menu>
1
0
r3428 - in trunk: pollen-persistence/src/main/xmi pollen-services/src/main/java/org/chorem/pollen/entities/migration
by tchemit@users.chorem.org 10 Jun '12
by tchemit@users.chorem.org 10 Jun '12
10 Jun '12
Author: tchemit
Date: 2012-06-10 22:09:43 +0200 (Sun, 10 Jun 2012)
New Revision: 3428
Url: http://chorem.org/repositories/revision/pollen/3428
Log:
refs #583: Make sure pollId is never used twice
Modified:
trunk/pollen-persistence/src/main/xmi/pollen.properties
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
Modified: trunk/pollen-persistence/src/main/xmi/pollen.properties
===================================================================
--- trunk/pollen-persistence/src/main/xmi/pollen.properties 2012-06-06 12:25:14 UTC (rev 3427)
+++ trunk/pollen-persistence/src/main/xmi/pollen.properties 2012-06-10 20:09:43 UTC (rev 3428)
@@ -39,7 +39,7 @@
org.chorem.pollen.business.persistence.Poll.attribute.pollId.tagValue.naturalId=true
# clef naturelle non modifiable sur PollAccount#accountId
-org.chorem.pollen.business.persistence.PollAccount.class.tagValue.naturalIdMutable=true
+#org.chorem.pollen.business.persistence.PollAccount.class.tagValue.naturalIdMutable=true
#org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.stereotype=unique
-org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.tagValue.naturalId=true
+#org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.tagValue.naturalId=true
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-06 12:25:14 UTC (rev 3427)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-10 20:09:43 UTC (rev 3428)
@@ -93,14 +93,12 @@
generateMissingImageThumbs(tx);
// add unique on Poll.pollId and PollAccount.accountId (http://www.chorem.org/issues/583)
- addUniqueOnPollAndPollAccountIds(queries);
+ addUniqueOnPollIds(queries);
}
- private void addUniqueOnPollAndPollAccountIds(List<String> queries) {
+ private void addUniqueOnPollIds(List<String> queries) {
queries.add("CREATE UNIQUE INDEX idx_Pöll_pollId ON poll(pollId);");
- queries.add("UPDATE pollaccount SET accountid = NULL WHERE accountid = '';");
- queries.add("CREATE UNIQUE INDEX idx_PollAccount_accountId ON pollAccount(accountId);");
}
private void generateMissingImageThumbs(TopiaContextImplementor tx) throws TopiaException {
@@ -146,39 +144,25 @@
String pollId = choiceId.getLeft();
String choiceName = choiceId.getRight();
- File pollChoiceImage = service.getPollChoiceImageFile(
- pollId, choiceName, false);
+ File imageFile = service.getPollChoiceImageFile(
+ pollId, choiceName);
- if (!pollChoiceImage.exists()) {
+ if (!imageFile.exists()) {
// image does not exists, can not generate thumb
if (log.isWarnEnabled()) {
- log.warn("Could not find image choice " + pollChoiceImage);
+ log.warn("Could not find image choice " + imageFile);
}
continue;
}
- File pollChoiceImageThumb = service.getPollChoiceImageFile(
- pollId, choiceName, true);
+ try {
- boolean thumbExists = pollChoiceImageThumb.exists();
-
- if (!thumbExists) {
-
- // creates thumb image
-
- if (log.isInfoEnabled()) {
- log.info("Create missing thumb file " +
- pollChoiceImageThumb);
- }
- try {
- service.generateThumb(pollId, choiceName, null);
- } catch (IOException e) {
- throw new TopiaException("Could not create thumb for " +
- pollChoiceImageThumb, e);
- }
+ service.generateThumbIfNeeded(imageFile);
+ } catch (IOException e) {
+ throw new TopiaException("Could not create thumb for " +
+ imageFile, e);
}
-
}
}
1
0
r3427 - in trunk: pollen-persistence/src/main/xmi pollen-services/src/main/java/org/chorem/pollen/entities/migration src/site src/site/resources/images
by tchemit@users.chorem.org 06 Jun '12
by tchemit@users.chorem.org 06 Jun '12
06 Jun '12
Author: tchemit
Date: 2012-06-06 14:25:14 +0200 (Wed, 06 Jun 2012)
New Revision: 3427
Url: http://chorem.org/repositories/revision/pollen/3427
Log:
reuse common logos
add migration scripts to generate index (refs #583: Make sure pollId is never used twice)
Removed:
trunk/src/site/resources/images/logos/
Modified:
trunk/pollen-persistence/src/main/xmi/pollen.properties
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
trunk/src/site/site_en.xml
trunk/src/site/site_fr.xml
Modified: trunk/pollen-persistence/src/main/xmi/pollen.properties
===================================================================
--- trunk/pollen-persistence/src/main/xmi/pollen.properties 2012-06-06 11:19:59 UTC (rev 3426)
+++ trunk/pollen-persistence/src/main/xmi/pollen.properties 2012-06-06 12:25:14 UTC (rev 3427)
@@ -40,6 +40,6 @@
# clef naturelle non modifiable sur PollAccount#accountId
org.chorem.pollen.business.persistence.PollAccount.class.tagValue.naturalIdMutable=true
-org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.stereotype=unique
+#org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.stereotype=unique
org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.tagValue.naturalId=true
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-06 11:19:59 UTC (rev 3426)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-06 12:25:14 UTC (rev 3427)
@@ -91,8 +91,18 @@
// generate missing thumbs
generateMissingImageThumbs(tx);
+
+ // add unique on Poll.pollId and PollAccount.accountId (http://www.chorem.org/issues/583)
+ addUniqueOnPollAndPollAccountIds(queries);
}
+ private void addUniqueOnPollAndPollAccountIds(List<String> queries) {
+
+ queries.add("CREATE UNIQUE INDEX idx_Pöll_pollId ON poll(pollId);");
+ queries.add("UPDATE pollaccount SET accountid = NULL WHERE accountid = '';");
+ queries.add("CREATE UNIQUE INDEX idx_PollAccount_accountId ON pollAccount(accountId);");
+ }
+
private void generateMissingImageThumbs(TopiaContextImplementor tx) throws TopiaException {
TopiaSQLQuery<Pair<String, String>> getAllImageChoicesQuery = new TopiaSQLQuery<Pair<String, String>>() {
Modified: trunk/src/site/site_en.xml
===================================================================
--- trunk/src/site/site_en.xml 2012-06-06 11:19:59 UTC (rev 3426)
+++ trunk/src/site/site_en.xml 2012-06-06 12:25:14 UTC (rev 3427)
@@ -56,23 +56,23 @@
<poweredBy>
<logo href="http://maven.apache.org" name="Maven"
- img="images/logos/maven-feather.png"/>
+ img="${project.url}/images/logos/maven-feather.png"/>
<logo href="http://struts.apache.org/" name="Struts 2"
- img="images/logos/struts2-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/struts2-logo.png"/>
<logo href="http://docutils.sourceforge.net/rst.html"
name="ReStructuredText"
- img="images/logos/restructuredtext-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/restructuredtext-logo.png"/>
<logo href="http://maven-site.nuiton.org/jrst" name="JRst"
- img="images/logos/jrst-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/jrst-logo.png"/>
<logo href="http://maven-site.nuiton.org/topia" name="ToPIA"
- img="images/logos/topia-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/topia-logo.png"/>
<logo href="http://argouml.tigris.org/" name="ArgoUML"
- img="images/logos/argouml-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/argouml-logo.png"/>
</poweredBy>
<body>
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2012-06-06 11:19:59 UTC (rev 3426)
+++ trunk/src/site/site_fr.xml 2012-06-06 12:25:14 UTC (rev 3427)
@@ -59,20 +59,20 @@
img="${project.url}/images/logos/maven-feather.png"/>
<logo href="http://struts.apache.org/" name="Struts 2"
- img="${project.url}/images/logos/struts2-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/logos/struts2-logo.png"/>
<logo href="http://docutils.sourceforge.net/rst.html"
name="ReStructuredText"
- img="${project.url}/images/logos/restructuredtext-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/logos/restructuredtext-logo.png"/>
<logo href="http://maven-site.nuiton.org/jrst" name="JRst"
- img="${project.url}/images/logos/jrst-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/logos/jrst-logo.png"/>
<logo href="http://maven-site.nuiton.org/topia" name="ToPIA"
- img="${project.url}/images/logos/topia-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/logos/topia-logo.png"/>
<logo href="http://argouml.tigris.org/" name="ArgoUML"
- img="${project.url}/images/logos/argouml-logo.png"/>
+ img="http://maven-site.nuiton.org/public/images/logos/argouml-logo.png"/>
</poweredBy>
<body>
1
0
Author: tchemit
Date: 2012-06-06 13:19:59 +0200 (Wed, 06 Jun 2012)
New Revision: 3426
Url: http://chorem.org/repositories/revision/pollen/3426
Log:
optimize third parties
Modified:
trunk/pollen-services/src/license/THIRD-PARTY.properties
Modified: trunk/pollen-services/src/license/THIRD-PARTY.properties
===================================================================
--- trunk/pollen-services/src/license/THIRD-PARTY.properties 2012-06-05 17:02:11 UTC (rev 3425)
+++ trunk/pollen-services/src/license/THIRD-PARTY.properties 2012-06-06 11:19:59 UTC (rev 3426)
@@ -7,6 +7,7 @@
# - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
# - Common Public License Version 1.0
# - GNU Affero General Public License version 3
+# - GNU Library or Lesser General Public License
# - GPLv2+CE
# - Indiana University Extreme! Lab Software License, vesion 1.1.1
# - Lesser General Public License (LGPL) v 3.0
@@ -22,10 +23,11 @@
# Please fill the missing licenses for dependencies :
#
#
-#Fri Apr 13 19:36:08 CEST 2012
+#Wed Jun 06 13:16:20 CEST 2012
antlr--antlr--2.7.6=BSD License
commons-primitives--commons-primitives--1.0=The Apache Software License, Version 2.0
dom4j--dom4j--1.6.1=BSD License
+javax.servlet--servlet-api--2.5=COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
javax.transaction--jta--1.1=COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
jdom--jdom--1.0=The Apache Software License, Version 2.0
rome--rome--1.0=The Apache Software License, Version 2.0
1
0
05 Jun '12
Author: tchemit
Date: 2012-06-05 19:02:11 +0200 (Tue, 05 Jun 2012)
New Revision: 3425
Url: http://chorem.org/repositories/revision/pollen/3425
Log:
i18n
Modified:
trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties
Modified: trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties 2012-06-05 16:55:08 UTC (rev 3424)
+++ trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties 2012-06-05 17:02:11 UTC (rev 3425)
@@ -45,7 +45,7 @@
pollen.action.pollModerateVote=Administrer les votes
pollen.action.pollPersonToListDelete=Supprimer ce votant
pollen.action.pollResult=Afficher les résultats du sondage
-pollen.action.pollSummary=Réumsé du sondage
+pollen.action.pollSummary=Résumé du sondage
pollen.action.pollVote=Voter
pollen.action.pollVotingListDelete=Supprimer le groupe de votants
pollen.action.pollVotingListEdit=Editer ce groupe de votants
1
0
r3424 - trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration
by tchemit@users.chorem.org 05 Jun '12
by tchemit@users.chorem.org 05 Jun '12
05 Jun '12
Author: tchemit
Date: 2012-06-05 18:55:08 +0200 (Tue, 05 Jun 2012)
New Revision: 3424
Url: http://chorem.org/repositories/revision/pollen/3424
Log:
fix migration
Modified:
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-05 16:50:22 UTC (rev 3423)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-05 16:55:08 UTC (rev 3424)
@@ -136,6 +136,18 @@
String pollId = choiceId.getLeft();
String choiceName = choiceId.getRight();
+ File pollChoiceImage = service.getPollChoiceImageFile(
+ pollId, choiceName, false);
+
+ if (!pollChoiceImage.exists()) {
+
+ // image does not exists, can not generate thumb
+ if (log.isWarnEnabled()) {
+ log.warn("Could not find image choice " + pollChoiceImage);
+ }
+ continue;
+ }
+
File pollChoiceImageThumb = service.getPollChoiceImageFile(
pollId, choiceName, true);
1
0
Author: tchemit
Date: 2012-06-05 18:50:22 +0200 (Tue, 05 Jun 2012)
New Revision: 3423
Url: http://chorem.org/repositories/revision/pollen/3423
Log:
- update file headers
- move migration to service module (need now some services to perform migration)
- move PollenApllicationContext to the service module (need now some services to perform migration)
- fixes #582: Make the resume page bookmarkeable
- fixes #584: Regenerate missing feed files
- fixes #587: Improve poll admin actions
Added:
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollActions.java
trunk/pollen-services/src/main/java/org/chorem/pollen/PollenApplicationContext.java
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java
trunk/pollen-services/src/main/resources/META-INF/
trunk/pollen-services/src/main/resources/META-INF/services/
trunk/pollen-services/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SummaryPoll.java
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/summary.jsp
trunk/pollen-ui-struts2/src/main/webapp/css/summary.css
trunk/pollen-ui-struts2/src/main/webapp/img/blank.png
Removed:
trunk/pollen-persistence/src/main/java/org/chorem/pollen/entities/migration/
trunk/pollen-persistence/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationContext.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResumePoll.java
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resume.jsp
trunk/pollen-ui-struts2/src/main/webapp/css/resume.css
Modified:
trunk/pollen-persistence/pom.xml
trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenApplicationConfigProvider.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfigurationOption.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenFunctions.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenIOUtil.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTechnicalException.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTopiaRootContextFactory.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonListDAOImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonToListDAOImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollAccountDAOImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollDAOImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountDAOImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VoteDAOImpl.java
trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VotingListImpl.java
trunk/pollen-persistence/src/main/xmi/pollen.properties
trunk/pollen-persistence/src/site/site_en.xml
trunk/pollen-persistence/src/site/site_fr.xml
trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/AbstractDAOTest.java
trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollAccountDAOTest.java
trunk/pollen-persistence/src/test/resources/log4j.properties
trunk/pollen-persistence/src/test/resources/pollen-fake.properties
trunk/pollen-services/pom.xml
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/ChoiceHelper.java
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollDateChoice.java
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollImageChoice.java
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResult.java
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResultList.java
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUri.java
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUrl.java
trunk/pollen-services/src/main/java/org/chorem/pollen/bean/UserPoll.java
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallback.java
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_1.java
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_2.java
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3.java
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3_1.java
trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/FavoriteListImport.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenNotifierWorker.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFactory.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFunctions.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServicePredicates.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListAlreadyExistException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListImportException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotFoundException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotOwnedByUserException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/InvalidEmailException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantAlreadyFoundInListException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantExistWithoutMailException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundInListException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAccountNotFound.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyClosedException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyExistException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollChoiceNotFoundException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollCommentNotFound.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollNotFoundException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollVoteNotFoundException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UnauthorizedPollAccessException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserEmailAlreadyUsedException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserInvalidPasswordException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserLoginAlreadyUsedException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserNotFoundException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteDoubloonException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotAllowedException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotFoundException.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/EmailService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportCSV.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportLDAP.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollCommentService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollFeedService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollResultsService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollUrlService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PreventRuleService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/UserService.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/VoteService.java
trunk/pollen-services/src/main/resources/i18n/pollen-services_en_GB.properties
trunk/pollen-services/src/main/resources/i18n/pollen-services_fr_FR.properties
trunk/pollen-services/src/site/site_en.xml
trunk/pollen-services/src/site/site_fr.xml
trunk/pollen-services/src/test/java/org/chorem/pollen/services/AbstractPollenServiceTest.java
trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java
trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/EmailServiceTest.java
trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java
trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/PollServiceTest.java
trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/UserServiceTest.java
trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/VoteServiceTest.java
trunk/pollen-services/src/test/resources/log4j.properties
trunk/pollen-services/src/test/resources/pollen-fake.properties
trunk/pollen-ui-struts2/src/main/assembly/bin.xml
trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.properties
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationListener.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenSession.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenTopiaTransactionFilter.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenUIUtils.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/FileUploadAware.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PageSkin.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PollenActionSupport.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/Confirm.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/DeleteUser.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManagePolls.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManageUsers.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GenerateChart.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GetPollImageChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/AbstractJSONPaginedAction.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetCreatedPolls.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccount.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccounts.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteLists.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetInvitedPolls.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetParticipatedPolls.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPolls.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUser.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUsers.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractDisplayChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollForm.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollUriIdAction.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractVoteAction.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddComment.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ClosePoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteComment.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteVote.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmPollAction.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/CreatedList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteComment.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeletePoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteVote.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayDateChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayImageChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayPersonToList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayTextChoice.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayVotingList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/EditVote.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ExportPoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ImportPersonListToVotingList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/InvitedList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ParticipatedList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultForPoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultLink.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SelectPersonListToVotingList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/VoteForPoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Confirm.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeleteFavoriteList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeletePollAccount.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Edit.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Login.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Logout.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/LostPassword.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteList.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteLists.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Register.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Show.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/BooleanIntegerConverter.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/DateConverter.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/PollUriConverter.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AbstractPollenAuthorization.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AdminUserRequired.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ConnectedUserRequired.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollAccessRequired.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollCreatorRequired.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollRequired.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ResultAccessRequired.java
trunk/pollen-ui-struts2/src/main/resources/config/struts-admin.xml
trunk/pollen-ui-struts2/src/main/resources/config/struts-io.xml
trunk/pollen-ui-struts2/src/main/resources/config/struts-json.xml
trunk/pollen-ui-struts2/src/main/resources/config/struts-poll.xml
trunk/pollen-ui-struts2/src/main/resources/config/struts-user.xml
trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_en_GB.properties
trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties
trunk/pollen-ui-struts2/src/main/resources/log4j.properties
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoice-conversion.properties
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoiceImpl-conversion.properties
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-create-validation.xml
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-edit-validation.xml
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Edit-validation.xml
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-addPollAccount-validation.xml
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-editPollAccount-validation.xml
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteLists-createFavoriteList-validation.xml
trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Register-validation.xml
trunk/pollen-ui-struts2/src/main/resources/pollen.properties
trunk/pollen-ui-struts2/src/main/resources/struts.xml
trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/checkbox.ftl
trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/controlheader-core.ftl
trunk/pollen-ui-struts2/src/main/resources/template/themes/green/jquery-ui.css
trunk/pollen-ui-struts2/src/main/resources/template/themes/yellow/jquery-ui.css
trunk/pollen-ui-struts2/src/main/resources/validators.xml
trunk/pollen-ui-struts2/src/main/resources/xwork-conversion.properties
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators.xml
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators/layout-default.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/confirmDeleteUser.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/adminRequired.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/home.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClonePoll.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClosePoll.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePoll.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollChoice.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollComment.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollVote.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/create.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComment.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resultLink.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToAddToVotingList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToCreateNewVotingList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/admin_required.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/connected_required.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_access_required.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_creator_required.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_required.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/result_access_required.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeleteFavoriteList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeletePollAccount.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/dialogLostPassword.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/edit.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/login.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/register.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/show.jsp
trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml
trunk/pollen-ui-struts2/src/main/webapp/css/common.css
trunk/pollen-ui-struts2/src/main/webapp/css/main.css
trunk/pollen-ui-struts2/src/main/webapp/css/pollCreation.css
trunk/pollen-ui-struts2/src/main/webapp/css/results.css
trunk/pollen-ui-struts2/src/main/webapp/css/vote.css
trunk/pollen-ui-struts2/src/main/webapp/index.jsp
trunk/pollen-ui-struts2/src/main/webapp/js/createPoll.js
trunk/pollen-ui-struts2/src/main/webapp/js/favoriteList.js
trunk/pollen-ui-struts2/src/main/webapp/js/favoriteLists.js
trunk/pollen-ui-struts2/src/main/webapp/js/gridHelper.js
trunk/pollen-ui-struts2/src/main/webapp/js/usersList.js
trunk/pollen-ui-struts2/src/site/fr/rst/index.rst
trunk/pollen-ui-struts2/src/site/site_en.xml
trunk/pollen-ui-struts2/src/site/site_fr.xml
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/ChoiceType.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/I18nAble.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/PollType.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/VoteCountingType.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Choice.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/CondorcetMethod.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Context.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Group.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Method.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/NumberMethod.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/PercentageMethod.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/StandardMethod.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Vote.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/package-info.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/ChoiceDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/CommentDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollChoiceDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollExportDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteCountingResultDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteToChoiceDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingGroupDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingPersonDTO.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/package-info.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ImportExportService.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExport.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExportImpl.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCounting.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCountingImpl.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/VoteCountingService.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/package-info.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/ListBehavior.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/PercentageBehavior.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/Utils.java
trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/package-info.java
trunk/pollen-votecounting/src/main/resources/log4j.properties
trunk/pollen-votecounting/src/site/site_en.xml
trunk/pollen-votecounting/src/site/site_fr.xml
trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreator.java
trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreatorVoteCounting.java
trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/ServiceVoteCountingImplTest.java
trunk/src/site/fr/rst/configure.rst
trunk/src/site/fr/rst/depouillement.rst
trunk/src/site/fr/rst/index.rst
trunk/src/site/rst/configure.rst
trunk/src/site/rst/index.rst
trunk/src/site/rst/methods.rst
trunk/src/site/site_en.xml
trunk/src/site/site_fr.xml
Modified: trunk/pollen-persistence/pom.xml
===================================================================
--- trunk/pollen-persistence/pom.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/pom.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -49,10 +49,6 @@
<artifactId>topia-persistence</artifactId>
</dependency>
<dependency>
- <groupId>org.nuiton.topia</groupId>
- <artifactId>topia-service-migration</artifactId>
- </dependency>
- <dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenApplicationConfigProvider.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenApplicationConfigProvider.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenApplicationConfigProvider.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfigurationOption.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfigurationOption.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfigurationOption.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenFunctions.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenFunctions.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenFunctions.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenIOUtil.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenIOUtil.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenIOUtil.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTechnicalException.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTechnicalException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTechnicalException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTopiaRootContextFactory.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTopiaRootContextFactory.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/PollenTopiaRootContextFactory.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonListDAOImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonListDAOImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonListDAOImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonToListDAOImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonToListDAOImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PersonToListDAOImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollAccountDAOImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollAccountDAOImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollAccountDAOImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Added: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollActions.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollActions.java (rev 0)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollActions.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -0,0 +1,58 @@
+/*
+ * #%L
+ * Pollen :: Persistence
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+package org.chorem.pollen.business.persistence;
+
+/**
+ * Enumeration to get all possible actions on poll.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4
+ */
+public enum PollActions {
+
+ ATTACH("user/attachPoll"),
+ VOTE("poll/votefor"),
+ RESULT("poll/results"),
+ SUMMARY("poll/summary"),
+ MODERATE("poll/votefor"),
+ EDIT("poll/modification"),
+ CLOSE("poll/close"),
+ CLONE("poll/clone"),
+ EXPORT("poll/export"),
+ DELETE("poll/delete");
+
+ /**
+ * Prefix to render url.
+ *
+ * @since 1.4
+ */
+ private final String actionPrefix;
+
+ private PollActions(String actionPrefix) {
+ this.actionPrefix = actionPrefix;
+ }
+
+ public String getActionPrefix() {
+ return actionPrefix;
+ }
+}
Property changes on: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollActions.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollDAOImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollDAOImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollDAOImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/PollImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountDAOImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountDAOImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountDAOImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/UserAccountImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VoteDAOImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VoteDAOImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VoteDAOImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VotingListImpl.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VotingListImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/VotingListImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Deleted: trunk/pollen-persistence/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion
===================================================================
--- trunk/pollen-persistence/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,5 +0,0 @@
-org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_1
-org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_2
-org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_3
-org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_3_1
-org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_4
\ No newline at end of file
Modified: trunk/pollen-persistence/src/main/xmi/pollen.properties
===================================================================
--- trunk/pollen-persistence/src/main/xmi/pollen.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/main/xmi/pollen.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
# Pollen :: Persistence
-#
# $Id$
# $HeadURL$
# %%
@@ -34,3 +33,13 @@
org.chorem.pollen.business.persistence.Poll.attribute.vote.stereotype=ordered
org.chorem.pollen.business.persistence.Poll.attribute.vote.tagvalue.orderBy=topiaCreateDate
+# clef naturelle non modifiable sur Poll#pollId
+org.chorem.pollen.business.persistence.Poll.class.tagValue.naturalIdMutable=true
+org.chorem.pollen.business.persistence.Poll.attribute.pollId.stereotype=unique
+org.chorem.pollen.business.persistence.Poll.attribute.pollId.tagValue.naturalId=true
+
+# clef naturelle non modifiable sur PollAccount#accountId
+org.chorem.pollen.business.persistence.PollAccount.class.tagValue.naturalIdMutable=true
+org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.stereotype=unique
+org.chorem.pollen.business.persistence.PollAccount.attribute.accountId.tagValue.naturalId=true
+
Modified: trunk/pollen-persistence/src/site/site_en.xml
===================================================================
--- trunk/pollen-persistence/src/site/site_en.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/site/site_en.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
- $Id: site_en.xml 3394 2012-05-28 15:27:04Z tchemit $
- $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_en.x… $
+ Pollen :: Persistence
+ $Id$
+ $HeadURL$
%%
Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Property changes on: trunk/pollen-persistence/src/site/site_en.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-persistence/src/site/site_fr.xml
===================================================================
--- trunk/pollen-persistence/src/site/site_fr.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/site/site_fr.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
- $Id: site_fr.xml 3394 2012-05-28 15:27:04Z tchemit $
- $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_fr.x… $
+ Pollen :: Persistence
+ $Id$
+ $HeadURL$
%%
Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Property changes on: trunk/pollen-persistence/src/site/site_fr.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/AbstractDAOTest.java
===================================================================
--- trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/AbstractDAOTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/AbstractDAOTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollAccountDAOTest.java
===================================================================
--- trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollAccountDAOTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollAccountDAOTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Persistence
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-persistence/src/test/resources/log4j.properties
===================================================================
--- trunk/pollen-persistence/src/test/resources/log4j.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/test/resources/log4j.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
# Pollen :: Persistence
-#
# $Id$
# $HeadURL$
# %%
Modified: trunk/pollen-persistence/src/test/resources/pollen-fake.properties
===================================================================
--- trunk/pollen-persistence/src/test/resources/pollen-fake.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-persistence/src/test/resources/pollen-fake.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
# Pollen :: Persistence
-#
# $Id$
# $HeadURL$
# %%
Modified: trunk/pollen-services/pom.xml
===================================================================
--- trunk/pollen-services/pom.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/pom.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -27,7 +27,18 @@
<artifactId>pollen-persistence</artifactId>
<version>${project.version}</version>
</dependency>
+
<dependency>
+ <groupId>org.apache.struts.xwork</groupId>
+ <artifactId>xwork-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
@@ -80,6 +91,10 @@
<artifactId>topia-persistence</artifactId>
</dependency>
<dependency>
+ <groupId>org.nuiton.topia</groupId>
+ <artifactId>topia-service-migration</artifactId>
+ </dependency>
+ <dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
Copied: trunk/pollen-services/src/main/java/org/chorem/pollen/PollenApplicationContext.java (from rev 3421, trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationContext.java)
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/PollenApplicationContext.java (rev 0)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/PollenApplicationContext.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -0,0 +1,101 @@
+/*
+ * #%L
+ * Pollen :: Services
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+package org.chorem.pollen;
+
+import com.opensymphony.xwork2.ActionContext;
+import org.chorem.pollen.services.PollenNotifierWorker;
+import org.nuiton.topia.TopiaContext;
+
+import javax.servlet.ServletContext;
+import java.util.Map;
+
+/**
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.3
+ */
+public class PollenApplicationContext {
+
+ /** Key to store the single instance of the application context */
+ public static final String APPLICATION_CONTEXT_PARAMETER =
+ "pollenApplicationContext";
+
+ protected PollenConfiguration configuration;
+
+ protected TopiaContext rootContext;
+
+ protected PollenNotifierWorker pollenNotifierWorker;
+
+ public static PollenApplicationContext get(ActionContext actionContext) {
+ Map<String, Object> application = actionContext.getApplication();
+ PollenApplicationContext applicationContext =
+ (PollenApplicationContext) application.get(APPLICATION_CONTEXT_PARAMETER);
+ return applicationContext;
+ }
+
+ public static PollenApplicationContext get(ServletContext servletContext) {
+ PollenApplicationContext applicationContext =
+ (PollenApplicationContext) servletContext.getAttribute(APPLICATION_CONTEXT_PARAMETER);
+ return applicationContext;
+ }
+
+ public static void set(ServletContext servletContext,
+ PollenApplicationContext context) {
+ servletContext.setAttribute(APPLICATION_CONTEXT_PARAMETER, context);
+ }
+
+ public static void set(ActionContext actionContext,
+ PollenApplicationContext context) {
+ Map<String, Object> application = actionContext.getApplication();
+ if (context == null) {
+
+ application.remove(APPLICATION_CONTEXT_PARAMETER);
+ } else {
+
+ application.put(APPLICATION_CONTEXT_PARAMETER, context);
+ }
+ }
+
+ public PollenConfiguration getConfiguration() {
+ return configuration;
+ }
+
+ public void setConfiguration(PollenConfiguration configuration) {
+ this.configuration = configuration;
+ }
+
+ public TopiaContext getRootContext() {
+ return rootContext;
+ }
+
+ public void setRootContext(TopiaContext rootContext) {
+ this.rootContext = rootContext;
+ }
+
+ public PollenNotifierWorker getPollenNotifierWorker() {
+ return pollenNotifierWorker;
+ }
+
+ public void setPollenNotifierWorker(PollenNotifierWorker pollenNotifierWorker) {
+ this.pollenNotifierWorker = pollenNotifierWorker;
+ }
+}
Property changes on: trunk/pollen-services/src/main/java/org/chorem/pollen/PollenApplicationContext.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/ChoiceHelper.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/ChoiceHelper.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/ChoiceHelper.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollDateChoice.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollDateChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollDateChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollImageChoice.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollImageChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollImageChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResult.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResult.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResult.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -144,4 +143,4 @@
append("value", value).
toString();
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResultList.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResultList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollResultList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUri.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUri.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUri.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUrl.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUrl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/PollUrl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/bean/UserPoll.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/bean/UserPoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/bean/UserPoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallback.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallback.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallback.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: Persistence
- *
+ * Pollen :: Services
* $Id$
* $HeadURL$
* %%
@@ -38,30 +37,10 @@
*/
public class PollenMigrationCallback extends TopiaMigrationCallbackByClassNG {
-// public static final Version V_1_1 = VersionUtil.valueOf("1.1");
-//
-// public static final Version V_1_2 = VersionUtil.valueOf("1.2");
-//
-// public static final Version V_1_3 = VersionUtil.valueOf("1.3");
-//
-// public static final Version V_1_3_1 = VersionUtil.valueOf("1.3.1");
-//
-// public static final Version V_1_4 = VersionUtil.valueOf("1.4");
-
-// /** Les versions de mise à jour disponibles. */
-// public static final Version[] AVAILABLE_VERSIONS = new Version[]{
-// V_1_1, V_1_2, V_1_3, V_1_3_1, V_1_4
-// };
-
public PollenMigrationCallback() {
super(new MigrationCallBackForVersionResolverByServiceLoader());
}
-// @Override
-// public Version[] getAvailableVersions() {
-// return AVAILABLE_VERSIONS;
-// }
-
@Override
public Version getApplicationVersion() {
return VersionUtil.valueOf(PollenDAOHelper.getModelVersion());
@@ -71,27 +50,4 @@
public boolean askUser(Version version, List<Version> versions) {
return true;
}
-
-// /**
-// * Migration resolver for each version.
-// *
-// * @author tchemit <chemit(a)codelutin.com>
-// * @since 1.0.1
-// */
-// public static class PollenMigrationCallBackForVersionResolver implements MigrationCallBackForVersionResolver {
-//
-// @Override
-// public Class<? extends MigrationCallBackForVersion> getCallBack(Version version) {
-//
-// String fqn = PollenMigrationCallback.class.getName() + "V" + version.getValidName();
-// Class<?> klass;
-// try {
-// klass = Class.forName(fqn);
-// } catch (ClassNotFoundException e) {
-// throw new IllegalStateException(
-// "Could not find migration class " + fqn, e);
-// }
-// return (Class<? extends MigrationCallBackForVersion>) klass;
-// }
-// }
}
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_1.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_1.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_1.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: Persistence
- *
+ * Pollen :: Services
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_2.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_2.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_2.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: Persistence
- *
+ * Pollen :: Services
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: Persistence
- *
+ * Pollen :: Services
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3_1.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3_1.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_3_1.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: Persistence
- *
+ * Pollen :: Services
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java
===================================================================
--- trunk/pollen-persistence/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/entities/migration/PollenMigrationCallbackV1_4.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: Persistence
- * *
+ * Pollen :: Services
* $Id$
* $HeadURL$
* %%
@@ -23,9 +22,23 @@
*/
package org.chorem.pollen.entities.migration;
+import com.opensymphony.xwork2.ActionContext;
+import org.apache.commons.lang3.tuple.Pair;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.chorem.pollen.PollenApplicationContext;
+import org.chorem.pollen.PollenConfiguration;
import org.chorem.pollen.business.persistence.Poll;
+import org.chorem.pollen.business.persistence.PollAccount;
+import org.chorem.pollen.business.persistence.PollAccountImpl;
+import org.chorem.pollen.business.persistence.PollImpl;
import org.chorem.pollen.business.persistence.VoteToChoice;
import org.chorem.pollen.business.persistence.VoteToChoiceImpl;
+import org.chorem.pollen.services.DefaultPollenServiceContext;
+import org.chorem.pollen.services.PollenServiceContext;
+import org.chorem.pollen.services.PollenServiceFactory;
+import org.chorem.pollen.services.impl.PollFeedService;
+import org.chorem.pollen.services.impl.PollService;
import org.nuiton.topia.TopiaException;
import org.nuiton.topia.framework.TopiaContextImplementor;
import org.nuiton.topia.framework.TopiaSQLQuery;
@@ -33,11 +46,14 @@
import org.nuiton.util.Version;
import org.nuiton.util.VersionUtil;
+import java.io.File;
+import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
+import java.util.Locale;
/**
* Migration for version {@code 1.4}.
@@ -47,6 +63,10 @@
*/
public class PollenMigrationCallbackV1_4 extends TopiaMigrationCallbackByClassNG.MigrationCallBackForVersion {
+ /** Logger. */
+ private static final Log log =
+ LogFactory.getLog(PollenMigrationCallbackV1_4.class);
+
@Override
public Version getVersion() {
return VersionUtil.valueOf("1.4");
@@ -65,8 +85,145 @@
// add a flag to not generate results each time (http://chorem.org/issues/135)
addResultUptodateToPoll(queries);
+
+ // generate missing feed files
+ generateMissingPollFeedFiles(tx);
+
+ // generate missing thumbs
+ generateMissingImageThumbs(tx);
}
+ private void generateMissingImageThumbs(TopiaContextImplementor tx) throws TopiaException {
+ TopiaSQLQuery<Pair<String, String>> getAllImageChoicesQuery = new TopiaSQLQuery<Pair<String, String>>() {
+
+ @Override
+ protected PreparedStatement prepareQuery(Connection connection) throws SQLException {
+ PreparedStatement ps = connection.prepareStatement("SELECT p.pollId, c.name FROM choice c, poll p WHERE c.poll = p.topiaid AND p.choicetype=2;");
+ return ps;
+ }
+
+ @Override
+ protected Pair<String, String> prepareResult(ResultSet set) throws SQLException {
+ String pollId = set.getString(1);
+ String choiceName = set.getString(2);
+ return Pair.of(pollId, choiceName);
+ }
+ };
+
+ PollenServiceFactory serviceFactory = new PollenServiceFactory();
+
+ PollenApplicationContext applicationContext = PollenApplicationContext.get(
+ ActionContext.getContext());
+
+ PollenConfiguration configuration =
+ applicationContext.getConfiguration();
+
+
+ PollenServiceContext sContext = DefaultPollenServiceContext.newContext(
+ Locale.getDefault(),
+ tx,
+ configuration,
+ serviceFactory
+ );
+
+ List<Pair<String, String>> choiceIds =
+ getAllImageChoicesQuery.findMultipleResult(tx);
+
+ PollService service = sContext.newService(PollService.class);
+
+ for (Pair<String, String> choiceId : choiceIds) {
+
+ String pollId = choiceId.getLeft();
+ String choiceName = choiceId.getRight();
+
+ File pollChoiceImageThumb = service.getPollChoiceImageFile(
+ pollId, choiceName, true);
+
+ boolean thumbExists = pollChoiceImageThumb.exists();
+
+ if (!thumbExists) {
+
+ // creates thumb image
+
+ if (log.isInfoEnabled()) {
+ log.info("Create missing thumb file " +
+ pollChoiceImageThumb);
+ }
+ try {
+ service.generateThumb(pollId, choiceName, null);
+ } catch (IOException e) {
+ throw new TopiaException("Could not create thumb for " +
+ pollChoiceImageThumb, e);
+ }
+ }
+
+ }
+ }
+
+ private void generateMissingPollFeedFiles(TopiaContextImplementor tx) throws TopiaException {
+ TopiaSQLQuery<Poll> getAllPollIdsQuery = new TopiaSQLQuery<Poll>() {
+
+ @Override
+ protected PreparedStatement prepareQuery(Connection connection) throws SQLException {
+ PreparedStatement ps = connection.prepareStatement("SELECT p.pollId, p.title, p.description, c.votingId FROM poll p, PollAccount c WHERE p.creator = c.topiaId;");
+ return ps;
+ }
+
+ @Override
+ protected Poll prepareResult(ResultSet set) throws SQLException {
+ String pollId = set.getString(1);
+ String pollTitle = set.getString(2);
+ String pollDescription = set.getString(3);
+ String votingId = set.getString(4);
+ Poll poll = new PollImpl();
+ poll.setPollId(pollId);
+ poll.setTitle(pollTitle);
+ poll.setDescription(pollDescription);
+ PollAccount pollAccount = new PollAccountImpl();
+ pollAccount.setVotingId(votingId);
+ poll.setCreator(pollAccount);
+ return poll;
+ }
+ };
+
+ PollenServiceFactory serviceFactory = new PollenServiceFactory();
+
+ PollenApplicationContext applicationContext = PollenApplicationContext.get(
+ ActionContext.getContext());
+
+ PollenConfiguration configuration =
+ applicationContext.getConfiguration();
+
+
+ PollenServiceContext sContext = DefaultPollenServiceContext.newContext(
+ Locale.getDefault(),
+ tx,
+ configuration,
+ serviceFactory
+ );
+
+ PollFeedService feedService = sContext.newService(PollFeedService.class);
+
+ List<Poll> polls = getAllPollIdsQuery.findMultipleResult(tx);
+
+ for (Poll poll : polls) {
+
+ boolean feedExists = feedService.isFeedExists(poll);
+ if (!feedExists) {
+
+ // creates feed file
+
+ if (log.isInfoEnabled()) {
+ log.info("Create missing file " +
+ feedService.getFeedLocation(poll));
+ }
+
+ feedService.onPollCreated(poll);
+ }
+
+ }
+ }
+
private void addResultUptodateToPoll(List<String> queries) {
queries.add("ALTER TABLE poll ADD COLUMN " +
Poll.PROPERTY_RESULT_UPTODATE + " boolean default false;");
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -101,6 +100,11 @@
}
@Override
+ public boolean isCanSendEmail() {
+ return getApplicationURL() != null;
+ }
+
+ @Override
public <E extends PollenService> E newService(Class<E> clazz) {
return serviceFactory.newService(clazz, this);
}
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/FavoriteListImport.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/FavoriteListImport.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/FavoriteListImport.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenNotifierWorker.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenNotifierWorker.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenNotifierWorker.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -25,11 +24,9 @@
import com.google.common.base.Preconditions;
import org.chorem.pollen.PollenTechnicalException;
-import org.chorem.pollen.bean.PollUrl;
import org.chorem.pollen.business.persistence.Poll;
import org.chorem.pollen.business.persistence.PreventRule;
import org.chorem.pollen.services.impl.PollService;
-import org.chorem.pollen.services.impl.PollUrlService;
import org.chorem.pollen.services.impl.PreventRuleService;
import org.nuiton.topia.TopiaContext;
import org.nuiton.topia.TopiaException;
@@ -81,8 +78,6 @@
try {
serviceContext.setTransaction(transaction);
- PollUrlService pollUrlService =
- serviceContext.newService(PollUrlService.class);
PollService pollService =
serviceContext.newService(PollService.class);
PreventRuleService preventRuleService =
@@ -93,11 +88,8 @@
for (Poll poll : polls) {
- PollUrl pollVoteUrl =
- pollUrlService.getPollVoteUrl(poll, false);
+ preventRuleService.onPollToRemind(poll);
- preventRuleService.onPollToRemind(poll, pollVoteUrl);
-
}
} finally {
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -49,6 +48,8 @@
URL getApplicationURL();
+ boolean isCanSendEmail();
+
PollenConfiguration getConfiguration();
PollenServiceFactory getServiceFactory();
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFactory.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFactory.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFactory.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFunctions.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFunctions.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceFunctions.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServicePredicates.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServicePredicates.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServicePredicates.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListAlreadyExistException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListAlreadyExistException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListAlreadyExistException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListImportException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListImportException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListImportException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotFoundException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotFoundException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotFoundException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotOwnedByUserException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotOwnedByUserException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/FavoriteListNotOwnedByUserException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/InvalidEmailException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/InvalidEmailException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/InvalidEmailException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantAlreadyFoundInListException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantAlreadyFoundInListException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantAlreadyFoundInListException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantExistWithoutMailException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantExistWithoutMailException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantExistWithoutMailException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundInListException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundInListException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/ParticipantNotFoundInListException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAccountNotFound.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAccountNotFound.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAccountNotFound.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyClosedException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyClosedException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyClosedException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyExistException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyExistException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollAlreadyExistException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollChoiceNotFoundException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollChoiceNotFoundException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollChoiceNotFoundException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollCommentNotFound.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollCommentNotFound.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollCommentNotFound.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollNotFoundException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollNotFoundException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollNotFoundException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollVoteNotFoundException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollVoteNotFoundException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/PollVoteNotFoundException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UnauthorizedPollAccessException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UnauthorizedPollAccessException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UnauthorizedPollAccessException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserEmailAlreadyUsedException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserEmailAlreadyUsedException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserEmailAlreadyUsedException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserInvalidPasswordException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserInvalidPasswordException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserInvalidPasswordException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserLoginAlreadyUsedException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserLoginAlreadyUsedException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserLoginAlreadyUsedException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserNotFoundException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserNotFoundException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/UserNotFoundException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteDoubloonException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteDoubloonException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteDoubloonException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotAllowedException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotAllowedException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotAllowedException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotFoundException.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotFoundException.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/exceptions/VoteNotFoundException.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/EmailService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/EmailService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/EmailService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -41,7 +40,6 @@
import org.chorem.pollen.services.PollenServiceSupport;
import org.nuiton.util.StringUtil;
-import java.net.URL;
import java.util.List;
import java.util.Locale;
@@ -54,16 +52,16 @@
public void onUserCreated(UserAccount user) {
- URL url = serviceContext.getApplicationURL();
+ if (serviceContext.isCanSendEmail() &&
+ StringUtil.isEmail(user.getEmail())) {
- if (url != null && StringUtil.isEmail(user.getEmail())) {
-
Locale locale = getLocale();
String subject = l_(locale, "pollen.email.userRegister.subject",
user.getLogin());
String content = l_(locale, "pollen.email.userRegister.content",
user.getDisplayName(),
- user.getLogin(), user.getPassword(), url);
+ user.getLogin(), user.getPassword(),
+ serviceContext.getApplicationURL());
PollenEmail pollenEmail = createPollenEmail(user.getEmail(),
subject,
@@ -75,17 +73,16 @@
public void onLostPassword(UserAccount user, String newPassword) {
- URL url = serviceContext.getApplicationURL();
+ if (serviceContext.isCanSendEmail()) {
- if (url != null) {
-
Locale locale = getLocale();
String subject = l_(locale, "pollen.email.lostPassword.subject",
user.getLogin());
String content = l_(locale, "pollen.email.lostPassword.content",
user.getDisplayName(),
- user.getLogin(), newPassword, url);
+ user.getLogin(), newPassword,
+ serviceContext.getApplicationURL());
PollenEmail pollenEmail = createPollenEmail(user.getEmail(),
subject,
@@ -95,16 +92,18 @@
}
}
- public void onVoteAdded(Poll poll, PollUrl voteURL, PollUrl modifURL) {
+ public void onVoteAdded(Poll poll) {
- URL url = serviceContext.getApplicationURL();
+ if (serviceContext.isCanSendEmail()) {
- if (url != null) {
-
Locale locale = getLocale();
String pollTitle = poll.getTitle();
+ PollUrlService urlService = newService(PollUrlService.class);
+
+ PollUrl summaryUrl = urlService.getPollSummaryUrl(poll);
+
// Mail au créateur
if (StringUtils.isNotEmpty(poll.getCreator().getEmail())) {
@@ -114,27 +113,28 @@
String subject = l_(locale, "pollen.email.voteEmail.subject",
pollTitle);
String content = l_(locale, "pollen.email.voteEmail.content",
- pollTitle, nbVotes, voteURL, modifURL);
+ pollTitle, nbVotes, summaryUrl);
PollenEmail pollenEmail = createPollenEmail(
poll.getCreator().getEmail(), subject, content);
sendEmail(pollenEmail);
}
-
}
}
- public void onPollCreated(Poll poll, PollUrl voteURL, PollUrl moderateUrl, PollUrl modifURL) {
+ public void onPollCreated(Poll poll) {
- URL url = serviceContext.getApplicationURL();
+ if (serviceContext.isCanSendEmail()) {
- if (url != null) {
-
Locale locale = getLocale();
String pollTitle = poll.getTitle();
+ PollUrlService urlService = newService(PollUrlService.class);
+ PollUrl summaryUrl = urlService.getPollSummaryUrl(poll);
+ PollUrl voteUrl = urlService.getPollVoteUrl(poll);
+
// Mail au créateur
if (StringUtils.isNotEmpty(poll.getCreator().getEmail())) {
@@ -143,13 +143,13 @@
subject = l_(locale, "pollen.email.createPoll.subject",
pollTitle);
content = l_(locale, "pollen.email.createPoll.content",
- pollTitle, poll.getPollId(), voteURL, moderateUrl, modifURL);
+ pollTitle, poll.getPollId(), summaryUrl);
} else {
subject = l_(locale, "pollen.email.createRestrictedPoll.subject",
pollTitle);
content = l_(locale, "pollen.email.createRestrictedPoll.content",
- pollTitle, moderateUrl, modifURL);
+ pollTitle, summaryUrl);
}
PollenEmail pollenEmail = createPollenEmail(
@@ -162,14 +162,15 @@
List<PollAccount> votingPollAccounts = poll.getPollAccounts(false);
if (CollectionUtils.isNotEmpty(votingPollAccounts)) {
- String subject = l_(locale, "pollen.email.votingEmail.subject",
- pollTitle);
List<PollenEmail> emails = Lists.newArrayList();
for (PollAccount account : votingPollAccounts) {
PollenEmail pollenEmail =
- createVotingEmail(locale, pollTitle, account, voteURL);
+ createVotingEmail(locale,
+ pollTitle,
+ account,
+ voteUrl);
emails.add(pollenEmail);
}
@@ -179,16 +180,17 @@
}
}
- public void onRestrictedPersonAdded(Poll poll, PollAccount account, PollUrl voteURL) {
+ public void onRestrictedPersonAdded(Poll poll, PollAccount account) {
- URL url = serviceContext.getApplicationURL();
+ if (serviceContext.isCanSendEmail()) {
- if (url != null) {
-
Locale locale = getLocale();
String pollTitle = poll.getTitle();
+ PollUrlService urlService = newService(PollUrlService.class);
+ PollUrl voteURL = urlService.getPollVoteUrl(poll);
+
PollenEmail pollenEmail =
createVotingEmail(locale, pollTitle, account, voteURL);
@@ -196,16 +198,17 @@
}
}
- public void onPollReminder(Poll poll, PollUrl voteURL) {
+ public void onPollReminder(Poll poll) {
- URL url = serviceContext.getApplicationURL();
+ if (serviceContext.isCanSendEmail()) {
- if (url != null) {
-
Locale locale = getLocale();
String pollTitle = poll.getTitle();
+ PollUrl voteURL =
+ newService(PollUrlService.class).getPollVoteUrl(poll);
+
// Mails aux votants qui n'ont toujours pas voté
List<PollAccount> votingPollAccounts = poll.getPollAccounts(true);
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportCSV.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportCSV.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportCSV.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportLDAP.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportLDAP.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteListImportLDAP.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/FavoriteService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollCommentService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollCommentService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollCommentService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -98,7 +97,7 @@
// feed notification
PollFeedService pollFeedService = newService(PollFeedService.class);
- pollFeedService.onAddComment(poll, commentCreated);
+ pollFeedService.onCommentAdded(poll, commentCreated);
return commentCreated;
} catch (TopiaException e) {
@@ -126,7 +125,7 @@
// feed notification
PollFeedService pollFeedService = newService(PollFeedService.class);
- pollFeedService.onDeleteComment(poll, comment, reason);
+ pollFeedService.onCommentDeleted(poll, comment, reason);
} catch (TopiaException e) {
throw new PollenTechnicalException(e);
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollFeedService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollFeedService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollFeedService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -23,6 +22,7 @@
*/
package org.chorem.pollen.services.impl;
+import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import com.sun.syndication.feed.synd.SyndContent;
import com.sun.syndication.feed.synd.SyndContentImpl;
@@ -83,17 +83,22 @@
return result;
}
- public void onPollCreated(Poll poll, PollUrl pollVoteUrl) {
+ public void onPollCreated(Poll poll) {
File file = getFeedLocation(poll);
- String title = l_(getLocale(), "pollen.feed.pollTitle", poll.getTitle());
- String description = l_(getLocale(), "pollen.feed.pollDescription", poll.getDescription());
+ String title = l_(getLocale(), "pollen.feed.pollTitle",
+ poll.getTitle());
+ String description = l_(getLocale(), "pollen.feed.pollDescription",
+ poll.getDescription());
+
+ PollUrlService urlService = newService(PollUrlService.class);
+ PollUrl voteUrl = urlService.getPollVoteUrl(poll);
try {
SyndFeed feed = new SyndFeedImpl();
feed.setFeedType("atom_1.0");
feed.setTitle(title);
- feed.setLink(pollVoteUrl.getUrl());
+ feed.setLink(voteUrl.getUrl());
feed.setDescription(description);
Writer writer = new FileWriter(file);
@@ -111,47 +116,36 @@
String content = _("pollen.feed.createPollContent",
poll.getDescription());
- addFeedEntry(poll, title, content, pollVoteUrl);
+ addFeedEntry(poll, title, content);
} catch (Exception e) {
throw new PollenTechnicalException("Could not create feed", e);
}
}
- public void onAddComment(Poll poll, Comment comment) {
+ public void onCommentAdded(Poll poll, Comment comment) {
- PollUrlService pollService = newService(PollUrlService.class);
- PollUrl pollVoteUrl = pollService.getPollVoteUrl(poll, false);
-
-
String title = _("pollen.feed.addCommentTitle",
comment.getAuthor());
String content = _("pollen.feed.addCommentContent",
comment.getText());
- addFeedEntry(poll, title, content, pollVoteUrl);
+ addFeedEntry(poll, title, content);
}
- public void onDeleteComment(Poll poll, Comment comment, String reason) {
+ public void onCommentDeleted(Poll poll, Comment comment, String reason) {
- PollUrlService pollService = newService(PollUrlService.class);
- PollUrl pollVoteUrl = pollService.getPollVoteUrl(poll, false);
-
String title = _("pollen.feed.deleteCommentTitle",
comment.getAuthor(), reason);
String content =
_("pollen.feed.deleteCommentContent", comment.getText());
- addFeedEntry(poll, title, content, pollVoteUrl);
+ addFeedEntry(poll, title, content);
}
- public void onAddVote(Poll poll, Vote vote) {
+ public void onVoteAdded(Poll poll, Vote vote) {
- PollUrlService pollUrlService = newService(PollUrlService.class);
-
- PollUrl pollVoteUrl = pollUrlService.getPollVoteUrl(poll, false);
-
PollResultsService pollResultsService =
newService(PollResultsService.class);
@@ -170,16 +164,11 @@
String content = _("pollen.feed.addVoteContent", pollResult);
- addFeedEntry(poll, title, content, pollVoteUrl);
+ addFeedEntry(poll, title, content);
}
- public void onUpdateVote(Poll poll,
- Vote vote) {
+ public void onVoteUpdated(Poll poll, Vote vote) {
- PollUrlService pollUrlService = newService(PollUrlService.class);
-
- PollUrl pollVoteUrl = pollUrlService.getPollVoteUrl(poll, false);
-
PollResultsService pollResultsService =
newService(PollResultsService.class);
@@ -198,15 +187,12 @@
String content = _("pollen.feed.updateVoteContent", pollResult);
- addFeedEntry(poll, title, content, pollVoteUrl);
+ addFeedEntry(poll, title, content);
}
- public void onDeleteVote(Poll poll, Vote vote, PollAccount voteAccount, String reason) {
+ public void onVoteDeleted(Poll poll, Vote vote,
+ PollAccount voteAccount, String reason) {
- PollUrlService pollUrlService = newService(PollUrlService.class);
-
- PollUrl pollVoteUrl = pollUrlService.getPollVoteUrl(poll, false);
-
PollResultsService pollResultsService =
newService(PollResultsService.class);
@@ -223,17 +209,17 @@
String content = _("pollen.feed.deleteVoteContent", pollResult);
- addFeedEntry(poll, title, content, pollVoteUrl);
+ addFeedEntry(poll, title, content);
}
- public void onAddChoice(Poll poll, Choice choice, PollUrl pollVoteUrl) {
+ public void onChoiceAdded(Poll poll, Choice choice) {
String title = _("pollen.feed.addChoiceTitle", choice.getName());
String content = _("pollen.feed.addChoiceContent",
choice.getDescription());
- addFeedEntry(poll, title, content, pollVoteUrl);
+ addFeedEntry(poll, title, content);
}
/**
@@ -258,24 +244,20 @@
/**
* Ajout d'une entrée dans un flux.
*
- * @param poll poll
- * @param title titre de l'entrée
- * @param content contenu de l'entrée
- * @param pollVoteUrl poll vote url
+ * @param poll poll
+ * @param title titre de l'entrée
+ * @param content contenu de l'entrée
*/
- protected void addFeedEntry(Poll poll,
- String title,
- String content,
- PollUrl pollVoteUrl) {
+ protected void addFeedEntry(Poll poll, String title, String content) {
- //TODO tchemitshould remove this, may migrates when going to version 2.0
- //TODO pass on all polls from database and creates the feed if not found.
- if (!isFeedExists(poll)) {
- onPollCreated(poll, pollVoteUrl);
- }
-
File file = getFeedLocation(poll);
+ Preconditions.checkState(isFeedExists(poll),
+ "Could not find feed for poll at " + file);
+
+ PollUrlService urlService = newService(PollUrlService.class);
+ PollUrl voteUrl = urlService.getPollVoteUrl(poll);
+
try {
List entries = Lists.newArrayList();
SyndFeedInput input = new SyndFeedInput();
@@ -286,7 +268,7 @@
SyndContent description;
entry = new SyndEntryImpl();
entry.setTitle(title);
- entry.setLink(pollVoteUrl.getUrl());
+ entry.setLink(voteUrl.getUrl());
entry.setPublishedDate(new Date());
description = new SyndContentImpl();
description.setType("text/plain");
@@ -311,4 +293,5 @@
throw new PollenTechnicalException("Could not feed feed", e);
}
}
+
}
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollResultsService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollResultsService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollResultsService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -37,8 +36,6 @@
import org.chorem.pollen.PollenTechnicalException;
import org.chorem.pollen.bean.PollDateChoice;
import org.chorem.pollen.bean.PollImageChoice;
-import org.chorem.pollen.bean.PollUri;
-import org.chorem.pollen.bean.PollUrl;
import org.chorem.pollen.business.persistence.Choice;
import org.chorem.pollen.business.persistence.ChoiceDAO;
import org.chorem.pollen.business.persistence.PersonToList;
@@ -53,7 +50,6 @@
import org.chorem.pollen.business.persistence.VotingList;
import org.chorem.pollen.business.persistence.VotingListDAO;
import org.chorem.pollen.common.ChoiceType;
-import org.chorem.pollen.common.PollType;
import org.chorem.pollen.entities.PollenBinderHelper;
import org.chorem.pollen.services.PollenServiceFunctions;
import org.chorem.pollen.services.PollenServiceSupport;
@@ -242,26 +238,20 @@
commitTransaction("Could not create poll " + poll.getTitle());
- PollUrlService pollUrlService = newService(PollUrlService.class);
-
- PollUrl pollVoteUrl = pollUrlService.getPollVoteUrl(poll, false);
- PollUrl pollModerateUrl = pollUrlService.getPollVoteUrl(poll, true);
- PollUrl pollEditUrl = pollUrlService.getPollEditUrl(poll);
-
// email notification
EmailService emailService = newService(EmailService.class);
- emailService.onPollCreated(result, pollVoteUrl, pollModerateUrl, pollEditUrl);
+ emailService.onPollCreated(result);
// feed notification
// XXX-fdesbois-2012-04-12 : if the feed is the same for everybody maybe
// not publish restricted poll that can't be accessed by everybody
PollFeedService pollFeedService = newService(PollFeedService.class);
- pollFeedService.onPollCreated(result, pollVoteUrl);
+ pollFeedService.onPollCreated(result);
return result;
}
- public void updatePoll(Poll poll) throws PollNotFoundException {
+ public Poll updatePoll(Poll poll) throws PollNotFoundException {
Poll pollToUpdate = getEntityById(Poll.class, poll.getTopiaId());
@@ -319,6 +309,8 @@
}
commitTransaction("Could not update poll [" + poll.getTopiaId() + "]");
+
+ return pollToUpdate;
}
public List<Poll> getPolls(TopiaFilterPagerUtil.FilterPagerBean pager) {
@@ -861,81 +853,6 @@
commitTransaction("Could not delete choice " + choice.getName());
}
- public void checkPoll(PollUri uri) throws PollNotFoundException {
-
- String pollId = uri.getPollId();
-
- getExistingPollByPollId(pollId);
- }
-
- public void checkPollResult(PollUri uri) throws PollNotFoundException, UnauthorizedPollAccessException {
-
- String pollId = uri.getPollId();
-
- Poll poll = getExistingPollByPollId(pollId);
-
- if (!poll.isPublicResults()) {
- throw new UnauthorizedPollAccessException();
- }
- }
-
- public void checkPollAccount(PollUri uri) throws PollNotFoundException, UnauthorizedPollAccessException {
-
- String pollId = uri.getPollId();
- String accountId = uri.getAccountId();
-
- Poll poll = getExistingPollByPollId(pollId);
-
- PollAccountDAO dao = getDAO(PollAccount.class);
-
- if (poll.getPollType() != PollType.FREE) {
-
- // check that uri contains a correct poll account for this
-
- // Use PersonToList association entity to find coherence between
- // the poll and votingId
-
- try {
- PollAccount result =
- dao.getRestrictedPollAccount(pollId, accountId);
-
- if (result == null) {
- throw new UnauthorizedPollAccessException();
- }
- } catch (TopiaException e) {
- throw new PollenTechnicalException(
- "Could not obtain restricted pollAccount", e);
- }
-
- } else if (accountId != null) {
-
- try {
-
- if (!dao.existsByPollVoteAccountId(pollId, accountId)) {
- throw new UnauthorizedPollAccessException();
- }
- } catch (TopiaException e) {
- throw new PollenTechnicalException(
- "Could not check pollAccount existence from poll '" +
- pollId + "' and account '" + accountId + "'", e);
- }
- }
- }
-
- public void checkPollCreator(PollUri uri) throws PollNotFoundException, UnauthorizedPollAccessException {
-
- String pollId = uri.getPollId();
- String accountId = uri.getAccountId();
-
- Poll poll = getExistingPollByPollId(pollId);
-
- String creatorId = poll.getCreator().getAccountId();
-
- if (!creatorId.equals(accountId)) {
- throw new UnauthorizedPollAccessException();
- }
- }
-
public File getPollChoiceImageFile(String pollId,
String choiceId,
boolean thumb) {
@@ -960,16 +877,48 @@
*/
public void saveImages(Poll poll, PollImageChoice choice) throws IOException {
- String location = choice.getLocation();
-
String pollId = poll.getPollId();
String name = choice.getName();
+ generateThumb(pollId, name, choice);
+ }
+
+ public void generateThumb(String pollId,
+ String name,
+ PollImageChoice choice) throws IOException {
+
File pollChoiceImage = getPollChoiceImageFile(pollId, name, false);
File pollChoiceImageThumb = getPollChoiceImageFile(pollId, name, true);
- FileUtils.copyFile(new File(location), pollChoiceImage);
- createThumbnail(pollChoiceImage, pollChoiceImageThumb, 100);
+ if (choice != null) {
+
+ // means must copy it
+
+
+ String location = choice.getLocation();
+
+ FileUtils.copyFile(new File(location), pollChoiceImage);
+ }
+ int width = 100;
+ ImageIcon ii = new ImageIcon(pollChoiceImage.getAbsolutePath());
+ Image image = ii.getImage();
+ double imageRatio = (double) image.getHeight(null)
+ / (double) image.getWidth(null);
+ int height = (int) (width * imageRatio);
+
+ BufferedImage thumbImage = new BufferedImage(width, height,
+ BufferedImage.TYPE_INT_RGB);
+ Graphics2D graphics2D = thumbImage.createGraphics();
+ graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
+ RenderingHints.VALUE_INTERPOLATION_BILINEAR);
+ graphics2D.drawImage(image, 0, 0, width, height, null);
+
+ ImageIO.write(thumbImage, "jpg", pollChoiceImageThumb);
+
+ if (log.isDebugEnabled()) {
+ log.debug("Thumbnail created: " + pollChoiceImageThumb.getName() + " (size="
+ + pollChoiceImageThumb.length() + ")");
+ }
}
public PersonToList getNewPersonToList(PollAccount pollAccount) {
@@ -1010,10 +959,6 @@
result.setName(votingList.getName());
result.setWeight(votingList.getWeight());
- PollUrlService pollUrlService = newService(PollUrlService.class);
-
- PollUrl voteURL = pollUrlService.getPollVoteUrl(poll, false);
-
// Merge PersonToList
List<PersonToList> personToListsUpdated = Lists.newArrayList();
for (PersonToList personToList : votingList.getPollAccountPersonToList()) {
@@ -1062,7 +1007,7 @@
// Send email to the person if service is defined and email has changed
if (emailService != null && emailChanged) {
- emailService.onRestrictedPersonAdded(poll, pollAccountLoaded, voteURL);
+ emailService.onRestrictedPersonAdded(poll, pollAccountLoaded);
}
// Update the account (otherwise a saving error will occurs if
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollUrlService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollUrlService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollUrlService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -26,6 +26,7 @@
import org.chorem.pollen.bean.PollUri;
import org.chorem.pollen.bean.PollUrl;
import org.chorem.pollen.business.persistence.Poll;
+import org.chorem.pollen.business.persistence.PollActions;
import org.chorem.pollen.services.PollenServiceSupport;
import java.net.URL;
@@ -38,50 +39,56 @@
*/
public class PollUrlService extends PollenServiceSupport {
- public PollUrl getPollVoteUrl(Poll poll, boolean moderate) {
+ public PollUrl getPollSummaryUrl(Poll poll) {
- Preconditions.checkNotNull(poll);
+ PollUrl result = newPollUri(PollActions.SUMMARY, poll, true);
+ return result;
+ }
- URL applicationUrl = serviceContext.getApplicationURL();
- String baseUrl = applicationUrl + "/poll/votefor/";
- PollUri pollUri = PollUri.newPollUri(poll.getPollId());
+ public PollUrl getPollCloneUrl(Poll poll) {
- if (moderate) {
- String creatorId = poll.getCreator().getAccountId();
- pollUri.setAccountId(creatorId);
- }
-
- PollUrl result = PollUrl.newPollUrl(baseUrl, pollUri);
+ PollUrl result = newPollUri(PollActions.CLONE, poll, true);
return result;
}
- public PollUrl getPollEditUrl(Poll poll) {
+ public PollUrl getPollExportUrl(Poll poll) {
- Preconditions.checkNotNull(poll);
+ PollUrl result = newPollUri(PollActions.EXPORT, poll, true);
+ return result;
+ }
- URL applicationUrl = serviceContext.getApplicationURL();
- String baseUrl = applicationUrl + "/poll/modification/";
+ public PollUrl getPollVoteUrl(Poll poll) {
+ PollUrl result = newPollUri(PollActions.VOTE, poll, false);
+ return result;
+ }
- String creatorId = poll.getCreator().getAccountId();
- PollUri pollUri = PollUri.newPollUri(poll.getPollId(), creatorId);
+ public PollUrl getPollModerateUrl(Poll poll) {
+ PollUrl result = newPollUri(PollActions.MODERATE, poll, true);
+ return result;
+ }
- PollUrl result = PollUrl.newPollUrl(baseUrl, pollUri);
+ public PollUrl getPollEditUrl(Poll poll) {
+ PollUrl result = newPollUri(PollActions.EDIT, poll, true);
return result;
}
public PollUrl getPollResultUrl(Poll poll) {
+ PollUrl result = newPollUri(PollActions.RESULT, poll,
+ !poll.isPublicResults());
+ return result;
+ }
+ protected PollUrl newPollUri(PollActions action, Poll poll, boolean admin) {
+
Preconditions.checkNotNull(poll);
+ Preconditions.checkNotNull(action);
+ String prefix = '/' + action.getActionPrefix() + '/';
+
URL applicationUrl = serviceContext.getApplicationURL();
- String baseUrl = applicationUrl + "/poll/results/";
- PollUri pollUri = PollUri.newPollUri(poll.getPollId());
-
- if (!poll.isPublicResults()) {
- String creatorId = poll.getCreator().getAccountId();
- pollUri.setAccountId(creatorId);
- }
-
+ String baseUrl = applicationUrl + prefix;
+ PollUri pollUri = PollUri.newPollUri(
+ admin ? poll.getAdminId() : poll.getPollId());
PollUrl result = PollUrl.newPollUrl(baseUrl, pollUri);
return result;
}
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PreventRuleService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PreventRuleService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PreventRuleService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -26,7 +25,6 @@
import com.google.common.base.Preconditions;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.pollen.bean.PollUrl;
import org.chorem.pollen.business.persistence.Poll;
import org.chorem.pollen.business.persistence.PreventRule;
import org.chorem.pollen.services.PollenServiceSupport;
@@ -64,21 +62,17 @@
return rule;
}
- public void onVoteAdded(Poll poll, PollUrl pollVoteUrl, PollUrl modifURL) {
+ public void onVoteAdded(Poll poll) {
if (poll.getEndDate() != null) {
for (PreventRule rule : poll.getPreventRule()) {
- onVoteAdded(poll,
- rule,
- pollVoteUrl,
- modifURL
- );
+ onVoteAdded(poll, rule);
}
}
}
- public void onPollToRemind(Poll poll, PollUrl pollVoteUrl) {
+ public void onPollToRemind(Poll poll) {
// Parcours des preventRules de chaque sondage
// envoi d'un email si endDate-nowDate <= preventRuleSensibility
@@ -99,19 +93,12 @@
for (PreventRule rule : poll.getPreventRule()) {
- onPollToRemind(poll,
- rule,
- pollVoteUrl,
- hourBeforeEnd
- );
+ onPollToRemind(poll, rule, hourBeforeEnd);
}
}
}
- protected void onVoteAdded(Poll poll,
- PreventRule preventRule,
- PollUrl pollVoteUrl,
- PollUrl modifURL) {
+ protected void onVoteAdded(Poll poll, PreventRule preventRule) {
// send to creator a email to say hey a new vote was added!
@@ -122,16 +109,14 @@
EmailService emailService = newService(EmailService.class);
// let's send an email
- emailService.onVoteAdded(poll, pollVoteUrl, modifURL);
+ emailService.onVoteAdded(poll);
// and update prevent rule
commitTransaction("Could not update prevent rule");
}
}
- protected void onPollToRemind(Poll poll,
- PreventRule preventRule,
- PollUrl pollVoteUrl,
+ protected void onPollToRemind(Poll poll, PreventRule preventRule,
int timeValue) {
// send to all voting a email to say hey we need to vote
@@ -143,15 +128,14 @@
EmailService emailService = newService(EmailService.class);
// let's send an email
- emailService.onPollReminder(poll, pollVoteUrl);
+ emailService.onPollReminder(poll);
// and update prevent rule
commitTransaction("Could not update prevent rule");
}
}
- protected boolean execute(String scope,
- PreventRule preventRule,
+ protected boolean execute(String scope, PreventRule preventRule,
Integer value) {
Preconditions.checkNotNull(scope);
Added: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java (rev 0)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -0,0 +1,125 @@
+/*
+ * #%L
+ * Pollen :: Services
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+package org.chorem.pollen.services.impl;
+
+import org.chorem.pollen.PollenTechnicalException;
+import org.chorem.pollen.bean.PollUri;
+import org.chorem.pollen.business.persistence.Poll;
+import org.chorem.pollen.business.persistence.PollAccount;
+import org.chorem.pollen.business.persistence.PollAccountDAO;
+import org.chorem.pollen.common.PollType;
+import org.chorem.pollen.services.PollenServiceSupport;
+import org.chorem.pollen.services.exceptions.PollNotFoundException;
+import org.chorem.pollen.services.exceptions.UnauthorizedPollAccessException;
+import org.nuiton.topia.TopiaException;
+
+/**
+ * Service to manager security.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4
+ */
+public class SecurityService extends PollenServiceSupport {
+
+ public void checkPoll(PollUri uri) throws PollNotFoundException {
+
+ getExistingPoll(uri);
+ }
+
+ public void checkPollResult(PollUri uri) throws PollNotFoundException, UnauthorizedPollAccessException {
+
+ Poll poll = getExistingPoll(uri);
+
+ if (!poll.isPublicResults()) {
+ throw new UnauthorizedPollAccessException();
+ }
+ }
+
+ public void checkPollAccount(PollUri uri) throws PollNotFoundException, UnauthorizedPollAccessException {
+
+
+ String accountId = uri.getAccountId();
+
+ Poll poll = getExistingPoll(uri);
+
+ PollAccountDAO dao = getDAO(PollAccount.class);
+
+ String pollId = uri.getPollId();
+
+ if (poll.getPollType() == PollType.FREE) {
+
+ // free poll
+ if (accountId != null) {
+
+ // account Id is given check there is a such vote for this account
+
+ try {
+
+ if (!dao.existsByPollVoteAccountId(pollId, accountId)) {
+ throw new UnauthorizedPollAccessException();
+ }
+ } catch (TopiaException e) {
+ throw new PollenTechnicalException(
+ "Could not check pollAccount existence from poll '" +
+ pollId + "' and account '" + accountId + "'", e);
+ }
+ }
+ } else {
+
+ // check that uri contains a correct poll account for this
+
+ // Use PersonToList association entity to find coherence between
+ // the poll and votingId
+
+ try {
+ PollAccount result =
+ dao.getRestrictedPollAccount(pollId, accountId);
+
+ if (result == null) {
+ throw new UnauthorizedPollAccessException();
+ }
+ } catch (TopiaException e) {
+ throw new PollenTechnicalException(
+ "Could not obtain restricted pollAccount", e);
+ }
+
+ }
+ }
+
+ public void checkPollCreator(PollUri uri) throws PollNotFoundException, UnauthorizedPollAccessException {
+
+ String accountId = uri.getAccountId();
+
+ Poll poll = getExistingPoll(uri);
+
+ String creatorId = poll.getCreator().getAccountId();
+
+ if (!creatorId.equals(accountId)) {
+ throw new UnauthorizedPollAccessException();
+ }
+ }
+
+ protected Poll getExistingPoll(PollUri uri) throws PollNotFoundException {
+ return newService(PollService.class).getExistingPollByPollId(uri.getPollId());
+ }
+}
Property changes on: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/UserService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/UserService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/UserService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/VoteService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/VoteService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/VoteService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -29,7 +28,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.pollen.PollenTechnicalException;
-import org.chorem.pollen.bean.PollUrl;
import org.chorem.pollen.business.persistence.Choice;
import org.chorem.pollen.business.persistence.PersonToList;
import org.chorem.pollen.business.persistence.PersonToListDAO;
@@ -139,20 +137,6 @@
return result;
}
-// /**
-// * Retrieve the URL to update a vote based on {@link PollUri}.
-// *
-// * @param pollUri Uri with pollId and accountId
-// * @return the URL that allow the voting person to update his vote
-// */
-// public String getUpdateVoteUrl(PollUri pollUri) {
-// Preconditions.checkNotNull(pollUri.getAccountId());
-// URL baseUrl = serviceContext.getApplicationURL();
-// String result =
-// String.format("%s/poll/votefor/%s", baseUrl, pollUri.getUri());
-// return result;
-// }
-
public Vote createVote(Poll poll, Vote vote) throws PollAccountNotFound {
VoteDAO voteDAO = getDAO(Vote.class);
@@ -166,15 +150,17 @@
String pollAccountId = pollAccount.getTopiaId();
PollAccount pollAccountLoaded;
- // Load existing account (restricted poll)
- if (pollAccountId != null) {
- pollAccountLoaded = getEntityById(PollAccount.class, pollAccountId);
+ if (pollAccountId == null) {
+
// Create new account
- } else {
PollAccountDAO pollAccountDAO = getDAO(PollAccount.class);
pollAccountLoaded = create(pollAccountDAO);
pollAccountLoaded.setAccountId(pollAccount.getAccountId());
+ } else {
+
+ // Load existing account (restricted poll)
+ pollAccountLoaded = getEntityById(PollAccount.class, pollAccountId);
}
// Update user data if not anonymous
@@ -185,7 +171,8 @@
UserAccount userAccount = pollAccount.getUserAccount();
if (userAccount != null) {
- UserAccount userAccountLoaded = getEntityById(UserAccount.class, userAccount.getTopiaId());
+ UserAccount userAccountLoaded =
+ getEntityById(UserAccount.class, userAccount.getTopiaId());
pollAccountLoaded.setUserAccount(userAccountLoaded);
}
}
@@ -222,19 +209,14 @@
commitTransaction("Could not create vote");
- PollUrlService pollUrlService = newService(PollUrlService.class);
-
- PollUrl pollVoteUrl = pollUrlService.getPollVoteUrl(poll, false);
-
// Send notification if necessary
PreventRuleService preventRuleService = newService(PreventRuleService.class);
- PollUrl modifUrl = pollUrlService.getPollEditUrl(poll);
- preventRuleService.onVoteAdded(poll, pollVoteUrl, modifUrl);
+ preventRuleService.onVoteAdded(poll);
// feed notification
PollFeedService pollFeedService = newService(PollFeedService.class);
- pollFeedService.onAddVote(pollToUpdate, result);
+ pollFeedService.onVoteAdded(pollToUpdate, result);
return result;
}
@@ -269,7 +251,8 @@
Integer value = input.getVoteValue();
- VoteToChoice voteToChoiceEntity = result.getChoiceVoteToChoice(input.getChoice());
+ VoteToChoice voteToChoiceEntity =
+ result.getChoiceVoteToChoice(input.getChoice());
if (value != null) {
if (voteToChoiceEntity != null) {
@@ -296,7 +279,7 @@
// feed notification
PollFeedService pollFeedService = newService(PollFeedService.class);
- pollFeedService.onUpdateVote(poll, result);
+ pollFeedService.onVoteUpdated(poll, result);
return result;
}
@@ -365,7 +348,7 @@
// feed notification
PollFeedService pollFeedService = newService(PollFeedService.class);
- pollFeedService.onDeleteVote(poll, entityToDelete, voteAccount, reason);
+ pollFeedService.onVoteDeleted(poll, entityToDelete, voteAccount, reason);
}
public List<Vote> getVotesByPoll(Poll poll,
@@ -411,8 +394,9 @@
result = poll.isRunning(now);
if (poll.getPollType() != PollType.FREE) {
- PersonToListDAO personToListDAO = getDAO(PersonToList.class);
- PersonToList personToList = personToListDAO.findByPollAndAccount(poll, accountEditable);
+ PersonToListDAO dao = getDAO(PersonToList.class);
+ PersonToList personToList =
+ dao.findByPollAndAccount(poll, accountEditable);
result &= personToList != null;
}
@@ -420,7 +404,8 @@
return result;
}
- public boolean isUpdateAllowed(Poll poll, String voteId, String accountId, UserAccount userConnected) {
+ public boolean isUpdateAllowed(Poll poll, String voteId,
+ String accountId, UserAccount userConnected) {
Date now = serviceContext.getCurrentTime();
Copied: trunk/pollen-services/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion (from rev 3421, trunk/pollen-persistence/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion)
===================================================================
--- trunk/pollen-services/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion (rev 0)
+++ trunk/pollen-services/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion 2012-06-05 16:50:22 UTC (rev 3423)
@@ -0,0 +1,5 @@
+org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_1
+org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_2
+org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_3
+org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_3_1
+org.chorem.pollen.entities.migration.PollenMigrationCallbackV1_4
\ No newline at end of file
Property changes on: trunk/pollen-services/src/main/resources/META-INF/services/org.nuiton.topia.migration.TopiaMigrationCallbackByClassNG$MigrationCallBackForVersion
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-services/src/main/resources/i18n/pollen-services_en_GB.properties
===================================================================
--- trunk/pollen-services/src/main/resources/i18n/pollen-services_en_GB.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/resources/i18n/pollen-services_en_GB.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -11,9 +11,9 @@
pollen.common.numberVote-total-votes=Total votes
pollen.common.unauthorized=unauthorized
pollen.common.undefined=undefined
-pollen.email.createPoll.content=You had just created the new poll\: "%s" (id %s).\n\nYou can access to this poll by following the links below.\n\nVote page\: \n%s\nModerate votes page\: \n%s\nEdit page\: \n%s
+pollen.email.createPoll.content=You had just created the new poll\: "%s" (id %s).\n\nYou can access to this poll on this link\:\n\n%s
pollen.email.createPoll.subject=[Pollen] Poll creation (%s)
-pollen.email.createRestrictedPoll.content=You had just created the new poll\: "%s".\nYou can access to this poll by following the links below.\n\nModerate votes page\: \n%s\nEdit page\: \n%s
+pollen.email.createRestrictedPoll.content=You had just created the new poll\: "%s".\nYou can access to this poll on this link\:\n\n%s
pollen.email.createRestrictedPoll.subject=[Pollen] Restricted poll creation (%s)
pollen.email.lostPassword.content=Hello %1$s. You have just asked for a new password generation for your Pollen account.\n\nLogin\: %2$s\nPassword\: %3$s\n\nYou can now manage your polls by logging on the website \: \n%4$s
pollen.email.lostPassword.subject=[Pollen] Lost password for %s
@@ -21,7 +21,7 @@
pollen.email.reminderEmail.subject=[Pollen] Reminder (%s)
pollen.email.userRegister.content=Welcome %1$s. You had just created an account on the web application Pollen.\n\nLogin\: %2$s\nPassword\: %3$s\n\nYou can now manage your polls by logging on the website \: \n%4$s
pollen.email.userRegister.subject=[Pollen] Confirmation of account creation %s
-pollen.email.voteEmail.content=A vote has been submitted for the poll "%s". There are now %d votes for this poll.\nYou can access to this poll by following the links below.\n\nVote page\: \n%s\nEdit page\: \n%s
+pollen.email.voteEmail.content=A vote has been submitted for the poll "%s". There are now %d votes for this poll.\nYou can access to this poll on this link\:\n\n%s
pollen.email.voteEmail.subject=[Pollen] Vote reporting (%s)
pollen.email.votingEmail.content=A new poll has been created\: "%s".\nYou can participate with the identifier %s by following this link\: \n%s
pollen.email.votingEmail.subject=[Pollen] Invitation to vote (%s)
Modified: trunk/pollen-services/src/main/resources/i18n/pollen-services_fr_FR.properties
===================================================================
--- trunk/pollen-services/src/main/resources/i18n/pollen-services_fr_FR.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/main/resources/i18n/pollen-services_fr_FR.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -11,9 +11,9 @@
pollen.common.numberVote-total-votes=Nombre total de votes
pollen.common.unauthorized=Non autorisé
pollen.common.undefined=Non défini
-pollen.email.createPoll.content=Vous venez de créer le sondage "%1$s" (identifiant %2$s).\n\nVous pouvez y accéder en suivant les liens ci-dessous.\n\nPage de vote \: \n%3$s\nModération des votes \: \n%4$s\nPage de modification \: \n%5$s
+pollen.email.createPoll.content=Vous venez de créer le sondage "%1$s" (identifiant %2$s).\n\nRetrouvez tous les liens pour y accéder sur cette page \:\n\n%s
pollen.email.createPoll.subject=[Pollen] Création d'un sondage (%1$s)
-pollen.email.createRestrictedPoll.content=Vous venez de créer le sondage "%s".\nVous pouvez y accéder en suivant les liens ci-dessous.\n\nModération des votes \: \n%s\nPage de modification \: \n%s
+pollen.email.createRestrictedPoll.content=Vous venez de créer le sondage "%s".\nRetrouvez tous les liens pour y accéder sur cette page \:\n\n%s
pollen.email.createRestrictedPoll.subject=[Pollen] Création d'un sondage restreint (%s)
pollen.email.lostPassword.content=Bonjour %1$s. Vous venez de demander la génération d'un nouveau mot de passe d'accès à votre compte Pollen.\n\nIdentifiant \: %2$s\nMot de passe \: %3$s\n\nVous pouvez dès maintenant gérer vos sondages en vous identifiant sur le site \: \n%4$s
pollen.email.lostPassword.subject=[Pollen] Mot de passe perdu du compte %s
@@ -21,7 +21,7 @@
pollen.email.reminderEmail.subject=[Pollen] Rappel (%s)
pollen.email.userRegister.content=Bienvenue %1$s. Vous venez de créer un compte sur l'application de sondage en ligne Pollen.\n\nIdentifiant \: %2$s\nMot de passe \: %3$s\n\nVous pouvez dès maintenant gérer vos sondages en vous identifiant sur le site \: \n%4$s
pollen.email.userRegister.subject=[Pollen] Confirmation de création du compte %s
-pollen.email.voteEmail.content=Un vote vient d'être enregistré pour le sondage "%s". Ce sondage compte désormais %d votes.\nVous pouvez accéder à ce sondage en suivant les liens ci-dessous.\n\nPage de vote \: \n%s\nPage de modification \: \n%s
+pollen.email.voteEmail.content=Un vote vient d'être enregistré pour le sondage "%s". Ce sondage compte désormais %d votes.\nRetrouvez tous les liens pour y accéder sur cette page \:\n\n%s
pollen.email.voteEmail.subject=[Pollen] Notification de vote (%s)
pollen.email.votingEmail.content=Un nouveau sondage a été créé \: "%s".\nVous pouvez y participer avec l'identifiant %s à l'adresse suivante \: \n%s
pollen.email.votingEmail.subject=[Pollen] Invitation au vote (%s)
Modified: trunk/pollen-services/src/site/site_en.xml
===================================================================
--- trunk/pollen-services/src/site/site_en.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/site/site_en.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
- $Id: site_en.xml 3394 2012-05-28 15:27:04Z tchemit $
- $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_en.x… $
+ Pollen :: Services
+ $Id$
+ $HeadURL$
%%
Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Property changes on: trunk/pollen-services/src/site/site_en.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-services/src/site/site_fr.xml
===================================================================
--- trunk/pollen-services/src/site/site_fr.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/site/site_fr.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
- $Id: site_fr.xml 3394 2012-05-28 15:27:04Z tchemit $
- $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_fr.x… $
+ Pollen :: Services
+ $Id$
+ $HeadURL$
%%
Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Property changes on: trunk/pollen-services/src/site/site_fr.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/AbstractPollenServiceTest.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/AbstractPollenServiceTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/AbstractPollenServiceTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
@@ -151,6 +150,11 @@
return applicationUrl;
}
+ @Override
+ public boolean isCanSendEmail() {
+ return true;
+ }
+
public void setApplicationUrl(URL applicationUrl) {
this.applicationUrl = applicationUrl;
}
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/EmailServiceTest.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/EmailServiceTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/EmailServiceTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/PollServiceTest.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/PollServiceTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/PollServiceTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/UserServiceTest.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/UserServiceTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/UserServiceTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/VoteServiceTest.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/VoteServiceTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/impl/VoteServiceTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Services
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-services/src/test/resources/log4j.properties
===================================================================
--- trunk/pollen-services/src/test/resources/log4j.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/resources/log4j.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
# Pollen :: Services
-#
# $Id$
# $HeadURL$
# %%
Modified: trunk/pollen-services/src/test/resources/pollen-fake.properties
===================================================================
--- trunk/pollen-services/src/test/resources/pollen-fake.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-services/src/test/resources/pollen-fake.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
# Pollen :: Services
-#
# $Id$
# $HeadURL$
# %%
Modified: trunk/pollen-ui-struts2/src/main/assembly/bin.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/assembly/bin.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/assembly/bin.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<!--
#%L
Pollen :: UI (struts2)
-
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/assembly/dist/pollen.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
# Pollen :: UI (struts2)
-#
# $Id$
# $HeadURL$
# %%
Deleted: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationContext.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationContext.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationContext.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,91 +0,0 @@
-/*
- * #%L
- * Pollen :: UI (strust2)
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-package org.chorem.pollen.ui;
-
-import com.opensymphony.xwork2.ActionContext;
-import org.chorem.pollen.PollenConfiguration;
-import org.chorem.pollen.services.PollenNotifierWorker;
-import org.nuiton.topia.TopiaContext;
-
-import javax.servlet.ServletContext;
-import java.util.Map;
-
-/**
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.3
- */
-public class PollenApplicationContext {
-
- /** Key to store the single instance of the application context */
- public static final String APPLICATION_CONTEXT_PARAMETER =
- "pollenApplicationContext";
-
- protected PollenConfiguration configuration;
-
- protected TopiaContext rootContext;
-
- protected PollenNotifierWorker pollenNotifierWorker;
-
- public static PollenApplicationContext get(ActionContext actionContext) {
- Map<String, Object> application = actionContext.getApplication();
- PollenApplicationContext applicationContext =
- (PollenApplicationContext) application.get(APPLICATION_CONTEXT_PARAMETER);
- return applicationContext;
- }
-
- public static PollenApplicationContext get(ServletContext servletContext) {
- PollenApplicationContext applicationContext =
- (PollenApplicationContext) servletContext.getAttribute(APPLICATION_CONTEXT_PARAMETER);
- return applicationContext;
- }
-
- public static void set(ServletContext servletContext,
- PollenApplicationContext context) {
- servletContext.setAttribute(APPLICATION_CONTEXT_PARAMETER, context);
- }
-
- public PollenConfiguration getConfiguration() {
- return configuration;
- }
-
- public void setConfiguration(PollenConfiguration configuration) {
- this.configuration = configuration;
- }
-
- public TopiaContext getRootContext() {
- return rootContext;
- }
-
- public void setRootContext(TopiaContext rootContext) {
- this.rootContext = rootContext;
- }
-
- public PollenNotifierWorker getPollenNotifierWorker() {
- return pollenNotifierWorker;
- }
-
- public void setPollenNotifierWorker(PollenNotifierWorker pollenNotifierWorker) {
- this.pollenNotifierWorker = pollenNotifierWorker;
- }
-}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationListener.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationListener.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenApplicationListener.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -23,8 +22,11 @@
*/
package org.chorem.pollen.ui;
+import com.google.common.collect.Maps;
+import com.opensymphony.xwork2.ActionContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.pollen.PollenApplicationContext;
import org.chorem.pollen.PollenConfiguration;
import org.chorem.pollen.PollenTechnicalException;
import org.chorem.pollen.PollenTopiaRootContextFactory;
@@ -46,6 +48,7 @@
import java.io.IOException;
import java.util.Date;
import java.util.Locale;
+import java.util.Map;
/**
* To listen start or end of the application.
@@ -93,18 +96,28 @@
if (log.isInfoEnabled()) {
log.info("Initializing RootContext...");
}
- PollenTopiaRootContextFactory factory =
- new PollenTopiaRootContextFactory();
- TopiaContext rootContext
- = factory.newDatabaseFromConfig(configuration);
- applicationContext.setRootContext(rootContext);
+ Map<String, Object> map = Maps.newHashMap();
+ map.put(ActionContext.APPLICATION, Maps.newHashMap());
+ ActionContext actionContext = new ActionContext(map);
+ ActionContext.setContext(actionContext);
+ PollenApplicationContext.set(actionContext, applicationContext);
+
// init db
try {
+
+ TopiaContext rootContext
+ = new PollenTopiaRootContextFactory().newDatabaseFromConfig(configuration);
+ applicationContext.setRootContext(rootContext);
+
+
initDB(applicationContext);
} catch (TopiaException e) {
throw new PollenTechnicalException("Could not init db", e);
+ } finally {
+ ActionContext.setContext(null);
+ PollenApplicationContext.set(actionContext, null);
}
// int pollen notifier worker
@@ -187,6 +200,8 @@
protected void initDB(PollenApplicationContext applicationContext) throws TopiaException {
+ ActionContext context = ActionContext.getContext();
+ PollenApplicationContext.set(context, applicationContext);
TopiaContext rootContext = applicationContext.getRootContext();
boolean schemaFound = TopiaUtil.isSchemaExist(
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenSession.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenSession.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenSession.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenTopiaTransactionFilter.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenTopiaTransactionFilter.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenTopiaTransactionFilter.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -25,6 +24,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.pollen.PollenApplicationContext;
import org.nuiton.topia.TopiaContext;
import org.nuiton.topia.TopiaException;
import org.nuiton.topia.TopiaRuntimeException;
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenUIUtils.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenUIUtils.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenUIUtils.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/FileUploadAware.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/FileUploadAware.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/FileUploadAware.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PageSkin.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PageSkin.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PageSkin.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PollenActionSupport.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PollenActionSupport.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/PollenActionSupport.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -42,9 +41,10 @@
import org.chorem.pollen.services.impl.PollService;
import org.chorem.pollen.services.impl.PollUrlService;
import org.chorem.pollen.services.impl.PreventRuleService;
+import org.chorem.pollen.services.impl.SecurityService;
import org.chorem.pollen.services.impl.UserService;
import org.chorem.pollen.services.impl.VoteService;
-import org.chorem.pollen.ui.PollenApplicationContext;
+import org.chorem.pollen.PollenApplicationContext;
import org.chorem.pollen.ui.PollenSession;
import org.nuiton.topia.TopiaContext;
import org.nuiton.topia.framework.TopiaTransactionAware;
@@ -115,6 +115,8 @@
private transient PreventRuleService preventRuleService;
+ private transient SecurityService securityService;
+
public PageSkin getSkin() {
return PageSkin.INDEX;
}
@@ -382,4 +384,11 @@
}
return preventRuleService;
}
+
+ public SecurityService getSecurityService() {
+ if (securityService == null) {
+ securityService = newService(SecurityService.class);
+ }
+ return securityService;
+ }
}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/Confirm.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/Confirm.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/Confirm.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/DeleteUser.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/DeleteUser.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/DeleteUser.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManagePolls.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManagePolls.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManagePolls.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManageUsers.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManageUsers.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/admin/ManageUsers.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GenerateChart.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GenerateChart.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GenerateChart.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GetPollImageChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GetPollImageChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/io/GetPollImageChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/AbstractJSONPaginedAction.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/AbstractJSONPaginedAction.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/AbstractJSONPaginedAction.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetCreatedPolls.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetCreatedPolls.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetCreatedPolls.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -87,8 +86,6 @@
Map<String, Object> map = pollService.pollToMap(poll, binder);
map.put("voteId", poll.getPollId());
- map.put("moderateId", poll.getAdminId());
- map.put("resultId", getResultId(poll));
map.put("adminId", poll.getAdminId());
Set<String> functions = getPollFunctions(poll);
map.put("functions", functions);
@@ -103,37 +100,40 @@
// only free poll could have vote action because creator can't vote
result.add("vote");
+ } else {
+ // to be sure a blank image is setted instead of vote picto
+ result.add("novote");
}
- result.add("moderate");
- result.add("result");
- if (!poll.isClosed()) {
-
- // poll is not closed
- result.add("edit");
- result.add("close");
- }
- result.add("export");
- result.add("clone");
+ result.add("summary");
+// result.add("result");
+// if (!poll.isClosed()) {
+//
+// // poll is not closed
+// result.add("edit");
+// result.add("close");
+// }
+// result.add("export");
+// result.add("clone");
result.add("delete");
return result;
}
- /**
- * Retrieve the id for result page depends on {@code poll}.
- * It's not necessary to use {@code adminId} if the poll results are public.
- * But the {@code adminId} is mandatory if the poll is restricted (security).
- *
- * @param poll Poll
- * @return the pollId if results are public or the adminId if not
- */
- protected String getResultId(Poll poll) {
- String result;
- if (PollType.FREE == poll.getPollType() && poll.isPublicResults()) {
- result = poll.getPollId();
-
- } else {
- result = poll.getAdminId();
- }
- return result;
- }
-}
\ No newline at end of file
+// /**
+// * Retrieve the id for result page depends on {@code poll}.
+// * It's not necessary to use {@code adminId} if the poll results are public.
+// * But the {@code adminId} is mandatory if the poll is restricted (security).
+// *
+// * @param poll Poll
+// * @return the pollId if results are public or the adminId if not
+// */
+// protected String getResultId(Poll poll) {
+// String result;
+// if (PollType.FREE == poll.getPollType() && poll.isPublicResults()) {
+// result = poll.getPollId();
+//
+// } else {
+// result = poll.getAdminId();
+// }
+// return result;
+// }
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -67,4 +66,4 @@
return SUCCESS;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccount.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccount.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccount.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -73,4 +72,4 @@
return SUCCESS;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccounts.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccounts.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteListPollAccounts.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -106,4 +105,4 @@
return SUCCESS;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteLists.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteLists.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetFavoriteLists.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -84,4 +83,4 @@
return SUCCESS;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetInvitedPolls.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetInvitedPolls.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetInvitedPolls.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -88,21 +87,11 @@
Poll poll = entry.getKey();
Map<String, Object> map = pollService.pollToMap(poll, binder);
-// Map<String, Object> map = binder.obtainProperties(
-// poll,
-// Poll.PROPERTY_TITLE,
-// Poll.PROPERTY_POLL_ID,
-// Poll.PROPERTY_DESCRIPTION,
-// Poll.PROPERTY_BEGIN_DATE,
-// Poll.PROPERTY_END_DATE
-// );
-
PollAccount account = entry.getValue();
PollUri pollUri = PollUri.newPollUri(poll.getPollId(),
account.getAccountId());
-// map.put("id", poll.getTopiaId());
map.put("voteId", pollUri.getUri());
map.put("resultId", pollUri.getUri());
@@ -123,4 +112,4 @@
}
return result;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetParticipatedPolls.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetParticipatedPolls.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetParticipatedPolls.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -89,23 +88,11 @@
Poll poll = entry.getKey();
Map<String, Object> map = pollService.pollToMap(poll, binder);
-
-// Map<String, Object> map = binder.obtainProperties(
-// poll,
-// Poll.PROPERTY_TITLE,
-// Poll.PROPERTY_POLL_ID,
-// Poll.PROPERTY_DESCRIPTION,
-// Poll.PROPERTY_BEGIN_DATE,
-// Poll.PROPERTY_END_DATE
-// );
-
PollAccount account = entry.getValue();
PollUri pollUri = PollUri.newPollUri(poll.getPollId(),
account.getAccountId());
-// map.put("id", poll.getTopiaId());
-
// Keep accountId to allow vote update
map.put("voteId", pollUri.getUri());
@@ -132,4 +119,4 @@
}
return result;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -121,4 +120,4 @@
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPolls.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPolls.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPolls.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -84,8 +83,6 @@
Map<String, Object> map = pollService.pollToMap(poll, binder);
- map.put("moderateId", poll.getAdminId());
- map.put("resultId", poll.getAdminId());
map.put("adminId", poll.getAdminId());
Set<String> functions = getPollFunctions(poll);
@@ -98,16 +95,16 @@
protected Set<String> getPollFunctions(Poll poll) {
Set<String> result = Sets.newHashSet();
- result.add("moderate");
- result.add("result");
- if (!poll.isClosed()) {
-
- // poll is not closed
- result.add("edit");
- result.add("close");
- }
- result.add("export");
- result.add("clone");
+ result.add("summary");
+// result.add("result");
+// if (!poll.isClosed()) {
+//
+// // poll is not closed
+// result.add("edit");
+// result.add("close");
+// }
+// result.add("export");
+// result.add("clone");
result.add("delete");
return result;
}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUser.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUser.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUser.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUsers.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUsers.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetUsers.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractDisplayChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractDisplayChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractDisplayChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollForm.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollForm.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollForm.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollUriIdAction.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollUriIdAction.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractPollUriIdAction.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractVoteAction.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractVoteAction.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AbstractVoteAction.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -462,4 +461,4 @@
}
}
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddComment.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddComment.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/AddComment.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ClosePoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ClosePoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ClosePoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteComment.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteComment.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteComment.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -71,4 +70,4 @@
return SUCCESS;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteVote.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteVote.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmDeleteVote.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmPollAction.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmPollAction.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ConfirmPollAction.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/CreatedList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/CreatedList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/CreatedList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteComment.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteComment.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteComment.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeletePoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeletePoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeletePoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteVote.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteVote.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DeleteVote.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayDateChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayDateChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayDateChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayImageChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayImageChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayImageChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayPersonToList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayPersonToList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayPersonToList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayTextChoice.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayTextChoice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayTextChoice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayVotingList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayVotingList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/DisplayVotingList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/EditVote.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/EditVote.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/EditVote.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ExportPoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ExportPoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ExportPoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ImportPersonListToVotingList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ImportPersonListToVotingList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ImportPersonListToVotingList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/InvitedList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/InvitedList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/InvitedList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ParticipatedList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ParticipatedList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ParticipatedList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultForPoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultForPoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultForPoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultLink.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultLink.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResultLink.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Deleted: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResumePoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResumePoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResumePoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,84 +0,0 @@
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-package org.chorem.pollen.ui.actions.poll;
-
-import com.google.common.base.Preconditions;
-import org.chorem.pollen.business.persistence.Poll;
-import org.chorem.pollen.common.PollType;
-import org.chorem.pollen.ui.actions.PageSkin;
-
-/**
- * Action to display all resume link for a given poll.
- *
- * @author tchemit <chemit(a)codelutin.com>
- * @since 1.4
- */
-public class ResumePoll extends AbstractPollUriIdAction {
-
- private static final long serialVersionUID = 1L;
-
- /**
- * Loade poll.
- *
- * @since 1.4
- */
- private Poll poll;
-
- public Poll getPoll() {
- return poll;
- }
-
- @Override
- public PageSkin getSkin() {
- return PageSkin.EDITION;
- }
-
- public String getPollVoteUrl() {
- return getPollUrlService().getPollVoteUrl(poll, false).getUrl();
- }
-
- public String getPollModerateUrl() {
- return getPollUrlService().getPollVoteUrl(poll, true).getUrl();
- }
-
- public String getPollEditUrl() {
- return getPollUrlService().getPollEditUrl(poll).getUrl();
- }
-
- public boolean isFreePoll() {
- PollType pollType = poll.getPollType();
- return pollType == PollType.FREE;
- }
-
- @Override
- public String execute() throws Exception {
-
- Preconditions.checkNotNull(getUriId());
-
- String pollId = getUriId().getPollId();
-
- poll = getPollService().getExistingPollByPollId(pollId);
-
- return SUCCESS;
- }
-}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -306,7 +305,7 @@
_("pollen.information.poll.updated", poll.getTitle()));
} else {
- getPollService().createPoll(poll);
+ poll = getPollService().createPoll(poll);
addFlashMessage(
_("pollen.information.poll.created", poll.getTitle()));
}
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SelectPersonListToVotingList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SelectPersonListToVotingList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SelectPersonListToVotingList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Copied: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SummaryPoll.java (from rev 3421, trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/ResumePoll.java)
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SummaryPoll.java (rev 0)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SummaryPoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -0,0 +1,116 @@
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+package org.chorem.pollen.ui.actions.poll;
+
+import com.google.common.base.Preconditions;
+import org.chorem.pollen.business.persistence.Poll;
+import org.chorem.pollen.common.PollType;
+import org.chorem.pollen.ui.actions.PageSkin;
+
+/**
+ * Action to display summary of a poll for his creator (or an admin).
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.4
+ */
+public class SummaryPoll extends AbstractPollUriIdAction {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Loaded poll.
+ *
+ * @since 1.4
+ */
+ private Poll poll;
+
+ public Poll getPoll() {
+ return poll;
+ }
+
+ @Override
+ public PageSkin getSkin() {
+ return PageSkin.EDITION;
+ }
+
+ public String getVoteUrl() {
+ return getPollUrlService().getPollVoteUrl(poll).getUrl();
+ }
+
+ public String getModerateUrl() {
+ return getPollUrlService().getPollModerateUrl(poll).getUrl();
+ }
+
+ public String getEditUrl() {
+ return getPollUrlService().getPollEditUrl(poll).getUrl();
+ }
+
+ public String getCloneUrl() {
+ return getPollUrlService().getPollCloneUrl(poll).getUrl();
+ }
+
+ public String getExportUrl() {
+ return getPollUrlService().getPollExportUrl(poll).getUrl();
+ }
+
+ public String getResultUrl() {
+ return getPollUrlService().getPollResultUrl(poll).getUrl();
+ }
+
+ public boolean isCanClose() {
+ return !poll.isClosed();
+ }
+
+ public boolean isCanShowResult() {
+ return poll.isPublicResults();
+ }
+
+ public boolean isCanVote() {
+ //FIXME-tchemit-2012-06-05 Should check that creator can vote instead
+ PollType pollType = poll.getPollType();
+ return pollType == PollType.FREE;
+
+// boolean result;
+// try {
+// getSecurityService().checkPollAccount(getUriId());
+// result = true;
+// } catch (PollNotFoundException e) {
+// result = false;
+// } catch (UnauthorizedPollAccessException e) {
+// result = false;
+// }
+// return result;
+ }
+
+ @Override
+ public String execute() throws Exception {
+
+ Preconditions.checkNotNull(getUriId());
+
+ String pollId = getUriId().getPollId();
+
+ poll = getPollService().getExistingPollByPollId(pollId);
+
+ return SUCCESS;
+ }
+}
Property changes on: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SummaryPoll.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/VoteForPoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/VoteForPoll.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/VoteForPoll.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -156,9 +155,8 @@
String pollId = poll.getPollId();
String accountId = getPollAccount().getAccountId();
-// PollUri pollUri = PollUri.newPollUri(pollId, accountId);
- PollUrl updateUrl = getPollUrlService().getPollVoteUrl(poll, true);
+ PollUrl updateUrl = getPollUrlService().getPollModerateUrl(poll);
if (log.isDebugEnabled()) {
log.debug(String.format(
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Confirm.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Confirm.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Confirm.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeleteFavoriteList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeleteFavoriteList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeleteFavoriteList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeletePollAccount.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeletePollAccount.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/DeletePollAccount.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Edit.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Edit.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Edit.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Login.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Login.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Login.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Logout.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Logout.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Logout.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/LostPassword.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/LostPassword.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/LostPassword.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteList.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteList.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteList.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteLists.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteLists.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/ManageFavoriteLists.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Register.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Register.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Register.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Show.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Show.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/user/Show.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/BooleanIntegerConverter.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/BooleanIntegerConverter.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/BooleanIntegerConverter.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/DateConverter.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/DateConverter.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/DateConverter.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/PollUriConverter.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/PollUriConverter.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/converters/PollUriConverter.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AbstractPollenAuthorization.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AbstractPollenAuthorization.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AbstractPollenAuthorization.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -34,7 +33,8 @@
import org.chorem.pollen.services.DefaultPollenServiceContext;
import org.chorem.pollen.services.PollenServiceContext;
import org.chorem.pollen.services.PollenServiceFactory;
-import org.chorem.pollen.ui.PollenApplicationContext;
+import org.chorem.pollen.services.impl.SecurityService;
+import org.chorem.pollen.PollenApplicationContext;
import org.chorem.pollen.ui.PollenSession;
import org.chorem.pollen.ui.PollenUIUtils;
import org.nuiton.topia.TopiaContext;
@@ -99,7 +99,15 @@
return result;
}
- protected UserAccount getPollenUSerAccount(ServletRequest request) {
+ protected SecurityService getSecurityService(ServletRequest request) {
+ PollenServiceContext serviceContext = getServiceContext(request);
+
+ SecurityService securityService =
+ serviceContext.newService(SecurityService.class);
+ return securityService;
+ }
+
+ protected UserAccount getPollenUserAccount(ServletRequest request) {
PollenSession pollenSession = PollenSession.get(request);
return pollenSession.getUserAccount();
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AdminUserRequired.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AdminUserRequired.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/AdminUserRequired.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -40,7 +39,7 @@
ServletResponse response,
Object mappedValue) {
- UserAccount userAccount = getPollenUSerAccount(request);
+ UserAccount userAccount = getPollenUserAccount(request);
boolean isAccessAllowed = userAccount != null &&
userAccount.isAdministrator();
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ConnectedUserRequired.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ConnectedUserRequired.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ConnectedUserRequired.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollAccessRequired.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollAccessRequired.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollAccessRequired.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -26,10 +25,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.pollen.bean.PollUri;
-import org.chorem.pollen.services.PollenServiceContext;
import org.chorem.pollen.services.exceptions.PollNotFoundException;
import org.chorem.pollen.services.exceptions.UnauthorizedPollAccessException;
-import org.chorem.pollen.services.impl.PollService;
+import org.chorem.pollen.services.impl.SecurityService;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
@@ -76,14 +74,11 @@
} else {
- PollenServiceContext serviceContext =
- getServiceContext(request);
- PollService pollService =
- serviceContext.newService(PollService.class);
+ SecurityService securityService = getSecurityService(request);
try {
- pollService.checkPollAccount(pollUri);
+ securityService.checkPollAccount(pollUri);
isAccessAllowed = true;
if (log.isDebugEnabled()) {
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollCreatorRequired.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollCreatorRequired.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollCreatorRequired.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -26,10 +25,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.pollen.bean.PollUri;
-import org.chorem.pollen.services.PollenServiceContext;
import org.chorem.pollen.services.exceptions.PollNotFoundException;
import org.chorem.pollen.services.exceptions.UnauthorizedPollAccessException;
-import org.chorem.pollen.services.impl.PollService;
+import org.chorem.pollen.services.impl.SecurityService;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
@@ -67,14 +65,10 @@
} else {
- PollenServiceContext serviceContext =
- getServiceContext(request);
+ SecurityService securityService = getSecurityService(request);
- PollService pollService =
- serviceContext.newService(PollService.class);
-
try {
- pollService.checkPollCreator(pollUri);
+ securityService.checkPollCreator(pollUri);
isAccessAllowed = true;
if (log.isDebugEnabled()) {
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollRequired.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollRequired.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/PollRequired.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -26,9 +25,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.pollen.bean.PollUri;
-import org.chorem.pollen.services.PollenServiceContext;
import org.chorem.pollen.services.exceptions.PollNotFoundException;
-import org.chorem.pollen.services.impl.PollService;
+import org.chorem.pollen.services.impl.SecurityService;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
@@ -54,13 +52,10 @@
} else {
- PollenServiceContext serviceContext = getServiceContext(request);
+ SecurityService securityService = getSecurityService(request);
- PollService pollService =
- serviceContext.newService(PollService.class);
-
try {
- pollService.checkPoll(pollUri);
+ securityService.checkPoll(pollUri);
isAccessAllowed = true;
if (log.isDebugEnabled()) {
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ResultAccessRequired.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ResultAccessRequired.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/security/ResultAccessRequired.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -26,10 +25,9 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.pollen.bean.PollUri;
-import org.chorem.pollen.services.PollenServiceContext;
import org.chorem.pollen.services.exceptions.PollNotFoundException;
import org.chorem.pollen.services.exceptions.UnauthorizedPollAccessException;
-import org.chorem.pollen.services.impl.PollService;
+import org.chorem.pollen.services.impl.SecurityService;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
@@ -72,14 +70,10 @@
PollUri pollUri = getPollUri(request);
- PollenServiceContext serviceContext =
- getServiceContext(request);
+ SecurityService securityService = getSecurityService(request);
- PollService pollService =
- serviceContext.newService(PollService.class);
-
try {
- pollService.checkPollResult(pollUri);
+ securityService.checkPollResult(pollUri);
isAccessAllowed = true;
if (log.isDebugEnabled()) {
Modified: trunk/pollen-ui-struts2/src/main/resources/config/struts-admin.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/config/struts-admin.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/config/struts-admin.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-ui-struts2/src/main/resources/config/struts-io.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/config/struts-io.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/config/struts-io.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-ui-struts2/src/main/resources/config/struts-json.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/config/struts-json.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/config/struts-json.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-ui-struts2/src/main/resources/config/struts-poll.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/config/struts-poll.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/config/struts-poll.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -34,7 +31,6 @@
<result-types>
-
<result-type name="redirectToVote"
class="org.chorem.pollen.ui.results.PollenServletActionRedirectResult">
<param name="namespace">/poll</param>
@@ -73,15 +69,15 @@
<result name="input">/WEB-INF/jsp/poll/create.jsp</result>
<result type="pollenRedirectAction">
<param name="namespace">/poll</param>
- <param name="actionName">resume/${uriId}</param>
+ <param name="actionName">summary/${uriId}</param>
</result>
</action>
<!-- resume poll -->
- <action name="resume/*" method="execute"
- class="org.chorem.pollen.ui.actions.poll.ResumePoll">
+ <action name="summary/*" method="execute"
+ class="org.chorem.pollen.ui.actions.poll.SummaryPoll">
<param name="uriId">{1}</param>
- <result>/WEB-INF/jsp/poll/resume.jsp</result>
+ <result>/WEB-INF/jsp/poll/summary.jsp</result>
</action>
<!-- export poll -->
Modified: trunk/pollen-ui-struts2/src/main/resources/config/struts-user.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/config/struts-user.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/config/struts-user.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_en_GB.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_en_GB.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_en_GB.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -20,6 +20,7 @@
pollen.action.delete=Delete
pollen.action.deleteChoice=Delete the choice
pollen.action.deleteFavoriteList=Delete a list
+pollen.action.deletePoll=Delete the poll
pollen.action.deletePollAccount=Delete selected member
pollen.action.deleteUser=Delete selected user
pollen.action.deleteVote=Supprimer ce vote
@@ -44,6 +45,7 @@
pollen.action.pollModerateVote=Administrate votes
pollen.action.pollPersonToListDelete=Delete this voter
pollen.action.pollResult=Display poll results
+pollen.action.pollSummary=Poll summary
pollen.action.pollVote=Vote
pollen.action.pollVotingListDelete=Supprimer le groupe de votants
pollen.action.pollVotingListEdit=Editer ce groupe de votants
@@ -255,10 +257,14 @@
pollen.information.vote.deleted=Vote deleted.
pollen.information.your.are.loggued=You are logged.
pollen.label.contact.administrator=Send an email to an administrator
+pollen.label.pollClonePage=<strong>Clone your poll</strong>
+pollen.label.pollClosePage=<strong>Close your poll</strong>
+pollen.label.pollDeletePage=<strong>Delete your poll</strong>
pollen.label.pollEditPage=<strong>To modify your poll</strong>. Save it to be able to modify your poll later if you need it or to close it\:
+pollen.label.pollExportPage=<strong>Export your poll</strong>
pollen.label.pollModerateVotePage=<strong>To moderate your poll (you can't vote from this url)</strong>. Save it to be able to delete votes and comments\:
pollen.label.pollRegisterPage=If you are a logged user, you can find these links on the page
-pollen.label.pollResultPage=The link below leads to the page to count the votes. Save it to be able to count the vote later\:
+pollen.label.pollResultPage=<strong>To count the vote</strong>.Save it to be able to count the vote later\:
pollen.label.pollVotePage=<strong>To vote on your poll</strong>. Save it and send it to the people that you want to vote\:
pollen.legend.attachPoll=Attach an anonymous poll to your user account
pollen.legend.login=Login
Modified: trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/i18n/pollen-ui-struts2_fr_FR.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -20,6 +20,7 @@
pollen.action.delete=Supprimer
pollen.action.deleteChoice=Supprimer le choix
pollen.action.deleteFavoriteList=Supprimer une liste sélectionnée
+pollen.action.deletePoll=Supprimer le sondage
pollen.action.deletePollAccount=Supprimer une membre de la liste
pollen.action.deleteUser=Supprimer un utilisateur sélectionné
pollen.action.deleteVote=Supprimer ce vote
@@ -44,6 +45,7 @@
pollen.action.pollModerateVote=Administrer les votes
pollen.action.pollPersonToListDelete=Supprimer ce votant
pollen.action.pollResult=Afficher les résultats du sondage
+pollen.action.pollSummary=Réumsé du sondage
pollen.action.pollVote=Voter
pollen.action.pollVotingListDelete=Supprimer le groupe de votants
pollen.action.pollVotingListEdit=Editer ce groupe de votants
@@ -255,10 +257,14 @@
pollen.information.vote.deleted=Vote supprimé.
pollen.information.your.are.loggued=Vous êtes connecté.
pollen.label.contact.administrator=Contacter un administrateur
+pollen.label.pollClonePage=<strong>Cloner le sondage</strong>
+pollen.label.pollClosePage=<strong>Fermer le sondage</strong>
+pollen.label.pollDeletePage=<strong>Supprimer le sondage</strong>
pollen.label.pollEditPage=<strong>Lien pour configurer le sondage</strong>. Enregistrez-le pour pouvoir modifier votre sondage au besoin ou le clore \:
+pollen.label.pollExportPage=<strong>Exporter le sondage</strong>
pollen.label.pollModerateVotePage=<strong>Lien pour modérer le sondage (ce lien ne permet pas de voter)</strong>. Enregistrez-le pour pouvoir supprimer des votes et commentaires \:
pollen.label.pollRegisterPage=Si vous êtes un utilisateur identifié, vous pouvez retrouver ces liens dans la page
-pollen.label.pollResultPage=Le lien ci-dessous mène à la page de dépouillement. Enregistrez-le pour pouvoir accéder au dépouillement plus tard \:
+pollen.label.pollResultPage=<strong>Lien pour dépouiller le sondage</strong>. Enregistrez-le pour pouvoir accéder au dépouillement plus tard \:
pollen.label.pollVotePage=<strong>Lien pour voter</strong>. Enregistrez-le et envoyez-le à ceux que vous voulez voir voter \:
pollen.legend.attachPoll=Attacher un sondage anonyme à votre compte
pollen.legend.login=Login
Modified: trunk/pollen-ui-struts2/src/main/resources/log4j.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/log4j.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/log4j.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
-# Pollen :: UI (strust2)
-#
+# Pollen :: UI (struts2)
# $Id$
# $HeadURL$
# %%
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoice-conversion.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoice-conversion.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoice-conversion.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
-# Pollen :: UI (strust2)
-#
+# Pollen :: UI (struts2)
# $Id$
# $HeadURL$
# %%
@@ -21,4 +20,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# #L%
###
-voteValue=org.chorem.pollen.ui.converters.BooleanIntegerConverter
\ No newline at end of file
+voteValue=org.chorem.pollen.ui.converters.BooleanIntegerConverter
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoiceImpl-conversion.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoiceImpl-conversion.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/business/persistence/VoteToChoiceImpl-conversion.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
-# Pollen :: UI (strust2)
-#
+# Pollen :: UI (struts2)
# $Id$
# $HeadURL$
# %%
@@ -21,4 +20,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# #L%
###
-voteValue=org.chorem.pollen.ui.converters.BooleanIntegerConverter
\ No newline at end of file
+voteValue=org.chorem.pollen.ui.converters.BooleanIntegerConverter
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-create-validation.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-create-validation.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-create-validation.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-edit-validation.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-edit-validation.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/admin/ManageUsers-edit-validation.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Edit-validation.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Edit-validation.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Edit-validation.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-addPollAccount-validation.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-addPollAccount-validation.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-addPollAccount-validation.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -49,4 +48,4 @@
</field>
-</validators>
\ No newline at end of file
+</validators>
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-editPollAccount-validation.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-editPollAccount-validation.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteList-editPollAccount-validation.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -49,4 +48,4 @@
</field>
-</validators>
\ No newline at end of file
+</validators>
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteLists-createFavoriteList-validation.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteLists-createFavoriteList-validation.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/ManageFavoriteLists-createFavoriteList-validation.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Register-validation.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Register-validation.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/org/chorem/pollen/ui/actions/user/Register-validation.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/pollen.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/pollen.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/pollen.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
-# Pollen :: UI (strust2)
-#
+# Pollen :: UI (struts2)
# $Id$
# $HeadURL$
# %%
Modified: trunk/pollen-ui-struts2/src/main/resources/struts.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/struts.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/struts.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/checkbox.ftl
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/checkbox.ftl 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/checkbox.ftl 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<#--
#%L
- EchoBase :: UI
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/controlheader-core.ftl
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/controlheader-core.ftl 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/template/css_xhtml/controlheader-core.ftl 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<#--
#%L
- EchoBase :: UI
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/template/themes/green/jquery-ui.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/template/themes/green/jquery-ui.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/template/themes/green/jquery-ui.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -575,4 +574,4 @@
left: -4px; /*must have*/
width: 200px; /*must have*/
height: 200px; /*must have*/
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/resources/template/themes/yellow/jquery-ui.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/template/themes/yellow/jquery-ui.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/template/themes/yellow/jquery-ui.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -575,4 +574,4 @@
left: -4px; /*must have*/
width: 200px; /*must have*/
height: 200px; /*must have*/
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/resources/validators.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/validators.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/validators.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/resources/xwork-conversion.properties
===================================================================
--- trunk/pollen-ui-struts2/src/main/resources/xwork-conversion.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/resources/xwork-conversion.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
-# Pollen :: UI (strust2)
-#
+# Pollen :: UI (struts2)
# $Id$
# $HeadURL$
# %%
@@ -11,15 +10,15 @@
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# #L%
###
org.chorem.pollen.bean.PollUri=org.chorem.pollen.ui.converters.PollUriConverter
-java.util.Date=org.chorem.pollen.ui.converters.DateConverter
\ No newline at end of file
+java.util.Date=org.chorem.pollen.ui.converters.DateConverter
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators/layout-default.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators/layout-default.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators/layout-default.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,7 @@
<%@ page import="org.chorem.pollen.ui.actions.PollenActionSupport" %>
<%--
#%L
- Pollen :: UI (strust2)
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/decorators.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/confirmDeleteUser.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/confirmDeleteUser.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/confirmDeleteUser.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -53,4 +50,4 @@
<s:submit key="pollen.action.delete" theme="simple" action="deleteUser"/>
</div>
</fieldset>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -52,5 +51,5 @@
<sjg:gridColumn name="beginDate" title='%{getText("pollen.common.beginDate")}'/>
<sjg:gridColumn name="endDate" title='%{getText("pollen.common.endDate")}'/>
<sjg:gridColumn name="functions" title='%{getText("pollen.common.functions")}'
- formatter="pollFunctions" width="180" sortable="false"/>
+ formatter="pollFunctions" width="55" sortable="false"/>
</sjg:grid>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/adminRequired.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/adminRequired.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/adminRequired.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/home.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/home.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/home.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -37,4 +36,4 @@
</s:a>
<img src="<s:url value='/img/smallVote_%{safeLanguage}.png' />" alt="vote"/>
<img src="<s:url value='/img/smallVoteCounting_%{safeLanguage}.png' />" alt="voteCounting"/>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClonePoll.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClonePoll.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClonePoll.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -56,4 +53,4 @@
action="clone/%{pollId}"/>
</div>
</fieldset>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClosePoll.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClosePoll.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmClosePoll.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -53,4 +50,4 @@
action="close/%{pollId}"/>
</div>
</fieldset>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePoll.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePoll.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePoll.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -53,4 +50,4 @@
action="delete/%{pollId}"/>
</div>
</fieldset>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollChoice.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollChoice.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollChoice.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -43,4 +42,4 @@
key="pollen.action.cancel"/>
<s:submit key="pollen.action.delete" theme="simple"/>
</div>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollComment.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollComment.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollComment.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -48,4 +47,4 @@
key="pollen.action.cancel"/>
<s:submit key="pollen.action.delete" theme="simple"/>
</div>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollVote.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollVote.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/confirmDeletePollVote.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -45,4 +44,4 @@
key="pollen.action.cancel"/>
<s:submit key="pollen.action.delete" theme="simple"/>
</div>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/create.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/create.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/create.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -240,4 +239,4 @@
<hr/>
<s:submit key="pollen.action.addChoice" align="center"
onclick="return addNewChoice();" disabled="%{voteStarted}"/>
-</fieldset>
\ No newline at end of file
+</fieldset>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -68,4 +67,4 @@
</s:a>
</div>
<div class="cleanBoth"></div>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -97,4 +96,4 @@
</div>
<div class="cleanBoth"></div>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -66,4 +65,4 @@
</s:if>
<div class="cleanBoth"></div>
-</s:div>
\ No newline at end of file
+</s:div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComment.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComment.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComment.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -44,4 +43,4 @@
<p>
<s:property value='#comment.text'/>
</p>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -102,4 +101,4 @@
</tbody>
</table>
</div>
-</div--%>
\ No newline at end of file
+</div--%>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -64,4 +63,4 @@
</s:a>
</div>
<div class="cleanBoth"></div>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -192,4 +191,4 @@
<%--</div>--%>
<%--</t:remove>--%>
-</s:if>
\ No newline at end of file
+</s:if>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resultLink.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resultLink.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resultLink.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -31,6 +30,7 @@
<div style="margin-top: 10px;">
<img src="<s:url value='/img/count.png'/>"
alt="<s:text name='pollen.common.resultAction'/>"
+ title="<s:text name='pollen.common.resultAction'/>"
style="margin-right: 18px;"/>
<s:text name='pollen.label.pollResultPage'/>
<br/>
@@ -43,4 +43,4 @@
<s:a namespace="/user" action="createdList">
<s:text name="pollen.common.myPolls"/>
</s:a>.
-</div>
\ No newline at end of file
+</div>
Deleted: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resume.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resume.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resume.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,76 +0,0 @@
-<%--
- #%L
- Pollen :: UI (strust2)
-
- $Id$
- $HeadURL$
- %%
- Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
- %%
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- #L%
- --%>
-<%@ page language="java" contentType="text/html" pageEncoding="utf-8" %>
-<%@ taglib prefix="s" uri="/struts-tags" %>
-<link rel="stylesheet" type="text/css" href="<s:url value='/css/resume.css'/>"/>
-
-<h1 class="titleCreation"><s:property value="poll.title"/></h1>
-
-<h3><s:property value="poll.title"/> <s:text name="pollen.common.by"/>
- <s:property value="poll.creator.votingId"/></h3>
-
-<div class="ui-widget-content ui-corner-all">
-
- <s:label key="pollen.common.pollId" value="%{poll.pollId}"/>
- <br/>
-</div>
-
-<s:if test="freePoll">
- <div class="ui-widget-content-green ui-corner-all">
- <img src="<s:url value='/img/vote.png'/>"
- alt="<s:text name='pollen.common.voteAction'/>"
- style="margin-right: 18px;"/>
- <s:text name="pollen.label.pollVotePage"/>
- <br/>
- <s:a href="%{pollVoteUrl}" cssStyle="margin-left:50px;">
- <s:property value="%{pollVoteUrl}"/>
- </s:a>
- </div>
-</s:if>
-<div class="ui-widget-content-yellow ui-corner-all">
- <img src="<s:url value='/img/moderate.png'/>"
- alt="<s:text name='pollen.action.pollModerateVote'/>"
- style="margin-right: 20px;"/>
- <s:text name='pollen.label.pollModerateVotePage'/>
- <br/>
- <s:a href="%{pollModerateUrl}" cssStyle="margin-left:50px;">
- <s:property value="%{pollModerateUrl}"/>
- </s:a>
-</div>
-<div class="ui-widget-content ui-corner-all">
- <img src="<s:url value='/img/edit.png'/>"
- alt="<s:text name='pollen.common.editAction'/>"
- style="margin-right: 20px;"/>
- <s:text name='pollen.label.pollEditPage'/>
- <br/>
- <s:a href="%{pollEditUrl}" cssStyle="margin-left:50px;">
- <s:property value="%{pollEditUrl}"/>
- </s:a>
-</div>
-<div style="margin-top: 30px;">
- <s:text name="pollen.label.pollRegisterPage"/>
- <s:a namespace="/user" action="createdList">
- <s:text name="pollen.common.myPolls"/>
- </s:a>.
-</div>
\ No newline at end of file
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToAddToVotingList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToAddToVotingList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToAddToVotingList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToCreateNewVotingList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToCreateNewVotingList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/selectPersonListToCreateNewVotingList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -51,4 +50,4 @@
onclick="return importPersonListToNewVotingList($('#personList').val(), cancel);"
key="pollen.action.importPersonListToNewVotingList"/>
</div>
-</fieldset>
\ No newline at end of file
+</fieldset>
Copied: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/summary.jsp (from rev 3421, trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/resume.jsp)
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/summary.jsp (rev 0)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/summary.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -0,0 +1,167 @@
+<%--
+ #%L
+ Pollen :: UI (struts2)
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ --%>
+<%@ page language="java" contentType="text/html" pageEncoding="utf-8" %>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
+<link rel="stylesheet" type="text/css" href="<s:url value='/css/summary.css'/>"/>
+
+<script type="text/javascript">
+ var redirectUrl = '<s:url namespace="/poll" action="summary/%{uriId}"/>';
+
+ function confirmDeletePoll(id) {
+ $('.ui-dialog-title').html("<s:text name="pollen.title.delete.poll"/>");
+ var dialog = $("#confirmDialog");
+ dialog.html('');
+ var url = "<s:url action='confirmDeletePoll/' namespace='/poll'/>";
+ url += id + '?' + $.param({redirectUrl:redirectUrl});
+ dialog.load(url);
+ dialog.dialog('open');
+ return false;
+ }
+
+ function confirmClosePoll(id) {
+ $('.ui-dialog-title').html("<s:text name="pollen.title.close.poll"/>");
+ var dialog = $("#confirmDialog");
+ dialog.html('');
+ var url = "<s:url action='confirmClosePoll/' namespace='/poll'/>";
+ url += id + '?' + $.param({redirectUrl:redirectUrl});
+ dialog.load(url);
+ dialog.dialog('open');
+ return false;
+ }
+</script>
+
+<h1 class="titleCreation"><s:property value="poll.title"/></h1>
+
+<h3><s:property value="poll.title"/> <s:text name="pollen.common.by"/>
+ <s:property value="poll.creator.votingId"/></h3>
+
+<div class="ui-widget-content ui-corner-all">
+
+ <s:label key="pollen.common.pollId" value="%{poll.pollId}"/>
+ <br/>
+</div>
+
+<%--Vote action--%>
+<s:if test="canVote">
+ <div class="ui-widget-content-green ui-corner-all">
+ <img src="<s:url value='/img/vote.png'/>" class="imgAction"
+ alt="<s:text name='pollen.common.voteAction'/>"
+ title="<s:text name='pollen.common.voteAction'/>"/>
+ <s:text name="pollen.label.pollVotePage"/>
+ <br/>
+ <s:a href="%{voteUrl}">
+ <s:property value="%{voteUrl}"/>
+ </s:a>
+ </div>
+</s:if>
+
+<%--Show Results action--%>
+<s:if test="canShowResult">
+ <div class="ui-widget-content-green ui-corner-all">
+ <img src="<s:url value='/img/count.png'/>" class="imgAction"
+ alt="<s:text name='pollen.action.pollResult'/>"
+ title="<s:text name='pollen.action.pollResult'/>"/>
+ <s:text name='pollen.label.pollResultPage'/>
+ <br/>
+ <s:a href="%{resultUrl}">
+ <s:property value="%{resultUrl}"/>
+ </s:a>
+ </div>
+</s:if>
+
+<%--Moderate action--%>
+<div class="ui-widget-content-yellow ui-corner-all">
+ <img src="<s:url value='/img/moderate.png'/>" class="imgAction"
+ alt="<s:text name='pollen.action.pollModerateVote'/>"
+ title="<s:text name='pollen.action.pollModerateVote'/>"/>
+ <s:text name='pollen.label.pollModerateVotePage'/>
+ <br/>
+ <s:a href="%{moderateUrl}">
+ <s:property value="%{moderateUrl}"/>
+ </s:a>
+</div>
+
+<%--Edit action--%>
+<div class="ui-widget-content-yellow ui-corner-all">
+ <img src="<s:url value='/img/edit.png'/>" class="imgAction"
+ alt="<s:text name='pollen.action.editPoll'/>"
+ title="<s:text name='pollen.action.editPoll'/>"/>
+ <s:text name='pollen.label.pollEditPage'/>
+ <br/>
+ <s:a href="%{editUrl}">
+ <s:property value="%{editUrl}"/>
+ </s:a>
+</div>
+
+<%--Export action--%>
+<div class="ui-widget-content-blue ui-corner-all">
+ <img src="<s:url value='/img/export.png'/>" class="imgAction"
+ alt="<s:text name='pollen.action.pollExport'/>"
+ title="<s:text name='pollen.action.pollExport'/>"/>
+ <s:a href="%{exportUrl}">
+ <s:text name='pollen.label.pollExportPage'/>
+ </s:a>
+</div>
+
+<%--Clone action--%>
+<div class="ui-widget-content-blue ui-corner-all">
+ <img src="<s:url value='/img/copy.png'/>" class="imgAction"
+ alt="<s:text name='pollen.action.clone'/>"
+ title="<s:text name='pollen.action.clone'/>"/>
+ <s:a href="%{cloneUrl}">
+ <s:text name='pollen.label.pollClonePage'/>
+ </s:a>
+</div>
+
+<%--Close action--%>
+<s:if test="canClose">
+ <div class="ui-widget-content-red ui-corner-all">
+ <img src="<s:url value='/img/close.png'/>" class="imgAction"
+ alt="<s:text name='pollen.action.close'/>"
+ title="<s:text name='pollen.action.close'/>"/>
+ <s:a href="#" onclick="return confirmClosePoll('%{uriId}')">
+ <s:text name='pollen.label.pollClosePage'/>
+ </s:a>
+
+ </div>
+</s:if>
+
+<%--Delete action--%>
+<div class="ui-widget-content-red ui-corner-all">
+ <img src="<s:url value='/img/delete.png'/>" class="imgAction"
+ alt="<s:text name='pollen.action.deletePoll'/>"
+ title="<s:text name='pollen.action.deletePoll'/>"/>
+ <s:a href="#" onclick="return confirmDeletePoll('%{uriId}')">
+ <s:text name='pollen.label.pollDeletePage'/>
+ </s:a>
+</div>
+
+<div style="margin-top: 30px;">
+ <s:text name="pollen.label.pollRegisterPage"/>
+ <s:a namespace="/user" action="createdList">
+ <s:text name="pollen.common.myPolls"/>
+ </s:a>.
+</div>
+
+<sj:dialog id="confirmDialog" autoOpen="false" modal="true" width="500"/>
Property changes on: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/summary.jsp
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -491,4 +490,4 @@
<sj:dialog id="confirmDialog" resizable="false" autoOpen="false" modal="true"
width="800"/>
</div>
-</s:if>
\ No newline at end of file
+</s:if>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -34,28 +33,34 @@
<s:url id='voteImg' value='/img/vote.png'/>
<s:set id='voteTitle'><s:text name="pollen.action.pollVote"/></s:set>
-<s:url id='moderateImg' value='/img/moderate.png'/>
-<s:set id='moderateTitle'><s:text name="pollen.action.pollModerateVote"/></s:set>
+<s:url id='blankImg' value='/img/blank.png'/>
+<s:url id="summaryUrl" action="summary/" namespace="/poll"/>
+<s:url id='summaryImg' value='/img/edit.png'/>
+<s:set id='summaryTitle'><s:text name="pollen.action.pollSummary"/></s:set>
+
+<%--<s:url id='moderateImg' value='/img/moderate.png'/>--%>
+<%--<s:set id='moderateTitle'><s:text name="pollen.action.pollModerateVote"/></s:set>--%>
+
<s:url id="resultUrl" action="results/" namespace="/poll"/>
<s:url id='resultImg' value='/img/count.png'/>
<s:set id='resultTitle'><s:text name="pollen.action.pollResult"/></s:set>
-<s:url id="editUrl" action="modification/" namespace="/poll"/>
-<s:url id='editImg' value='/img/edit.png'/>
-<s:set id='editTitle'><s:text name="pollen.action.pollEdit"/></s:set>
+<%--<s:url id="editUrl" action="modification/" namespace="/poll"/>--%>
+<%--<s:url id='editImg' value='/img/edit.png'/>--%>
+<%--<s:set id='editTitle'><s:text name="pollen.action.pollEdit"/></s:set>--%>
-<s:url id="closeUrl" action="confirmClosePoll/" namespace="/poll"/>
-<s:url id='closeImg' value='/img/close.png'/>
-<s:set id='closeTitle'><s:text name="pollen.action.pollClose"/></s:set>
+<%--<s:url id="closeUrl" action="confirmClosePoll/" namespace="/poll"/>--%>
+<%--<s:url id='closeImg' value='/img/close.png'/>--%>
+<%--<s:set id='closeTitle'><s:text name="pollen.action.pollClose"/></s:set>--%>
-<s:url id="exportUrl" action="export/" namespace="/poll"/>
-<s:url id='exportImg' value='/img/export.png'/>
-<s:set id='exportTitle'><s:text name="pollen.action.pollExport"/></s:set>
+<%--<s:url id="exportUrl" action="export/" namespace="/poll"/>--%>
+<%--<s:url id='exportImg' value='/img/export.png'/>--%>
+<%--<s:set id='exportTitle'><s:text name="pollen.action.pollExport"/></s:set>--%>
-<s:url id="cloneUrl" action="clone/" namespace="/poll"/>
-<s:url id='cloneImg' value='/img/copy.png'/>
-<s:set id='cloneTitle'><s:text name="pollen.action.pollClone"/></s:set>
+<%--<s:url id="cloneUrl" action="clone/" namespace="/poll"/>--%>
+<%--<s:url id='cloneImg' value='/img/copy.png'/>--%>
+<%--<s:set id='cloneTitle'><s:text name="pollen.action.pollClone"/></s:set>--%>
<s:url id="deleteUrl" action="confirmDeletePoll/" namespace="/poll"/>
<s:url id='deleteImg' value='/img/delete.png'/>
@@ -96,6 +101,12 @@
if (cellvalue.indexOf('vote') > -1) {
result += formatLink("${voteUrl}" + voteId, "${voteImg}", "Vote", "${voteTitle}")
}
+ if (cellvalue.indexOf('novote') > -1) {
+ result +="<image src='${blankImg}'>";
+ }
+ if (cellvalue.indexOf('summary') > -1) {
+ result += formatLink("${summaryUrl}" + adminId, "${summaryImg}", "Moderate", "${summaryTitle}")
+ }
if (cellvalue.indexOf('moderate') > -1) {
result += formatLink("${voteUrl}" + moderateId, "${moderateImg}", "Moderate", "${moderateTitle}")
}
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/admin_required.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/admin_required.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/admin_required.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -26,4 +25,4 @@
<ul class="actionErrors">
<li><span>Vous devez être connecter en administrateur pour accéder à cette page.</span></li>
</ul>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/connected_required.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/connected_required.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/connected_required.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -26,4 +25,4 @@
<ul class="actionErrors">
<li><span>Vous devez être connecter pour accéder à cette page.</span></li>
</ul>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_access_required.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_access_required.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_access_required.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -26,4 +25,4 @@
<ul class="actionErrors">
<li><span>Vous n'êtes pas autorisé à accéder à cette page de sondage.</span></li>
</ul>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_creator_required.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_creator_required.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_creator_required.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -26,4 +25,4 @@
<ul class="actionErrors">
<li><span>Seul le créateur du sondage ou un administratuer peut accéder à cette page.</span></li>
</ul>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_required.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_required.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/poll_required.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -26,4 +25,4 @@
<ul class="actionErrors">
<li><span>Aucun sondage à l'url donné.</span></li>
</ul>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/result_access_required.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/result_access_required.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/security/result_access_required.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -26,4 +25,4 @@
<ul class="actionErrors">
<li><span>Vous n'êtes pas autorisé à accéder à cette page de résultas.</span></li>
</ul>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeleteFavoriteList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeleteFavoriteList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeleteFavoriteList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -53,4 +50,4 @@
action="deleteFavoriteList"/>
</div>
</fieldset>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeletePollAccount.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeletePollAccount.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/confirmDeletePollAccount.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -54,4 +51,4 @@
action="deletePollAccount"/>
</div>
</fieldset>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -74,7 +73,7 @@
title='%{getText("pollen.common.beginDate")}'/>
<sjg:gridColumn name="endDate" title='%{getText("pollen.common.endDate")}'/>
<sjg:gridColumn name="functions" title='%{getText("pollen.common.functions")}'
- formatter="pollFunctions" width="200" sortable="false"/>
+ formatter="pollFunctions" width="65" sortable="false"/>
</sjg:grid>
<br/>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/dialogLostPassword.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/dialogLostPassword.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/dialogLostPassword.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -11,12 +10,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
@@ -46,4 +43,4 @@
action="lostPassword"/>
</div>
</fieldset>
-</s:form>
\ No newline at end of file
+</s:form>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/edit.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/edit.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/edit.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -138,4 +137,4 @@
key="pollen.action.backToFavoriteLists" align="center"/>
</s:form>
-<sj:dialog id="confirmDialog" autoOpen="false" modal="true" width="500"/>
\ No newline at end of file
+<sj:dialog id="confirmDialog" autoOpen="false" modal="true" width="500"/>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -52,7 +51,7 @@
var editTitle = '<s:text name="pollen.action.editFavoriteList"/>';
var deleteImg = '<s:url value='/img/delete.png'/>';
var csvHelp = "<div><s:text name='pollen.common.favoriteList.csvImport.help'/>" +
- "<br/><img src=\"<s:url value="/img/import_csv_help.png"/>\"/></div>"
+ "<br/><img src=\"<s:url value="/img/import_csv_help.png"/>\"/></div>";
jQuery(document).ready(function () {
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -55,5 +54,5 @@
<sjg:gridColumn name="beginDate" title='%{getText("pollen.common.beginDate")}'/>
<sjg:gridColumn name="endDate" title='%{getText("pollen.common.endDate")}'/>
<sjg:gridColumn name="functions" title='%{getText("pollen.common.functions")}'
- formatter="pollFunctions" width="180" sortable="false"/>
+ formatter="pollFunctions" width="55" sortable="false"/>
</sjg:grid>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/login.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/login.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/login.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -66,4 +65,4 @@
<img src="<s:url value='/img/smallVoteCounting_%{safeLanguage}.png' />"
alt="voteCounting"/>
</s:a>
-</div>
\ No newline at end of file
+</div>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -55,5 +54,5 @@
<sjg:gridColumn name="beginDate" title='%{getText("pollen.common.beginDate")}'/>
<sjg:gridColumn name="endDate" title='%{getText("pollen.common.endDate")}'/>
<sjg:gridColumn name="functions" title='%{getText("pollen.common.functions")}'
- formatter="pollFunctions" width="180" sortable="false"/>
+ formatter="pollFunctions" width="55" sortable="false"/>
</sjg:grid>
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/register.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/register.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/register.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/show.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/show.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/show.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/css/common.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/css/common.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/css/common.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -197,4 +196,4 @@
#tooltip .tipFooter {
height:8px;
background:url(images/tipFooter.gif) no-repeat;
- }
\ No newline at end of file
+ }
Modified: trunk/pollen-ui-struts2/src/main/webapp/css/main.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/css/main.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/css/main.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -586,4 +585,4 @@
margin-bottom: 20px;
padding: 10px 50px 10px 50px;
border-top: 1px solid #aab;
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/webapp/css/pollCreation.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/css/pollCreation.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/css/pollCreation.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -150,4 +149,4 @@
#toptions .wwlbl {
width: 260px;
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/webapp/css/results.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/css/results.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/css/results.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Deleted: trunk/pollen-ui-struts2/src/main/webapp/css/resume.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/css/resume.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/css/resume.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,33 +0,0 @@
-/*
- * #%L
- * Pollen :: UI (struts2)
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- * #L%
- */
-.ui-widget-content-green { border: 1px solid #aaaaaa; background: #b0f580 url(images/ui-bg_flat_75_b0f580_40x100.png) 50% 50% repeat-x; color: #222222; }
-.ui-widget-content-green a { color: #222222; }
-
-.ui-widget-content-yellow { border: 1px solid #aaaaaa; background: #ffffaa url(images/ui-bg_flat_75_ffffaa_40x100.png) 50% 50% repeat-x; color: #222222; }
-.ui-widget-content-yellow a { color: #222222; }
-
-.ui-corner-all {
- margin-top: 10px;
- padding: 10px;
-}
-
Copied: trunk/pollen-ui-struts2/src/main/webapp/css/summary.css (from rev 3421, trunk/pollen-ui-struts2/src/main/webapp/css/resume.css)
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/css/summary.css (rev 0)
+++ trunk/pollen-ui-struts2/src/main/webapp/css/summary.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -0,0 +1,46 @@
+/*
+ * #%L
+ * Pollen :: UI (struts2)
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * #L%
+ */
+.ui-widget-content-green { border: 1px solid #aaaaaa; background: #b0f580 url(images/ui-bg_flat_75_b0f580_40x100.png) 50% 50% repeat-x; color: #222222; }
+.ui-widget-content-green a { color: #222222; }
+
+.ui-widget-content-yellow { border: 1px solid #aaaaaa; background: #ffffaa url(images/ui-bg_flat_75_ffffaa_40x100.png) 50% 50% repeat-x; color: #222222; }
+.ui-widget-content-yellow a { color: #222222; }
+
+.ui-widget-content-red { border: 1px solid #aaaaaa; background: #FFAAAA url(images/ui-bg_flat_75_ffffaa_40x100.png) 50% 50% repeat-x; color: #222222; }
+.ui-widget-content-red a { color: #222222; }
+
+.ui-widget-content-blue { border: 1px solid #dddddd; background: #A9D4E3 url(images/ui-bg_highlight-hard_100_f2f5f7_1x100.png) 50% top repeat-x; color: #362b36; }
+.ui-widget-content-blue a { color: #362b36; }
+
+.ui-corner-all {
+ margin-top: 10px;
+ padding: 10px;
+}
+
+.showResultIcon {
+ background: #FFE3E3 url(../img/count.png) 80% 80% repeat-x;
+}
+.imgAction {
+ margin-right: 20px;
+}
+
Property changes on: trunk/pollen-ui-struts2/src/main/webapp/css/summary.css
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/pollen-ui-struts2/src/main/webapp/css/vote.css
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/css/vote.css 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/css/vote.css 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -216,4 +215,4 @@
#commentsDiv div {
padding: 5px 15px;
-}
\ No newline at end of file
+}
Copied: trunk/pollen-ui-struts2/src/main/webapp/img/blank.png (from rev 3421, trunk/pollen-ui-struts2/src/main/webapp/img/vote.png)
===================================================================
(Binary files differ)
Modified: trunk/pollen-ui-struts2/src/main/webapp/index.jsp
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/index.jsp 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/index.jsp 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
<%--
#%L
- Pollen :: UI (strust2)
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
Modified: trunk/pollen-ui-struts2/src/main/webapp/js/createPoll.js
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/js/createPoll.js 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/js/createPoll.js 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -651,4 +650,4 @@
changePollType(datas['pollType']);
$('.tooltip').tipTip({ defaultPosition:'top' });
-});
\ No newline at end of file
+});
Modified: trunk/pollen-ui-struts2/src/main/webapp/js/favoriteList.js
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/js/favoriteList.js 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/js/favoriteList.js 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -101,4 +100,4 @@
dialog.load(url);
dialog.dialog('open');
return false;
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/webapp/js/favoriteLists.js
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/js/favoriteLists.js 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/js/favoriteLists.js 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
@@ -96,4 +95,4 @@
dialog.load(url);
dialog.dialog('open');
return false;
-}
\ No newline at end of file
+}
Modified: trunk/pollen-ui-struts2/src/main/webapp/js/gridHelper.js
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/js/gridHelper.js 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/js/gridHelper.js 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/main/webapp/js/usersList.js
===================================================================
--- trunk/pollen-ui-struts2/src/main/webapp/js/usersList.js 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/main/webapp/js/usersList.js 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
- * Pollen :: UI (strust2)
- *
+ * Pollen :: UI (struts2)
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-ui-struts2/src/site/fr/rst/index.rst
===================================================================
--- trunk/pollen-ui-struts2/src/site/fr/rst/index.rst 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/site/fr/rst/index.rst 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
.. -
.. * #%L
.. * Pollen :: UI (struts2)
-.. *
.. * $Id$
.. * $HeadURL$
.. * %%
Modified: trunk/pollen-ui-struts2/src/site/site_en.xml
===================================================================
--- trunk/pollen-ui-struts2/src/site/site_en.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/site/site_en.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-ui-struts2/src/site/site_fr.xml
===================================================================
--- trunk/pollen-ui-struts2/src/site/site_fr.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-ui-struts2/src/site/site_fr.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
+ Pollen :: UI (struts2)
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/ChoiceType.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/ChoiceType.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/ChoiceType.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -52,4 +51,4 @@
}
return result;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/I18nAble.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/I18nAble.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/I18nAble.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/PollType.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/PollType.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/PollType.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/VoteCountingType.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/VoteCountingType.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/common/VoteCountingType.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -52,4 +51,4 @@
}
return result;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Choice.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Choice.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Choice.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -160,4 +159,4 @@
public String toString() {
return "Choice id=" + idChoice + " _ value=" + value;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/CondorcetMethod.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/CondorcetMethod.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/CondorcetMethod.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -332,4 +331,4 @@
List<PercentageBehavior> list = new ArrayList<PercentageBehavior>(choices);
choiceDTO.setPercentage(Utils.calculatePercentage(choice, list));
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Context.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Context.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Context.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -228,4 +227,4 @@
return resChoices;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Group.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Group.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Group.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -125,4 +124,4 @@
public List<Vote> list() {
return getVotes();
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Method.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Method.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Method.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -54,4 +53,4 @@
*/
public void executeStats(List<Choice> choices, boolean groupCounting,
Choice choice, ChoiceDTO choiceDTO);
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/NumberMethod.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/NumberMethod.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/NumberMethod.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/PercentageMethod.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/PercentageMethod.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/PercentageMethod.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -46,4 +45,4 @@
}
return 0;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/StandardMethod.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/StandardMethod.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/StandardMethod.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -126,4 +125,4 @@
List<PercentageBehavior> list = new ArrayList<PercentageBehavior>(choices);
choiceDTO.setPercentage(Utils.calculatePercentage(choice, list));
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Vote.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Vote.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/Vote.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -79,4 +78,4 @@
public String getVotingID() {
return this.votingID;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/package-info.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/package-info.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/business/package-info.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -24,4 +23,4 @@
/**
* Gestion des dépouillements.
*/
-package org.chorem.pollen.votecounting.business;
\ No newline at end of file
+package org.chorem.pollen.votecounting.business;
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/ChoiceDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/ChoiceDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/ChoiceDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -121,4 +120,4 @@
public void setResult(boolean result) {
this.result = result;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/CommentDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/CommentDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/CommentDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -54,4 +53,4 @@
public void setText(String text) {
this.text = text;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollChoiceDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollChoiceDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollChoiceDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -82,4 +81,4 @@
public void setHidden(boolean hidden) {
this.hidden = hidden;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -255,4 +254,4 @@
public void setComments(List<CommentDTO> comments) {
this.comments = comments;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollExportDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollExportDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/PollExportDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteCountingResultDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteCountingResultDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteCountingResultDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -98,4 +97,4 @@
this.choices = choices;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteToChoiceDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteToChoiceDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VoteToChoiceDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -60,4 +59,4 @@
this.idChoice = idChoice;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingGroupDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingGroupDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingGroupDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -86,4 +85,4 @@
this.votingPersons = votingPersons;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingPersonDTO.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingPersonDTO.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/VotingPersonDTO.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -114,4 +113,4 @@
this.choices = choices;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/package-info.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/package-info.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/dto/package-info.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -24,4 +23,4 @@
/**
* Data Transfert Objects.
*/
-package org.chorem.pollen.votecounting.dto;
\ No newline at end of file
+package org.chorem.pollen.votecounting.dto;
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ImportExportService.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ImportExportService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ImportExportService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExport.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExport.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExport.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExportImpl.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExportImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceExportImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -564,4 +563,4 @@
return vectorChoices;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCounting.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCounting.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCounting.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -36,4 +35,4 @@
public VoteCountingResultDTO executeVoteCounting(PollDTO poll);
public VoteCountingResultDTO executeGroupCounting(PollDTO poll);
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCountingImpl.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCountingImpl.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/ServiceVoteCountingImpl.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -232,4 +231,4 @@
group.addVote(vote.getValue(), weight, votingID);
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/VoteCountingService.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/VoteCountingService.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/VoteCountingService.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/package-info.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/package-info.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/services/package-info.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -24,4 +23,4 @@
/**
* Services proposés par le module VoteCounting.
*/
-package org.chorem.pollen.votecounting.services;
\ No newline at end of file
+package org.chorem.pollen.votecounting.services;
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/ListBehavior.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/ListBehavior.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/ListBehavior.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -32,4 +31,4 @@
*/
public interface ListBehavior<T> {
public List<T> list();
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/PercentageBehavior.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/PercentageBehavior.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/PercentageBehavior.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -30,4 +29,4 @@
*/
public interface PercentageBehavior {
public double value();
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/Utils.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/Utils.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/Utils.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -67,4 +66,4 @@
return nbVotes;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/package-info.java
===================================================================
--- trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/package-info.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/java/org/chorem/pollen/votecounting/utils/package-info.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -24,4 +23,4 @@
/**
* Classes utilitaires.
*/
-package org.chorem.pollen.votecounting.utils;
\ No newline at end of file
+package org.chorem.pollen.votecounting.utils;
Modified: trunk/pollen-votecounting/src/main/resources/log4j.properties
===================================================================
--- trunk/pollen-votecounting/src/main/resources/log4j.properties 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/main/resources/log4j.properties 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
###
# #%L
# Pollen :: Vote Counting
-#
# $Id$
# $HeadURL$
# %%
Modified: trunk/pollen-votecounting/src/site/site_en.xml
===================================================================
--- trunk/pollen-votecounting/src/site/site_en.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/site/site_en.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
+ Pollen :: Vote Counting
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-votecounting/src/site/site_fr.xml
===================================================================
--- trunk/pollen-votecounting/src/site/site_fr.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/site/site_fr.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
- Pollen
-
+ Pollen :: Vote Counting
$Id$
$HeadURL$
%%
@@ -12,12 +11,10 @@
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
#L%
Modified: trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreator.java
===================================================================
--- trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreator.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreator.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -45,4 +44,4 @@
* @return le sondage
*/
public PollDTO createTestPoll();
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreatorVoteCounting.java
===================================================================
--- trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreatorVoteCounting.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/PollDTOCreatorVoteCounting.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -247,4 +246,4 @@
return groups;
}
-}
\ No newline at end of file
+}
Modified: trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/ServiceVoteCountingImplTest.java
===================================================================
--- trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/ServiceVoteCountingImplTest.java 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/pollen-votecounting/src/test/java/org/chorem/pollen/votecounting/business/services/ServiceVoteCountingImplTest.java 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
/*
* #%L
* Pollen :: Vote Counting
- *
* $Id$
* $HeadURL$
* %%
@@ -150,4 +149,4 @@
VoteCountingResultDTO result = instance.executeGroupCounting(poll);
//assertEquals(expResult, result);
}
-}
\ No newline at end of file
+}
Modified: trunk/src/site/fr/rst/configure.rst
===================================================================
--- trunk/src/site/fr/rst/configure.rst 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/fr/rst/configure.rst 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
.. -
.. * #%L
.. * Pollen
-.. *
.. * $Id$
.. * $HeadURL$
.. * %%
@@ -11,12 +10,12 @@
.. * it under the terms of the GNU Affero General Public License as published by
.. * the Free Software Foundation, either version 3 of the License, or
.. * (at your option) any later version.
-.. *
+.. *
.. * This program is distributed in the hope that it will be useful,
.. * but WITHOUT ANY WARRANTY; without even the implied warranty of
.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.. * GNU General Public License for more details.
-.. *
+.. *
.. * You should have received a copy of the GNU Affero General Public License
.. * along with this program. If not, see <http://www.gnu.org/licenses/>.
.. * #L%
@@ -101,4 +100,4 @@
| MySql | org.hibernate.dialect.MySQLDialect | com.mysql.jdbc.Driver | jdbc:mysql:pollen |
+-------------------------+------------------------------------------+-----------------------------------+------------------------------------------+
-.. _page des options: ./pollen-ui-struts2/application-config-report.html
\ No newline at end of file
+.. _page des options: ./pollen-ui-struts2/application-config-report.html
Modified: trunk/src/site/fr/rst/depouillement.rst
===================================================================
--- trunk/src/site/fr/rst/depouillement.rst 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/fr/rst/depouillement.rst 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
.. -
.. * #%L
.. * Pollen
-.. *
.. * $Id$
.. * $HeadURL$
.. * %%
Modified: trunk/src/site/fr/rst/index.rst
===================================================================
--- trunk/src/site/fr/rst/index.rst 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/fr/rst/index.rst 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
.. -
.. * #%L
.. * Pollen
-.. *
.. * $Id$
.. * $HeadURL$
.. * %%
Modified: trunk/src/site/rst/configure.rst
===================================================================
--- trunk/src/site/rst/configure.rst 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/rst/configure.rst 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
.. -
.. * #%L
.. * Pollen
-.. *
.. * $Id$
.. * $HeadURL$
.. * %%
@@ -11,12 +10,12 @@
.. * it under the terms of the GNU Affero General Public License as published by
.. * the Free Software Foundation, either version 3 of the License, or
.. * (at your option) any later version.
-.. *
+.. *
.. * This program is distributed in the hope that it will be useful,
.. * but WITHOUT ANY WARRANTY; without even the implied warranty of
.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.. * GNU General Public License for more details.
-.. *
+.. *
.. * You should have received a copy of the GNU Affero General Public License
.. * along with this program. If not, see <http://www.gnu.org/licenses/>.
.. * #L%
@@ -96,4 +95,4 @@
| MySql | org.hibernate.dialect.MySQLDialect | com.mysql.jdbc.Driver | jdbc:mysql:pollen |
+-------------------------+------------------------------------------+-----------------------------------+------------------------------------------+
-.. _options page: ./application-config-report.html
\ No newline at end of file
+.. _options page: ./application-config-report.html
Modified: trunk/src/site/rst/index.rst
===================================================================
--- trunk/src/site/rst/index.rst 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/rst/index.rst 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
.. -
.. * #%L
.. * Pollen
-.. *
.. * $Id$
.. * $HeadURL$
.. * %%
Modified: trunk/src/site/rst/methods.rst
===================================================================
--- trunk/src/site/rst/methods.rst 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/rst/methods.rst 2012-06-05 16:50:22 UTC (rev 3423)
@@ -1,7 +1,6 @@
.. -
.. * #%L
.. * Pollen
-.. *
.. * $Id$
.. * $HeadURL$
.. * %%
Modified: trunk/src/site/site_en.xml
===================================================================
--- trunk/src/site/site_en.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/site_en.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -2,7 +2,6 @@
<!--
#%L
Pollen
-
$Id$
$HeadURL$
%%
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2012-06-05 07:40:14 UTC (rev 3422)
+++ trunk/src/site/site_fr.xml 2012-06-05 16:50:22 UTC (rev 3423)
@@ -2,7 +2,6 @@
<!--
#%L
Pollen
-
$Id$
$HeadURL$
%%
1
0
r3422 - in trunk: pollen-services/src/main/java/org/chorem/pollen/services pollen-services/src/main/java/org/chorem/pollen/services/impl pollen-services/src/test/java/org/chorem/pollen/services pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll
by tchemit@users.chorem.org 05 Jun '12
by tchemit@users.chorem.org 05 Jun '12
05 Jun '12
Author: tchemit
Date: 2012-06-05 09:40:14 +0200 (Tue, 05 Jun 2012)
New Revision: 3422
Url: http://chorem.org/repositories/revision/pollen/3422
Log:
fixes #583: Make sure pollId is never used twice
Modified:
trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java
trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java
trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java
trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/DefaultPollenServiceContext.java 2012-06-05 07:40:14 UTC (rev 3422)
@@ -30,7 +30,6 @@
import java.net.URL;
import java.util.Date;
import java.util.Locale;
-import java.util.UUID;
/**
* Instances of this class will be given to service factory.
@@ -116,17 +115,7 @@
return serviceFactory;
}
- /**
- * Create an id to easily managed polls using urls.
- *
- * @return a fresh generated String
- */
@Override
- public String createPollenUrlId() {
- return UUID.randomUUID().toString().replaceAll("-", "");
- }
-
- @Override
public Date getCurrentTime() {
return new Date();
}
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceContext.java 2012-06-05 07:40:14 UTC (rev 3422)
@@ -55,15 +55,6 @@
<E extends PollenService> E newService(Class<E> clazz);
- /**
- * createPollenUrlId :
- * Create a unique UId for entities which need it (PollAccount, Poll).
- * This UId represent the entity in UI module.
- *
- * @return String
- */
- String createPollenUrlId();
-
/** @return the current date */
Date getCurrentTime();
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/PollenServiceSupport.java 2012-06-05 07:40:14 UTC (rev 3422)
@@ -148,6 +148,13 @@
}
}
+ protected <T extends TopiaEntity, D extends TopiaDAO<? super T>> T createWithProperties(D dao, Object... properties) {
+ try {
+ return (T) dao.create(properties);
+ } catch (TopiaException e) {
+ throw new PollenTechnicalException("Could not create entity ", e);
+ }
+ }
protected <T extends TopiaEntity, D extends TopiaDAO<? super T>> T update(D dao, T entity) {
try {
return (T) dao.update(entity);
Modified: trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java
===================================================================
--- trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java 2012-06-05 07:40:14 UTC (rev 3422)
@@ -77,6 +77,7 @@
import java.util.List;
import java.util.Locale;
import java.util.Map;
+import java.util.UUID;
import static org.nuiton.i18n.I18n.l_;
@@ -85,44 +86,8 @@
/** Logger. */
private static final Log log = LogFactory.getLog(PollService.class);
- /**
- * Build a new Poll instance with given {@code user} as creator
- *
- * @param user Build a new Poll instance with given {@code user} as creator
- * @return Build a new Poll instance with given {@code user} as creator
- */
- public Poll getNewPoll(UserAccount user) {
+ public static final String THUMB_PREFIX = "thumb_";
- PollDAO pollDAO = getDAO(Poll.class);
- Poll result = newInstance(pollDAO);
-
- PollenConfiguration configuration = getConfiguration();
-
- // default values from configuration
- result.setChoiceType(configuration.getDefaultChoiceType());
- result.setVoteCountingType(configuration.getDefaultVoteCountingType());
- result.setPollType(configuration.getDefaultPollType());
-
- // Initialize creator of the poll
- PollAccountDAO pollAccountDAO = getDAO(PollAccount.class);
- PollAccount creator = newInstance(pollAccountDAO);
- creator.setAccountId(serviceContext.createPollenUrlId());
-
- if (user != null) {
-
- // Link the creator with the user
- creator.setVotingId(user.getDisplayName());
- creator.setEmail(user.getEmail());
- creator.setUserAccount(user);
- }
- result.setCreator(creator);
-
- // Generate Uid to have a unique poll. Will avoid multi-submit, existing
- // poll will be check by its uid.
- result.setPollId(serviceContext.createPollenUrlId());
- return result;
- }
-
/**
* Retrieve a Poll for edition. It is loaded from database if {@code pollUid}
* is defined, otherwise a new instance is returned. The {@code clone}
@@ -132,122 +97,29 @@
* be attached to it.
*
* @param pollUid Uid of the poll to edit, if not defined, a new poll is instanciated
- * @param userAccount User account to attach to the creator
+ * @param userAccount Optinal User account to attach to the creator
* @param clone Flag to copy or not ids in case of poll cloning
* @return the Poll ready for edition (no longer linked to the topia context)
* @see #getNewPoll(UserAccount)
- * @see #getNewPollCopy(Poll, UserAccount, boolean)
+ * @see #getNewPollCopy(String, UserAccount, boolean)
*/
- public Poll getPollEditable(String pollUid, UserAccount userAccount, boolean clone) {
-
+ public Poll getPollEditable(String pollUid,
+ UserAccount userAccount,
+ boolean clone) throws PollNotFoundException {
Poll result;
- if (pollUid == null) {
- result = getNewPoll(userAccount);
+ if (StringUtils.isEmpty(pollUid)) {
+
+ // creates a new poll
+ result = getNewPoll(userAccount);
} else {
- Poll poll = getPollByPollId(pollUid);
-
- if (poll == null) {
- result = getNewPoll(userAccount);
-
- } else {
- result = getNewPollCopy(poll, userAccount, clone);
- }
+ // obtains a copy of an existing poll
+ result = getNewPollCopy(pollUid, userAccount, clone);
}
return result;
}
- protected Poll getNewPollCopy(Poll source, UserAccount userAccount, boolean clone) {
-
- Preconditions.checkNotNull(source);
-
- PollDAO pollDAO = getDAO(Poll.class);
- Poll result = newInstance(pollDAO);
-
- PollenBinderHelper.simpleCopy(source, result, !clone);
- if (clone) {
- result.setPollId(serviceContext.createPollenUrlId());
- }
-
- // -- Creator -- //
- PollAccount creatorLoaded = source.getCreator();
- PollAccountDAO pollAccountDAO = getDAO(PollAccount.class);
- PollAccount creatorEditable = newInstance(pollAccountDAO);
- result.setCreator(creatorEditable);
-
- PollenBinderHelper.simpleCopy(
- creatorLoaded, creatorEditable, !clone);
- if (clone) {
- creatorEditable.setAccountId(serviceContext.createPollenUrlId());
- }
-
- if (creatorLoaded.getUserAccount() != null) {
- creatorEditable.setUserAccount(creatorLoaded.getUserAccount());
-
- // Set userAccount from arguments
- } else if (userAccount != null) {
- creatorEditable.setUserAccount(userAccount);
- }
-
- // -- Choice -- //
- Function<Choice, Choice> choiceCreator =
- PollenServiceFunctions.newChoiceCreator(source.getChoiceType());
- Iterable<Choice> choices =
- Iterables.transform(source.getChoice(), choiceCreator);
-
- for (Choice choiceLoaded : choices) {
- // Reset topiaId for clone case
- if (clone) {
- choiceLoaded.setTopiaId(null);
- }
- result.addChoice(choiceLoaded);
- }
-
- // -- VotingList -- //
- VotingListDAO votingListDAO = getDAO(VotingList.class);
- PersonToListDAO personToListDAO = getDAO(PersonToList.class);
- for (VotingList votingListLoaded : source.getVotingList()) {
- VotingList votingListEditable = newInstance(votingListDAO);
- result.addVotingList(votingListEditable);
- // Do not keep votingLists topiaId, to simplify the update will delete old votingLists and create new ones
- PollenBinderHelper.simpleCopy(
- votingListLoaded, votingListEditable, false);
-
- for (PersonToList personToListLoaded : votingListLoaded.getPollAccountPersonToList()) {
- PersonToList personToListEditable = newInstance(personToListDAO);
- votingListEditable.addPollAccountPersonToList(personToListEditable);
- // Do not keep personToLists topiaId, to simplify the update will delete old personToLists and create new ones
- PollenBinderHelper.simpleCopy(
- personToListLoaded, personToListEditable, false);
-
- PollAccount personLoaded = personToListLoaded.getPollAccount();
- PollAccount personEditable = newInstance(pollAccountDAO);
- personToListEditable.setPollAccount(personEditable);
- // copy the person, keeping topiaId is useless because we have the link with PersonToList
- PollenBinderHelper.simpleCopy(
- personLoaded, personEditable, false);
- if (clone) {
- personEditable.setAccountId(serviceContext.createPollenUrlId());
- }
- }
- }
-
- // -- PreventRule -- //
- PreventRuleDAO preventRuleDAO = getDAO(PreventRule.class);
- for (PreventRule preventRuleLoaded : source.getPreventRule()) {
- PreventRule preventRuleEditable = newInstance(preventRuleDAO);
- PollenBinderHelper.simpleCopy(
- preventRuleLoaded, preventRuleEditable, !clone);
- result.addPreventRule(preventRuleEditable);
- }
-
- // Load votes to have the correct size used to check if vote is started
- result.setVote(source.getVote());
-
- return result;
- }
-
public Map<String, Object> pollToMap(Poll poll, Binder<Poll, Poll> binder) {
Map<String, Object> map = binder.obtainProperties(
@@ -307,7 +179,8 @@
public Poll createPoll(Poll poll) {
PollDAO pollDAO = getDAO(Poll.class);
- Poll result = create(pollDAO);
+ Poll result = createWithProperties(pollDAO,
+ Poll.PROPERTY_POLL_ID, generateId());
// check max number choice authorized (can not be more than
// XXX-fdesbois-2012-04-11 : don't know why the maxNbChoice must be
@@ -328,7 +201,6 @@
result.setDescription(poll.getDescription());
result.setEndDate(poll.getEndDate());
result.setEndChoiceDate(poll.getEndChoiceDate());
- result.setPollId(poll.getPollId()); // TODO AThimel 04/06/2012 pollId coming from the JSP page ????
result.setPollType(poll.getPollType());
result.setMaxChoiceNb(poll.getMaxChoiceNb());
result.setPublicResults(poll.isPublicResults());
@@ -337,12 +209,13 @@
// create creator
PollAccountDAO pollAccountDAO = getDAO(PollAccount.class);
- PollAccount creatorCreated = create(pollAccountDAO);
+ PollAccount creatorCreated = createWithProperties(
+ pollAccountDAO,
+ PollAccount.PROPERTY_ACCOUNT_ID, generateId());
PollAccount creator = poll.getCreator();
creatorCreated.setVotingId(creator.getVotingId());
creatorCreated.setEmail(creator.getEmail());
creatorCreated.setUserAccount(creator.getUserAccount());
- creatorCreated.setAccountId(creator.getAccountId());
result.setCreator(creatorCreated);
@@ -448,59 +321,6 @@
commitTransaction("Could not update poll [" + poll.getTopiaId() + "]");
}
-// public PollUrl getPollVoteUrl(Poll poll, boolean moderate) {
-// URL applicationUrl = serviceContext.getApplicationURL();
-// String baseUrl = applicationUrl + "/poll/votefor/";
-// PollUri pollUri = PollUri.newPollUri(poll.getPollId());
-//
-// if (moderate) {
-// String creatorId = poll.getCreator().getAccountId();
-// pollUri.setAccountId(creatorId);
-// }
-//
-// PollUrl result = PollUrl.newPollUrl(baseUrl, pollUri);
-// return result;
-// }
-
-// public PollUrl getPollUpdateVoteUrl(Poll poll) {
-// Preconditions.checkNotNull(poll);
-//
-// URL applicationUrl = serviceContext.getApplicationURL();
-// String baseUrl = applicationUrl + "/poll/votefor/";
-// PollUri pollUri = PollUri.newPollUri(poll.getPollId());
-//
-// String creatorId = poll.getCreator().getAccountId();
-// pollUri.setAccountId(creatorId);
-//
-// PollUrl result = PollUrl.newPollUrl(baseUrl, pollUri);
-// return result;
-// }
-
-// public PollUrl getPollEditUrl(Poll poll) {
-// URL applicationUrl = serviceContext.getApplicationURL();
-// String baseUrl = applicationUrl + "/poll/modification/";
-//
-// String creatorId = poll.getCreator().getAccountId();
-// PollUri pollUri = PollUri.newPollUri(poll.getPollId(), creatorId);
-//
-// PollUrl result = PollUrl.newPollUrl(baseUrl, pollUri);
-// return result;
-// }
-
-// public PollUrl getPollResultUrl(Poll poll) {
-// URL applicationUrl = serviceContext.getApplicationURL();
-// String baseUrl = applicationUrl + "/poll/results/";
-// PollUri pollUri = PollUri.newPollUri(poll.getPollId());
-//
-// if (!poll.isPublicResults()) {
-// String creatorId = poll.getCreator().getAccountId();
-// pollUri.setAccountId(creatorId);
-// }
-//
-// PollUrl result = PollUrl.newPollUrl(baseUrl, pollUri);
-// return result;
-// }
-
public List<Poll> getPolls(TopiaFilterPagerUtil.FilterPagerBean pager) {
Preconditions.checkNotNull(pager);
@@ -626,7 +446,9 @@
* @throws PollAccountNotFound if accountId is defined and doesn't match any
* existing PollAccount
*/
- public PollAccount getPollAccountEditable(String accountId, UserAccount userAccount, Poll poll) throws PollAccountNotFound {
+ public PollAccount getPollAccountEditable(String accountId,
+ UserAccount userAccount,
+ Poll poll) throws PollAccountNotFound {
PollAccount result = null;
if (StringUtils.isNotEmpty(accountId)) {
PollAccount pollAccountLoaded = getPollAccountByAccountId(accountId);
@@ -638,10 +460,11 @@
result.setUserAccount(userAccount);
if (log.isDebugEnabled()) {
- log.debug(String.format("Attach User '%s' [%s] to the existing Account [%s]",
- userAccount.getDisplayName(),
- userAccount.getTopiaId(),
- accountId
+ log.debug(String.format(
+ "Attach User '%s' [%s] to the existing Account [%s]",
+ userAccount.getDisplayName(),
+ userAccount.getTopiaId(),
+ accountId
));
}
}
@@ -653,7 +476,8 @@
PollAccountDAO pollAccountDAO = getDAO(PollAccount.class);
PollAccount pollAccountLoaded;
try {
- pollAccountLoaded = pollAccountDAO.findByPollVoteUser(poll, userAccount);
+ pollAccountLoaded =
+ pollAccountDAO.findByPollVoteUser(poll, userAccount);
} catch (TopiaException e) {
throw new PollenTechnicalException(e);
}
@@ -663,9 +487,10 @@
}
if (log.isDebugEnabled()) {
- String account = result == null
- ? "null"
- : result.getVotingId() + " [" + result.getAccountId() + "]";
+ String account =
+ result == null
+ ? "null"
+ : result.getVotingId() + " [" + result.getAccountId() + "]";
log.debug(String.format(
"PollAccount found from user '%s' = %s",
@@ -681,6 +506,149 @@
return result;
}
+ /**
+ * Build a new Poll instance with given {@code user} as creator
+ *
+ * @param user Build a new Poll instance with given {@code user} as creator
+ * @return Build a new Poll instance with given {@code user} as creator
+ */
+ protected Poll getNewPoll(UserAccount user) {
+
+ PollDAO pollDAO = getDAO(Poll.class);
+ Poll result = newInstance(pollDAO);
+
+ PollenConfiguration configuration = getConfiguration();
+
+ // default values from configuration
+ result.setChoiceType(configuration.getDefaultChoiceType());
+ result.setVoteCountingType(configuration.getDefaultVoteCountingType());
+ result.setPollType(configuration.getDefaultPollType());
+
+ // Initialize creator of the poll
+ PollAccountDAO pollAccountDAO = getDAO(PollAccount.class);
+ PollAccount creator = newInstance(pollAccountDAO);
+
+ if (user != null) {
+
+ // Link the creator with the user
+ creator.setVotingId(user.getDisplayName());
+ creator.setEmail(user.getEmail());
+ creator.setUserAccount(user);
+ }
+ result.setCreator(creator);
+
+ return result;
+ }
+
+ /**
+ * Obtains a copy of an existing poll given his {@code pollUid}.
+ * <p/>
+ * If flag {@code clone} is setted to {@code true}, then all id will
+ * be removed (pollId, accountId, topiaId).
+ *
+ * @param pollUid the {@link Poll#getPollId()} of the poll to copy
+ * @param userAccount optional incoming user account to link to the
+ * {@link Poll#getCreator()}
+ * @param clone flag to clone or not the copy of the poll (if setted
+ * to {@code true} then all id will be removed).
+ * @return the copy of the poll
+ * @throws PollNotFoundException if poll was not found
+ */
+ protected Poll getNewPollCopy(String pollUid,
+ UserAccount userAccount,
+ boolean clone) throws PollNotFoundException {
+
+ // pollUid can not be blank
+ Preconditions.checkState(StringUtils.isNotBlank(pollUid));
+
+ // load for sure existing poll
+ Poll poll = getExistingPollByPollId(pollUid);
+
+ PollDAO pollDAO = getDAO(Poll.class);
+ Poll result = newInstance(pollDAO);
+
+ PollenBinderHelper.simpleCopy(poll, result, !clone);
+ if (clone) {
+ // reset id for clone case
+ result.setPollId(null);
+ }
+
+ // -- Creator -- //
+ PollAccount creatorLoaded = poll.getCreator();
+ PollAccountDAO pollAccountDAO = getDAO(PollAccount.class);
+ PollAccount creatorEditable = newInstance(pollAccountDAO);
+ result.setCreator(creatorEditable);
+
+ PollenBinderHelper.simpleCopy(creatorLoaded, creatorEditable, !clone);
+ if (clone) {
+ // reset id for clone case
+ creatorEditable.setAccountId(null);
+ }
+
+ if (creatorEditable.getUserAccount() == null) {
+ // use the incoming userAccount
+ creatorEditable.setUserAccount(userAccount);
+ }
+
+ // -- Choice -- //
+ Function<Choice, Choice> choiceCreator =
+ PollenServiceFunctions.newChoiceCreator(poll.getChoiceType());
+ Iterable<Choice> choices =
+ Iterables.transform(poll.getChoice(), choiceCreator);
+
+ for (Choice choiceLoaded : choices) {
+ if (clone) {
+ // reset id for clone case
+ choiceLoaded.setTopiaId(null);
+ }
+ result.addChoice(choiceLoaded);
+ }
+
+ // -- VotingList -- //
+ VotingListDAO votingListDAO = getDAO(VotingList.class);
+ PersonToListDAO personToListDAO = getDAO(PersonToList.class);
+ for (VotingList votingListLoaded : poll.getVotingList()) {
+ VotingList votingListEditable = newInstance(votingListDAO);
+ result.addVotingList(votingListEditable);
+ // Do not keep votingLists topiaId, to simplify the update will delete old votingLists and create new ones
+ PollenBinderHelper.simpleCopy(
+ votingListLoaded, votingListEditable, false);
+
+ for (PersonToList personToListLoaded : votingListLoaded.getPollAccountPersonToList()) {
+ PersonToList personToListEditable = newInstance(personToListDAO);
+ votingListEditable.addPollAccountPersonToList(personToListEditable);
+ // Do not keep personToLists topiaId, to simplify the update will delete old personToLists and create new ones
+ PollenBinderHelper.simpleCopy(
+ personToListLoaded, personToListEditable, false);
+
+ PollAccount personLoaded = personToListLoaded.getPollAccount();
+ PollAccount personEditable = newInstance(pollAccountDAO);
+ personToListEditable.setPollAccount(personEditable);
+ // copy the person, keeping topiaId is useless because we have the link with PersonToList
+ PollenBinderHelper.simpleCopy(
+ personLoaded, personEditable, false);
+ if (clone) {
+ // reset id for clone case
+ personEditable.setAccountId(null);
+ }
+ }
+ }
+
+ // -- PreventRule -- //
+ PreventRuleDAO preventRuleDAO = getDAO(PreventRule.class);
+ for (PreventRule preventRuleLoaded : poll.getPreventRule()) {
+ PreventRule preventRuleEditable = newInstance(preventRuleDAO);
+ PollenBinderHelper.simpleCopy(
+ preventRuleLoaded, preventRuleEditable, !clone);
+ result.addPreventRule(preventRuleEditable);
+ }
+
+ // Load votes to have the correct size used to check if vote is started
+ result.setVote(poll.getVote());
+
+ return result;
+ }
+
protected PollAccount copyPollAccount(PollAccount source) {
PollAccountDAO dao = getDAO(PollAccount.class);
PollAccount result = newInstance(dao);
@@ -692,7 +660,6 @@
public PollAccount getNewPollAccount(UserAccount userAccount) {
PollAccountDAO dao = getDAO(PollAccount.class);
PollAccount result = newInstance(dao);
- result.setAccountId(serviceContext.createPollenUrlId());
String votingId = userAccount != null ? userAccount.getDisplayName() : "";
result.setVotingId(votingId);
result.setUserAccount(userAccount);
@@ -861,7 +828,6 @@
} else if (choiceType == ChoiceType.DATE) {
// date choice
-
PollDateChoice dateChoice = (PollDateChoice) choice;
dateChoice.toChoice(choiceLoaded);
@@ -985,8 +951,6 @@
}
- public static final String THUMB_PREFIX = "thumb_";
-
/**
* Sauvegarde des images d'un choix de type image.
*
@@ -1008,38 +972,10 @@
createThumbnail(pollChoiceImage, pollChoiceImageThumb, 100);
}
-// public void addVoteToPoll(Poll poll, Vote vote) {
-//
-// String pollId = poll.getTopiaId();
-// String voteId = vote.getTopiaId();
-//
-// Poll pollToUpdate = getEntityById(Poll.class, pollId);
-// Vote voteToAdd = getEntityById(Vote.class, voteId);
-//
-// pollToUpdate.addVote(voteToAdd);
-//
-// // Update hasVoted flag for RESTRICTED/GROUP poll
-// if (PollType.FREE != poll.getPollType()) {
-//
-// PersonToList personToList = pollToUpdate.getPersonToListByVote(voteToAdd);
-// personToList.setHasVoted(true);
-// }
-//
-// commitTransaction("Can't add the vote [" + voteId + "] to the poll [" + pollId + "]");
-//
-// // Send notification if necessary
-// PreventRuleService preventRuleService = newService(PreventRuleService.class);
-// PollUrl pollVoteUrl = getPollVoteUrl(pollToUpdate, false);
-// PollUrl modifUrl = getPollEditUrl(pollToUpdate);
-// preventRuleService.onVoteAdded(poll, pollVoteUrl, modifUrl);
-// }
-
public PersonToList getNewPersonToList(PollAccount pollAccount) {
PersonToList result = newInstance(getDAO(PersonToList.class));
result.setWeight(1);
PollAccount pollAccount2 = newInstance(getDAO(PollAccount.class));
- String accountId = serviceContext.createPollenUrlId();
- pollAccount2.setAccountId(accountId);
result.setPollAccount(pollAccount2);
if (pollAccount != null) {
pollAccount2.setComment(pollAccount.getComment());
@@ -1050,7 +986,9 @@
return result;
}
- protected void saveVotingList(Poll poll, VotingList votingList, EmailService emailService) throws TopiaException {
+ protected void saveVotingList(Poll poll,
+ VotingList votingList,
+ EmailService emailService) throws TopiaException {
VotingListDAO votingListDAO = getDAO(VotingList.class);
PersonToListDAO personToListDAO = getDAO(PersonToList.class);
@@ -1085,21 +1023,26 @@
PersonToList personToListLoaded;
PollAccount pollAccountLoaded;
if (personToList.getTopiaId() == null) {
+
+ // creates a new PersonToList
+
personToListLoaded = create(personToListDAO);
// The model doesn't have any composition for this relation,
// the link must be set in both objects
personToListLoaded.setVotingList(result);
- // FIXME-fdesbois-2012-04-12 : find a better way to ensure accountId
+// // FIXME-fdesbois-2012-04-12 : find a better way to ensure accountId
String accountId = pollAccount.getAccountId();
- if (accountId == null) {
- accountId = serviceContext.createPollenUrlId();
- }
pollAccountLoaded = pollAccountDAO.findByAccountId(accountId);
if (pollAccountLoaded == null) {
- pollAccountLoaded = create(pollAccountDAO);
+
+ // creates a new pollAccount
+
+ pollAccountLoaded = createWithProperties(
+ pollAccountDAO,
+ PollAccount.PROPERTY_ACCOUNT_ID, generateId());
pollAccountLoaded.setAccountId(accountId);
}
@@ -1182,4 +1125,15 @@
+ thumbCopied.length() + ")");
}
}
+
+ /**
+ * Generates a unique id usable for {@link Poll#getPollId()} or
+ * {@link PollAccount#getAccountId()}.
+ *
+ * @return a fresh generated id
+ * @since 1.4
+ */
+ public String generateId() {
+ return UUID.randomUUID().toString().replaceAll("-", "");
+ }
}
Modified: trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java
===================================================================
--- trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-services/src/test/java/org/chorem/pollen/services/FakeServiceContext.java 2012-06-05 07:40:14 UTC (rev 3422)
@@ -26,8 +26,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.pollen.PollenIOUtil;
import org.chorem.pollen.PollenConfiguration;
+import org.chorem.pollen.PollenIOUtil;
import org.chorem.pollen.PollenTopiaRootContextFactory;
import org.junit.rules.TestWatcher;
import org.junit.runner.Description;
@@ -41,7 +41,6 @@
import java.util.Date;
import java.util.Locale;
import java.util.Properties;
-import java.util.UUID;
/**
* Provide an implementation of {@link PollenServiceContext} suitable for repeatable,
@@ -65,7 +64,7 @@
protected Date fakeCurrentTime;
protected File testDir;
-
+
protected URL applicationUrl;
public TopiaContext getRootContext() {
@@ -156,17 +155,7 @@
this.applicationUrl = applicationUrl;
}
- /**
- * Create an id to easily managed polls using urls.
- *
- * @return a fresh generated String
- */
@Override
- public String createPollenUrlId() {
- return UUID.randomUUID().toString().replaceAll("-", "");
- }
-
- @Override
public PollenConfiguration getConfiguration() {
Properties props = new Properties();
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/LoadPoll.java 2012-06-05 07:40:14 UTC (rev 3422)
@@ -33,9 +33,14 @@
import java.util.List;
/**
+ * Load the poll form for modification (or only read if poll is no more
+ * editable).
+ * <p/>
* Created: 04/04/12
*
* @author fdesbois <desbois(a)codelutin.com>
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.3
*/
public class LoadPoll extends AbstractPollForm {
@@ -76,11 +81,12 @@
pollChoices,
pollVotingLists,
!isVoteStarted());
+ //TODO-tchemit comment me Simplyf this!
+// if (poll.getMaxChoiceNb() > 0) {
+// setLimitChoice(true);
+// }
+ setLimitChoice(poll.getMaxChoiceNb() > 0);
- if (poll.getMaxChoiceNb() > 0) {
- setLimitChoice(true);
- }
-
PreventRule reminder = poll.getPreventRuleByScope(
PreventRuleService.SCOPE_REMINDER);
if (reminder != null) {
Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java
===================================================================
--- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java 2012-06-05 07:32:19 UTC (rev 3421)
+++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/SavePoll.java 2012-06-05 07:40:14 UTC (rev 3422)
@@ -67,7 +67,7 @@
import java.util.regex.Pattern;
/**
- * Creates a new poll.
+ * Saves the incoming poll, could be a new poll or just an update.
*
* @author tchemit <chemit(a)codelutin.com>
* @since 1.3
@@ -88,27 +88,41 @@
private static final Pattern IMAGE_CHOICE_NAME_PATTERN =
Pattern.compile("imageChoice_(\\d+)\\.name");
- /** Flag when there is some errors on the information panel. */
+ /**
+ * Flag when there is some errors on the information panel.
+ *
+ * @since 1.3
+ */
protected boolean informationsError;
- /** Flag when there is some errors on the options panel. */
+ /**
+ * Flag when there is some errors on the options panel.
+ *
+ * @since 1.3
+ */
private boolean optionsError;
/**
* All the parameters send by request used to build back choices of the
* poll.
+ *
+ * @since 1.3
*/
protected final Map<String, String[]> parameters = Maps.newTreeMap();
/**
* Indexed choices retreive from parameters for the choiceType selected in
* form. (Other choices are lost).
+ *
+ * @since 1.3
*/
private Map<Integer, Choice> choices;
/**
* Indexed voting lists retreive from parameters for the pollType selected
* in form. (Other voting lists are lost).
+ *
+ * @since 1.3
*/
private Map<Integer, VotingList> votingLists;
@@ -118,18 +132,34 @@
prepareFormPage();
String pollUid = getNonEmptyParameterValue("poll.pollId");
-
+ //TODO-tchemit comment me No ! inverse tests otherwise make possible to change owner of a poll! :(
// Retrieve userAccount to attach to the poll
- UserAccount userAccount = getPollenUserAccount();
- if (userAccount == null) {
+// UserAccount userAccount = getPollenUserAccount();
+// if (userAccount == null) {
+//
+// // from parameter userId if defined during update loading
+// String userId = getNonEmptyParameterValue("userId");
+// if (userId != null) {
+// userAccount = getPollService().getEntityById(UserAccount.class, userId);
+// }
+// }
+ String userId = getNonEmptyParameterValue("userId");
+ if (StringUtils.isBlank(userId)) {
- // from parameter userId if defined during update loading
- String userId = getNonEmptyParameterValue("userId");
- if (userId != null) {
- userAccount = getPollService().getEntityById(UserAccount.class, userId);
+ // try to take the one from current user
+ UserAccount userAccount = getPollenUserAccount();
+ if (userAccount != null) {
+ userId = userAccount.getTopiaId();
}
}
+ UserAccount userAccount = null;
+ if (StringUtils.isNotBlank(userId)) {
+ // load use account to use
+ userAccount =
+ getPollService().getEntityById(UserAccount.class, userId);
+ }
+ // get a copy (or a fresh new poll)
poll = getPollService().getPollEditable(pollUid, userAccount, false);
// If vote is started, prepare choices and votingLists is useless
@@ -155,16 +185,17 @@
choices = buildImageChoices();
break;
}
-
+ //TODO-tchemit comment me No the nullite tests is not possible : if pollType is null not possible ?
PollType pollType;
String pollTypeParam = getNonEmptyParameterValue("poll.pollType");
- if (pollTypeParam == null) {
- pollType = poll.getPollType();
+ pollType = PollType.valueOf(pollTypeParam);
+// if (pollTypeParam == null) {
+// pollType = poll.getPollType();
+//
+// } else {
+// pollType = PollType.valueOf(pollTypeParam);
+// }
- } else {
- pollType = PollType.valueOf(pollTypeParam);
- }
-
switch (pollType) {
case FREE:
@@ -198,10 +229,7 @@
Collection<VotingList> pollVotingLists =
isVoteStarted() ? poll.getVotingList() : votingLists.values();
- loadChoicesAndvotingLists(poll,
- pollChoices,
- pollVotingLists,
- true);
+ loadChoicesAndvotingLists(poll, pollChoices, pollVotingLists, true);
return INPUT;
}
@@ -220,15 +248,19 @@
// Save choices and votingLists only if vote is not started
if (!isVoteStarted()) {
-
+ //TODO-tchemit comment me 2012-06-04 A merge would be nicer but more complex to code
// Clear previous collections to save those from the form
poll.clearChoice();
poll.clearVotingList();
-
- Map<Integer, Choice> orderedChoices = choices;
-
- for (Integer index : orderedChoices.keySet()) {
- Choice choice = orderedChoices.get(index);
+ //TODO-tchemit comment me this variables, works directly on choices
+// Map<Integer, Choice> orderedChoices = choices;
+//
+// for (Integer index : orderedChoices.keySet()) {
+// Choice choice = orderedChoices.get(index);
+// poll.addChoice(choice);
+// }
+ for (Integer index : choices.keySet()) {
+ Choice choice = choices.get(index);
poll.addChoice(choice);
}
@@ -245,7 +277,7 @@
if (!isLimitChoice()) {
poll.setMaxChoiceNb(0);
}
-
+ //TODO-tchemit comment me 2012-06-04 A merge would be nicer but more complex to code
poll.clearPreventRule();
PreventRuleService preventRuleService = getPreventRuleService();
@@ -270,11 +302,13 @@
if (isEdit()) {
getPollService().updatePoll(poll);
- addFlashMessage(_("pollen.information.poll.updated", poll.getTitle()));
+ addFlashMessage(
+ _("pollen.information.poll.updated", poll.getTitle()));
} else {
getPollService().createPoll(poll);
- addFlashMessage(_("pollen.information.poll.created", poll.getTitle()));
+ addFlashMessage(
+ _("pollen.information.poll.created", poll.getTitle()));
}
// remove all stuff from session
@@ -285,9 +319,8 @@
@Override
public void addFile(int index, File file) {
- parameters.put(
- "imageChoice_" + index + ".location",
- new String[]{file.getAbsolutePath()});
+ parameters.put("imageChoice_" + index + ".location",
+ new String[]{file.getAbsolutePath()});
}
@Override
@@ -297,8 +330,7 @@
@Override
public void addFileName(int index, String fileName) {
- parameters.put("imageChoice_" + index + ".name",
- new String[]{fileName});
+ parameters.put("imageChoice_" + index + ".name", new String[]{fileName});
}
@Override
1
0
r3421 - in trunk: . pollen-persistence pollen-persistence/src pollen-persistence/src/site pollen-services pollen-services/src pollen-services/src/site pollen-ui-struts2 pollen-ui-struts2/src/site pollen-votecounting pollen-votecounting/src pollen-votecounting/src/site
by tchemit@users.chorem.org 05 Jun '12
by tchemit@users.chorem.org 05 Jun '12
05 Jun '12
Author: tchemit
Date: 2012-06-05 09:32:19 +0200 (Tue, 05 Jun 2012)
New Revision: 3421
Url: http://chorem.org/repositories/revision/pollen/3421
Log:
improve site generation
Added:
trunk/pollen-persistence/src/site/
trunk/pollen-persistence/src/site/site_en.xml
trunk/pollen-persistence/src/site/site_fr.xml
trunk/pollen-services/src/site/
trunk/pollen-services/src/site/site_en.xml
trunk/pollen-services/src/site/site_fr.xml
trunk/pollen-votecounting/src/site/
trunk/pollen-votecounting/src/site/site_en.xml
trunk/pollen-votecounting/src/site/site_fr.xml
Removed:
trunk/pollen-ui-struts2/src/site/rst/
Modified:
trunk/pollen-persistence/pom.xml
trunk/pollen-services/pom.xml
trunk/pollen-ui-struts2/pom.xml
trunk/pollen-ui-struts2/src/site/site_en.xml
trunk/pollen-ui-struts2/src/site/site_fr.xml
trunk/pollen-votecounting/pom.xml
trunk/pom.xml
Modified: trunk/pollen-persistence/pom.xml
===================================================================
--- trunk/pollen-persistence/pom.xml 2012-06-04 12:37:46 UTC (rev 3420)
+++ trunk/pollen-persistence/pom.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -140,5 +140,45 @@
</plugins>
</build>
+ <profiles>
+
+ <profile>
+ <id>reporting</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <reports>
+ <report>index</report>
+ <report>project-team</report>
+ <report>mailing-list</report>
+ <report>cim</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ <report>dependency-convergence</report>
+ <report>dependency-management</report>
+ </reports>
+ </plugin>
+ </reportPlugins>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ </profile>
+ </profiles>
+
</project>
Added: trunk/pollen-persistence/src/site/site_en.xml
===================================================================
--- trunk/pollen-persistence/src/site/site_en.xml (rev 0)
+++ trunk/pollen-persistence/src/site/site_en.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen
+
+ $Id: site_en.xml 3394 2012-05-28 15:27:04Z tchemit $
+ $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_en.x… $
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
+<project name="${project.name}">
+
+ <!--bannerLeft>
+ <src alt="Pollen">${project.url}/logo.jpg</src>
+ <name>${project.name}</name>
+ <href>index.html</href>
+ </bannerLeft-->
+
+ <body>
+
+ <breadcrumbs>
+ <item name="${project.name}" href="${project.url}/index.html"/>
+ </breadcrumbs>
+
+ <menu ref="parent"/>
+
+ <menu name="User">
+ <item name="About" href="./index.html"/>
+ </menu>
+
+ <menu name="Language">
+ <item name="Français" href="index.html"/>
+ <item name="English" href="../index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+
+ <script type="text/javascript"
+ src="http://maven-site.chorem.org/public/js/maven-site-chorem.org.js">
+ </script>
+
+ <div id='projectMetas'
+ projectversion='${project.version}'
+ platform='${project.platform}'
+ projectid='${project.projectId}'
+ scm='${project.scm.connection}'
+ scmwebeditorenabled='${project.scmwebeditorEnabled}'
+ scmwebeditorurl='${project.scmwebeditorUrl}'
+ siteSourcesType='${project.siteSourcesType}'
+ piwikEnabled='${project.piwikEnabled}'
+ piwikId='${project.piwikId}'>
+ </div>
+ </footer>
+
+ </body>
+</project>
+
Added: trunk/pollen-persistence/src/site/site_fr.xml
===================================================================
--- trunk/pollen-persistence/src/site/site_fr.xml (rev 0)
+++ trunk/pollen-persistence/src/site/site_fr.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen
+
+ $Id: site_fr.xml 3394 2012-05-28 15:27:04Z tchemit $
+ $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_fr.x… $
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
+<project name="${project.name}">
+
+ <!--bannerLeft>
+ <src alt="Pollen">${project.url}/logo.jpg</src>
+ <name>${project.name}</name>
+ <href>index.html</href>
+ </bannerLeft-->
+
+ <body>
+
+ <breadcrumbs>
+ <item name="${project.name}" href="${project.url}/index.html"/>
+ </breadcrumbs>
+
+ <menu ref="parent"/>
+
+ <menu name="Utilisateur">
+ <item name="A propos" href="./index.html"/>
+ </menu>
+
+ <menu name="Language">
+ <item name="Français" href="index.html"/>
+ <item name="English" href="../index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+
+ <script type="text/javascript"
+ src="http://maven-site.chorem.org/public/js/maven-site-chorem.org.js">
+ </script>
+
+ <div id='projectMetas'
+ projectversion='${project.version}'
+ platform='${project.platform}'
+ projectid='${project.projectId}'
+ scm='${project.scm.connection}'
+ scmwebeditorenabled='${project.scmwebeditorEnabled}'
+ scmwebeditorurl='${project.scmwebeditorUrl}'
+ siteSourcesType='${project.siteSourcesType}'
+ piwikEnabled='${project.piwikEnabled}'
+ piwikId='${project.piwikId}'>
+ </div>
+ </footer>
+
+ </body>
+
+</project>
+
Modified: trunk/pollen-services/pom.xml
===================================================================
--- trunk/pollen-services/pom.xml 2012-06-04 12:37:46 UTC (rev 3420)
+++ trunk/pollen-services/pom.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -116,5 +116,45 @@
</plugins>
</build>
+ <profiles>
+
+ <profile>
+ <id>reporting</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <reports>
+ <report>index</report>
+ <report>project-team</report>
+ <report>mailing-list</report>
+ <report>cim</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ <report>dependency-convergence</report>
+ <report>dependency-management</report>
+ </reports>
+ </plugin>
+ </reportPlugins>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ </profile>
+ </profiles>
+
</project>
Added: trunk/pollen-services/src/site/site_en.xml
===================================================================
--- trunk/pollen-services/src/site/site_en.xml (rev 0)
+++ trunk/pollen-services/src/site/site_en.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen
+
+ $Id: site_en.xml 3394 2012-05-28 15:27:04Z tchemit $
+ $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_en.x… $
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
+<project name="${project.name}">
+
+ <!--bannerLeft>
+ <src alt="Pollen">${project.url}/logo.jpg</src>
+ <name>${project.name}</name>
+ <href>index.html</href>
+ </bannerLeft-->
+
+ <body>
+
+ <breadcrumbs>
+ <item name="${project.name}" href="${project.url}/index.html"/>
+ </breadcrumbs>
+
+ <menu ref="parent"/>
+
+ <menu name="User">
+ <item name="About" href="./index.html"/>
+ </menu>
+
+ <menu name="Language">
+ <item name="Français" href="index.html"/>
+ <item name="English" href="../index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+
+ <script type="text/javascript"
+ src="http://maven-site.chorem.org/public/js/maven-site-chorem.org.js">
+ </script>
+
+ <div id='projectMetas'
+ projectversion='${project.version}'
+ platform='${project.platform}'
+ projectid='${project.projectId}'
+ scm='${project.scm.connection}'
+ scmwebeditorenabled='${project.scmwebeditorEnabled}'
+ scmwebeditorurl='${project.scmwebeditorUrl}'
+ siteSourcesType='${project.siteSourcesType}'
+ piwikEnabled='${project.piwikEnabled}'
+ piwikId='${project.piwikId}'>
+ </div>
+ </footer>
+
+ </body>
+</project>
+
Added: trunk/pollen-services/src/site/site_fr.xml
===================================================================
--- trunk/pollen-services/src/site/site_fr.xml (rev 0)
+++ trunk/pollen-services/src/site/site_fr.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen
+
+ $Id: site_fr.xml 3394 2012-05-28 15:27:04Z tchemit $
+ $HeadURL: http://svn.chorem.org/svn/pollen/trunk/pollen-ui-struts2/src/site/site_fr.x… $
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
+<project name="${project.name}">
+
+ <!--bannerLeft>
+ <src alt="Pollen">${project.url}/logo.jpg</src>
+ <name>${project.name}</name>
+ <href>index.html</href>
+ </bannerLeft-->
+
+ <body>
+
+ <breadcrumbs>
+ <item name="${project.name}" href="${project.url}/index.html"/>
+ </breadcrumbs>
+
+ <menu ref="parent"/>
+
+ <menu name="Utilisateur">
+ <item name="A propos" href="./index.html"/>
+ </menu>
+
+ <menu name="Language">
+ <item name="Français" href="index.html"/>
+ <item name="English" href="../index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+
+ <script type="text/javascript"
+ src="http://maven-site.chorem.org/public/js/maven-site-chorem.org.js">
+ </script>
+
+ <div id='projectMetas'
+ projectversion='${project.version}'
+ platform='${project.platform}'
+ projectid='${project.projectId}'
+ scm='${project.scm.connection}'
+ scmwebeditorenabled='${project.scmwebeditorEnabled}'
+ scmwebeditorurl='${project.scmwebeditorUrl}'
+ siteSourcesType='${project.siteSourcesType}'
+ piwikEnabled='${project.piwikEnabled}'
+ piwikId='${project.piwikId}'>
+ </div>
+ </footer>
+
+ </body>
+
+</project>
+
Modified: trunk/pollen-ui-struts2/pom.xml
===================================================================
--- trunk/pollen-ui-struts2/pom.xml 2012-06-04 12:37:46 UTC (rev 3420)
+++ trunk/pollen-ui-struts2/pom.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -311,7 +313,8 @@
<phase>generate-resources</phase>
<configuration>
<target>
- <mkdir dir="${basedir}/target/pollen-embedded-temp-${project.version}/WEB-INF/classes" />
+ <mkdir
+ dir="${basedir}/target/pollen-embedded-temp-${project.version}/WEB-INF/classes"/>
</target>
</configuration>
<goals>
@@ -445,6 +448,43 @@
</build>
</profile>
+ <profile>
+ <id>reporting</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <reports>
+ <report>index</report>
+ <report>project-team</report>
+ <report>mailing-list</report>
+ <report>cim</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ <report>dependency-convergence</report>
+ <report>dependency-management</report>
+ </reports>
+ </plugin>
+ </reportPlugins>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ </profile>
+
</profiles>
</project>
Modified: trunk/pollen-ui-struts2/src/site/site_en.xml
===================================================================
--- trunk/pollen-ui-struts2/src/site/site_en.xml 2012-06-04 12:37:46 UTC (rev 3420)
+++ trunk/pollen-ui-struts2/src/site/site_en.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -25,38 +25,22 @@
<project name="${project.name}">
- <bannerLeft>
+ <!--bannerLeft>
<src alt="Pollen">${project.url}/logo.jpg</src>
<name>${project.name}</name>
<href>index.html</href>
- </bannerLeft>
+ </bannerLeft-->
- <bannerRight>
- <src>http://www.codelutin.com/images/lutinorange-codelutin.png</src>
- <href>http://www.codelutin.com</href>
- </bannerRight>
-
- <custom>
- <fluidoSkin>
- <topBarEnabled>true</topBarEnabled>
- <googleSearch/>
- <sideBarEnabled>false</sideBarEnabled>
- <searchEnabled>true</searchEnabled>
- <sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
- </fluidoSkin>
- </custom>
-
<body>
<breadcrumbs>
- <item name="${project.name}" href="${project.url}"/>
+ <item name="${project.name}" href="${project.url}/index.html"/>
</breadcrumbs>
<menu ref="parent"/>
<menu name="User">
<item name="About" href="./index.html"/>
- <item name="Configuration" href="./application-config-report.html"/>
</menu>
<menu name="Language">
@@ -64,12 +48,6 @@
<item name="English" href="../index.html"/>
</menu>
- <menu name="Download">
- <item name="Download"
- href="http://www.chorem.org/projects/pollen/files"/>
- </menu>
-
-
<menu ref="reports"/>
<footer>
Modified: trunk/pollen-ui-struts2/src/site/site_fr.xml
===================================================================
--- trunk/pollen-ui-struts2/src/site/site_fr.xml 2012-06-04 12:37:46 UTC (rev 3420)
+++ trunk/pollen-ui-struts2/src/site/site_fr.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -25,38 +25,22 @@
<project name="${project.name}">
- <bannerLeft>
+ <!--bannerLeft>
<src alt="Pollen">${project.url}/logo.jpg</src>
<name>${project.name}</name>
<href>index.html</href>
- </bannerLeft>
+ </bannerLeft-->
- <bannerRight>
- <src>http://www.codelutin.com/images/lutinorange-codelutin.png</src>
- <href>http://www.codelutin.com</href>
- </bannerRight>
-
- <custom>
- <fluidoSkin>
- <topBarEnabled>true</topBarEnabled>
- <googleSearch/>
- <sideBarEnabled>false</sideBarEnabled>
- <searchEnabled>true</searchEnabled>
- <sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
- </fluidoSkin>
- </custom>
-
<body>
<breadcrumbs>
- <item name="${project.name}" href="${project.url}"/>
+ <item name="${project.name}" href="${project.url}/index.html"/>
</breadcrumbs>
<menu ref="parent"/>
<menu name="Utilisateur">
<item name="A propos" href="./index.html"/>
- <item name="Configuration" href="./application-config-report.html"/>
</menu>
<menu name="Language">
@@ -64,11 +48,6 @@
<item name="English" href="../index.html"/>
</menu>
- <menu name="Téléchargement">
- <item name="Téléchargement"
- href="http://www.chorem.org/projects/pollen/files"/>
- </menu>
-
<menu ref="reports"/>
<footer>
Modified: trunk/pollen-votecounting/pom.xml
===================================================================
--- trunk/pollen-votecounting/pom.xml 2012-06-04 12:37:46 UTC (rev 3420)
+++ trunk/pollen-votecounting/pom.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
@@ -61,4 +63,45 @@
</plugins>
</build>
+ <profiles>
+
+ <profile>
+ <id>reporting</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <reports>
+ <report>index</report>
+ <report>project-team</report>
+ <report>mailing-list</report>
+ <report>cim</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ <report>dependency-convergence</report>
+ <report>dependency-management</report>
+ </reports>
+ </plugin>
+ </reportPlugins>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ </profile>
+
+ </profiles>
+
</project>
Copied: trunk/pollen-votecounting/src/site/site_en.xml (from rev 3418, trunk/pollen-ui-struts2/src/site/site_en.xml)
===================================================================
--- trunk/pollen-votecounting/src/site/site_en.xml (rev 0)
+++ trunk/pollen-votecounting/src/site/site_en.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen
+
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
+<project name="${project.name}">
+
+ <!--bannerLeft>
+ <src alt="Pollen">${project.url}/logo.jpg</src>
+ <name>${project.name}</name>
+ <href>index.html</href>
+ </bannerLeft-->
+
+ <body>
+
+ <breadcrumbs>
+ <item name="${project.name}" href="${project.url}/index.html"/>
+ </breadcrumbs>
+
+ <menu ref="parent"/>
+
+ <menu name="User">
+ <item name="About" href="./index.html"/>
+ </menu>
+
+ <menu name="Language">
+ <item name="Français" href="index.html"/>
+ <item name="English" href="../index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+
+ <script type="text/javascript"
+ src="http://maven-site.chorem.org/public/js/maven-site-chorem.org.js">
+ </script>
+
+ <div id='projectMetas'
+ projectversion='${project.version}'
+ platform='${project.platform}'
+ projectid='${project.projectId}'
+ scm='${project.scm.connection}'
+ scmwebeditorenabled='${project.scmwebeditorEnabled}'
+ scmwebeditorurl='${project.scmwebeditorUrl}'
+ siteSourcesType='${project.siteSourcesType}'
+ piwikEnabled='${project.piwikEnabled}'
+ piwikId='${project.piwikId}'>
+ </div>
+ </footer>
+
+ </body>
+</project>
+
Copied: trunk/pollen-votecounting/src/site/site_fr.xml (from rev 3418, trunk/pollen-ui-struts2/src/site/site_fr.xml)
===================================================================
--- trunk/pollen-votecounting/src/site/site_fr.xml (rev 0)
+++ trunk/pollen-votecounting/src/site/site_fr.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ Pollen
+
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ #L%
+ -->
+
+<project name="${project.name}">
+
+ <!--bannerLeft>
+ <src alt="Pollen">${project.url}/logo.jpg</src>
+ <name>${project.name}</name>
+ <href>index.html</href>
+ </bannerLeft-->
+
+ <body>
+
+ <breadcrumbs>
+ <item name="${project.name}" href="${project.url}/index.html"/>
+ </breadcrumbs>
+
+ <menu ref="parent"/>
+
+ <menu name="Utilisateur">
+ <item name="A propos" href="./index.html"/>
+ </menu>
+
+ <menu name="Language">
+ <item name="Français" href="index.html"/>
+ <item name="English" href="../index.html"/>
+ </menu>
+
+ <menu ref="reports"/>
+
+ <footer>
+
+ <script type="text/javascript"
+ src="http://maven-site.chorem.org/public/js/maven-site-chorem.org.js">
+ </script>
+
+ <div id='projectMetas'
+ projectversion='${project.version}'
+ platform='${project.platform}'
+ projectid='${project.projectId}'
+ scm='${project.scm.connection}'
+ scmwebeditorenabled='${project.scmwebeditorEnabled}'
+ scmwebeditorurl='${project.scmwebeditorUrl}'
+ siteSourcesType='${project.siteSourcesType}'
+ piwikEnabled='${project.piwikEnabled}'
+ piwikId='${project.piwikId}'>
+ </div>
+ </footer>
+
+ </body>
+
+</project>
+
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2012-06-04 12:37:46 UTC (rev 3420)
+++ trunk/pom.xml 2012-06-05 07:32:19 UTC (rev 3421)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmine</artifactId>
- <version>3.3.2</version>
+ <version>3.3.3-SNAPSHOT</version>
</parent>
<groupId>org.chorem</groupId>
@@ -191,6 +191,7 @@
<shiroVersion>1.2.0</shiroVersion>
<slf4jVersion>1.6.4</slf4jVersion>
<jettyVersion>${jettyPluginVersion}</jettyVersion>
+ <hibernateVersion>3.6.10.Final</hibernateVersion>
<pollenI18nBundle>pollen-i18n</pollenI18nBundle>
<!-- license to use -->
@@ -222,7 +223,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
- <version>3.6.10.Final</version>
+ <version>${hibernateVersion}</version>
</dependency>
<dependency>
@@ -460,6 +461,17 @@
<version>${nuitonI18nVersion}</version>
</plugin>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils-maven-report-plugin</artifactId>
+ <version>${nuitonUtilsVersion}</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>${projectInfoReportsPluginVersion}</version>
+ </plugin>
+
</plugins>
</pluginManagement>
@@ -577,50 +589,62 @@
</property>
</activation>
- <reporting>
+ <build>
<plugins>
-
- <!--
- The Project Info Reports Plugin has twelve goals:
- see http://maven.apache.org/plugins/maven-project-info-reports-plugin
- -->
<plugin>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>${projectInfoReportsPluginVersion}</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>project-team</report>
- <report>mailing-list</report>
- <report>cim</report>
- <report>issue-tracking</report>
- <report>license</report>
- <report>scm</report>
- <report>dependency-convergence</report>
- <report>dependency-management</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <inherited>false</inherited>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils-maven-report-plugin</artifactId>
+ <reports>
+ <report>aggregate-application-config-report</report>
+ </reports>
+ <!--reportSets>
+ <reportSet>
+ <reports>
+ <report>aggregate-application-config-report</report>
+ </reports>
+ </reportSet>
+ </reportSets-->
+ <configuration>
+ <i18nBundleName>${pollenI18nBundle}</i18nBundleName>
+ </configuration>
+ </plugin>
- <plugin>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-utils-maven-report-plugin</artifactId>
- <version>${nuitonUtilsVersion}</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>aggregate-application-config-report</report>
- </reports>
- </reportSet>
- </reportSets>
- <configuration>
- <i18nBundleName>${pollenI18nBundle}</i18nBundleName>
+ <plugin>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <reports>
+ <report>project-team</report>
+ <report>mailing-list</report>
+ <report>cim</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ <report>dependency-convergence</report>
+ <report>dependency-management</report>
+ </reports>
+ </plugin>
+ </reportPlugins>
</configuration>
+ <!-- dependencies needed by application config report -->
+ <dependencies>
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <version>${h2Version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>${hibernateVersion}</version>
+ </dependency>
+ </dependencies>
</plugin>
-
</plugins>
- </reporting>
+ </build>
</profile>
1
0