Fix for Bug #4877 Email Notification sent multiple times

sometimes

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/join-vre@131020 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-08-25 13:43:58 +00:00
parent 70c456ab50
commit 41fbab1568
6 changed files with 21 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/join-vre-3.0.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<classpathentry kind="src" output="target/join-vre-3.0.1-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
@ -31,5 +31,5 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/join-vre-3.0.0-SNAPSHOT/WEB-INF/classes"/>
<classpathentry kind="output" path="target/join-vre-3.0.1-SNAPSHOT/WEB-INF/classes"/>
</classpath>

View File

@ -1,18 +1,28 @@
<ReleaseNotes>
<Changeset component="org.gcube.portlets-user.join-vre.3.0.0" date="2016-03-28">
<Changeset component="org.gcube.portlets-user.join-vre.3.0.1"
date="2016-08-25">
<Change>Fix for Bug #4877 Email Notification sent multiple times
sometimes</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.join-vre.3.0.0"
date="2016-03-28">
<Change>Ported to Liferay 6.2</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.join-vre.2.0.0"
date="2015-10-22">
<Change>Refactored to support virtual groups and related descriptions
through LR Custom Field</Change>
through LR Custom Field
</Change>
<Change>Refactored with GWT Bootstrap, new look and feel</Change>
<Change>Added support for showing external hosted VREso, see Feature #755</Change>
<Change>Added support for showing external hosted VREso, see Feature
#755
</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.join-vre.1.1.0"
date="2015-04-28">
<Change>Redesigned and restyles the way vre description is shown to
end users</Change>
end users
</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.join-vre.1.0.0"
date="2015-03-02">

View File

@ -13,7 +13,7 @@
<groupId>org.gcube.portlets.user</groupId>
<artifactId>join-vre</artifactId>
<packaging>war</packaging>
<version>3.0.0-SNAPSHOT</version>
<version>3.0.1-SNAPSHOT</version>
<name>gCube Join VRE Portlet</name>
<description>Display the available VRE to Join</description>
<scm>

View File

@ -57,6 +57,7 @@ public class AccessVREDialog extends Composite {
void confirm(ClickEvent e) {
helpBlock.setText("Registering to " + myVRE.getName() + " please wait ... ");
loading.setVisible(true);
confirmRequest.setEnabled(false);
joinService.registerUser(myVRE.getinfraScope(), myVRE.getId(), IS_INVITATION, new AsyncCallback<Boolean>() {
@Override

View File

@ -77,6 +77,7 @@ public class AccessViaInviteDialog extends Composite {
void confirm(ClickEvent e) {
helpBlock.setText("Registering to " + myVRE.getName() + " please wait ... ");
loading.setVisible(true);
confirmRequest.setEnabled(false);
joinService.registerUser(myVRE.getinfraScope(), myVRE.getId(), IS_INVITATION, new AsyncCallback<Boolean>() {
@Override

View File

@ -54,7 +54,8 @@ public class RequestMembershipDialog extends Composite {
}
@UiHandler("confirmRequest")
void confirm(ClickEvent e) {
String text = optionalText.getText();
String text = optionalText.getText();
confirmRequest.setEnabled(false);
joinService.addMembershipRequest(myVRE.getinfraScope(), text, new AsyncCallback<Void>() {
@Override
public void onSuccess(Void result) {