Re: [VOTE] Retire Apache James HUPA

2021-07-26 Thread Dongxu Wang
+1

On Mon, Jul 26, 2021 at 7:38 PM Dongxu 王东旭  wrote:

> +1
>
> ccing Manolo, thank you.
>
> On Mon, Jul 26, 2021 at 10:16 AM Rene Cordier  wrote:
>
>> +1,
>>
>> Rene.
>>
>> On 23/07/2021 16:00, btell...@apache.org wrote:
>> > Hello all,
>> >
>> > Following a first email on the topic [1] I would like to call for a
>> > formal vote on Apache James Hupa retirement.
>> >
>> > [1]
>> https://www.mail-archive.com/server-dev@james.apache.org/msg70575.html
>> >
>> > Rationnals:
>> >   - The latest release (0.3.0) dates from 2012 which is an eternity in
>> > computing.
>> >   - The latest tag on Github is 0.0.3
>> >   - The pom references 0.0.5-SNAPSHOT suggesting that 0.0.4 release is
>> > lost :-(
>> >   - This repository is crippled by multiple CVEs (quick dependabot
>> review):
>> >- CVE-2021-29425 (commons-io)
>> >- GHSA-m6cp-vxjx-65j6 CVE-2017-7656 CVE-2015-2080 CVE-2017-7657
>> > CVE-2019-10241 CVE-2019-10247 (Jetty server)
>> >- CVE-2020-9447 (gwtupload)
>> >- GHSA-g3wg-6mcf-8jj6 (jetty-webapp)
>> >- CVE-2019-17571 (log4j)
>> >- CVE-2016-131 CVE-2016-3092 (commons-fileupload)
>> >   - Sporadic activity since 2012
>> >   - Zero to no exchanges for several years on the mailing lists.
>> >
>> > Given that alternatives exists, given that the project is
>> > likely not mature, unmaintained and unsecure, I propose to retire this
>> > Apache James subproject.
>> >
>> > |Voting rules: - This is a majority vote as stated in [2] for procedural
>> > issues. - The vote starts at Friday 23rd of July 2021, 4pm UTC+7 - The
>> > vote ends at Friday 30th of July 2021, 4pm UTC+7 [2]
>> > https://www.apache.org/foundation/voting.html Following this
>> retirement,
>> > follow up steps are to be taken as described in [3] [3]
>> > https://www.mail-archive.com/server-dev@james.apache.org/msg70585.html
>> | - 1. Get a formal vote on server-dev mailing list
>> >   - 2. Place a RETIRED_PROJECT file marker in the git
>> >   - 3. Add a note in the project README
>> >   - 4. Retire the ISSUE trackers (Project names HUPA and POSTAGE)
>> >   - 5. Announce it on gene...@james.apache.org and announce@apache
>> >   - 6. Add a notice to the Apache website, if present
>> >   - 7. Remove releases from downloads.apache.org
>> >   - 8. Add notices on the Apache release archives (example
>> > https://archive.apache.org/dist/ant/antidote/ <
>> https://archive.apache.org/dist/ant/antidote/>)
>> >
>> > Best regards,
>> >
>> > Benoit Tellier
>> > ||
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
>> > For additional commands, e-mail: server-dev-h...@james.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-dev-h...@james.apache.org
>>
>>


Re: [VOTE] Retire Apache James HUPA

2021-07-26 Thread Dongxu 王东旭
+1

ccing Manolo, thank you.

On Mon, Jul 26, 2021 at 10:16 AM Rene Cordier  wrote:

> +1,
>
> Rene.
>
> On 23/07/2021 16:00, btell...@apache.org wrote:
> > Hello all,
> >
> > Following a first email on the topic [1] I would like to call for a
> > formal vote on Apache James Hupa retirement.
> >
> > [1]
> https://www.mail-archive.com/server-dev@james.apache.org/msg70575.html
> >
> > Rationnals:
> >   - The latest release (0.3.0) dates from 2012 which is an eternity in
> > computing.
> >   - The latest tag on Github is 0.0.3
> >   - The pom references 0.0.5-SNAPSHOT suggesting that 0.0.4 release is
> > lost :-(
> >   - This repository is crippled by multiple CVEs (quick dependabot
> review):
> >- CVE-2021-29425 (commons-io)
> >- GHSA-m6cp-vxjx-65j6 CVE-2017-7656 CVE-2015-2080 CVE-2017-7657
> > CVE-2019-10241 CVE-2019-10247 (Jetty server)
> >- CVE-2020-9447 (gwtupload)
> >- GHSA-g3wg-6mcf-8jj6 (jetty-webapp)
> >- CVE-2019-17571 (log4j)
> >- CVE-2016-131 CVE-2016-3092 (commons-fileupload)
> >   - Sporadic activity since 2012
> >   - Zero to no exchanges for several years on the mailing lists.
> >
> > Given that alternatives exists, given that the project is
> > likely not mature, unmaintained and unsecure, I propose to retire this
> > Apache James subproject.
> >
> > |Voting rules: - This is a majority vote as stated in [2] for procedural
> > issues. - The vote starts at Friday 23rd of July 2021, 4pm UTC+7 - The
> > vote ends at Friday 30th of July 2021, 4pm UTC+7 [2]
> > https://www.apache.org/foundation/voting.html Following this retirement,
> > follow up steps are to be taken as described in [3] [3]
> > https://www.mail-archive.com/server-dev@james.apache.org/msg70585.html
> | - 1. Get a formal vote on server-dev mailing list
> >   - 2. Place a RETIRED_PROJECT file marker in the git
> >   - 3. Add a note in the project README
> >   - 4. Retire the ISSUE trackers (Project names HUPA and POSTAGE)
> >   - 5. Announce it on gene...@james.apache.org and announce@apache
> >   - 6. Add a notice to the Apache website, if present
> >   - 7. Remove releases from downloads.apache.org
> >   - 8. Add notices on the Apache release archives (example
> > https://archive.apache.org/dist/ant/antidote/ <
> https://archive.apache.org/dist/ant/antidote/>)
> >
> > Best regards,
> >
> > Benoit Tellier
> > ||
> >
> >
> > -
> > To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> > For additional commands, e-mail: server-dev-h...@james.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> For additional commands, e-mail: server-dev-h...@james.apache.org
>
>


[james-hupa] branch trunk updated: Use HTTPS instead of HTTP to resolve dependencies

2020-02-12 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 1c0a2eb  Use HTTPS instead of HTTP to resolve dependencies
 new 6d93850  Merge pull request #1 from 
JLLeitschuh/fix/JLL/use_https_to_resolve_dependencies
1c0a2eb is described below

commit 1c0a2ebeaeb2c39e743940d8465349f8f6148365
Author: Jonathan Leitschuh 
AuthorDate: Mon Feb 10 19:05:34 2020 -0500

Use HTTPS instead of HTTP to resolve dependencies

This fixes a security vulnerability in this project where the `pom.xml`
files were configuring Maven to resolve dependencies over HTTP instead of
HTTPS.

Signed-off-by: Jonathan Leitschuh 
---
 pom.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index a65ece7..d932e3b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -335,15 +335,15 @@
 
 
 repo1
-http://repo1.maven.org/maven2/
+https://repo1.maven.org/maven2/
 
 
 JBoss repository
-http://repository.jboss.org/nexus/content/groups/public/
+
https://repository.jboss.org/nexus/content/groups/public/
 
 
sonatype
-   http://oss.sonatype.org/content/repositories/snapshots
+   https://oss.sonatype.org/content/repositories/snapshots
true
false
 


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] branch trunk updated: Change the todo to another line so that we can do there.

2018-03-05 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 6dced18  Change the todo to another line so that we can do there.
6dced18 is described below

commit 6dced18ae5da1e5ddee4f522b715cc2857741435
Author: Echo Wang <don...@apache.org>
AuthorDate: Mon Mar 5 17:58:34 2018 +0800

Change the todo to another line so that we can do there.
---
 .../main/java/org/apache/hupa/client/ui/FolderListView.java| 10 --
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java 
b/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
index 8d5b965..b3dbefa 100644
--- a/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
+++ b/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
@@ -29,10 +29,11 @@ import org.apache.hupa.client.activity.ToolBarActivity;
 import org.apache.hupa.client.place.FolderPlace;
 import org.apache.hupa.client.storage.HupaStorage;
 import org.apache.hupa.shared.domain.ImapFolder;
-
 import com.google.gwt.cell.client.AbstractCell;
 import com.google.gwt.core.client.Duration;
 import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.Scheduler;
+import com.google.gwt.core.client.Scheduler.ScheduledCommand;
 import com.google.gwt.place.shared.PlaceController;
 import com.google.gwt.query.client.Function;
 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
@@ -102,13 +103,18 @@ public class FolderListView extends Composite implements 
FolderListActivity.Disp
 msgListDisplay.refresh();
 }
 });
+//TODO not only refresh data, but highlight the folder list item. <= 
https://issues.apache.org/jira/browse/HUPA-117
+Scheduler.get().scheduleDeferred(new ScheduledCommand() {
+public void execute() {
+SelectionChangeEvent.fire(selectionModel);
+}
+});
 pagerPanel.setDisplay(cellList);
 thisView.setWidget(pagerPanel);
 }
 
 @Override
 public void refresh() {
-   //TODO not only refresh data, but highlight the folder list item. <= 
https://issues.apache.org/jira/browse/HUPA-117
 data.refresh();
 }
 

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 05/05: Refactoring README to improve the content.

2018-02-28 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit 379669b416267c43bfecc2e8f654a69b29bc2ba9
Author: Echo Wang <don...@apache.org>
AuthorDate: Thu Mar 1 11:23:28 2018 +0800

Refactoring README to improve the content.
---
 README.md | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index dd71fc2..045190a 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Hupa is a Rich IMAP-based Webmail application written in GWT.
 Hupa has been entirely written in java to be coherent with the language used 
in the James project.
 It has been a development reference using GWT good practices (MVP pattern and 
Unit testing)
 
-It is ready for reading, sending,  and managing messages and folders, but it 
still lacks of many features email clients nowadays have.
+It is ready for reading, sending, and managing messages and folders, but it 
still lacks of many features email clients nowadays have.
 
 # Bulding #
 Hupa use maven as building tool. To build hupa download maven 
(http://maven.apache.org), unpack maven and install it.
@@ -28,7 +28,7 @@ $ java -jar target/hupa-${version}.war
 Then point your browser to the url:
 http://localhost:8282
 
-If you prefer to use any other servlet container you can deploy the provided 
.war file in it.
+If you prefer to use any other servlet container you can deploy the provided 
.war file into it.
 
 # Hupa and IMAP/SMTP servers  #
 Hupa is able to discover most of the imap/smtp configuration based on the 
email domain part.
@@ -40,8 +40,8 @@ email provider servers.
 Hupa is compatible with most email providers, gmail, yahoo, hotmail, outlook, 
exchange, james, etc.
 
 # Eclipse GWT Plugin notes #
-- Hupa uses maven to be built, before inporting the project, you should have 
installed m2eclipse
-and google plugins, then go to Import -> New maven project and select the 
modules:
+- Hupa uses maven to be built, before importing the project, you should have 
installed m2eclipse
+and GWT Eclipse Plugin (3.0.0), then go to Import -> Existing Maven Projects 
and select the modules:
 shared, mock, server, widgets, client and hupa.
 
-- To run hupa in hosted mode, select: Run as -> (Google) Web application.
+- To run hupa in hosted mode, select hupa: Run As/Debug As -> GWT Development 
Mode with Jetty.

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 03/05: Use header5 for the title of doc.

2018-02-28 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit 42cf07669bac239186a5286ffd671a2a04c46932
Author: Echo Wang <don...@apache.org>
AuthorDate: Wed Feb 28 08:24:00 2018 +0800

Use header5 for the title of doc.
---
 README.md | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index ef15443..912d963 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,4 @@
-
-## Introduction ##
+# Introduction #
 Hupa is a Rich IMAP-based Webmail application written in GWT.
 
 Hupa has been entirely written in java to be coherent with the language used 
in the James project.
@@ -7,12 +6,12 @@ It has been a development reference using GWT good practices 
(MVP pattern and Un
 
 It is ready for reading, sending,  and managing messages and folders, but it 
still lacks of many features email clients nowadays have.
 
-## Bulding ##
+# Bulding #
 Hupa use maven as building tool. To build hupa download maven 
(http://maven.apache.org), unpack maven and install it.
 After that change to hupa directory and execute the following cmd:
 $ mvn clean package
 
-## Configuring server side  
+# Configuring server side  #
 Hupa uses a properties file to know the IMAP and SMTP servers configuration.
 There is an example configuration file in 
'hupa/src/main/webapp/WEB-INF/conf/config.properties'
 
@@ -31,7 +30,7 @@ http://localhost:8282
 
 If you prefer to use any other servlet container you can deploy the provided 
.war file in it.
 
-## Hupa and IMAP/SMTP servers  #
+# Hupa and IMAP/SMTP servers  #
 Hupa is able to discover most of the imap/smtp configuration based on the 
email domain part.
 When you are prompted to login, type your email address and wait few seconds, 
if you click on the
 gear button you can see the configuration discovered by Hupa, you can modify 
it if it does not match
@@ -40,7 +39,7 @@ email provider servers.
 
 Hupa is compatible with most email providers, gmail, yahoo, hotmail, outlook, 
exchange, james, etc.
 
-## Eclipse GWT Plugin notes 
+# Eclipse GWT Plugin notes #
 - Hupa uses maven to be built, before inporting the project, you shoul install 
m2eclipse
 and google plugins, then go to Import -> New maven project and select the 
modules:
 shared, mock, server, widgets, client and hupa.

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 02/05: Remove maven version since we are using maven 3.

2018-02-28 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit fdf35f14b24a4a9ef57b4637564624392a79fa08
Author: Echo Wang <don...@apache.org>
AuthorDate: Tue Feb 27 09:25:15 2018 +0800

Remove maven version since we are using maven 3.
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 9eefe36..ef15443 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ It has been a development reference using GWT good practices 
(MVP pattern and Un
 It is ready for reading, sending,  and managing messages and folders, but it 
still lacks of many features email clients nowadays have.
 
 ## Bulding ##
-Hupa use maven2 as building tool. To build hupa download maven2 
(http://maven.apache.org), unpack maven2 and install it.
+Hupa use maven as building tool. To build hupa download maven 
(http://maven.apache.org), unpack maven and install it.
 After that change to hupa directory and execute the following cmd:
 $ mvn clean package
 

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 01/05: Remove commented out content.

2018-02-28 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit 8050e548d63ea3de3304ae46293111f9fc81e8f8
Author: Echo Wang <don...@apache.org>
AuthorDate: Mon Feb 26 09:10:04 2018 +0800

Remove commented out content.
---
 .../org/apache/hupa/client/place/FolderPlace.java| 20 
 1 file changed, 20 deletions(-)

diff --git a/client/src/main/java/org/apache/hupa/client/place/FolderPlace.java 
b/client/src/main/java/org/apache/hupa/client/place/FolderPlace.java
index 540685e..cd0d9ef 100644
--- a/client/src/main/java/org/apache/hupa/client/place/FolderPlace.java
+++ b/client/src/main/java/org/apache/hupa/client/place/FolderPlace.java
@@ -47,24 +47,4 @@ public class FolderPlace extends HupaPlace {
 return place.getToken();
 }
 }
-//
-//@Override
-//public boolean equals(Object o) {
-//if (o == null)
-//return false;
-//if (o == this)
-//return true;
-//if (o.getClass() != getClass())
-//return false;
-//FolderPlace place = (FolderPlace) o;
-//return (token == place.token || (token != null && 
token.equals(place.token)));
-//}
-//
-//@Override
-//public int hashCode() {
-//final int prime = 31;
-//int result = 1;
-//result = prime * result + ((token == null) ? 0 : token.hashCode());
-//return result;
-//}
 }

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] branch trunk updated (697eda5 -> 379669b)

2018-02-28 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git.


from 697eda5  Add TODO tag for issue#HUPA-117.
 new 8050e54  Remove commented out content.
 new fdf35f1  Remove maven version since we are using maven 3.
 new 42cf076  Use header5 for the title of doc.
 new f4b8f1d  Fix typo for README.
 new 379669b  Refactoring README to improve the content.

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md  | 23 +++---
 .../org/apache/hupa/client/place/FolderPlace.java  | 20 ---
 2 files changed, 11 insertions(+), 32 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 04/05: Fix typo for README.

2018-02-28 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit f4b8f1d17e5b4f599dc03d01f0c9f45e9057782a
Author: Echo Wang <don...@apache.org>
AuthorDate: Thu Mar 1 11:15:32 2018 +0800

Fix typo for README.
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 912d963..dd71fc2 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ email provider servers.
 Hupa is compatible with most email providers, gmail, yahoo, hotmail, outlook, 
exchange, james, etc.
 
 # Eclipse GWT Plugin notes #
-- Hupa uses maven to be built, before inporting the project, you shoul install 
m2eclipse
+- Hupa uses maven to be built, before inporting the project, you should have 
installed m2eclipse
 and google plugins, then go to Import -> New maven project and select the 
modules:
 shared, mock, server, widgets, client and hupa.
 

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



james-site git commit: Update Hupa documents banner.

2018-02-26 Thread dongxu
Repository: james-site
Updated Branches:
  refs/heads/asf-site 8f1511840 -> 652615d9c


Update Hupa documents banner.


Project: http://git-wip-us.apache.org/repos/asf/james-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-site/commit/652615d9
Tree: http://git-wip-us.apache.org/repos/asf/james-site/tree/652615d9
Diff: http://git-wip-us.apache.org/repos/asf/james-site/diff/652615d9

Branch: refs/heads/asf-site
Commit: 652615d9c7c5b9ec7a8e725b89a04a5091756752
Parents: 8f15118
Author: Echo Wang 
Authored: Mon Feb 26 19:56:13 2018 +0800
Committer: Echo Wang 
Committed: Mon Feb 26 19:56:13 2018 +0800

--
 content/hupa/images/logos/asf_logo_small.png | Bin 0 -> 12945 bytes
 content/hupa/index.html  |  67 +-
 2 files changed, 27 insertions(+), 40 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/james-site/blob/652615d9/content/hupa/images/logos/asf_logo_small.png
--
diff --git a/content/hupa/images/logos/asf_logo_small.png 
b/content/hupa/images/logos/asf_logo_small.png
new file mode 100644
index 000..e8093ea
Binary files /dev/null and b/content/hupa/images/logos/asf_logo_small.png differ

http://git-wip-us.apache.org/repos/asf/james-site/blob/652615d9/content/hupa/index.html
--
diff --git a/content/hupa/index.html b/content/hupa/index.html
index 06e04fa..ce0e218 100644
--- a/content/hupa/index.html
+++ b/content/hupa/index.html
@@ -60,54 +60,41 @@
 
   
 
-  
-  
-
-
-
-  http://www.apache.org/index.html; 
id="bannerRight">
-  
-
-
-
-
-
-  
+
+
+
+
+
+http://www.apache.org/index.html; id="bannerRight">
+
+
+
+
+
+
+
 
 
-
-
-
-Last Published: 2012-06-07
-  
-Home
-|
-Server
-|
-Hupa
-|
-Protocols
-|
-IMAP
-|
-Mailets
-|
-Mailbox
+
+
+Last Published: 2018-02-26
+
+Home
 |
-Mime4J
+James
 |
-jSieve
+Mime4J
 |
-jSPF
+jSieve
 |
-jDKIM
+jSPF
 |
-MPT
+jDKIM
 |
-Postage
-  
-
-  
+Hupa
+
+
+
   
 
   


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



james-site git commit: Update XSS issues fixed information for Hupa release 0.0.3.

2018-02-26 Thread dongxu
Repository: james-site
Updated Branches:
  refs/heads/asf-site e6edcf292 -> 8f1511840


Update XSS issues fixed information for Hupa release 0.0.3.


Project: http://git-wip-us.apache.org/repos/asf/james-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-site/commit/8f151184
Tree: http://git-wip-us.apache.org/repos/asf/james-site/tree/8f151184
Diff: http://git-wip-us.apache.org/repos/asf/james-site/diff/8f151184

Branch: refs/heads/asf-site
Commit: 8f151184018c42d018352d245bcdcf6efa975207
Parents: e6edcf2
Author: Echo Wang 
Authored: Mon Feb 26 19:21:32 2018 +0800
Committer: Echo Wang 
Committed: Mon Feb 26 19:21:32 2018 +0800

--
 content/hupa/index.html | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/james-site/blob/8f151184/content/hupa/index.html
--
diff --git a/content/hupa/index.html b/content/hupa/index.html
index dd49404..06e04fa 100644
--- a/content/hupa/index.html
+++ b/content/hupa/index.html
@@ -278,7 +278,11 @@
 
 News
 2012
-Jun/2012 - Hupa 0.0.2 released
+Aug/2012 - Hupa 0.0.3 released
+
+Fixes http://svn.apache.org/viewvc?view=revision=1373762; 
target="_blank">various XSS issues CVE-2012-3536
+
+Jun/2012 - Hupa 0.0.2 
released
 
First stable version.
 


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 01/04: Add license copyright for the roundcube theme.

2018-02-25 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit 1519cf937cf3ef68f8927bad43a2b7ae37d87a0a
Author: Echo Wang <don...@apache.org>
AuthorDate: Sat Feb 24 08:31:44 2018 +0800

Add license copyright for the roundcube theme.
---
 .../src/main/java/org/apache/hupa/client/ui/README | 29 --
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/client/src/main/java/org/apache/hupa/client/ui/README 
b/client/src/main/java/org/apache/hupa/client/ui/README
index 0a344ff..5b7397a 100644
--- a/client/src/main/java/org/apache/hupa/client/ui/README
+++ b/client/src/main/java/org/apache/hupa/client/ui/README
@@ -1,2 +1,27 @@
-The majority of the theme resources in this ui package are copied from 
http://roundcube.net
-Therefore, the theme comply with https://roundcube.net/license/
\ No newline at end of file
+The majority of the theme resources in the ui package are referred from 
http://roundcube.net
+Therefore, the theme complies with https://roundcube.net/license/
+
+The original license README:
+
+ROUNDCUBE WEBMAIL DEFAULT SKIN
+==
+
+This skin package contains the current development theme of the Roundcube
+Webmail software. It can be used, modified and redistributed according to
+the terms described in the LICENSE section.
+
+For information about building or modifiying Roundcube skins please visit
+https://github.com/roundcube/roundcubemail/wiki/Skins
+
+The theme uses icons originally designed by Stephen Horlander and Kevin Gerich
+for Mozilla.org. In case of redistribution giving credit to these artwork
+creators is mandatory.
+
+
+LICENSE
+---
+The contents of this folder are subject to the Creative Commons
+Attribution-ShareAlike License. It is allowed to copy, distribute,
+transmit and to adapt the work by keeping credits to the original
+autors in the README file.
+See http://creativecommons.org/licenses/by-sa/3.0/ for details.

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 03/04: Reformat code.

2018-02-25 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit 73a8e70193b1484bb4f179bd4325d90effb99870
Author: Echo Wang <don...@apache.org>
AuthorDate: Sun Feb 25 17:59:19 2018 +0800

Reformat code.
---
 .../src/main/java/org/apache/hupa/client/ui/FolderListView.java   | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java 
b/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
index f659bef..a36c071 100644
--- a/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
+++ b/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
@@ -70,11 +70,11 @@ public class FolderListView extends Composite implements 
FolderListActivity.Disp
 }
 
 public static final ProvidesKey KEY_PROVIDER = new 
ProvidesKey() {
-  @Override
-  public Object getKey(LabelNode item) {
+@Override
+public Object getKey(LabelNode item) {
 return item == null ? null : item.getPath();
-  }
-};
+}
+};
 
 protected void onAttach() {
 super.onAttach();

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 04/04: Add TODO tag for issue#HUPA-117.

2018-02-25 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit 697eda5a53b74f09b3e4162fa03721284b062e8d
Author: Echo Wang <don...@apache.org>
AuthorDate: Sun Feb 25 18:03:45 2018 +0800

Add TODO tag for issue#HUPA-117.
---
 client/src/main/java/org/apache/hupa/client/ui/FolderListView.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java 
b/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
index a36c071..8d5b965 100644
--- a/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
+++ b/client/src/main/java/org/apache/hupa/client/ui/FolderListView.java
@@ -108,6 +108,7 @@ public class FolderListView extends Composite implements 
FolderListActivity.Disp
 
 @Override
 public void refresh() {
+   //TODO not only refresh data, but highlight the folder list item. <= 
https://issues.apache.org/jira/browse/HUPA-117
 data.refresh();
 }
 

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] 02/04: Clean code.

2018-02-25 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git

commit 8cac67181dcf18cb9b79f5653bc441fd2e2a1e76
Author: Echo Wang <don...@apache.org>
AuthorDate: Sat Feb 24 08:39:51 2018 +0800

Clean code.
---
 client/src/main/java/org/apache/hupa/client/ui/HupaLayoutable.java | 2 ++
 client/src/main/java/org/apache/hupa/client/ui/HupaPlugins.java| 3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/client/src/main/java/org/apache/hupa/client/ui/HupaLayoutable.java 
b/client/src/main/java/org/apache/hupa/client/ui/HupaLayoutable.java
index d0a921d..a8b3ded 100644
--- a/client/src/main/java/org/apache/hupa/client/ui/HupaLayoutable.java
+++ b/client/src/main/java/org/apache/hupa/client/ui/HupaLayoutable.java
@@ -24,6 +24,7 @@ import org.apache.hupa.client.place.SettingPlace;
 import com.google.gwt.user.client.ui.AcceptsOneWidget;
 
 public interface HupaLayoutable extends Layoutable {
+   
 AcceptsOneWidget getTopBarView();
 
 AcceptsOneWidget getLogoView();
@@ -49,6 +50,7 @@ public interface HupaLayoutable extends Layoutable {
 AcceptsOneWidget getNotificationView();
 
 AcceptsOneWidget getLabelListView();
+
 AcceptsOneWidget getAddressListView();
 
 AcceptsOneWidget getLabelPropertiesView();
diff --git a/client/src/main/java/org/apache/hupa/client/ui/HupaPlugins.java 
b/client/src/main/java/org/apache/hupa/client/ui/HupaPlugins.java
index 1f61b7e..32d9a71 100644
--- a/client/src/main/java/org/apache/hupa/client/ui/HupaPlugins.java
+++ b/client/src/main/java/org/apache/hupa/client/ui/HupaPlugins.java
@@ -6,7 +6,4 @@ public interface HupaPlugins {
 
 }
 
-
-
-
 }

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] branch trunk updated (586ac80 -> 697eda5)

2018-02-25 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a change to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git.


from 586ac80  Reformat, remove the blank space.
 new 1519cf9  Add license copyright for the roundcube theme.
 new 8cac671  Clean code.
 new 73a8e70  Reformat code.
 new 697eda5  Add TODO tag for issue#HUPA-117.

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../org/apache/hupa/client/ui/FolderListView.java  |  9 ---
 .../org/apache/hupa/client/ui/HupaLayoutable.java  |  2 ++
 .../org/apache/hupa/client/ui/HupaPlugins.java |  3 ---
 .../src/main/java/org/apache/hupa/client/ui/README | 29 --
 4 files changed, 34 insertions(+), 9 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Assigned] (HUPA-109) Mail Attachment does not work in HTTPS mode In internet Explorer When URL is added in trusted sites

2018-02-25 Thread Dongxu Wang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HUPA-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongxu Wang reassigned HUPA-109:


Assignee: Dongxu Wang  (was: Manuel Carrasco Moñino)

> Mail Attachment does not work in HTTPS mode  In internet Explorer When URL is 
> added in trusted sites  
> --
>
> Key: HUPA-109
> URL: https://issues.apache.org/jira/browse/HUPA-109
> Project: James Hupa
>  Issue Type: Bug
>  Components: client, server
> Environment: Windows XP/7
> Internet Explorer 8/9
>Reporter: ajay kumar
>Assignee: Dongxu Wang
>Priority: Blocker
>
> Mail Attachment does not work in HTTPS mode  In internet Explorer When URL is 
> added in trusted sites  
> Steps to Reproduce:
> ***
> 1.Browse the application in HTTPS protocol in Internet Explorer only (version 
> 8,9)
> 2.Add the browsing URL in :-> Internet Options ->Security->Trusted Sites
> 3.Now send a mail with attachment to any person .
> 4.The mail is sent but attachment is not sent.
> Note: if we do not implement point :2 (above) then it works fine.
> It also works fine in other browsers except internet explorer. 
> Can you please diagnose that this can be fixed in code & what is its cause?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Assigned] (HUPA-117) The folder item should be highlighted after refreshing the page

2018-02-25 Thread Dongxu Wang (JIRA)

 [ 
https://issues.apache.org/jira/browse/HUPA-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongxu Wang reassigned HUPA-117:


Assignee: Dongxu Wang  (was: Manuel Carrasco Moñino)

> The folder item should be highlighted after refreshing the page
> ---
>
> Key: HUPA-117
> URL: https://issues.apache.org/jira/browse/HUPA-117
> Project: James Hupa
>  Issue Type: Bug
>  Components: client
>Reporter: Echo Wang
>Assignee: Dongxu Wang
>Priority: Major
>
> The items locate in the left panel.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] branch trunk updated: Reformat, remove the blank space.

2018-02-22 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 586ac80  Reformat, remove the blank space.
586ac80 is described below

commit 586ac8020ec037d289781a0c0b32edb6150731c6
Author: Echo Wang <don...@apache.org>
AuthorDate: Fri Feb 23 15:37:28 2018 +0800

Reformat, remove the blank space.
---
 client/src/main/java/org/apache/hupa/Launcher.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/main/java/org/apache/hupa/Launcher.java 
b/client/src/main/java/org/apache/hupa/Launcher.java
index 4481a75..2101eef 100644
--- a/client/src/main/java/org/apache/hupa/Launcher.java
+++ b/client/src/main/java/org/apache/hupa/Launcher.java
@@ -32,7 +32,7 @@ import org.eclipse.jetty.webapp.WebAppContext;
 public final class Launcher {
public static void main(String[] args) throws Exception {
 
-   int port = Integer.parseInt(System.getProperty("port", "8282"));
+  int port = Integer.parseInt(System.getProperty("port", "8282"));
   String bindAddress = System.getProperty("host", "0.0.0.0");
 
   InetSocketAddress a = new InetSocketAddress(bindAddress, port);

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



james-site git commit: Update to hupa release 0.0.3 for doc.

2018-02-22 Thread dongxu
Repository: james-site
Updated Branches:
  refs/heads/asf-site d0142be60 -> e6edcf292


Update to hupa release 0.0.3 for doc.


Project: http://git-wip-us.apache.org/repos/asf/james-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-site/commit/e6edcf29
Tree: http://git-wip-us.apache.org/repos/asf/james-site/tree/e6edcf29
Diff: http://git-wip-us.apache.org/repos/asf/james-site/diff/e6edcf29

Branch: refs/heads/asf-site
Commit: e6edcf292be49cb6c8ca0bbc1b67a61d29f51968
Parents: d0142be
Author: Echo Wang 
Authored: Thu Feb 22 17:23:48 2018 +0800
Committer: Echo Wang 
Committed: Thu Feb 22 17:23:48 2018 +0800

--
 content/hupa/index.html | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/james-site/blob/e6edcf29/content/hupa/index.html
--
diff --git a/content/hupa/index.html b/content/hupa/index.html
index 950bb39..dd49404 100644
--- a/content/hupa/index.html
+++ b/content/hupa/index.html
@@ -255,17 +255,17 @@
 
 Releases
 
-Last release is Hupa 0.0.2:
-http://repo1.maven.org/maven2/org/apache/james/hupa/hupa/0.0.2/hupa-0.0.2.war;>
 binary  : ready to run or to deploy in any servlet container.
-http://repo1.maven.org/maven2/org/apache/james/hupa/hupa-parent/0.0.2/hupa-parent-0.0.2-source-release.zip;>
 sources .
+Last release is Hupa 0.0.3:
+http://central.maven.org/maven2/org/apache/james/hupa/hupa/0.0.3/hupa-0.0.3.war;>
 binary  : ready to run or to deploy in any servlet container.
+http://central.maven.org/maven2/org/apache/james/hupa/hupa-parent/0.0.3/hupa-parent-0.0.3-source-release.zip;>
 sources .
 
-
+
 
 
 Demo


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[james-hupa] branch trunk updated: Use google code archive link since google code has been deprecated.

2018-02-21 Thread dongxu
This is an automated email from the ASF dual-hosted git repository.

dongxu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/james-hupa.git


The following commit(s) were added to refs/heads/trunk by this push:
 new f56eff1  Use google code archive link since google code has been 
deprecated.
f56eff1 is described below

commit f56eff1a08670f757ee6cd2cd7faaebb1a403de1
Author: Echo Wang <don...@apache.org>
AuthorDate: Thu Feb 22 11:18:35 2018 +0800

Use google code archive link since google code has been deprecated.
---
 client/README.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/README.txt b/client/README.txt
index 415e6fb..34336fc 100644
--- a/client/README.txt
+++ b/client/README.txt
@@ -1,2 +1,2 @@
 About the com.google.gwt.gen2.event.shared.HandlerManager:
-See http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=340
+See https://code.google.com/archive/p/google-web-toolkit-incubator/issues/340

-- 
To stop receiving notification emails like this one, please contact
don...@apache.org.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



Fwd: [jira] [Updated] (INFRA-15751) Migrate james-hupa origin to git

2018-01-20 Thread dongxu
Hi Tellier,

Can you, as a PMC, help selfserving git migration for hupa. The
information might be:

Repository name: hupa
Repository description: Apache James Hupa Repo
Commit notification list: server-dev@james.apache.org
GitHub notification list: server-dev@james.apache.org



-- Forwarded message --
From: Chris Lambertus (JIRA) 
Date: Sat, Jan 13, 2018 at 2:05 AM
Subject: [jira] [Updated] (INFRA-15751) Migrate james-hupa origin to git
To: don...@apache.org



 [ 
https://issues.apache.org/jira/browse/INFRA-15751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Lambertus updated INFRA-15751:

Status: Waiting for user  (was: Waiting for Infra)

svn -> git migration is self-serve now. You can request a new repo via
https://gitbox.apache.org/setup/newrepo.html, then use svn2git to test
and tune the migration details. You will need our authors.txt file,
available at http://git-wip-us.apache.org/authors.txt



> Migrate james-hupa origin to git
> 
>
> Key: INFRA-15751
> URL: https://issues.apache.org/jira/browse/INFRA-15751
> Project: Infrastructure
>  Issue Type: Improvement
>  Components: Git, Github
>Reporter: Tellier Benoit
>
> Hi,
> Would it be possible to migrate james-hupa origin from *svn* to *git*?
> This would enhance the development process of that part of the James project, 
> had been asked by active commiters, and was accepted by the PMCs.
> Cheers,
> Benoit Tellier



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



Re: Git Repos

2018-01-01 Thread dongxu
Hi Benoit,

I will follow the issue status.
Thanks for your help.


On Tue, Jan 2, 2018 at 9:55 AM, Benoit Tellier <btell...@linagora.com> wrote:
> Hi Dong Xu,
>
> After a PMC consultation I opened this ticket:
>
> https://issues.apache.org/jira/browse/INFRA-15751
>
> Cheers,
>
> Benoit
>
> Le 20/12/2017 à 08:02, dongxu a écrit :
>> Hey Eric,
>>
>> can you please help push a request to migrate james-hupa from SVN to
>> Git https://reporeq.apache.org/
>>
>> Thanks.
>>
>> On Mon, Dec 18, 2017 at 9:03 AM, dongxu <don...@apache.org> wrote:
>>> Hi guys,
>>>
>>> Can I apply to move james-hupa to git and then continue to maintain
>>> the project?
>>>
>>> On Sun, Jul 3, 2016 at 5:17 PM, Eric Charles <e...@apache.org> wrote:
>>>>>> What about http://james.apache.org/contribute.html where we could also
>>>>>> introduce the different repositories and explain the overall
>>>>>> architecture of the James project and how we accept pull requests from
>>>>>> github.
>>>>>>
>>>>>> Any thoughts?
>>>>>
>>>>>
>>>>> The website needs a lot of love. Thank you for taking your time to go
>>>>> through all these tasks that need to be done.
>>>>>
>>>>
>>>> This can be followed on JAMES-1789 (consolidate documentation) and
>>>> INFRA-12204 (Migrate James website from svnpubsub to the git workflow)
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
>>>> For additional commands, e-mail: server-dev-h...@james.apache.org
>>>>
>>
>> -
>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-dev-h...@james.apache.org
>>
>
> -
> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> For additional commands, e-mail: server-dev-h...@james.apache.org
>

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



Re: Git Repos

2017-12-19 Thread dongxu
Hey Eric,

can you please help push a request to migrate james-hupa from SVN to
Git https://reporeq.apache.org/

Thanks.

On Mon, Dec 18, 2017 at 9:03 AM, dongxu <don...@apache.org> wrote:
> Hi guys,
>
> Can I apply to move james-hupa to git and then continue to maintain
> the project?
>
> On Sun, Jul 3, 2016 at 5:17 PM, Eric Charles <e...@apache.org> wrote:
>>>> What about http://james.apache.org/contribute.html where we could also
>>>> introduce the different repositories and explain the overall
>>>> architecture of the James project and how we accept pull requests from
>>>> github.
>>>>
>>>> Any thoughts?
>>>
>>>
>>> The website needs a lot of love. Thank you for taking your time to go
>>> through all these tasks that need to be done.
>>>
>>
>> This can be followed on JAMES-1789 (consolidate documentation) and
>> INFRA-12204 (Migrate James website from svnpubsub to the git workflow)
>>
>>
>> -
>> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-dev-h...@james.apache.org
>>

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



Re: Git Repos

2017-12-17 Thread dongxu
Hi guys,

Can I apply to move james-hupa to git and then continue to maintain
the project?

On Sun, Jul 3, 2016 at 5:17 PM, Eric Charles  wrote:
>>> What about http://james.apache.org/contribute.html where we could also
>>> introduce the different repositories and explain the overall
>>> architecture of the James project and how we accept pull requests from
>>> github.
>>>
>>> Any thoughts?
>>
>>
>> The website needs a lot of love. Thank you for taking your time to go
>> through all these tasks that need to be done.
>>
>
> This can be followed on JAMES-1789 (consolidate documentation) and
> INFRA-12204 (Migrate James website from svnpubsub to the git workflow)
>
>
> -
> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> For additional commands, e-mail: server-dev-h...@james.apache.org
>

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1818266 - /james/hupa/trunk/pom.xml

2017-12-15 Thread dongxu
Author: dongxu
Date: Fri Dec 15 10:58:43 2017
New Revision: 1818266

URL: http://svn.apache.org/viewvc?rev=1818266=rev
Log:
Remove 404 repository, add jboss repository for cobogw.

Modified:
james/hupa/trunk/pom.xml

Modified: james/hupa/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/pom.xml?rev=1818266=1818265=1818266=diff
==
--- james/hupa/trunk/pom.xml (original)
+++ james/hupa/trunk/pom.xml Fri Dec 15 10:58:43 2017
@@ -338,18 +338,8 @@
 http://repo1.maven.org/maven2/
 
 
-guice, gin, gwt-vl, gwt-incubator, gwt-dnd
-http://gwtquery-plugins.googlecode.com/svn/mavenrepo
-
-
-gwt-presenter
-GWT Presenter repository at googlecode
-http://gwt-presenter.googlecode.com/svn/maven2
-
-
-cobogw
-Cobogw repository at googlecode
-http://cobogw.googlecode.com/svn/maven2
+JBoss repository
+http://repository.jboss.org/nexus/content/groups/public/
 
 
sonatype



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1818263 - /james/hupa/trunk/README.txt

2017-12-15 Thread dongxu
Author: dongxu
Date: Fri Dec 15 10:36:21 2017
New Revision: 1818263

URL: http://svn.apache.org/viewvc?rev=1818263=rev
Log:
Remove readme.txt..

Removed:
james/hupa/trunk/README.txt


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1818262 - /james/hupa/trunk/README.md

2017-12-15 Thread dongxu
Author: dongxu
Date: Fri Dec 15 10:35:37 2017
New Revision: 1818262

URL: http://svn.apache.org/viewvc?rev=1818262=rev
Log:
Update readme from txt to md.

Added:
james/hupa/trunk/README.md

Added: james/hupa/trunk/README.md
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/README.md?rev=1818262=auto
==
--- james/hupa/trunk/README.md (added)
+++ james/hupa/trunk/README.md Fri Dec 15 10:35:37 2017
@@ -0,0 +1,48 @@
+
+## Introduction ##
+Hupa is a Rich IMAP-based Webmail application written in GWT.
+
+Hupa has been entirely written in java to be coherent with the language used 
in the James project.
+It has been a development reference using GWT good practices (MVP pattern and 
Unit testing)
+
+It is ready for reading, sending,  and managing messages and folders, but it 
still lacks of many features email clients nowadays have.
+
+## Bulding ##
+Hupa use maven2 as building tool. To build hupa download maven2 
(http://maven.apache.org), unpack maven2 and install it.
+After that change to hupa directory and execute the following cmd:
+$ mvn clean package
+
+## Configuring server side  
+Hupa uses a properties file to know the IMAP and SMTP servers configuration.
+There is an example configuration file in 
'hupa/src/main/webapp/WEB-INF/conf/config.properties'
+
+- You can set your configuration parameters in either of these files:
+  $HOME/.hupa/config.properties
+  /etc/default/hupa
+- Or in any other file if you start your application server with the parameter:
+  -Dhupa.config.file=full_path_to_your_properties_file
+
+# Running Hupa #
+Hupa comes packaged with a servlet-container, so once you have compiled the 
app just run:
+$ java -jar target/hupa-${version}.war
+
+Then point your browser to the url:
+http://localhost:8282
+
+If you prefer to use any other servlet container you can deploy the provided 
.war file in it.
+
+## Hupa and IMAP/SMTP servers  #
+Hupa is able to discover most of the imap/smtp configuration based on the 
email domain part.
+When you are prompted to login, type your email address and wait few seconds, 
if you click on the
+gear button you can see the configuration discovered by Hupa, you can modify 
it if it does not match
+your email provider configuration. Then type your inbox password and you will 
be logged into your
+email provider servers.
+
+Hupa is compatible with most email providers, gmail, yahoo, hotmail, outlook, 
exchange, james, etc.
+
+## Eclipse GWT Plugin notes 
+- Hupa uses maven to be built, before inporting the project, you shoul install 
m2eclipse
+and google plugins, then go to Import -> New maven project and select the 
modules:
+shared, mock, server, widgets, client and hupa.
+
+- To run hupa in hosted mode, select: Run as -> (Google) Web application.



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1802007 - in /james/hupa/trunk: ./ client/pom.xml hupa/pom.xml pom.xml

2017-07-15 Thread dongxu
Author: dongxu
Date: Sat Jul 15 09:36:19 2017
New Revision: 1802007

URL: http://svn.apache.org/viewvc?rev=1802007=rev
Log:
Downgrade dnd and cobogw version since which cannot be found in the central 
maven repository.

Modified:
james/hupa/trunk/   (props changed)
james/hupa/trunk/client/pom.xml
james/hupa/trunk/hupa/pom.xml
james/hupa/trunk/pom.xml

Propchange: james/hupa/trunk/
--
--- svn:ignore (original)
+++ svn:ignore Sat Jul 15 09:36:19 2017
@@ -1,6 +1,4 @@
 target
-tomcat
-www-test
-.*
-war
-coverage.ec
+.settings
+.project
+MANIFEST.MF

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1802007=1802006=1802007=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Sat Jul 15 09:36:19 2017
@@ -72,7 +72,7 @@
 cobogw
 
 
-com.google.code.gwt-dnd
+com.allen-sauer.gwt.dnd
 gwt-dnd
 
 

Modified: james/hupa/trunk/hupa/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/hupa/pom.xml?rev=1802007=1802006=1802007=diff
==
--- james/hupa/trunk/hupa/pom.xml (original)
+++ james/hupa/trunk/hupa/pom.xml Sat Jul 15 09:36:19 2017
@@ -84,7 +84,7 @@
 cobogw
 
 
-com.google.code.gwt-dnd
+com.allen-sauer.gwt.dnd
 gwt-dnd
 
 

Modified: james/hupa/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/pom.xml?rev=1802007=1802006=1802007=diff
==
--- james/hupa/trunk/pom.xml (original)
+++ james/hupa/trunk/pom.xml Sat Jul 15 09:36:19 2017
@@ -162,7 +162,7 @@
 
 org.cobogw.gwt
 cobogw
-1.3.2
+1.2.5
 provided
 
 
@@ -202,14 +202,14 @@
 
 com.google.gwt
 gwt-incubator
-20101117-r1766
+2.0.1
 
 
 
 
-com.google.code.gwt-dnd
+com.allen-sauer.gwt.dnd
 gwt-dnd
-3.1.1
+3.1.2
 provided
 
 



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1801935 - /james/hupa/trunk/README.txt

2017-07-14 Thread dongxu
Author: dongxu
Date: Fri Jul 14 10:59:14 2017
New Revision: 1801935

URL: http://svn.apache.org/viewvc?rev=1801935=rev
Log:
Update doc and ping the repository.

Modified:
james/hupa/trunk/README.txt

Modified: james/hupa/trunk/README.txt
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/README.txt?rev=1801935=1801934=1801935=diff
==
--- james/hupa/trunk/README.txt (original)
+++ james/hupa/trunk/README.txt Fri Jul 14 10:59:14 2017
@@ -8,7 +8,7 @@ It has been a development reference usin
 It is ready for reading, sending,  and managing messages and folders, but it 
still lacks of many features email clients nowadays have.
 
 ## Bulding ##
-Hupa use maven2 as build tool. To build hupa download maven2 
(http://maven.apache.org), unpack maven2 and install it.
+Hupa use maven2 as building tool. To build hupa download maven2 
(http://maven.apache.org), unpack maven2 and install it.
 After that change to hupa directory and execute the following cmd:
 $ mvn clean package
 



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Created] (HUPA-111) Using gwt-polymer-elements for theme

2015-11-13 Thread dongxu (JIRA)
dongxu created HUPA-111:
---

 Summary: Using gwt-polymer-elements for theme
 Key: HUPA-111
 URL: https://issues.apache.org/jira/browse/HUPA-111
 Project: James Hupa
  Issue Type: Improvement
Reporter: dongxu
Assignee: dongxu
Priority: Minor


Replace the current theme by polymer-elements



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1684702 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java

2015-06-10 Thread dongxu
Author: dongxu
Date: Wed Jun 10 16:19:15 2015
New Revision: 1684702

URL: http://svn.apache.org/r1684702
Log:
HUPA-110 message select event should take place when user refreshing some 
message detail.

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java?rev=1684702r1=1684701r2=1684702view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
 Wed Jun 10 16:19:15 2015
@@ -133,7 +133,7 @@ public class MessageListActivity extends
 }));
 }
 
-protected void onMessageSelected(Message message) {
+public void onMessageSelected(Message message) {
 antiSelectMessages(display.getGrid().getVisibleItems());
 GetMessageDetailsRequest req = rf.messageDetailsRequest();
 GetMessageDetailsAction action = 
req.create(GetMessageDetailsAction.class);
@@ -242,6 +242,7 @@ public class MessageListActivity extends
 int l = messages.size();
 for (int i = 0; i  l; i++){
 Message m = messages.get(i);
+
MessageListActivity.this.onMessageSelected(m);//FIXME for fixing 
https://issues.apache.org/jira/browse/HUPA-110
 if (m.getUid() == 
event.messageDetails.getUid()) {
 ListIMAPFlag flags = m.getFlags();
 if (!flags.contains(IMAPFlag.SEEN)) {



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Resolved] (HUPA-110) All tool buttons are disabled when refreshing some message page.

2015-06-10 Thread dongxu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HUPA-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dongxu resolved HUPA-110.
-
   Resolution: Fixed
Fix Version/s: 0.1

 All tool buttons are disabled when refreshing some message page.
 

 Key: HUPA-110
 URL: https://issues.apache.org/jira/browse/HUPA-110
 Project: James Hupa
  Issue Type: Bug
  Components: client
Affects Versions: 0.1
Reporter: dongxu
Assignee: dongxu
 Fix For: 0.1


 When refreshing on some message page, like :
 http://127.0.0.1:/hupa/Hupa.html#message:INBOX:15205
 Even though the tool buttons are active style, but actually they are not 
 clickable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Created] (HUPA-110) All tool buttons are disabled when refreshing some message page.

2015-06-09 Thread dongxu (JIRA)
dongxu created HUPA-110:
---

 Summary: All tool buttons are disabled when refreshing some 
message page.
 Key: HUPA-110
 URL: https://issues.apache.org/jira/browse/HUPA-110
 Project: James Hupa
  Issue Type: Bug
  Components: client
Affects Versions: 0.1
Reporter: dongxu
Assignee: dongxu


When refreshing on some message page, like :
http://127.0.0.1:/hupa/Hupa.html#message:INBOX:15205

Even though the tool buttons are active style, but actually they are not 
clickable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1684470 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui: ToolBarView.java ToolBarView.ui.xml

2015-06-09 Thread dongxu
Author: dongxu
Date: Tue Jun  9 16:28:51 2015
New Revision: 1684470

URL: http://svn.apache.org/r1684470
Log:
fix the UiHandlers with enable and disable rather than the event registration.

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.ui.xml

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java?rev=1684470r1=1684469r2=1684470view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ToolBarView.java
 Tue Jun  9 16:28:51 2015
@@ -29,10 +29,8 @@ import org.apache.hupa.shared.events.Sho
 
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.event.dom.client.ClickEvent;
-import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.event.dom.client.HasClickHandlers;
 import com.google.gwt.event.shared.EventBus;
-import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.place.shared.PlaceController;
 import com.google.gwt.resources.client.CssResource;
 import com.google.gwt.uibinder.client.UiBinder;
@@ -44,12 +42,13 @@ import com.google.gwt.user.client.ui.Dec
 import com.google.gwt.user.client.ui.FlowPanel;
 import com.google.gwt.user.client.ui.HTMLPanel;
 import com.google.gwt.user.client.ui.PopupPanel;
+import com.google.gwt.user.client.ui.UIObject;
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
 
 public class ToolBarView extends Composite implements 
ToolBarActivity.Displayable {
-
+   
 @Inject private PlaceController placeController;
 @Inject private EventBus eventBus;
 
@@ -68,18 +67,6 @@ public class ToolBarView extends Composi
 @UiField public HTMLPanel replyAllTip;
 @UiField public HTMLPanel forwardTip;
 
-
-// FIXME:  The handlers management in this view is awful.
-// It should use @UiHandlers with a enable/disble property.
-
-// Absolutely!!!
-
-HandlerRegistration deleteReg;
-HandlerRegistration markReg;
-HandlerRegistration replyReg;
-HandlerRegistration replyAllReg;
-HandlerRegistration forwardReg;
-
 @UiField public Style style;
 
 public interface Style extends CssResource {
@@ -182,61 +169,59 @@ public class ToolBarView extends Composi
 }
 
 @UiHandler(compose)
-public void handleClick(ClickEvent e) {
+public void handleCompose(ClickEvent e) {
 placeController.goTo(new ComposePlace(new).with(parameters));
 }
-
-private ClickHandler forwardHandler = new ClickHandler() {
-
-@Override
-public void onClick(ClickEvent event) {
+
+@UiHandler(forward)
+public void handleForward(ClickEvent e) {
+   if(isEnabled(forward)){
 placeController.goTo(new ComposePlace(forward).with(parameters));
-}
-
-};
-private ClickHandler replyAllHandler = new ClickHandler() {
-
-@Override
-public void onClick(ClickEvent event) {
-placeController.goTo(new 
ComposePlace(replyAll).with(parameters));
-}
-
-};
-private ClickHandler replyHandler = new ClickHandler() {
-
-@Override
-public void onClick(ClickEvent event) {
-placeController.goTo(new ComposePlace(reply).with(parameters));
-}
-
-};
-private ClickHandler deleteHandler = new ClickHandler() {
-
-@Override
-public void onClick(ClickEvent event) {
-eventBus.fireEvent(new DeleteClickEvent());
-}
-};
-
-private ClickHandler markHandler = new ClickHandler() {
-public void onClick(ClickEvent event) {
-// Reposition the popup relative to the button
-Widget source = (Widget) event.getSource();
-int left = source.getAbsoluteLeft();
-int top = source.getAbsoluteTop() + source.getOffsetHeight();
-simplePopup.setPopupPosition(left, top);
-simplePopup.show();
-}
-};
-
-private ClickHandler rawHandler = new ClickHandler() {
-@Override
-public void onClick(ClickEvent event) {
-eventBus.fireEvent(new ShowRawEvent());
-}
-};
-
-private HandlerRegistration rawReg;
+   }
+}
+
+@UiHandler(replyAll)
+public void handleReplyAll(ClickEvent e) {
+   if(isEnabled(replyAll)){
+   placeController.goTo(new 
ComposePlace(replyAll).with(parameters));
+   }
+}
+
+@UiHandler(reply)
+public void handleReply(ClickEvent e) {
+   if(isEnabled(reply)){
+   placeController.goTo(new 
ComposePlace(reply

svn commit: r1683771 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README

2015-06-05 Thread dongxu
Author: dongxu
Date: Fri Jun  5 14:44:07 2015
New Revision: 1683771

URL: http://svn.apache.org/r1683771
Log:
add ui skin's license information.

Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README?rev=1683771r1=1683770r2=1683771view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README Fri 
Jun  5 14:44:07 2015
@@ -1 +1,2 @@
-Lots of theme resources in this package are borrowed from http://roundcube.net
\ No newline at end of file
+The majority of the theme resources in this ui package are copied from 
http://roundcube.net
+Therefore, the theme comply with https://roundcube.net/license/
\ No newline at end of file



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1683766 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java

2015-06-05 Thread dongxu
Author: dongxu
Date: Fri Jun  5 14:34:03 2015
New Revision: 1683766

URL: http://svn.apache.org/r1683766
Log:
remove warnings at _ToolPanel

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java?rev=1683766r1=1683765r2=1683766view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageListActivity.java
 Fri Jun  5 14:34:03 2015
@@ -19,8 +19,6 @@
 
 package org.apache.hupa.client.activity;
 
-import static com.google.gwt.query.client.GQuery.console;
-
 import java.util.Collection;
 import java.util.LinkedHashSet;
 import java.util.List;



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1683575 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ComposeActivity.java

2015-06-04 Thread dongxu
Author: dongxu
Date: Thu Jun  4 15:22:08 2015
New Revision: 1683575

URL: http://svn.apache.org/r1683575
Log:
it will redirect the inbox rather than nullpointerexception.

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ComposeActivity.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ComposeActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ComposeActivity.java?rev=1683575r1=1683574r2=1683575view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ComposeActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ComposeActivity.java
 Thu Jun  4 15:22:08 2015
@@ -395,8 +395,6 @@ public class ComposeActivity extends App
 }
 });
 } else if (forward.equals(place.getToken())) {
-// FIXME will get a NullPointerException given accessing
-// directly from some URL like #/compose:forward
 SendForwardMessageRequest req = rf.sendForwardMessageRequest();
 SendForwardMessageAction action = 
req.create(SendForwardMessageAction.class);
 action.setReferences(oldDetails.getReferences());



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1683571 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation: EmailListValidator.java NotEmptyValidator.java

2015-06-04 Thread dongxu
Author: dongxu
Date: Thu Jun  4 15:06:12 2015
New Revision: 1683571

URL: http://svn.apache.org/r1683571
Log:
remove some warnings using the suppress warnings.

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/EmailListValidator.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/NotEmptyValidator.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/EmailListValidator.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/EmailListValidator.java?rev=1683571r1=1683570r2=1683571view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/EmailListValidator.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/EmailListValidator.java
 Thu Jun  4 15:06:12 2015
@@ -40,7 +40,8 @@ public class EmailListValidator extends
 this.text = text;
 }
 
-@Override
+@SuppressWarnings(unchecked)
+   @Override
 public void invokeActions(ValidationResult result) {
 for (ValidationActionHasText action : getFailureActions())
 action.invoke(result, text);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/NotEmptyValidator.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/NotEmptyValidator.java?rev=1683571r1=1683570r2=1683571view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/NotEmptyValidator.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/NotEmptyValidator.java
 Thu Jun  4 15:06:12 2015
@@ -38,7 +38,8 @@ public class NotEmptyValidator extends V
 public NotEmptyValidator(HasText text) {
 this.text = text;
 }
-@Override
+@SuppressWarnings(unchecked)
+   @Override
 public void invokeActions(ValidationResult result) {
 for (ValidationActionHasText action : getFailureActions())
 action.invoke(result, text);



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1683360 - in /james/hupa/trunk: client/src/test/java/org/apache/hupa/client/mock/ mock/src/main/java/org/apache/hupa/server/guice/ mock/src/main/java/org/apache/hupa/server/mock/ server/s

2015-06-03 Thread dongxu
Author: dongxu
Date: Wed Jun  3 15:07:09 2015
New Revision: 1683360

URL: http://svn.apache.org/r1683360
Log:
remove some warnings for the source code.

Modified:

james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java

james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java

james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java

james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/GetMessageDetailsServiceImpl.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/integration/StoreBugTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/TestUtils.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/ColorPicker.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/Editor.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/editor/FontPicker.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/MultiValueSuggestArea.java

Modified: 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java?rev=1683360r1=1683359r2=1683360view=diff
==
--- 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java
 (original)
+++ 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockMessageSendDisplay.java
 Wed Jun  3 15:07:09 2015
@@ -27,7 +27,6 @@ import org.apache.hupa.widgets.ui.HasEna
 
 import com.google.gwt.event.dom.client.HasClickHandlers;
 import com.google.gwt.event.dom.client.HasFocusHandlers;
-import com.google.gwt.user.client.TakesValue;
 import com.google.gwt.user.client.ui.Focusable;
 import com.google.gwt.user.client.ui.HasHTML;
 import com.google.gwt.user.client.ui.HasText;

Modified: 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java?rev=1683360r1=1683359r2=1683360view=diff
==
--- 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java
 (original)
+++ 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/guice/AbstractGuiceTestModule.java
 Wed Jun  3 15:07:09 2015
@@ -75,7 +75,8 @@ import com.google.inject.name.Named;
  */
 public abstract class AbstractGuiceTestModule extends AbstractModule{
 
-protected static class TestUser extends UserImpl {
+@SuppressWarnings(serial)
+   protected static class TestUser extends UserImpl {
 
 @Inject
 public TestUser(@Named(Username) String username,

Modified: 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java?rev=1683360r1=1683359r2=1683360view=diff
==
--- 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java
 (original)
+++ 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockConstants.java
 Wed Jun  3 15:07:09 2015
@@ -33,7 +33,8 @@ public class MockConstants {
 
 public static String SESSION_ID = MockID;
 
-public final static Settings mockSettings = new SettingsImpl() {
+@SuppressWarnings(serial)
+   public final static Settings mockSettings = new SettingsImpl() {
 {
 setInboxFolderName(MockIMAPStore.MOCK_INBOX_FOLDER);
 setSentFolderName(MockIMAPStore.MOCK_SENT_FOLDER);
@@ -69,7 +70,8 @@ public class MockConstants {
 }
 };
 
-public final static User mockUser = new UserImpl() {
+@SuppressWarnings(serial)
+   public final static User mockUser = new UserImpl() {
 {
 setName(MockIMAPStore.MOCK_LOGIN);
 setPassword(MockIMAPStore.MOCK_LOGIN);

Modified: 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java?rev=1683360r1=1683359r2=1683360view=diff
==
--- 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java
 (original)
+++ 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockHttpSession.java
 Wed Jun  3 15:07:09 2015
@@ -50,7 +50,7 @@ public class MockHttpSession

Re: svn commit: r1660222 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/public/Hupa-sd.html hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml

2015-02-22 Thread dongxu
It is working. Thank you @manolo.
By the way, Eclipse can be for Java Luna and I have to add the -Xmx1024m to
the VM args, otherwise console would complain:

Compiling 1 permutation
  Compiling permutation 0...
  [ERROR] OutOfMemoryError: Increase heap size or lower
gwt.jjs.maxThreads
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.resize(HashMap.java:559)
at java.util.HashMap.addEntry(HashMap.java:851)
at java.util.HashMap.put(HashMap.java:484)
at com.google.gwt.dev.jjs.impl.JsFunctionClusterer.updateSourceInfoMap(
JsFunctionClusterer.java:234)
at com.google.gwt.dev.jjs.impl.JsAbstractTextTransformer.
recomputeJsAndStatementRanges(JsAbstractTextTransformer.java:132)
at com.google.gwt.dev.jjs.impl.JsFunctionClusterer.exec(
JsFunctionClusterer.java:154)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.
generateJavaScriptCode(JavaToJavaScriptCompiler.java:1169)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(
JavaToJavaScriptCompiler.java:506)
at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(
UnifiedAst.java:134)
at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:195)
at com.google.gwt.dev.ThreadedPermutationWorkerFacto
ry$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFacto
ry.java:49)
at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(
PermutationWorkerFactory.java:73)
at java.lang.Thread.run(Thread.java:722)
 [ERROR] Out of memory; to increase the amount of memory, use the
-Xmx flag at startup (java -Xmx128M ...)
  [ERROR] Unrecoverable exception, shutting down
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at com.google.gwt.dev.ThreadedPermutationWorkerFacto
ry$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFacto
ry.java:56)
at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(
PermutationWorkerFactory.java:73)
at java.lang.Thread.run(Thread.java:722)
  [ERROR] Not all permutation were compiled , completed (0/1)

On Tue, Feb 17, 2015 at 8:58 PM, Manuel Carrasco Moñino man...@apache.org
wrote:

 with all the changes we did to GWT DevMode and Google plugin in last
 releases, it should be very easy.

 Just install Eclipse for JEE (preferably Luna), install GPE (google
 eclipse plugin), import Hupa (using the import existing maven projects
 wizard), then select 'hupa' project (note that it's not hupa-client) and
 under the 'Run as' menu you should have a 'super dev mode' item.

 Since we ar using RF, you should setup the RF annotation processing for
 the hupa project, otherwise you will get RF obfuscate exceptions.

 - Manolo


 On Tue, Feb 17, 2015 at 11:03 AM, dongxu don...@apache.org wrote:

 Hi Manolo,
 Is Hupa working under SuperDevMode now? If so, could you help list the
 shortcut step on how to run hupa in SuperDevMode. Since I was trying to
 make it run but failed.

 Thanks a lot.

 On Tue, Feb 17, 2015 at 6:07 AM, man...@apache.org wrote:

 Author: manolo
 Date: Mon Feb 16 22:07:11 2015
 New Revision: 1660222

 URL: http://svn.apache.org/r1660222
 Log:
 Latest GWT use SD by default, linker must be xsiframe

 Removed:

 james/hupa/trunk/client/src/main/java/org/apache/hupa/public/Hupa-sd.html
 Modified:
 james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml

 Modified:
 james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml
 URL:
 http://svn.apache.org/viewvc/james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml?rev=1660222r1=1660221r2=1660222view=diff

 ==
 --- james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml
 (original)
 +++ james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml
 Mon Feb 16 22:07:11 2015
 @@ -29,9 +29,12 @@
set-configuration-property name=locale.useragent value=Y/

!-- Compile for all browsers --
 -  set-property name=user.agent value=gecko1_8,safari,ie9/
 +  set-property name=user.agent value=gecko1_8,safari,ie9,ie10/
 +  add-linker name=xsiframe/

set-configuration-property name=CssResource.style value=obf/

entry-point class='org.apache.hupa.client.Hupa'/
 +
 +  collapse-all-properties /
  /module



 -
 To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
 For additional commands, e-mail: server-dev-h...@james.apache.org






Re: svn commit: r1660222 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/public/Hupa-sd.html hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml

2015-02-17 Thread dongxu
Hi Manolo,
Is Hupa working under SuperDevMode now? If so, could you help list the
shortcut step on how to run hupa in SuperDevMode. Since I was trying to
make it run but failed.

Thanks a lot.

On Tue, Feb 17, 2015 at 6:07 AM, man...@apache.org wrote:

 Author: manolo
 Date: Mon Feb 16 22:07:11 2015
 New Revision: 1660222

 URL: http://svn.apache.org/r1660222
 Log:
 Latest GWT use SD by default, linker must be xsiframe

 Removed:

 james/hupa/trunk/client/src/main/java/org/apache/hupa/public/Hupa-sd.html
 Modified:
 james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml

 Modified:
 james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml
 URL:
 http://svn.apache.org/viewvc/james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml?rev=1660222r1=1660221r2=1660222view=diff

 ==
 --- james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml
 (original)
 +++ james/hupa/trunk/hupa/src/main/java/org/apache/hupa/HupaProd.gwt.xml
 Mon Feb 16 22:07:11 2015
 @@ -29,9 +29,12 @@
set-configuration-property name=locale.useragent value=Y/

!-- Compile for all browsers --
 -  set-property name=user.agent value=gecko1_8,safari,ie9/
 +  set-property name=user.agent value=gecko1_8,safari,ie9,ie10/
 +  add-linker name=xsiframe/

set-configuration-property name=CssResource.style value=obf/

entry-point class='org.apache.hupa.client.Hupa'/
 +
 +  collapse-all-properties /
  /module



 -
 To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
 For additional commands, e-mail: server-dev-h...@james.apache.org




svn commit: r1637049 - /james/hupa/trunk/emma.test.txt

2014-11-05 Thread dongxu
Author: dongxu
Date: Thu Nov  6 07:46:38 2014
New Revision: 1637049

URL: http://svn.apache.org/r1637049
Log:
remove the test file from emma

Removed:
james/hupa/trunk/emma.test.txt


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1636808 - /james/hupa/trunk/README.txt

2014-11-04 Thread dongxu
Author: dongxu
Date: Wed Nov  5 07:22:26 2014
New Revision: 1636808

URL: http://svn.apache.org/r1636808
Log:
typo

Modified:
james/hupa/trunk/README.txt

Modified: james/hupa/trunk/README.txt
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/README.txt?rev=1636808r1=1636807r2=1636808view=diff
==
--- james/hupa/trunk/README.txt (original)
+++ james/hupa/trunk/README.txt Wed Nov  5 07:22:26 2014
@@ -1,6 +1,6 @@
 
 ## Introduction ##
-Hupa is an Rich IMAP-based Webmail application written in GWT.
+Hupa is a Rich IMAP-based Webmail application written in GWT.
 
 Hupa has been entirely written in java to be coherent with the language used 
in the James project.
 It has been a development reference using GWT good practices (MVP pattern and 
Unit testing)



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1613760 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ ui/

2014-07-27 Thread dongxu
Author: dongxu
Date: Sun Jul 27 07:47:50 2014
New Revision: 1613760

URL: http://svn.apache.org/r1613760
Log:
scrub code

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ContactsListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LabelListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopBarActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AddressListView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageContentView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageListView.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ContactsListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ContactsListActivity.java?rev=1613760r1=1613759r2=1613760view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ContactsListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/ContactsListActivity.java
 Sun Jul 27 07:47:50 2014
@@ -46,8 +46,6 @@ public class ContactsListActivity extend
 
 @Inject private HupaController hupaController;
 @Inject private Displayable display;
-@Inject private LabelPropertiesActivity.Displayable labelProperties;
-
 
 @Override
 public void start(AcceptsOneWidget container, EventBus eventBus) {

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LabelListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LabelListActivity.java?rev=1613760r1=1613759r2=1613760view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LabelListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LabelListActivity.java
 Sun Jul 27 07:47:50 2014
@@ -46,8 +46,6 @@ public class LabelListActivity extends A
 
 @Inject private HupaController hupaController;
 @Inject private Displayable display;
-@Inject private LabelPropertiesActivity.Displayable labelProperties;
-
 
 @Override
 public void start(AcceptsOneWidget container, EventBus eventBus) {

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopBarActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopBarActivity.java?rev=1613760r1=1613759r2=1613760view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopBarActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopBarActivity.java
 Sun Jul 27 07:47:50 2014
@@ -20,9 +20,7 @@
 package org.apache.hupa.client.activity;
 
 import org.apache.hupa.client.HupaController;
-import org.apache.hupa.client.place.DefaultPlace;
 import org.apache.hupa.client.rf.LogoutUserRequest;
-import org.apache.hupa.client.ui.LoginLayoutable;
 import org.apache.hupa.shared.domain.LogoutUserResult;
 import org.apache.hupa.shared.events.LogoutEvent;
 
@@ -31,12 +29,10 @@ import com.google.gwt.event.dom.client.C
 import com.google.gwt.event.dom.client.HasClickHandlers;
 import com.google.gwt.event.shared.EventBus;
 import com.google.gwt.uibinder.client.UiField;
-import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.ui.AcceptsOneWidget;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.HTMLPanel;
 import com.google.gwt.user.client.ui.IsWidget;
-import com.google.gwt.user.client.ui.RootLayoutPanel;
 import com.google.inject.Inject;
 import com.google.web.bindery.requestfactory.shared.Receiver;
 import com.google.web.bindery.requestfactory.shared.ServerFailure;
@@ -44,7 +40,6 @@ import com.google.web.bindery.requestfac
 public class TopBarActivity extends AppBaseActivity {
 
 @Inject private Displayable display;
-@Inject private LoginLayoutable loginLayout;
 
 @UiField protected HTMLPanel userLabel;
 

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AddressListView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AddressListView.java?rev=1613760r1=1613759r2=1613760view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AddressListView.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AddressListView.java
 Sun Jul 27 07:47:50 2014
@@ -21,8 +21,6 @@ package

svn commit: r1595968 - /james/hupa/trunk/pom.xml

2014-05-19 Thread dongxu
Author: dongxu
Date: Mon May 19 17:31:16 2014
New Revision: 1595968

URL: http://svn.apache.org/r1595968
Log:
upgrade gwt to the latest 2.6.1

Modified:
james/hupa/trunk/pom.xml

Modified: james/hupa/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/pom.xml?rev=1595968r1=1595967r2=1595968view=diff
==
--- james/hupa/trunk/pom.xml (original)
+++ james/hupa/trunk/pom.xml Mon May 19 17:31:16 2014
@@ -57,8 +57,8 @@
 /site
 /distributionManagement
 properties
-gwtVersion2.6.0/gwtVersion
-gwtMavenVersion2.6.0/gwtMavenVersion
+gwtVersion2.6.1/gwtVersion
+gwtMavenVersion2.6.1/gwtMavenVersion
 gwt.moduleSuffix /
 gwt.logLevelINFO/gwt.logLevel
 jettyVersion7.3.0.v20110203/jettyVersion



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1580208 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.ui.xml

2014-03-22 Thread dongxu
Author: dongxu
Date: Sat Mar 22 13:19:05 2014
New Revision: 1580208

URL: http://svn.apache.org/r1580208
Log:
Disable the glass of setting in login panel

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.ui.xml

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.ui.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.ui.xml?rev=1580208r1=1580207r2=1580208view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.ui.xml
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.ui.xml
 Sat Mar 22 13:19:05 2014
@@ -272,7 +272,7 @@
 /g:HTML
 /g:FlowPanel
 g:PopupPanel ui:field=settingsPopup styleName={style.imapSetting}
-  modal=true autoHideEnabled=true glassEnabled=true 
+  modal=true autoHideEnabled=true glassEnabled=false 

   g:HTMLPanel
 table
   tr



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1579882 - /james/hupa/trunk/pom.xml

2014-03-20 Thread dongxu
Author: dongxu
Date: Fri Mar 21 04:47:14 2014
New Revision: 1579882

URL: http://svn.apache.org/r1579882
Log:
Change gQuery version to the latest 1.4.1

Modified:
james/hupa/trunk/pom.xml

Modified: james/hupa/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/pom.xml?rev=1579882r1=1579881r2=1579882view=diff
==
--- james/hupa/trunk/pom.xml (original)
+++ james/hupa/trunk/pom.xml Fri Mar 21 04:47:14 2014
@@ -331,7 +331,7 @@
 dependency
 groupIdcom.googlecode.gwtquery/groupId
 artifactIdgwtquery/artifactId
-version1.4.1-SNAPSHOT/version
+version1.4.1/version
 scopeprovided/scope
 /dependency
 /dependencies



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1529839 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ComposeView.ui.xml~HEAD

2013-10-07 Thread dongxu
Author: dongxu
Date: Mon Oct  7 13:32:06 2013
New Revision: 1529839

URL: http://svn.apache.org/r1529839
Log:
remove useless diff file

Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ComposeView.ui.xml~HEAD


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1526347 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: gin/ mvp/

2013-09-25 Thread dongxu
Author: dongxu
Date: Thu Sep 26 02:00:47 2013
New Revision: 1526347

URL: http://svn.apache.org/r1526347
Log:
remove useless folders

Removed:
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/gin/
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1526349 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ evo/ mapper/

2013-09-25 Thread dongxu
Author: dongxu
Date: Thu Sep 26 02:07:11 2013
New Revision: 1526349

URL: http://svn.apache.org/r1526349
Log:
remove useless files

Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LabelPropertiesActivity.java~HEAD
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/ActivityManagerInitializer.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/AppPlaceHistoryMapper.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/CachingTopActivityMapper.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/CachingWestActivityMapper.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/ComposeActivityMapper.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/TopActivityMapper.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/WestActivityMapper.java~HEAD


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1526350 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: place/ rf/ ui/

2013-09-25 Thread dongxu
Author: dongxu
Date: Thu Sep 26 02:10:21 2013
New Revision: 1526350

URL: http://svn.apache.org/r1526350
Log:
remove useless files

Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/FolderPlace.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailFolderPlace.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/ImapFolderRequest.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/ComposeView.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LabelPropertiesView.ui.xml~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WidgetContainerDisplayable.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WidgetDisplayable.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_ToolPanel.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/_ToolPanel.ui.xml~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/__ContentPanel.java~HEAD

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/__ContentPanel.ui.xml~HEAD


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1526352 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/SearchBoxActivity.java ui/NavigationView.java ui/SearchBoxView.java

2013-09-25 Thread dongxu
Author: dongxu
Date: Thu Sep 26 02:15:46 2013
New Revision: 1526352

URL: http://svn.apache.org/r1526352
Log:
remove some warnings in client package

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/SearchBoxActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/NavigationView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/SearchBoxView.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/SearchBoxActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/SearchBoxActivity.java?rev=1526352r1=1526351r2=1526352view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/SearchBoxActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/SearchBoxActivity.java
 Thu Sep 26 02:15:46 2013
@@ -22,8 +22,6 @@ package org.apache.hupa.client.activity;
 import java.util.List;
 
 import org.apache.hupa.shared.domain.Message;
-import org.apache.hupa.shared.events.MessagesReceivedEvent;
-import org.apache.hupa.shared.events.MessagesReceivedEventHandler;
 import org.apache.hupa.shared.events.RefreshMessagesEvent;
 
 import com.google.gwt.event.dom.client.ClickEvent;

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/NavigationView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/NavigationView.java?rev=1526352r1=1526351r2=1526352view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/NavigationView.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/NavigationView.java
 Thu Sep 26 02:15:46 2013
@@ -20,7 +20,6 @@
 package org.apache.hupa.client.ui;
 
 import org.apache.hupa.client.activity.NavigationActivity;
-import org.apache.hupa.client.place.ContactPlace;
 import org.apache.hupa.client.place.FolderPlace;
 import org.apache.hupa.client.place.SettingPlace;
 

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/SearchBoxView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/SearchBoxView.java?rev=1526352r1=1526351r2=1526352view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/SearchBoxView.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/SearchBoxView.java
 Thu Sep 26 02:15:46 2013
@@ -29,8 +29,6 @@ import com.google.gwt.event.dom.client.H
 import com.google.gwt.event.dom.client.KeyCodes;
 import com.google.gwt.event.dom.client.KeyUpEvent;
 import com.google.gwt.event.dom.client.KeyUpHandler;
-import com.google.gwt.event.logical.shared.ValueChangeEvent;
-import com.google.gwt.event.logical.shared.ValueChangeHandler;
 import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.uibinder.client.UiField;
 import com.google.gwt.user.client.ui.Button;
@@ -38,7 +36,6 @@ import com.google.gwt.user.client.ui.Com
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.HorizontalPanel;
 import com.google.gwt.user.client.ui.MultiWordSuggestOracle;
-import com.google.gwt.user.client.ui.SuggestBox;
 import com.google.gwt.user.client.ui.TextBox;
 
 public class SearchBoxView extends Composite implements 
SearchBoxActivity.Displayable {



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1526378 - in /james/hupa/trunk: client/src/main/java/com/google/gwt/ server/src/main/java/com/chiaramail/ server/src/main/java/org/apache/hupa/server/domain/ server/src/main/java/org/apac

2013-09-25 Thread dongxu
Author: dongxu
Date: Thu Sep 26 04:30:19 2013
New Revision: 1526378

URL: http://svn.apache.org/r1526378
Log:
remove useless folders

Removed:
james/hupa/trunk/client/src/main/java/com/google/gwt/
james/hupa/trunk/server/src/main/java/com/chiaramail/
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/demo/
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/locator/
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/rf/
james/hupa/trunk/server/src/test/java/com/
james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/
james/hupa/trunk/server/src/test/java/org/apache/hupa/server/mock/
james/hupa/trunk/server/src/test/java/org/apache/hupa/server/preferences/
james/hupa/trunk/server/src/test/java/org/apache/hupa/server/servlet/
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/proxy/
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rf/


-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1526381 - /james/hupa/trunk/src/site/xdoc/index.xml

2013-09-25 Thread dongxu
Author: dongxu
Date: Thu Sep 26 04:31:23 2013
New Revision: 1526381

URL: http://svn.apache.org/r1526381
Log:
remove the broken link of hupa

Modified:
james/hupa/trunk/src/site/xdoc/index.xml

Modified: james/hupa/trunk/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/src/site/xdoc/index.xml?rev=1526381r1=1526380r2=1526381view=diff
==
--- james/hupa/trunk/src/site/xdoc/index.xml (original)
+++ james/hupa/trunk/src/site/xdoc/index.xml Thu Sep 26 04:31:23 2013
@@ -46,7 +46,7 @@
 /section
 
 section name=Demo
-p There are a 
href='http://james.zones.apache.org/index.html'two/a instances of Hupa 
running in the ASF infra. One is
+p There are two instances of Hupa running in the ASF infra. One 
is
 configured to use GMail IMAP and SMTP servers, so any gmail 
account
 should work. The other one uses a set of messages used to test 
Hupa
 with fake imap and smtp servers implementations.



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1526383 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README

2013-09-25 Thread dongxu
Author: dongxu
Date: Thu Sep 26 04:36:38 2013
New Revision: 1526383

URL: http://svn.apache.org/r1526383
Log:
add theme's license note

Added:
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README

Added: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README?rev=1526383view=auto
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README 
(added)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/README Thu 
Sep 26 04:36:38 2013
@@ -0,0 +1 @@
+Lots of theme resources in this package are borrowed from http://roundcube.net
\ No newline at end of file



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1522102 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/mvp/ server/src/main/java/org/apache/hupa/server/handler/ server/src/main/java/org/apache/hupa/server/preferenc

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:00:24 2013
New Revision: 1522102

URL: http://svn.apache.org/r1522102
Log:
constant changed by manolo

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/preferences/UserPreferencesStorage.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/ContactsHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ContactsResult.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java?rev=1522102r1=1522101r2=1522102view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
Thu Sep 12 02:00:24 2013
@@ -114,13 +114,15 @@ public class MainView extends Composite 
 dockPanel.setSpacing(10);
 dockPanel.setWidth(100%);
 
-createNorth();
+// Not used so far
+// createNorth();
+// dockPanel.add(north, DockPanel.NORTH);
+
 createWest();
-createCenter();
-
-dockPanel.add(north, DockPanel.NORTH);
 dockPanel.add(west, DockPanel.WEST);
 dockPanel.setCellWidth(west, 160px);
+
+createCenter();
 dockPanel.add(center, DockPanel.CENTER);
 dockPanel.setCellHorizontalAlignment(north, DockPanel.ALIGN_RIGHT);
 dockPanel.setCellHorizontalAlignment(center, DockPanel.ALIGN_LEFT);
@@ -161,6 +163,7 @@ public class MainView extends Composite 
 west.add(panel);
 }
 
+@SuppressWarnings(unused)
 private void createNorth() {
 north = new VerticalPanel();
 north.setWidth(100%);

Modified: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java?rev=1522102r1=1522101r2=1522102view=diff
==
--- 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java
 (original)
+++ 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java
 Thu Sep 12 02:00:24 2013
@@ -126,25 +126,13 @@ public abstract class AbstractFetchMessa
 Message m = messages[i];
 String from = null;
 if (m.getFrom() != null  m.getFrom().length 0 ) {
-from = m.getFrom()[0].toString().trim();
-try {
-from = MimeUtility.decodeText(from);
-userPreferences.addContact(from);
-} catch (UnsupportedEncodingException e) {
-logger.debug(Unable to decode from  + from +   + 
e.getMessage());
-}
+from = decodeText(m.getFrom()[0].toString());
 }
 msg.setFrom(from);
 
 String replyto = null;
 if (m.getReplyTo() != null  m.getReplyTo().length 0 ) {
-replyto = m.getReplyTo()[0].toString().trim();
-try {
-replyto = MimeUtility.decodeText(replyto);
-userPreferences.addContact(replyto);
-} catch (UnsupportedEncodingException e) {
-logger.debug(Unable to decode replyto  + replyto +   + 
e.getMessage());
-}
+replyto = decodeText(m.getReplyTo()[0].toString());
 }
 msg.setReplyto(replyto);
 
@@ -153,27 +141,17 @@ public abstract class AbstractFetchMessa
 Address[] toArray = m.getRecipients(RecipientType.TO);
 if (toArray != null) {
 for (Address addr : toArray) {
-String mailTo = null;
-try {
-mailTo = MimeUtility.decodeText(addr.toString());
-userPreferences.addContact(mailTo);
-} catch (UnsupportedEncodingException e) {
-logger.debug(Unable to decode mailTo  + mailTo +   
+ e.getMessage());
-}
-if (mailTo != null)
-to.add(mailTo);
+String mailTo = decodeText(addr.toString());
+to.add(mailTo);
 }
 }
 msg.setTo

svn commit: r1522103 - in /james/hupa/trunk: ./ client/ client/src/main/java/org/apache/hupa/client/mvp/ server/src/main/java/org/apache/hupa/server/handler/ server/src/test/java/org/apache/hupa/serve

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:00:55 2013
New Revision: 1522103

URL: http://svn.apache.org/r1522103
Log:
constantly changed by manolo

Modified:
james/hupa/trunk/client/pom.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
james/hupa/trunk/pom.xml

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522103r1=1522102r2=1522103view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:00:55 2013
@@ -39,6 +39,10 @@
 /dependency
 dependency
 groupIdorg.apache.hupa/groupId
+artifactIdhupa-mock/artifactId
+/dependency
+dependency
+groupIdorg.apache.hupa/groupId
 artifactIdhupa-shared/artifactId
 /dependency
 dependency
@@ -300,19 +304,4 @@
/plugin
 /plugins
 /build
-profiles
-  profile
-idprod/id
-properties
-  gwt.moduleSuffixProd/gwt.moduleSuffix
-  gwt.disableClassMetadatatrue/gwt.disableClassMetadata
-  gwt.disableCastCheckingtrue/gwt.disableCastChecking
-  gwt.logLevelTRACE/gwt.logLevel
-/properties
-  /profile
-/profiles
-properties
-  gwt.moduleSuffix/gwt.moduleSuffix
-  gwt.logLevelERROR/gwt.logLevel
-/properties
 /project

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java?rev=1522103r1=1522102r2=1522103view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
Thu Sep 12 02:00:55 2013
@@ -117,6 +117,7 @@ public class MainView extends Composite 
 // Not used so far
 // createNorth();
 // dockPanel.add(north, DockPanel.NORTH);
+// dockPanel.setCellHorizontalAlignment(north, DockPanel.ALIGN_RIGHT);
 
 createWest();
 dockPanel.add(west, DockPanel.WEST);
@@ -124,7 +125,6 @@ public class MainView extends Composite 
 
 createCenter();
 dockPanel.add(center, DockPanel.CENTER);
-dockPanel.setCellHorizontalAlignment(north, DockPanel.ALIGN_RIGHT);
 dockPanel.setCellHorizontalAlignment(center, DockPanel.ALIGN_LEFT);
 
 initWidget(dockPanel);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java?rev=1522103r1=1522102r2=1522103view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
 Thu Sep 12 02:00:55 2013
@@ -294,13 +294,17 @@ public class MessageSendPresenter extend
 if (type.equals(Type.NEW)  mailto != null) {
 display.getToText().setText(mailto);
 } else if (type.equals(Type.FORWARD)) {
-if (oldmessage.getSubject() != null  
!oldmessage.getSubject().toLowerCase().startsWith(fwd:)) {
-display.getSubjectText().setText(Fwd:  + 
oldmessage.getSubject());
-}
+   String subject = oldmessage.getSubject() != null ? 
oldmessage.getSubject().trim() : ;
+   if (!subject.toLowerCase().startsWith(fwd:)){
+   subject = Fwd:  + subject;
+   }
+   display.getSubjectText().setText(subject);
 } else if (type.equals(Type.REPLY) || type.equals(Type.REPLY_ALL)) {
-if (oldmessage.getSubject() != null  
!oldmessage.getSubject().toLowerCase().startsWith(re:)) {
-display.getSubjectText().setText(Re:  + 
oldmessage.getSubject());
-}
+   String subject = oldmessage.getSubject() != null ? 
oldmessage.getSubject().trim() : ;
+   if (!subject.toLowerCase().startsWith(re:)){
+   subject = Re:  + subject;
+   }
+   display.getSubjectText().setText(subject

svn commit: r1522104 - in /james/hupa/trunk: mock/src/main/java/org/apache/hupa/server/mock/ server/src/main/java/org/apache/hupa/server/ server/src/main/java/org/apache/hupa/server/guice/ server/src/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:01:24 2013
New Revision: 1522104

URL: http://svn.apache.org/r1522104
Log:
constantly changed by manolo

Modified:

james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/servlet/MessageSourceServlet.java
james/hupa/trunk/src/site/xdoc/index.xml

Modified: 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java?rev=1522104r1=1522103r2=1522104view=diff
==
--- 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java
 (original)
+++ 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java
 Thu Sep 12 02:01:24 2013
@@ -20,11 +20,14 @@
 package org.apache.hupa.server.mock;
 
  HEAD
+ HEAD
 ===
 import com.sun.mail.imap.IMAPFolder;
 import com.sun.mail.imap.IMAPStore;
 
  first commit
+===
+ constantly changed by manolo
 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -33,15 +36,20 @@ import java.util.List;
 import javax.mail.FetchProfile;
 import javax.mail.Flags;
  HEAD
+ HEAD
 import javax.mail.Flags.Flag;
 ===
  first commit
+===
+import javax.mail.Flags.Flag;
+ constantly changed by manolo
 import javax.mail.Folder;
 import javax.mail.Message;
 import javax.mail.MessagingException;
 import javax.mail.Session;
 import javax.mail.Store;
  HEAD
+ HEAD
 import javax.mail.internet.MimeMessage;
 import javax.mail.search.SearchTerm;
 
@@ -54,6 +62,14 @@ import javax.mail.internet.MimeMessage;
 import javax.mail.search.SearchTerm;
 
  first commit
+===
+import javax.mail.internet.MimeMessage;
+import javax.mail.search.SearchTerm;
+
+import com.sun.mail.imap.IMAPFolder;
+import com.sun.mail.imap.IMAPStore;
+
+ constantly changed by manolo
 public class MockIMAPFolder extends IMAPFolder {
 
 public static final char SEPARATOR = '.';
@@ -273,6 +289,7 @@ public class MockIMAPFolder extends IMAP
 
 @Override
  HEAD
+ HEAD
 public synchronized Message[] search(SearchTerm search)
 throws MessagingException {
 checkExists();
@@ -289,6 +306,18 @@ public class MockIMAPFolder extends IMAP
 checkExists();
 return getMessages();
  first commit
+===
+public synchronized Message[] search(SearchTerm search)
+throws MessagingException {
+checkExists();
+ArrayListMessage ret = new ArrayListMessage();
+for (Message m : messages) {
+   if (search.match(m)) {
+   ret.add(m);
+   }
+}
+return ret.toArray(new Message[0]);
+ constantly changed by manolo
 }
 
 @Override

Modified: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java?rev=1522104r1=1522103r2=1522104view=diff
==
--- 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
 (original)
+++ 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
 Thu Sep 12 02:01:24 2013
@@ -97,6 +97,9 @@ public class InMemoryIMAPStoreCache impl
  */
 public IMAPStore get(User user) throws MessagingException {
  HEAD
+ HEAD
+===
+ constantly changed by manolo
IMAPStore ret =  get(user.getName(),user.getPassword());

// TODO: this is a hack, we should have a default domain suffix in 
configuration files
@@ -104,9 +107,12 @@ public class InMemoryIMAPStoreCache impl
user.setName(user.getName() + @gmail.com);
}
return ret;
+ HEAD
 ===
 return get(user.getName(),user.getPassword());
  first commit
+===
+ constantly changed by manolo
 }
 
 /*

Modified: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java?rev=1522104r1=1522103r2=1522104view=diff
==
--- 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java
 (original)
+++ 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java
 Thu Sep 12 02:01:24 2013
@@ -106,7 +106,7 @@ public class GuiceServletConfig extends 
 if (demoHostName

svn commit: r1522108 - in /james/hupa/trunk: client/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/webapp/ server/src/main/java/org/apache/hupa/server/handler/ server/src/main/java/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:03:24 2013
New Revision: 1522108

URL: http://svn.apache.org/r1522108
Log:
constantly changed by manolo

Modified:
james/hupa/trunk/client/pom.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java
james/hupa/trunk/client/src/main/webapp/Hupa.html

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractSendMessageHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/utils/MessageUtils.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/ContactsHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/MessageUtilsTest.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ContactsResult.java

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522108r1=1522107r2=1522108view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:03:24 2013
@@ -17,9 +17,7 @@
 specific language governing permissions and limitations
 under the License.
 --
-project
-xmlns=http://maven.apache.org/POM/4.0.0;
-xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
+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/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 parent
@@ -77,10 +75,10 @@
 groupIdcom.google.gwt/groupId
 artifactIdgwt-user/artifactId
 exclusions
-  exclusion
-groupIdjavax.validation/groupId
-artifactIdvalidation-api/artifactId
-  /exclusion
+exclusion
+groupIdjavax.validation/groupId
+artifactIdvalidation-api/artifactId
+/exclusion
 /exclusions
 /dependency
 dependency
@@ -97,9 +95,9 @@
 scopeprovided/scope
 /dependency
 dependency
-  groupIdorg.hibernate/groupId
-  artifactIdhibernate-validator/artifactId
-  version4.2.0.Final/version
+groupIdorg.hibernate/groupId
+artifactIdhibernate-validator/artifactId
+version4.2.0.Final/version
 /dependency
 dependency
 groupIdorg.json/groupId
@@ -117,14 +115,14 @@
 groupIdorg.slf4j/groupId
 artifactIdslf4j-log4j12/artifactId
 /dependency
-   dependency
-   groupIdorg.eclipse.jetty/groupId
-   artifactIdjetty-server/artifactId
-   /dependency
-   dependency
-   groupIdorg.eclipse.jetty/groupId
-   artifactIdjetty-webapp/artifactId
-   /dependency
+dependency
+groupIdorg.eclipse.jetty/groupId
+artifactIdjetty-server/artifactId
+/dependency
+dependency
+groupIdorg.eclipse.jetty/groupId
+artifactIdjetty-webapp/artifactId
+/dependency
 /dependencies
 build
 
outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory
@@ -135,7 +133,7 @@
 configuration
 runTargetHupa.html/runTarget
 extraJvmArgs
--Xmx512M -Xss128M 
-Dhupa.config.file=${project.parent.basedir}/server/src/main/webapp/WEB-INF/conf/config.properties
+-Xmx512M -Xss128M
 /extraJvmArgs
 localWorkers1/localWorkers
 compileReporttrue/compileReport
@@ -187,11 +185,11 @@
 /resource
 /webResources
 warName${project.artifactId}-${project.version}/warName
-   archive
-  manifest
- 
mainClassorg.apache.hupa.Launcher/mainClass
-  /manifest
-   /archive
+archive
+manifest
+mainClassorg.apache.hupa.Launcher/mainClass
+/manifest
+/archive
 /configuration
 /plugin
 plugin
@@ -246,7 +244,7 @@
 /executions
 /plugin
 plugin

svn commit: r1522109 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa: ./ client/ client/activity/ client/gin/ client/mvp/ client/place/ client/ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:03:52 2013
New Revision: 1522109

URL: http://svn.apache.org/r1522109
Log:
change the LOGIN progress using native MVP instead of gwt-presenter

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaEvoCallback.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/gin/HupaEvoClientModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/gin/HupaEvoGinjector.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/gin/InjectablePlaceController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/ActivityPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPlaceFactory.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPlaceHistoryMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/LoginPlace.java
Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml?rev=1522109r1=1522108r2=1522109view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml Thu Sep 
12 02:03:52 2013
@@ -27,9 +27,11 @@
   inherits name='com.google.gwt.widgetideas.WidgetIdeas'/
   inherits name='com.google.gwt.gen2.commonwidget.CommonWidget' /
   inherits name='com.google.gwt.gen2.table.override.Override'/
-  inherits name='com.google.gwt.gen2.table.ScrollTable'/
+  inherits name='com.google.gwt.gen2.table.ScrollTable'/!--
   inherits name='net.customware.gwt.dispatch.Dispatch' /
-  inherits name='net.customware.gwt.presenter.Presenter' /
+  inherits name='net.customware.gwt.presenter.Presenter' /  --
+  inherits name=com.google.gwt.activity.Activity/
+  inherits name=com.google.gwt.place.Place/
   inherits name=com.google.gwt.inject.Inject/
   inherits name=gwtupload.GWTUpload/
   inherits name=eu.maydu.gwt.validation.ValidationLibrary/

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java?rev=1522109r1=1522108r2=1522109view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java Thu 
Sep 12 02:03:52 2013
@@ -20,6 +20,7 @@
 package org.apache.hupa.client;
 
  HEAD
+ HEAD
 import org.apache.hupa.client.ioc.AppGinjector;
 
 import com.google.gwt.core.client.EntryPoint;
@@ -59,28 +60,64 @@ import net.customware.gwt.presenter.clie
 
 import org.apache.hupa.client.gin.HupaGinjector;
 import org.apache.hupa.client.mvp.AppPresenter;
+===
+import org.apache.hupa.client.gin.HupaEvoGinjector;
+import org.apache.hupa.client.mvp.AppPlaceFactory;
+import org.apache.hupa.client.mvp.AppPlaceHistoryMapper;
+import org.apache.hupa.client.place.LoginPlace;
+ change the LOGIN progress using native MVP instead of gwt-presenter
 
+import com.google.gwt.activity.shared.ActivityManager;
+import com.google.gwt.activity.shared.ActivityMapper;
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.shared.EventBus;
+import com.google.gwt.place.shared.PlaceController;
+import com.google.gwt.place.shared.PlaceHistoryHandler;
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.SimplePanel;
 
 public class Hupa implements EntryPoint{
-private final HupaGinjector injector = GWT.create(HupaGinjector.class);
+//private final HupaGinjector injector = GWT.create(HupaGinjector.class);
+
+   private SimplePanel appWidget = new SimplePanel();
+  private final HupaEvoGinjector injector = GWT.create(HupaEvoGinjector.class);
 
 public void onModuleLoad() {
 // remove the loading message from the browser
 com.google.gwt.user.client.Element loading = 
DOM.getElementById(loading);
 
 DOM.removeChild(RootPanel.getBodyElement(), loading);
-
-AppPresenter aPres = injector.getAppPresenter();
-aPres.bind();
-   
-RootPanel.get().add

svn commit: r1522113 - /james/hupa/trunk/client/src/main/webapp/Hupa.html

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:05:39 2013
New Revision: 1522113

URL: http://svn.apache.org/r1522113
Log:
decorate the theme

Modified:
james/hupa/trunk/client/src/main/webapp/Hupa.html

Modified: james/hupa/trunk/client/src/main/webapp/Hupa.html
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/webapp/Hupa.html?rev=1522113r1=1522112r2=1522113view=diff
==
--- james/hupa/trunk/client/src/main/webapp/Hupa.html (original)
+++ james/hupa/trunk/client/src/main/webapp/Hupa.html Thu Sep 12 02:05:39 2013
@@ -42,6 +42,7 @@
.loading img {
position: absolute;
  HEAD
+ HEAD
top: 37%;
left: 50%;
}
@@ -50,6 +51,9 @@
}
 ===
top: 50%;
+===
+   top: 37%;
+ decorate the theme
left: 50%;
}
  HEAD



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1522111 - in /james/hupa/trunk: client/pom.xml mock/pom.xml pom.xml server/pom.xml shared/pom.xml src/site/resources/demo/index.html src/site/xdoc/index.xml widgets/pom.xml

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:05:02 2013
New Revision: 1522111

URL: http://svn.apache.org/r1522111
Log:
constantly changed by manolo

Modified:
james/hupa/trunk/client/pom.xml
james/hupa/trunk/mock/pom.xml
james/hupa/trunk/pom.xml
james/hupa/trunk/server/pom.xml
james/hupa/trunk/shared/pom.xml
james/hupa/trunk/src/site/resources/demo/index.html
james/hupa/trunk/src/site/xdoc/index.xml
james/hupa/trunk/widgets/pom.xml

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522111r1=1522110r2=1522111view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:05:02 2013
@@ -17,13 +17,12 @@
 specific language governing permissions and limitations
 under the License.
 --
-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/maven-v4_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/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.apache.hupa/groupId
 artifactIdhupa-parent/artifactId
-version0.0.2-SNAPSHOT/version
+version0.0.3-SNAPSHOT/version
 relativePath../pom.xml/relativePath
 /parent
 artifactIdhupa/artifactId

Modified: james/hupa/trunk/mock/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/mock/pom.xml?rev=1522111r1=1522110r2=1522111view=diff
==
--- james/hupa/trunk/mock/pom.xml (original)
+++ james/hupa/trunk/mock/pom.xml Thu Sep 12 02:05:02 2013
@@ -18,6 +18,7 @@
 under the License.
 --
  HEAD
+ HEAD
 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/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 parent
@@ -29,12 +30,19 @@
 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/maven-v4_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/maven-v4_0_0.xsd;
+ constantly changed by manolo
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.apache.hupa/groupId
 artifactIdhupa-parent/artifactId
+ HEAD
 version0.0.2-SNAPSHOT/version
  first commit
+===
+version0.0.3-SNAPSHOT/version
+ constantly changed by manolo
 relativePath../pom.xml/relativePath
 /parent
 artifactIdhupa-mock/artifactId

Modified: james/hupa/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/pom.xml?rev=1522111r1=1522110r2=1522111view=diff
==
--- james/hupa/trunk/pom.xml (original)
+++ james/hupa/trunk/pom.xml Thu Sep 12 02:05:02 2013
@@ -18,6 +18,7 @@
 under the License.
 --
  HEAD
+ HEAD
 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/maven-v4_0_0.xsd;
 ===
 project
@@ -25,17 +26,24 @@
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
  first commit
+===
+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/maven-v4_0_0.xsd;
+ constantly changed by manolo
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.apache.james/groupId
 artifactIdjames-project/artifactId
 version1.8.1/version
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 relativePath /
 /parent
 groupIdorg.apache.james.hupa/groupId
 artifactIdhupa-parent/artifactId
 version0.0.3-SNAPSHOT/version
+ HEAD
 ===
 relativePath/relativePath
 /parent
@@ -43,6 +51,8 @@
 artifactIdhupa-parent/artifactId
 version0.0.2-SNAPSHOT/version
  first commit
+===
+ constantly changed by manolo
 packagingpom/packaging
 nameApache James Hupa Parent/name
 descriptionHupa is a GWT based Webmail/description
@@ -137,7 +147,7 @@
 ===
 gwtVersion2.4.0/gwtVersion
 gwtMavenVersion2.4.0/gwtMavenVersion
-gwt.moduleSuffix/gwt.moduleSuffix
+gwt.moduleSuffix

svn commit: r1522112 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:05:26 2013
New Revision: 1522112

URL: http://svn.apache.org/r1522112
Log:
decorate the theme

Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/maincontent.png
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/mainmenu.png
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/masterv.png
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.ui.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java?rev=1522112r1=1522111r2=1522112view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 Thu Sep 12 02:05:26 2013
@@ -35,18 +35,26 @@ package org.apache.hupa.client.activity;
 
 import net.customware.gwt.dispatch.client.DispatchAsync;
 
+import org.apache.hupa.client.HupaConstants;
 import org.apache.hupa.client.HupaEvoCallback;
 import org.apache.hupa.client.mvp.WidgetDisplayable;
 import org.apache.hupa.client.place.MailInboxPlace;
+import org.apache.hupa.shared.events.FlashEvent;
+import org.apache.hupa.shared.events.SessionExpireEvent;
+import org.apache.hupa.shared.events.SessionExpireEventHandler;
 import org.apache.hupa.shared.rpc.LoginUser;
 import org.apache.hupa.shared.rpc.LoginUserResult;
 
 import com.google.gwt.activity.shared.AbstractActivity;
  HEAD
+ HEAD
 import com.google.gwt.core.client.GWT;
  change the LOGIN progress using native MVP instead of gwt-presenter
 ===
  Change to new mvp framework - first step
+===
+import com.google.gwt.core.client.GWT;
+ decorate the theme
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.event.dom.client.HasClickHandlers;
@@ -83,6 +91,7 @@ public class LoginActivity extends Abstr
private final PlaceController placeController;
private final ProviderMailInboxPlace mailInboxPlaceProvider;
private DispatchAsync dispatcher;
+private HupaConstants constants = GWT.create(HupaConstants.class);
 
@Inject
public LoginActivity(Displayable display, EventBus eventBus, 
PlaceController placeController,
@@ -125,6 +134,20 @@ public class LoginActivity extends Abstr
doLogin();
}
});
+   display.getResetClick().addClickHandler(new ClickHandler() {
+
+public void onClick(ClickEvent event) {
+doReset();
+}
+
+});
+   eventBus.addHandler(SessionExpireEvent.TYPE, new 
SessionExpireEventHandler() {
+
+public void onSessionExpireEvent(SessionExpireEvent event) {
+eventBus.fireEvent(new FlashEvent(constants.sessionTimedOut(), 
4000));
+}
+
+});
 
  change the LOGIN progress using native MVP instead of gwt-presenter
}
@@ -168,10 +191,14 @@ public class LoginActivity extends Abstr
public void callbackError(Throwable caught) {
display.setLoading(false);
Window.alert(error);
+ HEAD

LoginActivity.this.placeController.goTo(mailInboxPlaceProvider.get());
// eventBus.fireEvent(new 
FlashEvent(constants.loginInvalid(),
// 4000));
  change the LOGIN progress using native MVP instead of gwt-presenter
+===
+   // eventBus.fireEvent(new 
FlashEvent(constants.loginInvalid(),4000));
+ decorate the theme
doReset();
}
});

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.java?rev=1522112r1=1522111r2=1522112view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui

svn commit: r1522114 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: ./ activity/ ioc/ mvp/ ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:06:04 2013
New Revision: 1522114

URL: http://svn.apache.org/r1522114
Log:
introduce the top activity

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/TopActivityMapper.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaConstants.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayout.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.ui.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java?rev=1522114r1=1522113r2=1522114view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java
 Thu Sep 12 02:06:04 2013
@@ -7,17 +7,19 @@ import com.google.inject.Inject;
 import com.google.inject.name.Named;
 
 /**
- * This class is responsible for ActivityManager instantiations through GIN,
- * it also associate every ActivityManager with the corresponding display 
region
+ * This class is responsible for ActivityManager instantiations through GIN, it
+ * also associate every ActivityManager with the corresponding display region
  */
 public class ActivityManagerInitializer {
 
-  @Inject
-  public ActivityManagerInitializer(AppLayout appPanelView,
-@Named(WestRegion) ActivityManager 
verticalMasterActivityManager,
-@Named(MainContentRegion) 
ActivityManager mainContentActivityManager) {
-verticalMasterActivityManager.setDisplay(appPanelView.getWestContainer());
-mainContentActivityManager.setDisplay(appPanelView.getMainContainer());
-  }
+   @Inject
+   public ActivityManagerInitializer(AppLayout appPanelView, 
+   @Named(TopRegion) ActivityManager topActivityManager,
+   @Named(WestRegion) ActivityManager 
westActivityManager,
+   @Named(MainContentRegion) ActivityManager 
mainContentActivityManager) {
+   topActivityManager.setDisplay(appPanelView.getTopContainer());
+   westActivityManager.setDisplay(appPanelView.getWestContainer());
+   
mainContentActivityManager.setDisplay(appPanelView.getMainContainer());
+   }
 
 }

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java?rev=1522114r1=1522113r2=1522114view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java 
Thu Sep 12 02:06:04 2013
@@ -15,54 +15,57 @@ import com.google.inject.Inject;
 /**
  * This is the main controller of the application.
  */
-public class AppController{
+public class AppController {
 
-  private final PlaceController placeController;
-  private final PlaceHistoryHandler placeHistoryHandler;
-  private final AppLayout appPanelView;
-  private Place currentPlace;
-
-  /**
-   * All parameters are injected by GIN
-   *
-   * @param placeController the application's PlaceController
-   * @param eventBus the application's EventBus
-   * @param placeHistoryHandler the application's PlaceHistoryHandler
-   * @param appLayout this is the application's main panel
-   * @param mainMenuView this is the application's navigation top bar
-   * @param activityManagerInitializer unused parameter, it's here just to 
force GIN's initialization of ActivityManagers
-   */
-  @Inject
-  public AppController(PlaceController placeController,
-   EventBus eventBus,
-   PlaceHistoryHandler placeHistoryHandler,
-   AppLayout appLayout

svn commit: r1522115 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ ioc/ mvp/ place/ ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:06:30 2013
New Revision: 1522115

URL: http://svn.apache.org/r1522115
Log: (empty)

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingTopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingWestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/IMAPMessagePlace.java
Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailPlace.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailInboxPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MessageSendPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/IMAPMessageListView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java?rev=1522115r1=1522114r2=1522115view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 Thu Sep 12 02:06:30 2013
@@ -380,25 +380,53 @@ import java.util.ArrayList;
 
 import net.customware.gwt.dispatch.client.DispatchAsync;
 
+import org.apache.hupa.client.HandlerRegistrationAdapter;
+import org.apache.hupa.client.HupaCallback;
+import org.apache.hupa.client.HupaEvoCallback;
 import org.apache.hupa.client.mvp.WidgetDisplayable;
 import org.apache.hupa.client.place.MailInboxPlace;
 import org.apache.hupa.client.widgets.HasDialog;
 import org.apache.hupa.shared.data.IMAPFolder;
 import org.apache.hupa.shared.data.Message;
 import org.apache.hupa.shared.data.User;
+import org.apache.hupa.shared.data.Message.IMAPFlag;
 import org.apache.hupa.shared.events.DecreaseUnseenEvent;
 import org.apache.hupa.shared.events.ExpandMessageEvent;
+import org.apache.hupa.shared.events.FolderSelectionEvent;
+import org.apache.hupa.shared.events.FolderSelectionEventHandler;
+import org.apache.hupa.shared.events.IncreaseUnseenEvent;
+import org.apache.hupa.shared.events.LoadMessagesEvent;
 import org.apache.hupa.shared.events.LogoutEvent;
 import org.apache.hupa.shared.events.LogoutEventHandler;
+import org.apache.hupa.shared.events.MessagesReceivedEvent;
+import org.apache.hupa.shared.events.MessagesReceivedEventHandler;
+import org.apache.hupa.shared.events.MoveMessageEvent;
+import org.apache.hupa.shared.events.MoveMessageEventHandler;
+import org.apache.hupa.shared.events.NewMessageEvent;
+import org.apache.hupa.shared.rpc.DeleteAllMessages;
+import org.apache.hupa.shared.rpc.DeleteMessageByUid;
+import org.apache.hupa.shared.rpc.DeleteMessageResult;
+import org.apache.hupa.shared.rpc.GenericResult;
+import org.apache.hupa.shared.rpc.MoveMessage;
+import org.apache.hupa.shared.rpc.MoveMessageResult;
+import org.apache.hupa.shared.rpc.SetFlag;
 import org.apache.hupa.widgets.ui.HasEnable;
 
 import com.google.gwt.activity.shared.AbstractActivity;
+import com.google.gwt.event.dom.client.ChangeEvent;
+import com.google.gwt.event.dom.client.ChangeHandler;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.event.dom.client.HasChangeHandlers;
 import com.google.gwt.event.dom.client.HasClickHandlers;
 import com.google.gwt.event.shared.EventBus;
 import com.google.gwt.gen2.table.event.client.HasPageChangeHandlers;
 import com.google.gwt.gen2.table.event.client.HasPageLoadHandlers;
 import com.google.gwt.gen2.table.event.client.HasRowSelectionHandlers;
+import com.google.gwt.gen2.table.event.client.PageChangeEvent;
+import com.google.gwt.gen2.table.event.client.PageChangeHandler;
+import com.google.gwt.gen2.table.event.client.RowSelectionEvent;
+import com.google.gwt.gen2.table.event.client.RowSelectionHandler;
 import com.google.gwt.place.shared.PlaceController;
 import com.google.gwt.user.client.ui.AcceptsOneWidget;
 import com.google.gwt.user.client.ui.HasValue;
@@ -449,9 +477,220 @@ public class IMAPMessageListActivity ext
}

private void bind(){
-   
+   eventBus.addHandler(MessagesReceivedEvent.TYPE, new 
MessagesReceivedEventHandler() {
+
+public void

svn commit: r1522116 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: ./ activity/ ioc/ mvp/ place/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:06:53 2013
New Revision: 1522116

URL: http://svn.apache.org/r1522116
Log:
At first make the inbox work, but only when click the refresh button. The page 
also be working, the other folder will be like the same.

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingWestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainContentActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailInboxPlace.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java?rev=1522116r1=1522115r2=1522116view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
 Thu Sep 12 02:06:53 2013
@@ -82,6 +82,12 @@ public class CachingDispatchAsync extend
 return;
 } else {
 running.add(clz);
+ HEAD
+===
+//if (action instanceof FetchMessages) {
+//new RuntimeException().printStackTrace();
+//}
+ At first make the inbox work, but only when click the refresh button. 
The page also be working, the other folder will be like the same.
 super.execute(action, new AsyncCallbackR() {
 public void onFailure(Throwable caught) {
 running.remove(clz);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java?rev=1522116r1=1522115r2=1522116view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 Thu Sep 12 02:06:53 2013
@@ -446,16 +446,14 @@ public class IMAPMessageListActivity ext
private final Displayable display;
private final EventBus eventBus;
private final PlaceController placeController;
-   private final ProviderMailInboxPlace mailInboxPlaceProvider;
private DispatchAsync dispatcher;
 
@Inject
 public IMAPMessageListActivity(Displayable display, EventBus eventBus, 
PlaceController placeController,
-   ProviderMailInboxPlace mailInboxPlaceProvider, 
DispatchAsync dispatcher){
+DispatchAsync dispatcher){
this.display = display;
this.eventBus = eventBus;
this.placeController = placeController;
-   this.mailInboxPlaceProvider = mailInboxPlaceProvider;
this.dispatcher = dispatcher;

 
@@ -471,8 +469,8 @@ public class IMAPMessageListActivity ext
}
@Override
public void start(AcceptsOneWidget container, EventBus eventBus) {
-   revealDisplay(user, folder, searchValue);
bind();
+   revealDisplay(user, folder, searchValue);
container.setWidget(display.asWidget());
}

@@ -691,9 +689,10 @@ public class IMAPMessageListActivity ext
 }
 }); 
 }
-   public IMAPMessageListActivity with(User user){
+   public IMAPMessageListActivity with(User user, IMAPFolder imapFolder, 
String string){
this.user = user;
-   this.folder = new 
IMAPFolder(user.getSettings().getInboxFolderName());
+   this.folder = imapFolder;
+   this.searchValue = string;
return this;
}
 

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java?rev=1522116r1=1522115r2=1522116view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 (original)
+++ 
james/hupa/trunk/client

svn commit: r1522119 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa: ./ client/ client/activity/ client/evo/ client/ioc/ client/mapper/ client/mvp/ client/ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:08:28 2013
New Revision: 1522119

URL: http://svn.apache.org/r1522119
Log:
Make the evo more clear.

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/ActivityManagerInitializer.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/ActivityManagerInitializer.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/AppController.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/AppController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/HupaEvo.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/HupaEvo.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/HupaEvoCallback.java
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaEvoCallback.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/AppPlaceHistoryMapper.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/AppPlaceHistoryMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/CachingTopActivityMapper.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/CachingTopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/CachingWestActivityMapper.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/CachingWestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/MainContentActivityMapper.java
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainContentActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/TopActivityMapper.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/TopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/WestActivityMapper.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mapper/WestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WidgetContainerDisplayable.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WidgetContainerDisplayable.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WidgetDisplayable.java~HEAD
  - copied, changed from r1522117, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WidgetDisplayable.java
Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaEvoCallback.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaEvolution.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/ActivityPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPlaceHistoryMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingTopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingWestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/Displayable.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainContentActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/TopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/WestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/WidgetContainerDisplayable.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/WidgetDisplayable.java
Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageSendActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo

svn commit: r1522121 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/rf/ server/src/main/java/org/apache/hupa/server/domain/ w

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:09:31 2013
New Revision: 1522121

URL: http://svn.apache.org/r1522121
Log:
get started to request factory

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserProxy.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserRequest.java
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/Identifiable.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/Settings.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/User.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/Versionable.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/PagingOptions.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java?rev=1522121r1=1522120r2=1522121view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 Thu Sep 12 02:09:31 2013
@@ -457,17 +457,6 @@ public class IMAPMessageListActivity ext
this.placeController = placeController;
this.dispatcher = dispatcher;
this.messageSendPlaceProvider = messageSendPlaceProvider;
-   
-
-// add this event on constructor because we don't want to remove it on 
unbind
-eventBus.addHandler(LogoutEvent.TYPE, new LogoutEventHandler() {
-
-public void onLogout(LogoutEvent logoutEvent) {
-   IMAPMessageListActivity.this.display.reset();
-   
IMAPMessageListActivity.this.display.getSearchValue().setValue();
-}
-
-});
}
@Override
public void start(AcceptsOneWidget container, EventBus eventBus) {
@@ -477,6 +466,14 @@ public class IMAPMessageListActivity ext
}

private void bind(){
+eventBus.addHandler(LogoutEvent.TYPE, new LogoutEventHandler() {
+
+public void onLogout(LogoutEvent logoutEvent) {
+   IMAPMessageListActivity.this.display.reset();
+   
IMAPMessageListActivity.this.display.getSearchValue().setValue();
+}
+
+});
eventBus.addHandler(MessagesReceivedEvent.TYPE, new 
MessagesReceivedEventHandler() {
 
 public void onMessagesReceived(MessagesReceivedEvent event) {

Added: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserProxy.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserProxy.java?rev=1522121view=auto
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserProxy.java 
(added)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserProxy.java 
Thu Sep 12 02:09:31 2013
@@ -0,0 +1,11 @@
+package org.apache.hupa.client.rf;
+
+import org.apache.hupa.server.domain.User;
+
+import com.google.web.bindery.requestfactory.shared.EntityProxy;
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+
+@ProxyFor(value = User.class)
+public interface UserProxy extends EntityProxy {
+
+}

Added: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserRequest.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserRequest.java?rev=1522121view=auto
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserRequest.java
 (added)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserRequest.java
 Thu Sep 12 02:09:31 2013
@@ -0,0 +1,11 @@
+package org.apache.hupa.client.rf;
+
+import org.apache.hupa.server.domain.User;
+
+import com.google.web.bindery.requestfactory.shared.RequestContext;
+import com.google.web.bindery.requestfactory.shared.Service;
+
+@Service(User.class)
+public interface UserRequest extends RequestContext {
+
+}

Added: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/Identifiable.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/Identifiable.java?rev=1522121view=auto
==
--- 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain

svn commit: r1522124 - /james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:10:38 2013
New Revision: 1522124

URL: http://svn.apache.org/r1522124
Log: (empty)

Modified:

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java

Modified: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java?rev=1522124r1=1522123r2=1522124view=diff
==
--- 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java
 (original)
+++ 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java
 Thu Sep 12 02:10:38 2013
@@ -21,7 +21,7 @@ import com.sun.mail.imap.IMAPStore;
 
 public class IMAPFolderService {
 
-   private static boolean useSSL = false;
+   private static boolean useSSL = true;

public static String echo(String s){
return s;



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1522123 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/rf/ server/src/main/java/org/apache/hupa/server/ server/s

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:10:17 2013
New Revision: 1522123

URL: http://svn.apache.org/r1522123
Log:
As the FetchFolders RequestFactory, but can not run correctly.
Maybe the procedure is wrong somewhere.

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/IMAPFolderProxy.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/IMAPFolderRequestContext.java
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/locator/

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/locator/UserDaoLocator.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/locator/UserLocator.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/UserDao.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/HupaRequestFactory.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserProxy.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/UserRequest.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/domain/User.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/ImapFolderService.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolder.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java?rev=1522123r1=1522122r2=1522123view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 Thu Sep 12 02:10:17 2013
@@ -85,7 +85,6 @@ public class LoginActivity extends AppBa
 ===
 import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
-import com.google.inject.Provider;
 
 public class LoginActivity extends AbstractActivity {
 
@@ -180,6 +179,25 @@ public class LoginActivity extends Abstr
return;
 
display.setLoading(true);
+// HupaRequestFactory rf = GWT.create(HupaRequestFactory.class);
+// rf.initialize(eventBus);
+// UserRequest userRequest = rf.userRequest();
+// UserProxy user1 = userRequest.create(UserProxy.class);
+// user1.setName(user);
+// user1.setPassword(pass);
+// userRequest.save(user1).fire(new ReceiverUserProxy(){
+//
+// @Override
+// public void onSuccess(UserProxy user) {
+// display.setLoading(false);
+// LoginActivity.this.placeController.goTo(new 
MailFolderPlace().with(null));
+// doReset();
+// }
+// 
+// });
+   
+   
+   
dispatcher.execute(new LoginUser(user, pass), new 
HupaEvoCallbackLoginUserResult(dispatcher, eventBus,
display) {
public void callback(LoginUserResult result) {
@@ -208,6 +226,7 @@ public class LoginActivity extends Abstr
doReset();
}
});
+   
}
 
/**

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java?rev=1522123r1=1522122r2=1522123view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 Thu Sep 12 02:10:17 2013
@@ -256,6 +256,9 @@ import org.apache.hupa.client.evo.HupaEv
 import org.apache.hupa.client.place.IMAPMessagePlace;
 import org.apache.hupa.client.place.MailFolderPlace;
 import org.apache.hupa.client.place.MessageSendPlace;
+import org.apache.hupa.client.rf.HupaRequestFactory;
+import org.apache.hupa.client.rf.IMAPFolderProxy;
+import org.apache.hupa.client.rf.IMAPFolderRequestContext;
 import org.apache.hupa.client.ui.WidgetContainerDisplayable;
 import org.apache.hupa.client.widgets.HasDialog;
 import

svn commit: r1522125 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:11:00 2013
New Revision: 1522125

URL: http://svn.apache.org/r1522125
Log: (empty)

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java?rev=1522125r1=1522124r2=1522125view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 Thu Sep 12 02:11:00 2013
@@ -263,6 +263,7 @@ import org.apache.hupa.client.ui.WidgetC
 import org.apache.hupa.client.widgets.HasDialog;
 import org.apache.hupa.client.widgets.IMAPTreeItem;
 import org.apache.hupa.shared.data.IMAPFolder;
+import org.apache.hupa.shared.data.IMAPFolderImpl;
 import org.apache.hupa.shared.data.Message;
 import org.apache.hupa.shared.data.Message.IMAPFlag;
 import org.apache.hupa.shared.data.MessageDetails;
@@ -339,6 +340,8 @@ public class WestActivity extends Abstra
 
 private Place currentPlace;
 
+private ListIMAPFolderProxy folders;
+
 public void setCurrentPlace(Place place){
this.currentPlace = place;
 }
@@ -388,11 +391,9 @@ public class WestActivity extends Abstra
 
@Override
public void onSuccess(ListIMAPFolderProxy response) {
-System.out.println(111+response);
+   folders = response;
   display.bindTreeItems(null);
-//  // disable
-  display.getDeleteEnable().setEnabled(false);
-  display.getRenameEnable().setEnabled(false);
+  enableClick(false);
   display.setLoadingFolders(false);

}
@@ -412,6 +413,12 @@ System.out.println(111+response);
 
 }
 
+private void enableClick(boolean flag){
+display.getDeleteEnable().setEnabled(flag);
+display.getRenameEnable().setEnabled(flag);
+}
+
+
 /**
  * Create recursive the TreeNodes with all childs
  * 
@@ -428,7 +435,7 @@ System.out.println(111+response);
 
 public void onEditEvent(EditEvent event) {
 if (event.getEventType().equals(EditEvent.EventType.Stop)) 
{
-IMAPFolder iFolder = new IMAPFolder((String) 
event.getOldValue());
+IMAPFolder iFolder = new IMAPFolderImpl((String) 
event.getOldValue());
 final String newName = (String) event.getNewValue();
 if (iFolder.getFullName().equalsIgnoreCase(newName) == 
false) {
 dispatcher.execute(new RenameFolder(iFolder, 
newName), new HupaEvoCallbackGenericResult(dispatcher, eventBus) {
@@ -601,11 +608,9 @@ System.out.println(111+response);
 return;
 folder = (IMAPFolder) tItem.getUserObject();
 if 
(folder.getFullName().equalsIgnoreCase(user.getSettings().getInboxFolderName()))
 {
-display.getDeleteEnable().setEnabled(false);
-display.getRenameEnable().setEnabled(false);
+   enableClick(false);
 } else {
-display.getDeleteEnable().setEnabled(true);
-display.getRenameEnable().setEnabled(true);
+   enableClick(true);
 }
 }
 
@@ -650,7 +655,7 @@ System.out.println(111+response);
 final IMAPTreeItem item = (IMAPTreeItem) 
event.getSource();
 final String newValue = (String) event.getNewValue();
 if 
(event.getEventType().equals(EditEvent.EventType.Stop)) {
-dispatcher.execute(new CreateFolder(new 
IMAPFolder(newValue.trim())), new AsyncCallbackGenericResult() {
+dispatcher.execute(new CreateFolder(new 
IMAPFolderImpl(newValue.trim())), new AsyncCallbackGenericResult() {
 
 public void onFailure(Throwable caught) {
 GWT.log(Error while create folder, 
caught);
@@ -681,7 +686,7 @@ System.out.println(111+response);
 
 public void onLogin(LoginEvent event) {
 user = event.getUser();
-folder = new 
IMAPFolder(user.getSettings().getInboxFolderName());;
+folder = new 
IMAPFolderImpl(user.getSettings().getInboxFolderName());;
 searchValue = null;
 //showMessageTable(user, folder, searchValue

svn commit: r1522126 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/java/org/apache/hupa/client/rf/ client/src/main/java/org/apache/hupa/client/ui/ client/src

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:12:04 2013
New Revision: 1522126

URL: http://svn.apache.org/r1522126
Log: (empty)

Added:

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/locator/EntityLocator.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolderImpl.java
  - copied, changed from r1522125, 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolder.java
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/proxy/

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/proxy/AbstractEntityProxy.java
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rf/
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rf/Entity.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rf/EntityBase.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageTableModel.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/IMAPFolderProxy.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageTableModel.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java

james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/FetchFoldersHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/CreateFolderHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/DeleteFolderHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/DeleteMessageByUidHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FowardMessageHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/GetMessageDetailsHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/HandlersTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/ReplyMessageHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/preferences/InImapUserPreferencesStorageTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/preferences/InSessionUserPreferencesStorageTest.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolder.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java?rev=1522126r1=1522125r2=1522126view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
 Thu Sep 12 02:12:04 2013
@@ -34,6 +34,7 @@ import org.apache.hupa.client.mvp.Messag
 import org.apache.hupa.client.widgets.HasDialog;
 import org.apache.hupa.client.widgets.IMAPTreeItem;
 import org.apache.hupa.shared.data.IMAPFolder;
+import org.apache.hupa.shared.data.IMAPFolderImpl;
 import org.apache.hupa.shared.data.Message;
 import org.apache.hupa.shared.data.Message.IMAPFlag;
 import org.apache.hupa.shared.data.MessageDetails;
@@ -180,7 +181,7 @@ public class MainPresenter extends Widge
 
 public void onEditEvent(EditEvent event) {
 if (event.getEventType().equals(EditEvent.EventType.Stop)) 
{
-IMAPFolder iFolder = new IMAPFolder((String) 
event.getOldValue());
+IMAPFolder iFolder = new IMAPFolderImpl((String) 
event.getOldValue());
 final String newName = (String) event.getNewValue();
 if (iFolder.getFullName().equalsIgnoreCase(newName) == 
false) {
 dispatcher.execute(new RenameFolder(iFolder, 
newName), new HupaCallbackGenericResult(dispatcher, eventBus) {
@@ -446,7 +447,7 @@ public class MainPresenter extends Widge
 final IMAPTreeItem item = (IMAPTreeItem) 
event.getSource();
 final String newValue = (String) event.getNewValue();
 if 
(event.getEventType().equals(EditEvent.EventType.Stop)) {
-dispatcher.execute(new CreateFolder(new 
IMAPFolder

svn commit: r1522127 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/java/org/apache/hupa/client/ui/ clie

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:13:01 2013
New Revision: 1522127

URL: http://svn.apache.org/r1522127
Log:
undo previous operations, for which is not the feasible method.
we can not make the client and server implement the same entity interface.

Removed:

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolderImpl.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageTableModel.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageTableModel.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java

james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/FetchFoldersHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/CreateFolderHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/DeleteFolderHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/DeleteMessageByUidHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FowardMessageHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/GetMessageDetailsHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/HandlersTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/ReplyMessageHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/preferences/InImapUserPreferencesStorageTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/preferences/InSessionUserPreferencesStorageTest.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolder.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java?rev=1522127r1=1522126r2=1522127view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 Thu Sep 12 02:13:01 2013
@@ -263,7 +263,6 @@ import org.apache.hupa.client.ui.WidgetC
 import org.apache.hupa.client.widgets.HasDialog;
 import org.apache.hupa.client.widgets.IMAPTreeItem;
 import org.apache.hupa.shared.data.IMAPFolder;
-import org.apache.hupa.shared.data.IMAPFolderImpl;
 import org.apache.hupa.shared.data.Message;
 import org.apache.hupa.shared.data.Message.IMAPFlag;
 import org.apache.hupa.shared.data.MessageDetails;
@@ -340,8 +339,6 @@ public class WestActivity extends Abstra
 
 private Place currentPlace;
 
-private ListIMAPFolderProxy folders;
-
 public void setCurrentPlace(Place place){
this.currentPlace = place;
 }
@@ -391,9 +388,11 @@ public class WestActivity extends Abstra
 
@Override
public void onSuccess(ListIMAPFolderProxy response) {
-   folders = response;
+System.out.println(111+response);
   display.bindTreeItems(null);
-  enableClick(false);
+//  // disable
+  display.getDeleteEnable().setEnabled(false);
+  display.getRenameEnable().setEnabled(false);
   display.setLoadingFolders(false);

}
@@ -413,12 +412,6 @@ public class WestActivity extends Abstra
 
 }
 
-private void enableClick(boolean flag){
-display.getDeleteEnable().setEnabled(flag);
-display.getRenameEnable().setEnabled(flag);
-}
-
-
 /**
  * Create recursive the TreeNodes with all childs
  * 
@@ -435,7 +428,7 @@ public class WestActivity extends Abstra
 
 public void onEditEvent(EditEvent event) {
 if (event.getEventType().equals(EditEvent.EventType.Stop)) 
{
-IMAPFolder iFolder = new IMAPFolderImpl((String) 
event.getOldValue());
+IMAPFolder iFolder = new IMAPFolder((String) 
event.getOldValue

svn commit: r1522129 [2/2] - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/java/org/apache/hupa/client/pl

2013-09-11 Thread dongxu
Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/MessagesReceivedEvent.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/MessagesReceivedEvent.java?rev=1522129r1=1522128r2=1522129view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/MessagesReceivedEvent.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/MessagesReceivedEvent.java
 Thu Sep 12 02:14:17 2013
@@ -26,9 +26,12 @@ import org.apache.hupa.shared.domain.Mes
 ===
 import java.util.ArrayList;
 
-import org.apache.hupa.shared.data.IMAPFolder;
 import org.apache.hupa.shared.data.Message;
+ HEAD
  first commit
+===
+import org.apache.hupa.shared.proxy.IMAPFolderProxy;
+ Aim to make the front end view work after the server side's IMAPFolder 
services RF being working, but there are issues on RF's find* method, I think.
 
 import com.google.gwt.event.shared.GwtEvent;
 
@@ -41,10 +44,14 @@ public class MessagesReceivedEvent exten
 public MessagesReceivedEvent(ImapFolder folder, ListMessage messages) {
 ===
 private ArrayListMessage messages;
-private IMAPFolder folder;
+private IMAPFolderProxy folder;
 
+ HEAD
 public MessagesReceivedEvent(IMAPFolder folder, ArrayListMessage 
messages) {
  first commit
+===
+public MessagesReceivedEvent(IMAPFolderProxy folder, ArrayListMessage 
messages) {
+ Aim to make the front end view work after the server side's IMAPFolder 
services RF being working, but there are issues on RF's find* method, I think.
 this.messages = messages;
 this.folder = folder;
 }
@@ -60,8 +67,12 @@ public class MessagesReceivedEvent exten
 return messages;
 }
 
+ HEAD
 public IMAPFolder getFolder() {
  first commit
+===
+public IMAPFolderProxy getFolder() {
+ Aim to make the front end view work after the server side's IMAPFolder 
services RF being working, but there are issues on RF's find* method, I think.
 return folder;
 }
 

Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java?rev=1522129r1=1522128r2=1522129view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java
 Thu Sep 12 02:14:17 2013
@@ -20,6 +20,7 @@
 package org.apache.hupa.shared.events;
 
  HEAD
+ HEAD
 import org.apache.hupa.shared.domain.ImapFolder;
 import org.apache.hupa.shared.domain.Message;
 import org.apache.hupa.shared.domain.MessageDetails;
@@ -30,6 +31,12 @@ import org.apache.hupa.shared.data.Messa
 import org.apache.hupa.shared.data.MessageDetails;
 import org.apache.hupa.shared.data.User;
  first commit
+===
+import org.apache.hupa.shared.data.Message;
+import org.apache.hupa.shared.data.MessageDetails;
+import org.apache.hupa.shared.data.User;
+import org.apache.hupa.shared.proxy.IMAPFolderProxy;
+ Aim to make the front end view work after the server side's IMAPFolder 
services RF being working, but there are issues on RF's find* method, I think.
 
 import com.google.gwt.event.shared.GwtEvent;
 
@@ -37,7 +44,7 @@ public class ReplyMessageEvent extends G
 
 public final static TypeReplyMessageEventHandler TYPE = new 
TypeReplyMessageEventHandler();
 private User user;
-private IMAPFolder folder;
+private IMAPFolderProxy folder;
 private Message message;
 private MessageDetails details;
 private boolean replyAll;
@@ -52,7 +59,7 @@ public class ReplyMessageEvent extends G
 return TYPE;
 }
 
-public ReplyMessageEvent(User user, IMAPFolder folder, Message message, 
MessageDetails details, boolean replyAll) {
+public ReplyMessageEvent(User user, IMAPFolderProxy folder, Message 
message, MessageDetails details, boolean replyAll) {
 this.user = user;
 this.folder = folder;
 this.message = message;
@@ -64,7 +71,7 @@ public class ReplyMessageEvent extends G
 return user;
 }
 
-public IMAPFolder getFolder() {
+public IMAPFolderProxy getFolder() {
 return folder;
 }
 

Copied: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java
 (from r1522127, 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/locator/EntityLocator.java)
URL: 

svn commit: r1522132 [4/4] - in /james/hupa/trunk: ./ client/ client/src/main/java/org/apache/hupa/ client/src/main/java/org/apache/hupa/client/ client/src/main/java/org/apache/hupa/client/gin/ client

2013-09-11 Thread dongxu
Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageByUid.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageByUid.java?rev=1522132r1=1522131r2=1522132view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageByUid.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageByUid.java
 Thu Sep 12 02:42:10 2013
@@ -21,8 +21,12 @@ package org.apache.hupa.shared.rpc;
 
 import java.util.ArrayList;
 
+ HEAD
 import org.apache.hupa.shared.proxy.IMAPFolderProxy;
 
+===
+import org.apache.hupa.shared.data.IMAPFolder;
+ first commit
 
 public class DeleteMessageByUid extends DeleteMessage {
 
@@ -30,7 +34,11 @@ public class DeleteMessageByUid extends 
 
 private ArrayListLong messageUids;
 
+ HEAD
 public DeleteMessageByUid(IMAPFolderProxy folder, ArrayListLong 
messageUids) {
+===
+public DeleteMessageByUid(IMAPFolder folder, ArrayListLong messageUids) {
+ first commit
 super(folder);
 this.messageUids = messageUids;
 }

Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageResult.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageResult.java?rev=1522132r1=1522131r2=1522132view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageResult.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessageResult.java
 Thu Sep 12 02:42:10 2013
@@ -23,8 +23,13 @@ import java.io.Serializable;
 
 import net.customware.gwt.dispatch.shared.Result;
 
+ HEAD
 import org.apache.hupa.shared.data.User;
 import org.apache.hupa.shared.proxy.IMAPFolderProxy;
+===
+import org.apache.hupa.shared.data.IMAPFolder;
+import org.apache.hupa.shared.data.User;
+ first commit
 
 public class DeleteMessageResult implements Result, Serializable {
 
@@ -33,7 +38,11 @@ public class DeleteMessageResult impleme
  */
 private static final long serialVersionUID = -5149203502019947912L;
 private User user;
+ HEAD
 private IMAPFolderProxy folder;
+===
+private IMAPFolder folder;
+ first commit
 private int deleteCount;
 
 
@@ -43,7 +52,11 @@ public class DeleteMessageResult impleme
 
 }
 
+ HEAD
 public DeleteMessageResult(User user,IMAPFolderProxy folder, int 
deleteCount) {
+===
+public DeleteMessageResult(User user,IMAPFolder folder, int deleteCount) {
+ first commit
 this.user = user;
 this.folder = folder;
 this.deleteCount = deleteCount;
@@ -57,7 +70,11 @@ public class DeleteMessageResult impleme
 return user;
 }
 
+ HEAD
 public IMAPFolderProxy getFolder() {
+===
+public IMAPFolder getFolder() {
+ first commit
 return folder;
 }
 

Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFoldersResult.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFoldersResult.java?rev=1522132r1=1522131r2=1522132view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFoldersResult.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFoldersResult.java
 Thu Sep 12 02:42:10 2013
@@ -20,11 +20,20 @@
 package org.apache.hupa.shared.rpc;
 
 import java.io.Serializable;
+ HEAD
 import java.util.List;
 
 import net.customware.gwt.dispatch.shared.Result;
 
 import org.apache.hupa.shared.proxy.IMAPFolderProxy;
+===
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.hupa.shared.data.IMAPFolder;
+
+import net.customware.gwt.dispatch.shared.Result;
+ first commit
 
 public class FetchFoldersResult implements Result, Serializable {
 
@@ -32,9 +41,15 @@ public class FetchFoldersResult implemen
  * 
  */
 private static final long serialVersionUID = -6215610133650989605L;
+ HEAD
 private ListIMAPFolderProxy folders;
 
 public FetchFoldersResult(ListIMAPFolderProxy folders) {
+===
+private ListIMAPFolder folders;
+
+public FetchFoldersResult(ListIMAPFolder folders) {
+ first commit
 this.folders=folders;
 }
 
@@ -42,24 +57,40 @@ public class FetchFoldersResult implemen
 private FetchFoldersResult() {
 }
 
+ HEAD
 public ListIMAPFolderProxy getFolders() {
+===
+public ListIMAPFolder getFolders() {
+ first commit
 return folders;
 }
 
 public String toString() {
 StringBuffer ret = new StringBuffer();
+ HEAD
 for (IMAPFolderProxy folder : folders) {
  

svn commit: r1522134 - in /james/hupa/trunk: ./ client/ client/src/main/java/org/apache/hupa/client/mvp/ server/src/main/java/org/apache/hupa/server/handler/ server/src/test/java/org/apache/hupa/serve

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:43:25 2013
New Revision: 1522134

URL: http://svn.apache.org/r1522134
Log:
constantly changed by manolo

Modified:
james/hupa/trunk/client/pom.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
james/hupa/trunk/pom.xml

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522134r1=1522133r2=1522134view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:43:25 2013
@@ -48,12 +48,18 @@
 dependency
 groupIdorg.apache.hupa/groupId
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 artifactIdhupa-mock/artifactId
 /dependency
 dependency
 groupIdorg.apache.hupa/groupId
+ HEAD
 ===
  first commit
+===
+ constantly changed by manolo
 artifactIdhupa-shared/artifactId
 /dependency
 dependency
@@ -383,6 +389,7 @@
/plugin
 /plugins
 /build
+ HEAD
 profiles
   profile
 idprod/id
@@ -399,4 +406,6 @@
   gwt.logLevelERROR/gwt.logLevel
 /properties
  first commit
+===
+ constantly changed by manolo
 /project

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java?rev=1522134r1=1522133r2=1522134view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
Thu Sep 12 02:43:25 2013
@@ -150,6 +150,7 @@ public class MainView extends Composite 
 // Not used so far
 // createNorth();
 // dockPanel.add(north, DockPanel.NORTH);
+// dockPanel.setCellHorizontalAlignment(north, DockPanel.ALIGN_RIGHT);
 
  constant changed by manolo
 createWest();
@@ -158,8 +159,11 @@ public class MainView extends Composite 
 
 createCenter();
 dockPanel.add(center, DockPanel.CENTER);
+ HEAD
 dockPanel.setCellHorizontalAlignment(north, DockPanel.ALIGN_RIGHT);
  first commit
+===
+ constantly changed by manolo
 dockPanel.setCellHorizontalAlignment(center, DockPanel.ALIGN_LEFT);
 
 initWidget(dockPanel);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java?rev=1522134r1=1522133r2=1522134view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendPresenter.java
 Thu Sep 12 02:43:25 2013
@@ -331,11 +331,15 @@ public class MessageSendPresenter extend
 display.getToText().setText(mailto);
 } else if (type.equals(Type.FORWARD)) {
  HEAD
+ HEAD
+===
+ constantly changed by manolo
String subject = oldmessage.getSubject() != null ? 
oldmessage.getSubject().trim() : ;
if (!subject.toLowerCase().startsWith(fwd:)){
subject = Fwd:  + subject;
}
display.getSubjectText().setText(subject);
+ HEAD
 } else if (type.equals(Type.REPLY) || type.equals(Type.REPLY_ALL)) {
String subject = oldmessage.getSubject() != null ? 
oldmessage.getSubject().trim() : ;
if (!subject.toLowerCase().startsWith(re:)){
@@ -351,6 +355,14 @@ public class MessageSendPresenter extend
 display.getSubjectText().setText(Re:  + 
oldmessage.getSubject());
 }
  first commit
+===
+} else if (type.equals(Type.REPLY) || type.equals(Type.REPLY_ALL)) {
+   String subject = oldmessage.getSubject() != null ? 
oldmessage.getSubject().trim() : ;
+   if (!subject.toLowerCase().startsWith(re:)){
+   subject = Re:  + subject;
+   }
+   display.getSubjectText().setText(subject);
+ constantly changed by manolo
 if (type.equals(Type.REPLY)) { 
 if (oldmessage.getReplyto

svn commit: r1522135 - in /james/hupa/trunk: mock/src/main/java/org/apache/hupa/server/mock/ server/src/main/java/org/apache/hupa/server/ server/src/main/java/org/apache/hupa/server/guice/ server/src/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:43:53 2013
New Revision: 1522135

URL: http://svn.apache.org/r1522135
Log:
constantly changed by manolo

Modified:

james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/servlet/MessageSourceServlet.java
james/hupa/trunk/src/site/xdoc/index.xml

Modified: 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java?rev=1522135r1=1522134r2=1522135view=diff
==
--- 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java
 (original)
+++ 
james/hupa/trunk/mock/src/main/java/org/apache/hupa/server/mock/MockIMAPFolder.java
 Thu Sep 12 02:43:53 2013
@@ -22,6 +22,7 @@ package org.apache.hupa.server.mock;
  HEAD
  HEAD
  HEAD
+ HEAD
 ===
 import com.sun.mail.imap.IMAPFolder;
 import com.sun.mail.imap.IMAPStore;
@@ -34,6 +35,8 @@ import com.sun.mail.imap.IMAPFolder;
 import com.sun.mail.imap.IMAPStore;
 
  first commit
+===
+ constantly changed by manolo
 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -44,6 +47,7 @@ import javax.mail.Flags;
  HEAD
  HEAD
  HEAD
+ HEAD
 import javax.mail.Flags.Flag;
 ===
  first commit
@@ -52,6 +56,9 @@ import javax.mail.Flags.Flag;
  constantly changed by manolo
 ===
  first commit
+===
+import javax.mail.Flags.Flag;
+ constantly changed by manolo
 import javax.mail.Folder;
 import javax.mail.Message;
 import javax.mail.MessagingException;
@@ -60,6 +67,7 @@ import javax.mail.Store;
  HEAD
  HEAD
  HEAD
+ HEAD
 import javax.mail.internet.MimeMessage;
 import javax.mail.search.SearchTerm;
 
@@ -85,6 +93,14 @@ import com.sun.mail.imap.IMAPStore;
  constantly changed by manolo
 ===
  first commit
+===
+import javax.mail.internet.MimeMessage;
+import javax.mail.search.SearchTerm;
+
+import com.sun.mail.imap.IMAPFolder;
+import com.sun.mail.imap.IMAPStore;
+
+ constantly changed by manolo
 public class MockIMAPFolder extends IMAPFolder {
 
 public static final char SEPARATOR = '.';
@@ -306,6 +322,7 @@ public class MockIMAPFolder extends IMAP
  HEAD
  HEAD
  HEAD
+ HEAD
 public synchronized Message[] search(SearchTerm search)
 throws MessagingException {
 checkExists();
@@ -329,6 +346,11 @@ public class MockIMAPFolder extends IMAP
 public synchronized Message[] search(SearchTerm search)
 throws MessagingException {
 checkExists();
+===
+public synchronized Message[] search(SearchTerm search)
+throws MessagingException {
+checkExists();
+ constantly changed by manolo
 ArrayListMessage ret = new ArrayListMessage();
 for (Message m : messages) {
if (search.match(m)) {
@@ -336,9 +358,12 @@ public class MockIMAPFolder extends IMAP
}
 }
 return ret.toArray(new Message[0]);
+ HEAD
  constantly changed by manolo
 ===
  first commit
+===
+ constantly changed by manolo
 }
 
 @Override

Modified: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java?rev=1522135r1=1522134r2=1522135view=diff
==
--- 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
 (original)
+++ 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java
 Thu Sep 12 02:43:53 2013
@@ -103,6 +103,9 @@ public class InMemoryIMAPStoreCache impl
  HEAD
  HEAD
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 ===
  constantly changed by manolo
IMAPStore ret =  get(user.getName(),user.getPassword());
@@ -113,6 +116,7 @@ public class InMemoryIMAPStoreCache impl
}
return ret;
  HEAD
+ HEAD
 ===
 return get(user.getName(),user.getPassword());
  first commit
@@ -121,6 +125,8 @@ public class InMemoryIMAPStoreCache impl
 ===
 return get(user.getName(),user.getPassword());
  first commit
+===
+ constantly changed by manolo
 }
 
 /*

Modified: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/guice/GuiceServletConfig.java?rev=1522135r1=1522134r2=1522135view=diff
==
--- 
james/hupa

svn commit: r1522133 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/mvp/ server/src/main/java/org/apache/hupa/server/handler/ server/src/main/java/org/apache/hupa/server/preferenc

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:42:51 2013
New Revision: 1522133

URL: http://svn.apache.org/r1522133
Log:
constant changed by manolo

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/preferences/UserPreferencesStorage.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/ContactsHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ContactsResult.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java?rev=1522133r1=1522132r2=1522133view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java 
Thu Sep 12 02:42:51 2013
@@ -132,6 +132,7 @@ public class MainView extends Composite 
 dockPanel.setWidth(100%);
 
  HEAD
+ HEAD
 // Not used so far
 // createNorth();
 // dockPanel.add(north, DockPanel.NORTH);
@@ -145,12 +146,17 @@ public class MainView extends Composite 
 dockPanel.add(center, DockPanel.CENTER);
 ===
 createNorth();
+===
+// Not used so far
+// createNorth();
+// dockPanel.add(north, DockPanel.NORTH);
+
+ constant changed by manolo
 createWest();
-createCenter();
-
-dockPanel.add(north, DockPanel.NORTH);
 dockPanel.add(west, DockPanel.WEST);
 dockPanel.setCellWidth(west, 160px);
+
+createCenter();
 dockPanel.add(center, DockPanel.CENTER);
 dockPanel.setCellHorizontalAlignment(north, DockPanel.ALIGN_RIGHT);
  first commit
@@ -202,7 +208,11 @@ public class MainView extends Composite 
 west.add(panel);
 }
 
+ HEAD
  first commit
+===
+@SuppressWarnings(unused)
+ constant changed by manolo
 private void createNorth() {
 north = new VerticalPanel();
 north.setWidth(100%);

Modified: 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java?rev=1522133r1=1522132r2=1522133view=diff
==
--- 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java
 (original)
+++ 
james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java
 Thu Sep 12 02:42:51 2013
@@ -166,6 +166,7 @@ public abstract class AbstractFetchMessa
 String from = null;
 if (m.getFrom() != null  m.getFrom().length 0 ) {
  HEAD
+ HEAD
 from = MessageUtils.decodeText(m.getFrom()[0].toString());
 ===
 from = m.getFrom()[0].toString().trim();
@@ -176,12 +177,16 @@ public abstract class AbstractFetchMessa
 logger.debug(Unable to decode from  + from +   + 
e.getMessage());
 }
  first commit
+===
+from = decodeText(m.getFrom()[0].toString());
+ constant changed by manolo
 }
 msg.setFrom(from);
 
 String replyto = null;
 if (m.getReplyTo() != null  m.getReplyTo().length 0 ) {
  HEAD
+ HEAD
 replyto = 
MessageUtils.decodeText(m.getReplyTo()[0].toString());
 ===
 replyto = m.getReplyTo()[0].toString().trim();
@@ -192,6 +197,9 @@ public abstract class AbstractFetchMessa
 logger.debug(Unable to decode replyto  + replyto +   + 
e.getMessage());
 }
  first commit
+===
+replyto = decodeText(m.getReplyTo()[0].toString());
+ constant changed by manolo
 }
 msg.setReplyto(replyto);
 
@@ -201,6 +209,7 @@ public abstract class AbstractFetchMessa
 if (toArray != null) {
 for (Address addr : toArray) {
  HEAD
+ HEAD
 String mailTo = MessageUtils.decodeText(addr.toString());
 to.add(mailTo);
 ===
@@ -214,14 +223,20 @@ public abstract class AbstractFetchMessa
 if (mailTo != null)
 to.add(mailTo);
  first commit
+===
+String mailTo = decodeText(addr.toString());
+to.add(mailTo);
+ constant changed by manolo
 }
 }
 msg.setTo

svn commit: r1522138 - in /james/hupa/trunk: client/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/webapp/ server/src/main/java/org/apache/hupa/server/handler/ server/src/main/java/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:45:52 2013
New Revision: 1522138

URL: http://svn.apache.org/r1522138
Log:
constantly changed by manolo

Modified:
james/hupa/trunk/client/pom.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java
james/hupa/trunk/client/src/main/webapp/Hupa.html

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractSendMessageHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/utils/MessageUtils.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/handler/FetchMessagesHandlerTest.java

james/hupa/trunk/server/src/test/java/org/apache/hupa/server/utils/MessageUtilsTest.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ContactsResult.java

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522138r1=1522137r2=1522138view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:45:52 2013
@@ -18,11 +18,15 @@
 under the License.
 --
  HEAD
+ HEAD
 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/maven-v4_0_0.xsd;
 ===
 project
 xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
+===
+project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
+ constantly changed by manolo
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
  first commit
 modelVersion4.0.0/modelVersion
@@ -95,16 +99,22 @@
 artifactIdgwt-user/artifactId
 exclusions
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 exclusion
 groupIdjavax.validation/groupId
 artifactIdvalidation-api/artifactId
 /exclusion
+ HEAD
 ===
   exclusion
 groupIdjavax.validation/groupId
 artifactIdvalidation-api/artifactId
   /exclusion
  first commit
+===
+ constantly changed by manolo
 /exclusions
 /dependency
 dependency
@@ -122,6 +132,7 @@
 /dependency
 dependency
  HEAD
+ HEAD
 groupIdorg.hibernate/groupId
 artifactIdhibernate-validator/artifactId
 version4.2.0.Final/version
@@ -130,6 +141,11 @@
   artifactIdhibernate-validator/artifactId
   version4.2.0.Final/version
  first commit
+===
+groupIdorg.hibernate/groupId
+artifactIdhibernate-validator/artifactId
+version4.2.0.Final/version
+ constantly changed by manolo
 /dependency
 dependency
 groupIdorg.json/groupId
@@ -148,6 +164,9 @@
 artifactIdslf4j-log4j12/artifactId
 /dependency
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 dependency
 groupIdorg.eclipse.jetty/groupId
 artifactIdjetty-server/artifactId
@@ -156,6 +175,7 @@
 groupIdorg.eclipse.jetty/groupId
 artifactIdjetty-webapp/artifactId
 /dependency
+ HEAD
 ===
dependency
groupIdorg.eclipse.jetty/groupId
@@ -166,6 +186,8 @@
artifactIdjetty-webapp/artifactId
/dependency
  first commit
+===
+ constantly changed by manolo
 /dependencies
 build
 
outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory
@@ -177,10 +199,14 @@
 runTargetHupa.html/runTarget
 extraJvmArgs
  HEAD
+ HEAD
 -Xmx512M -Xss128M
 ===
 -Xmx512M -Xss128M 
-Dhupa.config.file=${project.parent.basedir}/server/src/main/webapp/WEB-INF/conf/config.properties
  first commit
+===
+-Xmx512M -Xss128M
+ constantly changed by manolo
 /extraJvmArgs
 localWorkers1/localWorkers
 compileReporttrue/compileReport
@@ -233,11 +259,15 @@
 /webResources
 warName${project.artifactId}-${project.version}/warName
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 archive
 manifest
 mainClassorg.apache.hupa.Launcher/mainClass
 /manifest
 /archive
+ HEAD
 ===
archive

svn commit: r1522137 - in /james/hupa/trunk/client/src/main: java/org/apache/hupa/client/HupaCSS.java java/org/apache/hupa/client/mvp/IMAPMessageListView.java java/org/apache/hupa/client/mvp/LoginView

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:45:06 2013
New Revision: 1522137

URL: http://svn.apache.org/r1522137
Log:
constantly changed by manolo

Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java
james/hupa/trunk/client/src/main/webapp/Hupa.css
james/hupa/trunk/client/src/main/webapp/Hupa.html

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java?rev=1522137r1=1522136r2=1522137view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java 
Thu Sep 12 02:45:06 2013
@@ -78,8 +78,13 @@ public class HupaCSS extends WidgetsCSS 
 
 public static final String C_validate = hupa-validate-error;
  HEAD
+ HEAD
 
 public static final String C_button = hupa-button;
 ===
  first commit
+===
+
+public static final String C_button = hupa-button;
+ constantly changed by manolo
 }

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java?rev=1522137r1=1522136r2=1522137view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java
 Thu Sep 12 02:45:06 2013
@@ -476,6 +476,7 @@ public class IMAPMessageListView extends
 cTableModel.setRowCount(CachedTableModel.UNKNOWN_ROW_COUNT);
  HEAD
  HEAD
+ HEAD
 mailTable.gotoPage(0, false);
 ===
 mailTable.gotoFirstPage();
@@ -483,6 +484,9 @@ public class IMAPMessageListView extends
 ===
 //mailTable.gotoFirstPage();
  constantly changed by manolo
+===
+mailTable.gotoPage(0, false);
+ constantly changed by manolo
 }
 
 /*

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java?rev=1522137r1=1522136r2=1522137view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java 
Thu Sep 12 02:45:06 2013
@@ -24,16 +24,22 @@ import org.apache.hupa.client.HupaConsta
 import org.apache.hupa.widgets.ui.Loading;
 import org.apache.hupa.widgets.ui.RndPanel;
  HEAD
+ HEAD
 ===
 import org.cobogw.gwt.user.client.ui.Button;
 import org.cobogw.gwt.user.client.ui.ButtonBar;
  first commit
+===
+ constantly changed by manolo
 
 import com.google.gwt.event.dom.client.HasClickHandlers;
 import com.google.gwt.event.dom.client.KeyCodes;
 import com.google.gwt.event.dom.client.KeyUpEvent;
 import com.google.gwt.event.dom.client.KeyUpHandler;
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.Composite;
@@ -46,6 +52,7 @@ import com.google.gwt.user.client.ui.Has
 import com.google.gwt.user.client.ui.Panel;
 import com.google.gwt.user.client.ui.PasswordTextBox;
 import com.google.gwt.user.client.ui.SubmitButton;
+ HEAD
 ===
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.FlexTable;
@@ -53,6 +60,8 @@ import com.google.gwt.user.client.ui.Foc
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.PasswordTextBox;
  first commit
+===
+ constantly changed by manolo
 import com.google.gwt.user.client.ui.TextBox;
 import com.google.gwt.user.client.ui.VerticalPanel;
 import com.google.gwt.user.client.ui.Widget;
@@ -65,6 +74,7 @@ import com.google.inject.Inject;
 public class LoginView extends Composite implements 
KeyUpHandler,LoginPresenter.Display{
 
  HEAD
+ HEAD
 private Button loginButton = new Button();
 private SubmitButton submitButton;
 private Button resetButton;
@@ -80,17 +90,34 @@ public class LoginView extends Composite
 
 ===
 private Button loginButton;
+===
+private Button loginButton = new Button();
+private SubmitButton submitButton;
+ constantly changed by manolo
 private Button resetButton;
-private TextBox usernameTextBox = new TextBox();
-private PasswordTextBox

svn commit: r1522139 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa: ./ client/ client/activity/ client/gin/ client/mvp/ client/place/ client/ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:46:28 2013
New Revision: 1522139

URL: http://svn.apache.org/r1522139
Log:
change the LOGIN progress using native MVP instead of gwt-presenter

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaEvoCallback.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/gin/HupaEvoClientModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/gin/HupaEvoGinjector.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/gin/InjectablePlaceController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/ActivityPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPlaceFactory.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPlaceHistoryMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/LoginPlace.java
Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/LoginView.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml?rev=1522139r1=1522138r2=1522139view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml Thu Sep 
12 02:46:28 2013
@@ -41,10 +41,14 @@
   inherits name='com.google.gwt.widgetideas.WidgetIdeas'/
   inherits name='com.google.gwt.gen2.commonwidget.CommonWidget' /
   inherits name='com.google.gwt.gen2.table.override.Override'/
-  inherits name='com.google.gwt.gen2.table.ScrollTable'/
+  inherits name='com.google.gwt.gen2.table.ScrollTable'/!--
   inherits name='net.customware.gwt.dispatch.Dispatch' /
+ HEAD
   inherits name='net.customware.gwt.presenter.Presenter' /
  HEAD
+===
+  inherits name='net.customware.gwt.presenter.Presenter' /  --
+ change the LOGIN progress using native MVP instead of gwt-presenter
   inherits name=com.google.gwt.activity.Activity/
   inherits name=com.google.gwt.place.Place/
   inherits name=com.google.gwt.inject.Inject/

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java?rev=1522139r1=1522138r2=1522139view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/Hupa.java Thu 
Sep 12 02:46:28 2013
@@ -23,6 +23,7 @@ package org.apache.hupa.client;
  HEAD
  HEAD
  HEAD
+ HEAD
 import org.apache.hupa.client.ioc.AppGinjector;
 
 import com.google.gwt.core.client.EntryPoint;
@@ -69,20 +70,31 @@ import org.apache.hupa.client.mvp.AppPre
  HEAD
  HEAD
 ===
+===
+ change the LOGIN progress using native MVP instead of gwt-presenter
 import org.apache.hupa.client.gin.HupaEvoGinjector;
 import org.apache.hupa.client.mvp.AppPlaceFactory;
 import org.apache.hupa.client.mvp.AppPlaceHistoryMapper;
 import org.apache.hupa.client.place.LoginPlace;
+ HEAD
  change the LOGIN progress using native MVP instead of gwt-presenter
 ===
  Change to new mvp framework - first step
 ===
  first commit
+===
+ change the LOGIN progress using native MVP instead of gwt-presenter
 
+import com.google.gwt.activity.shared.ActivityManager;
+import com.google.gwt.activity.shared.ActivityMapper;
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.shared.EventBus;
+import com.google.gwt.place.shared.PlaceController;
+import com.google.gwt.place.shared.PlaceHistoryHandler;
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.SimplePanel;
 
  HEAD
 public class Hupa implements EntryPoint {
@@ -124,21 +136,45 @@ public class Hupa implements EntryPoint 
  Change to new mvp framework - first step
 ===
 public class Hupa implements EntryPoint{
-private final HupaGinjector injector = GWT.create(HupaGinjector.class);
+//private final HupaGinjector injector = GWT.create(HupaGinjector.class);
+
+   private SimplePanel appWidget = new SimplePanel();
+  private final HupaEvoGinjector injector = GWT.create(HupaEvoGinjector.class);
 
 public void onModuleLoad

svn commit: r1522141 - in /james/hupa/trunk: client/pom.xml mock/pom.xml pom.xml server/pom.xml shared/pom.xml src/site/resources/demo/index.html src/site/xdoc/index.xml widgets/pom.xml

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:47:41 2013
New Revision: 1522141

URL: http://svn.apache.org/r1522141
Log:
constantly changed by manolo

Modified:
james/hupa/trunk/client/pom.xml
james/hupa/trunk/mock/pom.xml
james/hupa/trunk/pom.xml
james/hupa/trunk/server/pom.xml
james/hupa/trunk/shared/pom.xml
james/hupa/trunk/src/site/resources/demo/index.html
james/hupa/trunk/src/site/xdoc/index.xml
james/hupa/trunk/widgets/pom.xml

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522141r1=1522140r2=1522141view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:47:41 2013
@@ -19,6 +19,7 @@
 --
  HEAD
  HEAD
+ HEAD
 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/maven-v4_0_0.xsd;
 ===
 project
@@ -29,15 +30,22 @@
  constantly changed by manolo
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
  first commit
+===
+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/maven-v4_0_0.xsd;
+ constantly changed by manolo
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.apache.hupa/groupId
 artifactIdhupa-parent/artifactId
  HEAD
+ HEAD
 version0.0.3-SNAPSHOT/version
 ===
 version0.0.2-SNAPSHOT/version
  first commit
+===
+version0.0.3-SNAPSHOT/version
+ constantly changed by manolo
 relativePath../pom.xml/relativePath
 /parent
 artifactIdhupa/artifactId

Modified: james/hupa/trunk/mock/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/mock/pom.xml?rev=1522141r1=1522140r2=1522141view=diff
==
--- james/hupa/trunk/mock/pom.xml (original)
+++ james/hupa/trunk/mock/pom.xml Thu Sep 12 02:47:41 2013
@@ -20,6 +20,7 @@
  HEAD
  HEAD
  HEAD
+ HEAD
 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/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 parent
@@ -39,12 +40,16 @@
  constantly changed by manolo
 ===
  first commit
+===
+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/maven-v4_0_0.xsd;
+ constantly changed by manolo
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.apache.hupa/groupId
 artifactIdhupa-parent/artifactId
  HEAD
  HEAD
+ HEAD
 version0.0.2-SNAPSHOT/version
  first commit
 ===
@@ -53,6 +58,9 @@
 ===
 version0.0.2-SNAPSHOT/version
  first commit
+===
+version0.0.3-SNAPSHOT/version
+ constantly changed by manolo
 relativePath../pom.xml/relativePath
 /parent
 artifactIdhupa-mock/artifactId

Modified: james/hupa/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/pom.xml?rev=1522141r1=1522140r2=1522141view=diff
==
--- james/hupa/trunk/pom.xml (original)
+++ james/hupa/trunk/pom.xml Thu Sep 12 02:47:41 2013
@@ -20,6 +20,7 @@
  HEAD
  HEAD
  HEAD
+ HEAD
 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/maven-v4_0_0.xsd;
 ===
 ===
@@ -35,6 +36,9 @@
  constantly changed by manolo
 ===
  first commit
+===
+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/maven-v4_0_0.xsd;
+ constantly changed by manolo
 modelVersion4.0.0/modelVersion
 parent
 groupIdorg.apache.james/groupId
@@ -43,6 +47,9 @@
  HEAD
  HEAD
  HEAD
+ HEAD
+===
+ constantly changed by manolo
 ===
  constantly changed by manolo
 relativePath /
@@ -51,6 +58,7 @@
 artifactIdhupa-parent/artifactId
 version0.0.3-SNAPSHOT/version
  HEAD
+ HEAD
 ===
 ===
  first commit
@@ -65,6 +73,8 @@
  constantly changed by manolo
 ===
  first commit
+===
+ constantly changed by manolo
 packagingpom/packaging
 nameApache James Hupa Parent/name
 descriptionHupa is a GWT based Webmail/description
@@ -194,7 +204,7 @@
 ===
 gwtVersion2.4.0/gwtVersion
 gwtMavenVersion2.4.0/gwtMavenVersion
-gwt.moduleSuffix/gwt.moduleSuffix
+gwt.moduleSuffix

svn commit: r1522143 - /james/hupa/trunk/client/src/main/webapp/Hupa.html

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:48:21 2013
New Revision: 1522143

URL: http://svn.apache.org/r1522143
Log:
decorate the theme

Modified:
james/hupa/trunk/client/src/main/webapp/Hupa.html

Modified: james/hupa/trunk/client/src/main/webapp/Hupa.html
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/webapp/Hupa.html?rev=1522143r1=1522142r2=1522143view=diff
==
--- james/hupa/trunk/client/src/main/webapp/Hupa.html (original)
+++ james/hupa/trunk/client/src/main/webapp/Hupa.html Thu Sep 12 02:48:21 2013
@@ -51,6 +51,7 @@
  HEAD
  HEAD
  HEAD
+ HEAD
top: 37%;
left: 50%;
}
@@ -62,6 +63,9 @@
 ===
top: 37%;
  decorate the theme
+===
+   top: 37%;
+ decorate the theme
left: 50%;
}
  HEAD



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1522142 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:48:05 2013
New Revision: 1522142

URL: http://svn.apache.org/r1522142
Log:
decorate the theme

Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/maincontent.png
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/mainmenu.png
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/masterv.png
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.ui.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java?rev=1522142r1=1522141r2=1522142view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 Thu Sep 12 02:48:05 2013
@@ -39,6 +39,7 @@ package org.apache.hupa.client.activity;
 import net.customware.gwt.dispatch.client.DispatchAsync;
 
  HEAD
+ HEAD
 import org.apache.hupa.client.HupaConstants;
  HEAD
 import org.apache.hupa.client.evo.HupaEvoCallback;
@@ -56,6 +57,15 @@ import org.apache.hupa.client.HupaEvoCal
 import org.apache.hupa.client.mvp.WidgetDisplayable;
 import org.apache.hupa.client.place.MailInboxPlace;
  Change to new mvp framework - first step
+===
+import org.apache.hupa.client.HupaConstants;
+import org.apache.hupa.client.HupaEvoCallback;
+import org.apache.hupa.client.mvp.WidgetDisplayable;
+import org.apache.hupa.client.place.MailInboxPlace;
+import org.apache.hupa.shared.events.FlashEvent;
+import org.apache.hupa.shared.events.SessionExpireEvent;
+import org.apache.hupa.shared.events.SessionExpireEventHandler;
+ decorate the theme
 import org.apache.hupa.shared.rpc.LoginUser;
 import org.apache.hupa.shared.rpc.LoginUserResult;
 
@@ -64,6 +74,7 @@ import com.google.gwt.activity.shared.Ab
  HEAD
  HEAD
  HEAD
+ HEAD
 import com.google.gwt.core.client.GWT;
  change the LOGIN progress using native MVP instead of gwt-presenter
 ===
@@ -76,6 +87,9 @@ import com.google.gwt.core.client.GWT;
  change the LOGIN progress using native MVP instead of gwt-presenter
 ===
  Change to new mvp framework - first step
+===
+import com.google.gwt.core.client.GWT;
+ decorate the theme
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.event.dom.client.HasClickHandlers;
@@ -136,6 +150,7 @@ public class LoginActivity extends Abstr
private final PlaceController placeController;
private final ProviderMailInboxPlace mailInboxPlaceProvider;
private DispatchAsync dispatcher;
+private HupaConstants constants = GWT.create(HupaConstants.class);
 
@Inject
  HEAD
@@ -201,6 +216,7 @@ public class LoginActivity extends Abstr
}
});
  HEAD
+ HEAD
display.getResetClick().addClickHandler(new ClickHandler() {
 
public void onClick(ClickEvent event) {
@@ -213,6 +229,22 @@ public class LoginActivity extends Abstr
public void onSessionExpireEvent(SessionExpireEvent 
event) {
eventBus.fireEvent(new 
FlashEvent(constants.sessionTimedOut(), 4000));
}
+===
+   display.getResetClick().addClickHandler(new ClickHandler() {
+
+public void onClick(ClickEvent event) {
+doReset();
+}
+
+});
+   eventBus.addHandler(SessionExpireEvent.TYPE, new 
SessionExpireEventHandler() {
+
+public void onSessionExpireEvent(SessionExpireEvent event) {
+eventBus.fireEvent(new FlashEvent(constants.sessionTimedOut(), 
4000));
+}
+
+});
+ decorate the theme
 
});
 
@@ -302,6 +334,7 @@ public class LoginActivity extends Abstr
  HEAD
Window.alert(error);
  HEAD
+ HEAD

LoginActivity.this.placeController.goTo(mailInboxPlaceProvider.get());
// eventBus.fireEvent(new 
FlashEvent(constants.loginInvalid(),
// 4000));
@@ -312,6 +345,9 @@ public class LoginActivity extends Abstr
 ===
eventBus.fireEvent(new 
FlashEvent

svn commit: r1522144 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: ./ activity/ ioc/ mvp/ ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:48:50 2013
New Revision: 1522144

URL: http://svn.apache.org/r1522144
Log:
introduce the top activity

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/TopActivityMapper.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaConstants.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayout.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/AppLayoutImpl.ui.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/TopView.ui.xml

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java?rev=1522144r1=1522143r2=1522144view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java
 Thu Sep 12 02:48:50 2013
@@ -7,17 +7,19 @@ import com.google.inject.Inject;
 import com.google.inject.name.Named;
 
 /**
- * This class is responsible for ActivityManager instantiations through GIN,
- * it also associate every ActivityManager with the corresponding display 
region
+ * This class is responsible for ActivityManager instantiations through GIN, it
+ * also associate every ActivityManager with the corresponding display region
  */
 public class ActivityManagerInitializer {
 
-  @Inject
-  public ActivityManagerInitializer(AppLayout appPanelView,
-@Named(WestRegion) ActivityManager 
verticalMasterActivityManager,
-@Named(MainContentRegion) 
ActivityManager mainContentActivityManager) {
-verticalMasterActivityManager.setDisplay(appPanelView.getWestContainer());
-mainContentActivityManager.setDisplay(appPanelView.getMainContainer());
-  }
+   @Inject
+   public ActivityManagerInitializer(AppLayout appPanelView, 
+   @Named(TopRegion) ActivityManager topActivityManager,
+   @Named(WestRegion) ActivityManager 
westActivityManager,
+   @Named(MainContentRegion) ActivityManager 
mainContentActivityManager) {
+   topActivityManager.setDisplay(appPanelView.getTopContainer());
+   westActivityManager.setDisplay(appPanelView.getWestContainer());
+   
mainContentActivityManager.setDisplay(appPanelView.getMainContainer());
+   }
 
 }

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java?rev=1522144r1=1522143r2=1522144view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java 
Thu Sep 12 02:48:50 2013
@@ -15,54 +15,57 @@ import com.google.inject.Inject;
 /**
  * This is the main controller of the application.
  */
-public class AppController{
+public class AppController {
 
-  private final PlaceController placeController;
-  private final PlaceHistoryHandler placeHistoryHandler;
-  private final AppLayout appPanelView;
-  private Place currentPlace;
-
-  /**
-   * All parameters are injected by GIN
-   *
-   * @param placeController the application's PlaceController
-   * @param eventBus the application's EventBus
-   * @param placeHistoryHandler the application's PlaceHistoryHandler
-   * @param appLayout this is the application's main panel
-   * @param mainMenuView this is the application's navigation top bar
-   * @param activityManagerInitializer unused parameter, it's here just to 
force GIN's initialization of ActivityManagers
-   */
-  @Inject
-  public AppController(PlaceController placeController,
-   EventBus eventBus,
-   PlaceHistoryHandler placeHistoryHandler,
-   AppLayout appLayout

svn commit: r1522145 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ ioc/ mvp/ place/ ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:49:20 2013
New Revision: 1522145

URL: http://svn.apache.org/r1522145
Log: (empty)

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingTopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingWestActivityMapper.java
Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailPlace.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/IMAPMessagePlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailInboxPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MessageSendPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/IMAPMessageListView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java?rev=1522145r1=1522144r2=1522145view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 Thu Sep 12 02:49:20 2013
@@ -384,6 +384,7 @@ import java.util.ArrayList;
 import net.customware.gwt.dispatch.client.DispatchAsync;
 
  HEAD
+ HEAD
 import org.apache.hupa.client.HandlerRegistrationAdapter;
 import org.apache.hupa.client.activity.MessageSendActivity.Type;
 import org.apache.hupa.client.evo.HupaEvoCallback;
@@ -422,20 +423,49 @@ import com.google.gwt.event.dom.client.C
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 ===
+===
+import org.apache.hupa.client.HandlerRegistrationAdapter;
+import org.apache.hupa.client.HupaCallback;
+import org.apache.hupa.client.HupaEvoCallback;
+ 
 import org.apache.hupa.client.mvp.WidgetDisplayable;
 import org.apache.hupa.client.place.MailInboxPlace;
 import org.apache.hupa.client.widgets.HasDialog;
 import org.apache.hupa.shared.data.IMAPFolder;
 import org.apache.hupa.shared.data.Message;
 import org.apache.hupa.shared.data.User;
+import org.apache.hupa.shared.data.Message.IMAPFlag;
 import org.apache.hupa.shared.events.DecreaseUnseenEvent;
 import org.apache.hupa.shared.events.ExpandMessageEvent;
+import org.apache.hupa.shared.events.FolderSelectionEvent;
+import org.apache.hupa.shared.events.FolderSelectionEventHandler;
+import org.apache.hupa.shared.events.IncreaseUnseenEvent;
+import org.apache.hupa.shared.events.LoadMessagesEvent;
 import org.apache.hupa.shared.events.LogoutEvent;
 import org.apache.hupa.shared.events.LogoutEventHandler;
+import org.apache.hupa.shared.events.MessagesReceivedEvent;
+import org.apache.hupa.shared.events.MessagesReceivedEventHandler;
+import org.apache.hupa.shared.events.MoveMessageEvent;
+import org.apache.hupa.shared.events.MoveMessageEventHandler;
+import org.apache.hupa.shared.events.NewMessageEvent;
+import org.apache.hupa.shared.rpc.DeleteAllMessages;
+import org.apache.hupa.shared.rpc.DeleteMessageByUid;
+import org.apache.hupa.shared.rpc.DeleteMessageResult;
+import org.apache.hupa.shared.rpc.GenericResult;
+import org.apache.hupa.shared.rpc.MoveMessage;
+import org.apache.hupa.shared.rpc.MoveMessageResult;
+import org.apache.hupa.shared.rpc.SetFlag;
 import org.apache.hupa.widgets.ui.HasEnable;
 
 import com.google.gwt.activity.shared.AbstractActivity;
+ HEAD
  Change to new mvp framework - first step
+===
+import com.google.gwt.event.dom.client.ChangeEvent;
+import com.google.gwt.event.dom.client.ChangeHandler;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.event.dom.client.ClickHandler;
+ 
 import com.google.gwt.event.dom.client.HasChangeHandlers;
 import com.google.gwt.event.dom.client.HasClickHandlers;
 import com.google.gwt.event.shared.EventBus;
@@ -443,12 +473,18 @@ import com.google.gwt.gen2.table.event.c
 import com.google.gwt.gen2.table.event.client.HasPageLoadHandlers;
 import com.google.gwt.gen2.table.event.client.HasRowSelectionHandlers;
  HEAD
+ HEAD
+===
+ 
 import com.google.gwt.gen2.table.event.client.PageChangeEvent;
 import com.google.gwt.gen2.table.event.client.PageChangeHandler;
 import com.google.gwt.gen2.table.event.client.RowSelectionEvent;
 import com.google.gwt.gen2

svn commit: r1522147 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: ./ activity/ ioc/ mvp/ place/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:49:47 2013
New Revision: 1522147

URL: http://svn.apache.org/r1522147
Log:
At first make the inbox work, but only when click the refresh button. The page 
also be working, the other folder will be like the same.

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingWestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainContentActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailInboxPlace.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java?rev=1522147r1=1522146r2=1522147view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
 Thu Sep 12 02:49:47 2013
@@ -85,6 +85,7 @@ public class CachingDispatchAsync extend
 } else {
 running.add(clz);
  HEAD
+ HEAD
 ===
 //if (action instanceof FetchMessages) {
 //new RuntimeException().printStackTrace();
@@ -170,6 +171,11 @@ public class CachingDispatchAsync extend
 return;
 } else {
 running.add(clz);
+===
+//if (action instanceof FetchMessages) {
+//new RuntimeException().printStackTrace();
+//}
+ At first make the inbox work, but only when click the refresh button. 
The page also be working, the other folder will be like the same.
 super.execute(action, new AsyncCallbackR() {
 public void onFailure(Throwable caught) {
 running.remove(clz);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java?rev=1522147r1=1522146r2=1522147view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 Thu Sep 12 02:49:47 2013
@@ -509,6 +509,7 @@ public class IMAPMessageListActivity ext
private final EventBus eventBus;
private final PlaceController placeController;
  HEAD
+ HEAD
private DispatchAsync dispatcher;
private final ProviderMessageSendPlace messageSendPlaceProvider;
 
@@ -531,15 +532,16 @@ public class IMAPMessageListActivity ext
private void bind(){
 ===
private final ProviderMailInboxPlace mailInboxPlaceProvider;
+===
+ At first make the inbox work, but only when click the refresh button. 
The page also be working, the other folder will be like the same.
private DispatchAsync dispatcher;
 
@Inject
 public IMAPMessageListActivity(Displayable display, EventBus eventBus, 
PlaceController placeController,
-   ProviderMailInboxPlace mailInboxPlaceProvider, 
DispatchAsync dispatcher){
+DispatchAsync dispatcher){
this.display = display;
this.eventBus = eventBus;
this.placeController = placeController;
-   this.mailInboxPlaceProvider = mailInboxPlaceProvider;
this.dispatcher = dispatcher;

 
@@ -777,8 +779,8 @@ public class IMAPMessageListActivity ext
}
@Override
public void start(AcceptsOneWidget container, EventBus eventBus) {
-   revealDisplay(user, folder, searchValue);
bind();
+   revealDisplay(user, folder, searchValue);
container.setWidget(display.asWidget());
}

@@ -997,10 +999,15 @@ public class IMAPMessageListActivity ext
 }
 }); 
 }
-   public IMAPMessageListActivity with(User user){
+   public IMAPMessageListActivity with(User user, IMAPFolder imapFolder, 
String string){
this.user = user;
+ HEAD
this.folder = new 
IMAPFolder(user.getSettings().getInboxFolderName());
  Change to new

svn commit: r1522148 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: ./ activity/ ioc/ mvp/ place/ ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:50:25 2013
New Revision: 1522148

URL: http://svn.apache.org/r1522148
Log:
1. improve the inbox folder place.
2. commit all of the activities except contacts.

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailFolderPlace.java~HEAD
  - copied, changed from r1522147, 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailFolderPlace.java
Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailInboxPlace.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageSendActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPlaceHistoryMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingWestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainContentActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/WestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/IMAPMessagePlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MailFolderPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/place/MessageSendPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageSendView.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java?rev=1522148r1=1522147r2=1522148view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java 
(original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java 
Thu Sep 12 02:50:25 2013
@@ -1,7 +1,7 @@
 package org.apache.hupa.client;
 
 import org.apache.hupa.client.place.DefaultPlace;
-import org.apache.hupa.client.place.MailInboxPlace;
+import org.apache.hupa.client.place.MailFolderPlace;
 import org.apache.hupa.client.ui.AppLayout;
 
 import com.google.gwt.event.shared.EventBus;
@@ -58,7 +58,7 @@ public class AppController {
public void onPlaceChange(PlaceChangeEvent event) {
Place newPlace = event.getNewPlace();
if (newPlace != currentPlace) {
-   if (newPlace instanceof MailInboxPlace) {
+   if (isAuth(newPlace, currentPlace)) {
appPanelView.setDefaultLayout();
} else if (newPlace instanceof DefaultPlace) {
appPanelView.setLoginLayout();
@@ -66,6 +66,10 @@ public class AppController {
currentPlace = newPlace;
}
}
+   
+   public boolean isAuth(Place newPlace, Place currentPlace){
+   return (newPlace instanceof MailFolderPlace)  
!(currentPlace instanceof MailFolderPlace);
+   }
}
 
 }

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java?rev=1522148r1=1522147r2=1522148view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/CachingDispatchAsync.java
 Thu Sep 12 02:50:25 2013
@@ -166,7 +166,7 @@ public class CachingDispatchAsync extend
 final Class? clz = action.getClass();
 if (running.contains(clz)) {
 System.err.println(ATTENTION: avoiding a parallel execution of 
the action:  + action.getClass().getName());
-new RuntimeException().printStackTrace();
+//new RuntimeException().printStackTrace();
 
 return;
 } else {

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java
URL: 
http

svn commit: r1522150 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/rf/ server/src/main/java/org/apache/hupa/server/ server/s

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:51:39 2013
New Revision: 1522150

URL: http://svn.apache.org/r1522150
Log:
As the FetchFolders RequestFactory, but can not run correctly.
Maybe the procedure is wrong somewhere.

Added:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/IMAPFolderProxy.java
Removed:

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/ImapFolderService.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/HupaRequestFactory.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/IMAPFolderRequestContext.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/InMemoryIMAPStoreCache.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolder.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java?rev=1522150r1=1522149r2=1522150view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java
 Thu Sep 12 02:51:39 2013
@@ -140,7 +140,6 @@ import com.google.gwt.user.client.ui.Foc
 import com.google.gwt.user.client.ui.HasValue;
 import com.google.gwt.user.client.ui.Widget;
 import com.google.inject.Inject;
-import com.google.inject.Provider;
 
 public class LoginActivity extends AbstractActivity {
 
@@ -292,6 +291,9 @@ public class LoginActivity extends Abstr
 
display.setLoading(true);
  HEAD
+ HEAD
+===
+ As the FetchFolders RequestFactory, but can not run correctly.
 // HupaRequestFactory rf = GWT.create(HupaRequestFactory.class);
 // rf.initialize(eventBus);
 // UserRequest userRequest = rf.userRequest();
@@ -311,8 +313,11 @@ public class LoginActivity extends Abstr



+ HEAD
 ===
  change the LOGIN progress using native MVP instead of gwt-presenter
+===
+ As the FetchFolders RequestFactory, but can not run correctly.
dispatcher.execute(new LoginUser(user, pass), new 
HupaEvoCallbackLoginUserResult(dispatcher, eventBus,
display) {
public void callback(LoginUserResult result) {
@@ -371,6 +376,7 @@ public class LoginActivity extends Abstr
}
});

+ HEAD
 ===
Window.alert(failure);
 // 
LoginActivity.this.placeController.goTo(newGoToPlaceProvider.get());
@@ -384,6 +390,8 @@ public class LoginActivity extends Abstr
}
});
  change the LOGIN progress using native MVP instead of gwt-presenter
+===
+ As the FetchFolders RequestFactory, but can not run correctly.
}
 
/**

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java?rev=1522150r1=1522149r2=1522150view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 Thu Sep 12 02:51:39 2013
@@ -310,6 +310,9 @@ import org.apache.hupa.client.evo.HupaEv
 import org.apache.hupa.client.place.IMAPMessagePlace;
 import org.apache.hupa.client.place.MailFolderPlace;
 import org.apache.hupa.client.place.MessageSendPlace;
+import org.apache.hupa.client.rf.HupaRequestFactory;
+import org.apache.hupa.client.rf.IMAPFolderProxy;
+import org.apache.hupa.client.rf.IMAPFolderRequestContext;
 import org.apache.hupa.client.ui.WidgetContainerDisplayable;
 import org.apache.hupa.client.widgets.HasDialog;
 import org.apache.hupa.client.widgets.IMAPTreeItem;
@@ -344,8 +347,6 @@ import org.apache.hupa.shared.events.Sen
 import org.apache.hupa.shared.events.SentMessageEventHandler;
 import org.apache.hupa.shared.rpc.CreateFolder;
 import org.apache.hupa.shared.rpc.DeleteFolder;
-import org.apache.hupa.shared.rpc.FetchFolders;
-import org.apache.hupa.shared.rpc.FetchFoldersResult;
 import org.apache.hupa.shared.rpc.GenericResult;
  HEAD
  Change to new mvp framework - first step
@@ -381,6 +382,7 @@ import com.google.gwt.user.client.ui.Tre

svn commit: r1522149 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa: ./ client/ client/activity/ client/ioc/ client/mvp/ client/ui/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:50:59 2013
New Revision: 1522149

URL: http://svn.apache.org/r1522149
Log:
Make the evo more clear.

Removed:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ActivityManagerInitializer.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/AppController.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaEvoCallback.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaEvolution.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/ActivityPlace.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppPlaceHistoryMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingTopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/CachingWestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/Displayable.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainContentActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/TopActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/WestActivityMapper.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/WidgetContainerDisplayable.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/WidgetDisplayable.java
Modified:
james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageSendActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinModule.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ioc/AppGinjector.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/Displayable.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageTableModel.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml?rev=1522149r1=1522148r2=1522149view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml Thu Sep 
12 02:50:59 2013
@@ -101,6 +101,7 @@
   !-- Specify the app entry point class. --
  HEAD
  HEAD
+ HEAD
   entry-point class='org.apache.hupa.client.evo.HupaEvo'/
 ===
   entry-point class='org.apache.hupa.client.Hupa'/
@@ -108,4 +109,7 @@
 ===
   entry-point class='org.apache.hupa.client.HupaEvolution'/
  Change to new mvp framework - first step
+===
+  entry-point class='org.apache.hupa.client.evo.HupaEvo'/
+ Make the evo more clear.
 /module

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java?rev=1522149r1=1522148r2=1522149view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java
 Thu Sep 12 02:50:59 2013
@@ -5,6 +5,7 @@ import java.util.List;
 
 import org.apache.hupa.client.CachingDispatchAsync;
  HEAD
+ HEAD
 import org.apache.hupa.client.evo.HupaEvoCallback;
 import org.apache.hupa.client.place.IMAPMessagePlace;
 import org.apache.hupa.client.ui.WidgetDisplayable;
@@ -12,7 +13,11 @@ import org.apache.hupa.shared.SConsts;
 ===
 import org.apache.hupa.client.HupaEvoCallback;
 import org.apache.hupa.client.mvp.WidgetDisplayable;
+===
+import org.apache.hupa.client.evo.HupaEvoCallback;
+ Make the evo more clear.
 import org.apache.hupa.client.place.IMAPMessagePlace;
+import org.apache.hupa.client.ui.WidgetDisplayable;
 import org.apache.hupa.shared.SConsts;
 import org.apache.hupa.shared.data.IMAPFolder;
  1. improve the inbox folder place.

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity

svn commit: r1522153 - in /james/hupa/trunk: client/ client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/java/org/apache/hupa/client/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:53:43 2013
New Revision: 1522153

URL: http://svn.apache.org/r1522153
Log: (empty)

Added:

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/IMAPFolderService.java
Modified:
james/hupa/trunk/client/pom.xml

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/widgets/IMAPTreeItem.java

james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/FetchFoldersHandler.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/IMAPFolder.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/proxy/AbstractEntityProxy.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/proxy/IMAPFolderProxy.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFoldersResult.java

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522153r1=1522152r2=1522153view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:53:43 2013
@@ -224,6 +224,7 @@
 modules
 
moduleorg.apache.hupa.Hupa${gwt.moduleSuffix}/module
 /modules
+extraJvmArgs-XX:MaxPermSize=512M -Xmx1024M/extraJvmArgs
 /configuration
 executions
 execution

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java?rev=1522153r1=1522152r2=1522153view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java
 Thu Sep 12 02:53:43 2013
@@ -637,6 +637,7 @@ System.out.println(111+response);
 
  HEAD
  HEAD
+ HEAD
 ListIMAPFolderProxy childFolders = iFolder.getChildIMAPFolders();
 ===
 ListIMAPFolder childFolders = iFolder.getChildIMAPFolders();
@@ -644,6 +645,9 @@ System.out.println(111+response);
 ===
 ListIMAPFolderProxy childFolders = iFolder.getChildIMAPFolders();
  Aim to make the front end view work after the server side's IMAPFolder 
  services RF being working, but there are issues on RF's find* method, 
  I think.
+===
+ListIMAPFolderProxy childFolders = iFolder.getChildren();
+ 
 ListIMAPTreeItem items = createTreeNodes(childFolders);
 for (IMAPTreeItem item : items) {
 record.addItem(item);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java?rev=1522153r1=1522152r2=1522153view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainPresenter.java
 Thu Sep 12 02:53:43 2013
@@ -312,6 +312,7 @@ public class MainPresenter extends Widge
 
  HEAD
  HEAD
+ HEAD
 ListIMAPFolderProxy childFolders = iFolder.getChildIMAPFolders();
 ===
 ListIMAPFolder childFolders = iFolder.getChildIMAPFolders();
@@ -319,6 +320,9 @@ public class MainPresenter extends Widge
 ===
 ListIMAPFolderProxy childFolders = iFolder.getChildIMAPFolders();
  Aim to make the front end view work after the server side's IMAPFolder 
  services RF being working, but there are issues on RF's find* method, 
  I think.
+===
+ListIMAPFolderProxy childFolders = iFolder.getChildren();
+ 
 ListIMAPTreeItem items = createTreeNodes(childFolders);
 for (IMAPTreeItem item : items) {
 record.addItem(item);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java?rev=1522153r1=1522152r2=1522153view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/WestView.java 
(original)
+++ 
james/hupa/trunk

svn commit: r1522154 [3/3] - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/java/org/apache/hupa/client/pl

2013-09-11 Thread dongxu
Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java?rev=1522154r1=1522153r2=1522154view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/ReplyMessageEvent.java
 Thu Sep 12 02:55:36 2013
@@ -48,8 +48,12 @@ import org.apache.hupa.shared.proxy.IMAP
 import org.apache.hupa.shared.data.Message;
 import org.apache.hupa.shared.data.MessageDetails;
 import org.apache.hupa.shared.data.User;
+ HEAD
 import org.apache.hupa.shared.proxy.IMAPFolderProxy;
  Aim to make the front end view work after the server side's IMAPFolder 
  services RF being working, but there are issues on RF's find* method, 
  I think.
+===
+import org.apache.hupa.shared.proxy.ImapFolder;
+ Make the ValueProxy(ImapFolder) work with Manolo's patch. Hupa can 
display folders in west view with RequestFactory now.
 
 import com.google.gwt.event.shared.GwtEvent;
 
@@ -59,6 +63,7 @@ public class ReplyMessageEvent extends G
 private User user;
  HEAD
  HEAD
+ HEAD
 private IMAPFolderProxy folder;
 ===
 private IMAPFolder folder;
@@ -66,6 +71,9 @@ public class ReplyMessageEvent extends G
 ===
 private IMAPFolderProxy folder;
  Aim to make the front end view work after the server side's IMAPFolder 
  services RF being working, but there are issues on RF's find* method, 
  I think.
+===
+private ImapFolder folder;
+ Make the ValueProxy(ImapFolder) work with Manolo's patch. Hupa can 
display folders in west view with RequestFactory now.
 private Message message;
 private MessageDetails details;
 private boolean replyAll;
@@ -82,6 +90,7 @@ public class ReplyMessageEvent extends G
 
  HEAD
  HEAD
+ HEAD
 public ReplyMessageEvent(User user, IMAPFolderProxy folder, Message 
message, MessageDetails details, boolean replyAll) {
 ===
 public ReplyMessageEvent(User user, IMAPFolder folder, Message message, 
MessageDetails details, boolean replyAll) {
@@ -89,6 +98,9 @@ public class ReplyMessageEvent extends G
 ===
 public ReplyMessageEvent(User user, IMAPFolderProxy folder, Message 
message, MessageDetails details, boolean replyAll) {
  Aim to make the front end view work after the server side's IMAPFolder 
  services RF being working, but there are issues on RF's find* method, 
  I think.
+===
+public ReplyMessageEvent(User user, ImapFolder folder, Message message, 
MessageDetails details, boolean replyAll) {
+ Make the ValueProxy(ImapFolder) work with Manolo's patch. Hupa can 
display folders in west view with RequestFactory now.
 this.user = user;
 this.folder = folder;
 this.message = message;
@@ -102,6 +114,7 @@ public class ReplyMessageEvent extends G
 
  HEAD
  HEAD
+ HEAD
 public IMAPFolderProxy getFolder() {
 ===
 public IMAPFolder getFolder() {
@@ -109,6 +122,9 @@ public class ReplyMessageEvent extends G
 ===
 public IMAPFolderProxy getFolder() {
  Aim to make the front end view work after the server side's IMAPFolder 
  services RF being working, but there are issues on RF's find* method, 
  I think.
+===
+public ImapFolder getFolder() {
+ Make the ValueProxy(ImapFolder) work with Manolo's patch. Hupa can 
display folders in west view with RequestFactory now.
 return folder;
 }
 

Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java?rev=1522154r1=1522153r2=1522154view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java
 Thu Sep 12 02:55:36 2013
@@ -1,13 +1,12 @@
 package org.apache.hupa.shared.locator;
 
-import org.apache.hupa.shared.rf.EntityBase;
-
 import com.google.web.bindery.requestfactory.shared.Locator;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
 
-public abstract class EntityLocator extends LocatorEntityBase, Long {
+public abstract class EntityLocator extends LocatorValueProxy, Long {
 
@Override
-   public EntityBase create(Class? extends EntityBase clazz) {
+   public ValueProxy create(Class? extends ValueProxy clazz) {
try {
return clazz.newInstance();
} catch (InstantiationException e) {
@@ -18,26 +17,16 @@ public abstract class EntityLocator exte
}
 
@Override
-   public abstract EntityBase 

svn commit: r1522155 - in /james/hupa/trunk/client/src/main/java/org/apache/hupa/client: activity/ evo/

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:56:01 2013
New Revision: 1522155

URL: http://svn.apache.org/r1522155
Log:
fix issue 23.  Handle exceptions thrown in async blocks  Simply injection code

Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/MessageSendActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/TopActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/WestActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/evo/HupaEvo.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java?rev=1522155r1=1522154r2=1522155view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageActivity.java
 Thu Sep 12 02:56:01 2013
@@ -136,18 +136,9 @@ public class IMAPMessageActivity  extend

 }
 
-@Inject
-public IMAPMessageActivity(Displayable display, EventBus eventBus, 
PlaceController placeController,
-CachingDispatchAsync dispatcher){
-   this.display = display;
-   this.dispatcher = dispatcher;
-   this.eventBus = eventBus;
-   this.placeController = placeController;
-   
-   
-}
 private MessageDetails messageDetails;
 private Message message;
+ HEAD
 private CachingDispatchAsync dispatcher;
  HEAD
  HEAD
@@ -160,12 +151,15 @@ public class IMAPMessageActivity  extend
 private IMAPFolderProxy folder;
  Aim to make the front end view work after the server side's IMAPFolder 
  services RF being working, but there are issues on RF's find* method, 
  I think.
 ===
+===
+ fix issue 23. Handle exceptions thrown in async blocks  
Simply injection code
 private ImapFolder folder;
  Make the ValueProxy(ImapFolder) work with Manolo's patch. Hupa can 
  display folders in west view with RequestFactory now.
 private User user;
-   private final Displayable display;
-   private final EventBus eventBus;
-   private final PlaceController placeController;
+@Inject private CachingDispatchAsync dispatcher;
+@Inject private Displayable display;
+@Inject private EventBus eventBus;
+@Inject private PlaceController placeController;
public interface Displayable extends WidgetDisplayable{
 public void setHeaders(Message msg);
 public void setAttachments(ListMessageAttachment attachements, 
String folder,  long uid);

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java?rev=1522155r1=1522154r2=1522155view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 Thu Sep 12 02:56:01 2013
@@ -523,6 +523,7 @@ public class IMAPMessageListActivity ext
 private ShowMessageTableListener tableListener = new 
ShowMessageTableListener();
 
 
+ HEAD
private final Displayable display;
private final EventBus eventBus;
private final PlaceController placeController;
@@ -530,16 +531,14 @@ public class IMAPMessageListActivity ext
  HEAD
private DispatchAsync dispatcher;
private final ProviderMessageSendPlace messageSendPlaceProvider;
+===
+@Inject private Displayable display;
+@Inject private EventBus eventBus;
+@Inject private PlaceController placeController;
+@Inject private DispatchAsync dispatcher;
+@Inject private ProviderMessageSendPlace messageSendPlaceProvider;
+ fix issue 23. Handle exceptions thrown in async blocks  
Simply injection code
 
-   @Inject
-public IMAPMessageListActivity(Displayable display, EventBus eventBus, 
PlaceController placeController,
-DispatchAsync dispatcher,ProviderMessageSendPlace 
messageSendPlaceProvider){
-   this.display = display;
-   this.eventBus = eventBus;
-   this.placeController = placeController;
-   this.dispatcher = dispatcher

svn commit: r1522157 - /james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:57:27 2013
New Revision: 1522157

URL: http://svn.apache.org/r1522157
Log:
fix compile error

Modified:

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java

Modified: 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java?rev=1522157r1=1522156r2=1522157view=diff
==
--- 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java
 (original)
+++ 
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/locator/EntityLocator.java
 Thu Sep 12 02:57:27 2013
@@ -7,13 +7,7 @@ public abstract class EntityLocator exte
 
@Override
public ValueProxy create(Class? extends ValueProxy clazz) {
-   try {
-   return clazz.newInstance();
-   } catch (InstantiationException e) {
-   throw new RuntimeException(e);
-   } catch (IllegalAccessException e) {
-   throw new RuntimeException(e);
-   }
+   return null;
}
 
@Override



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1522156 - in /james/hupa/trunk: ./ client/ client/src/main/java/org/apache/hupa/ client/src/main/java/org/apache/hupa/client/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/m

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 02:57:07 2013
New Revision: 1522156

URL: http://svn.apache.org/r1522156
Log:
merged with main trunk in apache: replacing rounded borders with gwt decorator 
boxes, fix Hupa-93 Hupa-94, fix IE issue

Removed:

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/impl/RndPanelGeneratorImpl.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/impl/RndPanelGeneratorImplIE.java
Modified:
james/hupa/trunk/client/pom.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/AppView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/LoginView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MainView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/validation/EmailListValidator.java
james/hupa/trunk/client/src/main/webapp/Hupa.css
james/hupa/trunk/client/src/main/webapp/Hupa.html

james/hupa/trunk/client/src/test/java/org/apache/hupa/client/validation/EmailListValidatorTest.java
james/hupa/trunk/pom.xml

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/servlet/DownloadAttachmentServlet.java
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/SConsts.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachment.java
james/hupa/trunk/widgets/src/main/java/org/apache/hupa/Widgets.gwt.xml

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/WidgetsCSS.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/RndPanel.java

Modified: james/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1522156r1=1522155r2=1522156view=diff
==
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Sep 12 02:57:07 2013
@@ -138,6 +138,11 @@
 artifactIdvalidation-api/artifactId
 scopeprovided/scope
 /dependency
+   dependency
+ groupIdjavax.validation/groupId
+ artifactIdvalidation-api/artifactId
+ classifiersources/classifier
+   /dependency
 dependency
  HEAD
  HEAD
@@ -221,6 +226,7 @@
 
disableClassMetadata${gwt.disableClassMetadata}/disableClassMetadata
 
disableCastChecking${gwt.disableCastChecking}/disableCastChecking
 logLevel${gwt.logLevel}/logLevel
+style${gwt.style}/style
 modules
 
moduleorg.apache.hupa.Hupa${gwt.moduleSuffix}/module
 /modules

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml?rev=1522156r1=1522155r2=1522156view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/Hupa.gwt.xml Thu Sep 
12 02:57:07 2013
@@ -79,9 +79,10 @@
   !-- inherits name=com.google.gwt.junit.JUnit/ --
   
   !-- Inherit the default GWT style sheet.   --
-  inherits name='com.google.gwt.user.theme.standard.Standard'/
-  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
-  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --
+!--   inherits name='com.google.gwt.user.theme.standard.Standard'/ --
+!--   inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
+!--   inherits name='com.google.gwt.user.theme.dark.Dark'/ --
+  inherits name='com.google.gwt.user.theme.clean.Clean'/
   
   !-- CSS loaded asynchronously --
   stylesheet src=../Hupa.css/

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java?rev=1522156r1=1522155r2=1522156view=diff
==
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java 
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/HupaCSS.java 
Thu Sep 12 02:57:07 2013
@@ -42,12 +42,14 @@ public class HupaCSS extends WidgetsCSS 
 public static final String C_flash =hupa-flash;
 
 public static final String C_top_container =hupa-top;
+public static final String C_central_container =hupa-central;
 public static final String C_main_container =hupa-main;
 public static final String C_bottom_container =hupa

svn commit: r1522160 - /james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 03:01:05 2013
New Revision: 1522160

URL: http://svn.apache.org/r1522160
Log:
config guice server module's listener

Modified:
james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml

Modified: james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml?rev=1522160r1=1522159r2=1522160view=diff
==
--- james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml (original)
+++ james/hupa/trunk/client/src/main/webapp/WEB-INF/web.xml Thu Sep 12 03:01:05 
2013
@@ -60,6 +60,7 @@
 listener
  HEAD
  HEAD
+ HEAD
 
listener-classorg.apache.hupa.server.ioc.GuiceListener/listener-class
 ===
 
listener-classorg.apache.hupa.server.guice.GuiceServletConfig/listener-class
@@ -67,6 +68,9 @@
 ===
 
listener-classorg.apache.hupa.server.guice.GuiceServletConfig/listener-class
  first commit
+===
+
listener-classorg.apache.hupa.server.ioc.GuiceListener/listener-class
+ config guice server module's listener
 /listener
 
 !-- Gwt remote logging --



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1522161 - in /james/hupa/trunk/client/src/test/java/org/apache/hupa/client: HupaMvpTestCase.java guice/GuiceClientTestModule.java

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 03:01:24 2013
New Revision: 1522161

URL: http://svn.apache.org/r1522161
Log:
use domain.User

Modified:

james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java

james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java

Modified: 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java?rev=1522161r1=1522160r2=1522161view=diff
==
--- 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java
 (original)
+++ 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java
 Thu Sep 12 03:01:24 2013
@@ -35,7 +35,7 @@ import org.apache.hupa.client.guice.Guic
 import org.apache.hupa.server.preferences.UserPreferencesStorage;
 import org.apache.hupa.server.utils.SessionUtils;
 import org.apache.hupa.shared.SConsts;
-import org.apache.hupa.shared.data.User;
+import org.apache.hupa.shared.domain.User;
 
 import javax.mail.Session;
 import javax.servlet.http.HttpSession;

Modified: 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java?rev=1522161r1=1522160r2=1522161view=diff
==
--- 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java
 (original)
+++ 
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/guice/GuiceClientTestModule.java
 Thu Sep 12 03:01:24 2013
@@ -51,8 +51,8 @@ import org.apache.hupa.server.mock.MockL
 import org.apache.hupa.server.preferences.InSessionUserPreferencesStorage;
 import org.apache.hupa.server.preferences.UserPreferencesStorage;
 import org.apache.hupa.server.utils.ConfigurationProperties;
-import org.apache.hupa.shared.data.Settings;
-import org.apache.hupa.shared.data.User;
+import org.apache.hupa.shared.domain.Settings;
+import org.apache.hupa.shared.domain.User;
 import org.apache.hupa.shared.rpc.Contacts;
 import org.apache.hupa.shared.rpc.SendMessage;
 



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



svn commit: r1522163 - in /james/hupa/trunk: client/src/main/java/org/apache/hupa/client/activity/ client/src/main/java/org/apache/hupa/client/mvp/ client/src/main/java/org/apache/hupa/client/rf/ clie

2013-09-11 Thread dongxu
Author: dongxu
Date: Thu Sep 12 03:04:05 2013
New Revision: 1522163

URL: http://svn.apache.org/r1522163
Log:
try to fetch messages, yet can not fire the login event in ModelTable such that 
just get a NullPointerException in it.

Removed:
james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java
Modified:

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/LoginActivity.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListPresenter.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessageListView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/FetchMessagesRequest.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/HupaRequestFactory.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/IMAPMessageListView.java

james/hupa/trunk/client/src/main/java/org/apache/hupa/client/ui/MessageTableModel.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/AbstractFetchMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/handler/TagMessagesHandler.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/ioc/GuiceServerModule.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/FetchMessagesBaseServiceImpl.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/FetchMessagesService.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/FetchMessagesServiceImpl.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/ImapFolderService.java

james/hupa/trunk/server/src/main/java/org/apache/hupa/server/service/ImapFolderServiceImpl.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/AbstractMessage.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/FetchMessagesActionImpl.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/FetchMessagesResultImpl.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/ImapFolderImpl.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/Message.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/events/MessagesReceivedEvent.java

james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/TagMessage.java

james/hupa/trunk/widgets/src/main/java/org/apache/hupa/widgets/ui/RefetchPagingScrollTable.java

Modified: 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
URL: 
http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java?rev=1522163r1=1522162r2=1522163view=diff
==
--- 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 (original)
+++ 
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/activity/IMAPMessageListActivity.java
 Thu Sep 12 03:04:05 2013
@@ -23,6 +23,7 @@ package org.apache.hupa.client.activity;
 
 import java.util.ArrayList;
 import java.util.List;
+ HEAD
 import java.util.Set;
 
 import org.apache.hupa.client.activity.MessageSendActivity.Type;
@@ -378,6 +379,8 @@ public class IMAPMessageListActivity ext
 ===
  Change to new mvp framework - first step
 package org.apache.hupa.client.activity;
+===
+ try to fetch messages, yet can not fire the login event in ModelTable 
such that just get a NullPointerException in it.
 
 import java.util.ArrayList;
 
@@ -1094,7 +1097,7 @@ public class IMAPMessageListActivity ext
 public HasEnable getDeleteEnable();
 public void reloadData();
 public void removeMessages(ArrayListMessage messages);
-public ArrayListMessage getSelectedMessages();
+public ListMessage getSelectedMessages();
 public void reset();
 public HasDialog getConfirmDeleteDialog();
 public HasDialog getConfirmDeleteAllDialog();
@@ -1117,7 +1120,7 @@ public class IMAPMessageListActivity ext
 public HasChangeHandlers getRowsPerPageChange(); 
 public HasClickHandlers getSearchClick();
 public HasValueString getSearchValue();
-public void fillSearchOracle(ArrayListMessage messages);
+public void fillSearchOracle(ListMessage messages);
 public void setExpandLoading(boolean expanding);
 
 }

Modified: 
james/hupa/trunk/client/src

  1   2   3   4   >