You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by do...@apache.org on 2013/08/21 16:08:29 UTC

svn commit: r1516164 [18/20] - in /james/hupa/trunk: ./ client/ client/src/main/java/com/ client/src/main/java/com/google/ client/src/main/java/com/google/web/ client/src/main/java/com/google/web/bindery/ client/src/main/java/com/google/web/bindery/req...

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MailHeaderImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MailHeaderImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MailHeaderImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MailHeaderImpl.java Wed Aug 21 14:08:19 2013
@@ -1,48 +1,47 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-package org.apache.hupa.shared.data;
-
-public class Tag {
-
-    public final static String PREFIX = "TAG.";
-    private String tagName;
-    
-    @SuppressWarnings("unused")
-    private Tag() {
-        
-    }
-    
-    public Tag(String tagName) {
-        this.tagName = tagName;
-    }
-    
-    public String getName() {
-        return tagName;
-    }
-    
-    public String getPrefix() {
-        return PREFIX;
-    }
-    
-    public String toString() {
-        return PREFIX + tagName;
-    }
-    
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.data;
+
+import org.apache.hupa.shared.domain.MailHeader;
+
+public class MailHeaderImpl implements MailHeader {
+
+	private String name;
+	private String value;
+
+	public MailHeaderImpl(String name, String value) {
+		this.name = name;
+		this.value = value;
+	}
+
+	public MailHeaderImpl() {
+	}
+
+	@Override
+	public String getName() {
+		return name;
+	}
+
+	@Override
+	public String getValue() {
+		return value;
+	}
+
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachmentImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachment.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachmentImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachmentImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachment.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachment.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageAttachmentImpl.java Wed Aug 21 14:08:19 2013
@@ -19,20 +19,16 @@
 
 package org.apache.hupa.shared.data;
 
-import java.io.Serializable;
+import org.apache.hupa.shared.domain.MessageAttachment;
 
 /**
  * Attachment of a message
  * 
  *
  */
-public class MessageAttachment implements Serializable {
-
-    /**
-     * 
-     */
-    private static final long serialVersionUID = -6896197131104882424L;
-    private String cType;
+public class MessageAttachmentImpl implements MessageAttachment {
+	
+    private String contentType;
     private int size;
     private String name;
 
@@ -58,10 +54,10 @@ public class MessageAttachment implement
     /**
      * Set the content-type of the attachment
      * 
-     * @param cType
+     * @param contentType
      */
-    public void setContentType(String cType) {
-        this.cType = cType;
+    public void setContentType(String contentType) {
+        this.contentType = contentType;
     }
     
     /**
@@ -70,7 +66,7 @@ public class MessageAttachment implement
      * @return cType
      */
     public String getContentType() {
-        return cType;
+        return contentType;
     }
 
     /**
@@ -79,7 +75,7 @@ public class MessageAttachment implement
      * @return cType
      */
     public boolean isImage() {
-    	  return cType != null && cType.toLowerCase().startsWith("image/");
+    	  return contentType != null && contentType.toLowerCase().startsWith("image/");
     }
 
     /**
@@ -99,4 +95,11 @@ public class MessageAttachment implement
     public int getSize() {
         return size;
     }
+
+	@Override
+    public void setImage(boolean image) {
+	    //FIXME just for MessageSendActivity's NullPointerException, with adding the RequestContext's create List<MeeageAttachment>
+    }
+    
+    
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageDetailsImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageDetails.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageDetailsImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageDetailsImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageDetails.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageDetails.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageDetailsImpl.java Wed Aug 21 14:08:19 2013
@@ -19,32 +19,41 @@
 
 package org.apache.hupa.shared.data;
 
-import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
 import org.apache.hupa.shared.SConsts;
+import org.apache.hupa.shared.domain.MailHeader;
+import org.apache.hupa.shared.domain.MessageAttachment;
+import org.apache.hupa.shared.domain.MessageDetails;
 
-public class MessageDetails implements Serializable{
-    /**
-	 * 
-	 */
-	private static final long serialVersionUID = 1L;
+public class MessageDetailsImpl implements MessageDetails{
 
 	private String text;
-    private ArrayList<MessageAttachment> aList;
+    private List<MessageAttachment> messageAttachments;
     private long uid;
     private String raw;
     private Map<String, List<String>> headers = new HashMap<String, List<String>>();
+    private MailHeader mailHeader;
 
     
-    public String toString() {
+    public MailHeader getMailHeader() {
+    	return mailHeader;
+    }
+
+
+	public void setMailHeader(MailHeader mailHeader) {
+    	this.mailHeader = mailHeader;
+    }
+
+
+	public String toString() {
         return "uid=" + String.valueOf(getUid()) +
         " text.length=" + (text != null ? text.length() : 0) + 
         " raw.length=" + (raw != null ? raw.length() : 0) + 
-        " attachments=" + (aList != null ? aList.size() : 0) + 
+        " attachments=" + (messageAttachments != null ? messageAttachments.size() : 0) + 
         " headers=" + (headers != null ? headers.size() : 0); 
     }
     
@@ -110,10 +119,10 @@ public class MessageDetails implements S
     /**
      * Set the attachments 
      * 
-     * @param aList
+     * @param messageAttachments
      */
-    public void setMessageAttachments(ArrayList<MessageAttachment> aList) {
-        this.aList = aList;
+    public void setMessageAttachments(List<MessageAttachment> messageAttachments) {
+        this.messageAttachments = messageAttachments;
     }
 
     /**
@@ -125,6 +134,7 @@ public class MessageDetails implements S
     }
 
     public String getHeaderValue(String key) {
+    	addHeader(mailHeader.getName(), mailHeader.getValue());
         List<String> h = headers.get(key);
         return h != null && !h.isEmpty() ? h.get(0) : null;
     }
@@ -146,14 +156,14 @@ public class MessageDetails implements S
      * 
      * @return aList
      */
-    public ArrayList<MessageAttachment> getMessageAttachments() {
-        return aList;
+    public List<MessageAttachment> getMessageAttachments() {
+        return messageAttachments;
     }
 
 
     public boolean equals(Object obj) {
-        if (obj instanceof MessageDetails) {
-            if (((MessageDetails)obj).getUid() == getUid()) {
+        if (obj instanceof MessageDetailsImpl) {
+            if (((MessageDetailsImpl)obj).getUid() == getUid()) {
                 return true;
             }
         }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Message.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Message.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Message.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java Wed Aug 21 14:08:19 2013
@@ -19,22 +19,21 @@
 
 package org.apache.hupa.shared.data;
 
-import java.util.ArrayList;
 import java.util.Date;
+import java.util.List;
+
+import org.apache.hupa.shared.domain.Message;
+import org.apache.hupa.shared.domain.Tag;
 
 /**
  * 
  *
  */
-public class Message extends AbstractMessage {
+public class MessageImpl extends AbstractMessageImpl implements Message{
 
-    /**
-     * 
-     */
-    private static final long serialVersionUID = -101492974974136423L;
     private long uid;
-    private ArrayList<IMAPFlag> flags;
-    private ArrayList<Tag> tags;
+    private List<IMAPFlag> flags;
+    private List<Tag> tags;
     private Date rDate;
     
     public enum IMAPFlag {
@@ -43,19 +42,19 @@ public class Message extends AbstractMes
 
     
 
-    public void setFlags(ArrayList<IMAPFlag> flags) {
+    public void setFlags(List<IMAPFlag> flags) {
         this.flags = flags;
     }
 
-    public ArrayList<IMAPFlag> getFlags() {
+    public List<IMAPFlag> getFlags() {
         return flags;
     }
     
-    public void setTags(ArrayList<Tag> tags) {
+    public void setTags(List<Tag> tags) {
         this.tags = tags;
     }
     
-    public ArrayList<Tag> getTags() {
+    public List<Tag> getTags() {
         return tags;
     }
     
@@ -82,8 +81,8 @@ public class Message extends AbstractMes
     }
     
     public boolean equals(Object obj) {
-        if (obj instanceof Message) {
-            if (((Message)obj).getUid() == getUid()) {
+        if (obj instanceof MessageImpl) {
+            if (((MessageImpl)obj).getUid() == getUid()) {
                 return true;
             }
         }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessage.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessage.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessage.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java Wed Aug 21 14:08:19 2013
@@ -17,39 +17,47 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.data;
 
-import java.io.Serializable;
+import org.apache.hupa.shared.domain.ImapFolder;
+import org.apache.hupa.shared.domain.MoveMessageAction;
 
-import net.customware.gwt.dispatch.shared.Action;
+public class MoveMessageActionImpl implements MoveMessageAction {
 
-import org.apache.hupa.shared.data.IMAPFolder;
-
-public class MoveMessage implements Action<MoveMessageResult>, Serializable {
-
-    private static final long serialVersionUID = 7771146077050895244L;
-    private IMAPFolder oldFolder;
-    private IMAPFolder newFolder;
+    private ImapFolder oldFolder;
+    private ImapFolder newFolder;
     private long messageUid;
 
-    public MoveMessage(IMAPFolder oldFolder, IMAPFolder newFolder, long messageUid) {
+    public MoveMessageActionImpl(ImapFolder oldFolder, ImapFolder newFolder, long messageUid) {
         this.oldFolder = oldFolder;
         this.newFolder = newFolder;
         this.messageUid = messageUid;
     }
     
-    protected MoveMessage() {
+    protected MoveMessageActionImpl() {
     }
     
     public long getMessageUid() {
         return messageUid;
     }
     
-    public IMAPFolder getOldFolder() {
+    public ImapFolder getOldFolder() {
         return oldFolder;
     }
     
-    public IMAPFolder getNewFolder() {
+    public ImapFolder getNewFolder() {
         return newFolder;
     }
+    
+    public void setMessageUid(long messageUid){
+    	this.messageUid = messageUid;
+    }
+
+	public void setOldFolder(ImapFolder oldFolder) {
+    	this.oldFolder = oldFolder;
+    }
+
+	public void setNewFolder(ImapFolder newFolder) {
+    	this.newFolder = newFolder;
+    }
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java Wed Aug 21 14:08:19 2013
@@ -1,48 +1,47 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-package org.apache.hupa.shared.data;
-
-public class Tag {
-
-    public final static String PREFIX = "TAG.";
-    private String tagName;
-    
-    @SuppressWarnings("unused")
-    private Tag() {
-        
-    }
-    
-    public Tag(String tagName) {
-        this.tagName = tagName;
-    }
-    
-    public String getName() {
-        return tagName;
-    }
-    
-    public String getPrefix() {
-        return PREFIX;
-    }
-    
-    public String toString() {
-        return PREFIX + tagName;
-    }
-    
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.data;
+
+import org.apache.hupa.shared.domain.ImapFolder;
+import org.apache.hupa.shared.domain.RenameFolderAction;
+
+public class RenameFolderActionImpl implements RenameFolderAction {
+
+	@Override
+	public ImapFolder getFolder() {
+		return folder;
+	}
+	@Override
+	public void setFolder(ImapFolder folder) {
+		this.folder = folder;
+	}
+	@Override
+	public String getNewName() {
+		return newName;
+	}
+	@Override
+	public void setNewName(String newName) {
+		this.newName = newName;
+	}
+
+	private ImapFolder folder;
+	private String newName;
+
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ForwardMessage.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ForwardMessage.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ForwardMessage.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java Wed Aug 21 14:08:19 2013
@@ -1,71 +1,81 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-
-package org.apache.hupa.shared.rpc;
-
-import org.apache.hupa.shared.data.IMAPFolder;
-import org.apache.hupa.shared.data.SMTPMessage;
-
-public class ForwardMessage extends SendMessage {
-
-    private static final long serialVersionUID = 1L;
-    
-    private long uid;
-    private IMAPFolder folder;
-    private String inReplyTo;
-    private String references;
-
-    public ForwardMessage(SMTPMessage msg, IMAPFolder folder, long uid) {
-        super(msg);
-        this.folder = folder;
-        this.uid = uid;
-    }
-
-    public ForwardMessage setInReplyTo(String inReplyTo) {
-		this.inReplyTo = inReplyTo;
-		return this;
-	}
-    
-    public ForwardMessage setReferences(String references) {
-		this.references = references;
-		return this;
-	}
-    
-    protected ForwardMessage() {
-    }
-
-    public long getReplyMessageUid() {
-        return uid;
-    }
-    
-    public IMAPFolder getFolder() {
-        return folder;
-    }
-    
-    @Override
-    public String getInReplyTo() {
-		return inReplyTo;
-	}
-
-    @Override
-    public String getReferences() {
-		return references;
-	}
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.data;
+
+import org.apache.hupa.shared.domain.ImapFolder;
+import org.apache.hupa.shared.domain.SmtpMessage;
+import org.apache.hupa.shared.domain.SendForwardMessageAction;
+
+public class SendForwardMessageActionImpl extends SendMessageActionImpl implements SendForwardMessageAction {
+
+	private long uid;
+	private ImapFolder folder;
+	private String inReplyTo;
+	private String references;
+
+	public SendForwardMessageActionImpl() {
+	}
+
+	public SendForwardMessageActionImpl(SmtpMessage msg, ImapFolder folder, long uid) {
+		super(msg);
+		this.uid = uid;
+		this.folder = folder;
+	}
+
+	@Override
+	public void setFolder(ImapFolder folder) {
+		this.folder = folder;
+	}
+
+	@Override
+	public void setUid(long uid) {
+		this.uid = uid;
+	}
+
+	@Override
+	public long getUid() {
+		return uid;
+	}
+
+	@Override
+	public ImapFolder getFolder() {
+		return folder;
+	}
+
+	@Override
+	public String getInReplyTo() {
+		return inReplyTo;
+	}
+
+	@Override
+	public String getReferences() {
+		return references;
+	}
+
+	@Override
+	public void setInReplyTo(String inReplyTo) {
+		this.inReplyTo = inReplyTo;
+	}
+
+	@Override
+	public void setReferences(String references) {
+		this.references = references;
+	}
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/SendMessage.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/SendMessage.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/SendMessage.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java Wed Aug 21 14:08:19 2013
@@ -17,35 +17,29 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.data;
 
+import org.apache.hupa.shared.domain.SmtpMessage;
+import org.apache.hupa.shared.domain.SendMessageAction;
 
-import java.io.Serializable;
-
-import net.customware.gwt.dispatch.shared.Action;
-
-import org.apache.hupa.shared.data.SMTPMessage;
-
-public class SendMessage implements Action<GenericResult>, Serializable {
+public class SendMessageActionImpl implements SendMessageAction{
     
-    private static final long serialVersionUID = 973668124208945015L;
-
-    private SMTPMessage msg;
+    private SmtpMessage message;
     
-    public SendMessage(SMTPMessage msg) {
-        this.msg = msg;
+    public SendMessageActionImpl(SmtpMessage msg) {
+        this.message = msg;
     }
     
-    protected SendMessage() {
+    protected SendMessageActionImpl() {
         
     }
     
-    public SMTPMessage getMessage() {
-        return msg;
+    public SmtpMessage getMessage() {
+        return message;
     }
     
-    public void setMessage(SMTPMessage msg) {
-        this.msg = msg;
+    public void setMessage(SmtpMessage message) {
+        this.message = message;
     }
     
     public String getInReplyTo() {
@@ -56,4 +50,12 @@ public class SendMessage implements Acti
 		return null;
 	}
 
+	@Override
+    public void setInReplyTo(String inReplyTo) {
+    }
+
+	@Override
+    public void setReferences(String references) {
+    }
+
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Tag.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java Wed Aug 21 14:08:19 2013
@@ -1,48 +1,32 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-package org.apache.hupa.shared.data;
-
-public class Tag {
-
-    public final static String PREFIX = "TAG.";
-    private String tagName;
-    
-    @SuppressWarnings("unused")
-    private Tag() {
-        
-    }
-    
-    public Tag(String tagName) {
-        this.tagName = tagName;
-    }
-    
-    public String getName() {
-        return tagName;
-    }
-    
-    public String getPrefix() {
-        return PREFIX;
-    }
-    
-    public String toString() {
-        return PREFIX + tagName;
-    }
-    
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.data;
+
+import org.apache.hupa.shared.domain.ImapFolder;
+import org.apache.hupa.shared.domain.SmtpMessage;
+import org.apache.hupa.shared.domain.SendReplyMessageAction;
+
+public class SendReplyMessageActionImpl extends SendForwardMessageActionImpl implements SendReplyMessageAction {
+	public SendReplyMessageActionImpl() {
+	}
+	public SendReplyMessageActionImpl(SmtpMessage msg, ImapFolder folder, long uid) {
+		super(msg, folder, uid);
+	}
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/SetFlag.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/SetFlag.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/SetFlag.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java Wed Aug 21 14:08:19 2013
@@ -1,62 +1,75 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-package org.apache.hupa.shared.rpc;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-
-import net.customware.gwt.dispatch.shared.Action;
-
-import org.apache.hupa.shared.data.IMAPFolder;
-import org.apache.hupa.shared.data.Message.IMAPFlag;
-
-public class SetFlag implements Action<GenericResult>, Serializable {
-
-    private static final long serialVersionUID = 662741801793895357L;
-    private IMAPFlag flag;
-    private ArrayList<Long> uids;
-    private IMAPFolder folder;
-    private boolean value;
-    
-    public SetFlag(IMAPFolder folder, IMAPFlag flag, boolean value, ArrayList<Long> uids) {
-        this.flag = flag;
-        this.value = value;
-        this.uids = uids;
-        this.folder = folder;
-    }
-    
-    protected SetFlag() {
-    }
-    
-    public IMAPFolder getFolder() {
-        return folder;
-    }
-    
-    public boolean getValue() {
-        return value;
-    }
-    public IMAPFlag getFlag() {
-        return flag;
-    }
-    
-    public ArrayList<Long> getUids() {
-        return uids;
-    }
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.data;
+
+import java.util.List;
+
+import org.apache.hupa.shared.data.MessageImpl.IMAPFlag;
+import org.apache.hupa.shared.domain.ImapFolder;
+import org.apache.hupa.shared.domain.SetFlagAction;
+
+public class SetFlagActionImpl implements SetFlagAction {
+
+    private IMAPFlag flag;
+    private List<Long> uids;
+    private ImapFolder folder;
+    private boolean value;
+    
+    public SetFlagActionImpl(ImapFolder folder, IMAPFlag flag, boolean value, List<Long> uids) {
+        this.flag = flag;
+        this.value = value;
+        this.uids = uids;
+        this.folder = folder;
+    }
+    
+    protected SetFlagActionImpl() {
+    }
+    
+    public ImapFolder getFolder() {
+        return folder;
+    }
+    
+    public boolean getValue() {
+        return value;
+    }
+    public IMAPFlag getFlag() {
+        return flag;
+    }
+    
+    public List<Long> getUids() {
+        return uids;
+    }
+
+	public void setFlag(IMAPFlag flag) {
+    	this.flag = flag;
+    }
+
+	public void setUids(List<Long> uids) {
+    	this.uids = uids;
+    }
+
+	public void setFolder(ImapFolder folder) {
+    	this.folder = folder;
+    }
+
+	public void setValue(boolean value) {
+    	this.value = value;
+    }
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Settings.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Settings.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/Settings.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java Wed Aug 21 14:08:19 2013
@@ -19,19 +19,16 @@
 
 package org.apache.hupa.shared.data;
 
-import java.io.Serializable;
+import org.apache.hupa.shared.domain.Settings;
 
-public class Settings implements Serializable{
+
+public class SettingsImpl implements Settings{
 
     public static final String DEFAULT_INBOX = "INBOX"; 
     public static final String DEFAULT_TRASH = "Trash"; 
     public static final String DEFAULT_SENT = "Sent"; 
     public static final String DEFAULT_DRAFT = "Draft"; 
     
-    /**
-     * 
-     */
-    private static final long serialVersionUID = -8051377307421345664L;
     private String trashFolderName = DEFAULT_TRASH;
     private String sentFolderName = DEFAULT_SENT;
     private String inboxFolderName = DEFAULT_INBOX;

Added: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SmtpMessageImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SmtpMessageImpl.java?rev=1516164&view=auto
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SmtpMessageImpl.java (added)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SmtpMessageImpl.java Wed Aug 21 14:08:19 2013
@@ -0,0 +1,89 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.data;
+
+import java.util.List;
+
+import org.apache.hupa.shared.domain.MessageAttachment;
+import org.apache.hupa.shared.domain.SmtpMessage;
+
+public class SmtpMessageImpl extends AbstractMessageImpl implements SmtpMessage {
+	private List<String> bcc;
+	private String text;
+	private List<MessageAttachment> messageAttachments;
+
+	public String toString() {
+		StringBuffer bccList = new StringBuffer("");
+		if (bcc != null)
+			for (String s : bcc)
+				bccList.append(s).append(" ");
+
+		StringBuffer attachNames = new StringBuffer("");
+		for (MessageAttachment m : messageAttachments)
+			attachNames.append(m.getName()).append(" ");
+
+		return super.toString() + " Bcc='" + bccList.toString() + "'\nAttachments=" + attachNames.toString()
+		        + "'\nMessage:\n" + text;
+	}
+
+	public List<String> getBcc() {
+		return bcc;
+	}
+	public void setBcc(List<String> bcc) {
+		this.bcc = bcc;
+	}
+
+	/**
+	 * Set the body text of the content
+	 * 
+	 * @param text
+	 */
+	public void setText(String text) {
+		this.text = text;
+	}
+
+	/**
+	 * Return the body text of the content
+	 * 
+	 * @return The text
+	 */
+	public String getText() {
+		return text;
+	}
+
+	/**
+	 * Set the attachments
+	 * 
+	 * @param aList
+	 */
+	public void setMessageAttachments(List<MessageAttachment> aList) {
+		this.messageAttachments = aList;
+	}
+
+	/**
+	 * Return the attachments
+	 * 
+	 * @return aList
+	 */
+	public List<MessageAttachment> getMessageAttachments() {
+		return messageAttachments;
+	}
+
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/TagImpl.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/TagImpl.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/TagImpl.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/TagImpl.java Wed Aug 21 14:08:19 2013
@@ -16,24 +16,33 @@
  * specific language governing permissions and limitations      *
  * under the License.                                           *
  ****************************************************************/
-package org.apache.hupa.client.rf;
 
-import org.apache.hupa.server.rf.Subject;
+package org.apache.hupa.shared.data;
 
-import com.google.web.bindery.requestfactory.shared.EntityProxy;
-import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import org.apache.hupa.shared.domain.Tag;
 
-@ProxyFor(Subject.class)
-public interface SubjectProxy extends EntityProxy {
-  String getTitle();
+public class TagImpl implements Tag {
 
-  Long getId();
+	public final static String PREFIX = "TAG.";
+	private String tagName;
 
-  Integer getVersion();
+	public TagImpl() {
+	}
 
-  void setTitle(String title);
+	public TagImpl(String tagName) {
+		this.tagName = tagName;
+	}
 
-  void setId(Long id);
+	public String getName() {
+		return tagName;
+	}
+
+	public String getPrefix() {
+		return PREFIX;
+	}
+
+	public String toString() {
+		return PREFIX + tagName;
+	}
 
-  void setVersion(Integer version);
 }

Added: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/UserImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/UserImpl.java?rev=1516164&view=auto
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/UserImpl.java (added)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/UserImpl.java Wed Aug 21 14:08:19 2013
@@ -0,0 +1,139 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.data;
+
+import java.util.Date;
+
+import org.apache.hupa.shared.domain.Settings;
+import org.apache.hupa.shared.domain.User;
+
+/**
+ * User which will get used for login to the IMAP and SMTP account
+ * 
+ * 
+ */
+public class UserImpl implements User {
+	private String name;
+	private String password;
+	private Date loginDate;
+	private boolean auth;
+	private Settings settings;
+
+	/**
+	 * The name of the User
+	 * 
+	 * @param name
+	 */
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	/**
+	 * Get name of the User
+	 * 
+	 * @return name
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * Set the Password of the User
+	 * 
+	 * @param password
+	 */
+	public void setPassword(String password) {
+		this.password = password;
+	}
+
+	/**
+	 * Get the Password of the User
+	 * 
+	 * @return password
+	 */
+	public String getPassword() {
+		return password;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#toString()
+	 */
+	public String toString() {
+		return getName();
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#equals(java.lang.Object)
+	 */
+	public boolean equals(Object object) {
+		if (object instanceof UserImpl) {
+			if (((UserImpl) object).getName().equals(getName())) {
+				return true;
+			}
+		}
+		return false;
+	}
+
+	public int hashCode() {
+		return getName().hashCode();
+	}
+	/**
+	 * Get the Date on which the User was logged in the last time
+	 * 
+	 * @return loginDate
+	 */
+	public Date getLoginDate() {
+		return loginDate;
+	}
+
+	/**
+	 * Set if the User was successful authenticated
+	 * 
+	 * @param auth
+	 */
+	public void setAuthenticated(boolean auth) {
+		this.auth = auth;
+		if (auth) {
+			loginDate = new Date();
+		}
+	}
+
+	/**
+	 * Get if the User was successful authenticated
+	 * 
+	 * @return auth
+	 */
+	public boolean getAuthenticated() {
+		return auth;
+	}
+
+	public void setSettings(Settings settings) {
+		this.settings = settings;
+	}
+
+	public Settings getSettings() {
+		return settings;
+	}
+
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFolders.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFolders.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFolders.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java Wed Aug 21 14:08:19 2013
@@ -17,17 +17,13 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.domain;
 
-import java.io.Serializable;
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
 
-import net.customware.gwt.dispatch.shared.Action;
-
-
-public class FetchFolders implements Action<FetchFoldersResult>, Serializable {
-
-    private static final long serialVersionUID = 8515539585915762904L;
-
-    public FetchFolders() {
-    }
+@ProxyFor(CreateFolderAction.class)
+public interface CreateFolderAction extends ValueProxy{
+	ImapFolder getFolder();
+	void setFolder(ImapFolder folder);
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java Wed Aug 21 14:08:19 2013
@@ -17,12 +17,13 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.domain;
 
-import java.io.Serializable;
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
 
-import net.customware.gwt.dispatch.shared.Action;
-
-public class Contacts implements Action<ContactsResult>, Serializable{
-    private static final long serialVersionUID = 1l;
+@ProxyFor(DeleteFolderAction.class)
+public interface DeleteFolderAction extends ValueProxy{
+	ImapFolder getFolder();
+	void setFolder(ImapFolder folder);
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/NameAwareWidgetDisplay.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/NameAwareWidgetDisplay.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/NameAwareWidgetDisplay.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java Wed Aug 21 14:08:19 2013
@@ -1,30 +1,27 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-package org.apache.hupa.client.mvp;
-
-public interface NameAwareWidgetDisplay {
-
-    /**
-     * Return the name for the Display to show
-     * 
-     * @return name
-     */
-    public String getName();
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.domain;
+
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
+
+public interface DeleteMessageAction extends ValueProxy{
+	ImapFolder getFolder();
+	void setFolder(ImapFolder folder);
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessageResult.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessageResult.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessageResult.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java Wed Aug 21 14:08:19 2013
@@ -17,13 +17,11 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.domain;
 
-public class MoveMessageResult extends GenericResult{
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
 
-    /**
-     * 
-     */
-    private static final long serialVersionUID = 341407423455525004L;
+@ProxyFor(DeleteMessageAllAction.class)
+public interface DeleteMessageAllAction extends DeleteMessageAction{
 
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFolders.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFolders.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchFolders.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java Wed Aug 21 14:08:19 2013
@@ -17,17 +17,14 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.domain;
 
-import java.io.Serializable;
+import java.util.List;
 
-import net.customware.gwt.dispatch.shared.Action;
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
 
-
-public class FetchFolders implements Action<FetchFoldersResult>, Serializable {
-
-    private static final long serialVersionUID = 8515539585915762904L;
-
-    public FetchFolders() {
-    }
+@ProxyFor(DeleteMessageByUidAction.class)
+public interface DeleteMessageByUidAction extends DeleteMessageAction {
+	List<Long> getMessageUids();
+	void setMessageUids(List<Long> messageUids);
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java Wed Aug 21 14:08:19 2013
@@ -17,12 +17,14 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.domain;
 
-import java.io.Serializable;
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
 
-import net.customware.gwt.dispatch.shared.Action;
-
-public class Contacts implements Action<ContactsResult>, Serializable{
-    private static final long serialVersionUID = 1l;
+@ProxyFor(DeleteMessageResult.class)
+public interface DeleteMessageResult extends ValueProxy {
+	int getCount();
+	User getUser();
+	ImapFolder getFolder();
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java Wed Aug 21 14:08:19 2013
@@ -1,39 +1,35 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-package org.apache.hupa.client.rf;
-
-import org.apache.hupa.server.rf.Subject;
-
-import com.google.web.bindery.requestfactory.shared.EntityProxy;
-import com.google.web.bindery.requestfactory.shared.ProxyFor;
-
-@ProxyFor(Subject.class)
-public interface SubjectProxy extends EntityProxy {
-  String getTitle();
-
-  Long getId();
-
-  Integer getVersion();
-
-  void setTitle(String title);
-
-  void setId(Long id);
-
-  void setVersion(Integer version);
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.domain;
+
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
+
+@ProxyFor(FetchMessagesAction.class)
+public interface FetchMessagesAction extends ValueProxy {
+	ImapFolder getFolder();
+	int getStart();
+	int getOffset();
+	String getSearchString();
+	void setFolder(ImapFolder folder);
+	void setStart(int start);
+	void setOffset(int offset);
+	void setSearchString(String searchString);
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java Wed Aug 21 14:08:19 2013
@@ -1,39 +1,35 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-package org.apache.hupa.client.rf;
-
-import org.apache.hupa.server.rf.Subject;
-
-import com.google.web.bindery.requestfactory.shared.EntityProxy;
-import com.google.web.bindery.requestfactory.shared.ProxyFor;
-
-@ProxyFor(Subject.class)
-public interface SubjectProxy extends EntityProxy {
-  String getTitle();
-
-  Long getId();
-
-  Integer getVersion();
-
-  void setTitle(String title);
-
-  void setId(Long id);
-
-  void setVersion(Integer version);
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.domain;
+
+import java.util.List;
+
+
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
+
+@ProxyFor(FetchMessagesResult.class)
+public interface FetchMessagesResult extends ValueProxy{
+	int getOffset();
+	int getStart();
+	List<Message> getMessages();
+	int getRealCount();
+	int getRealUnreadCount();
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java Wed Aug 21 14:08:19 2013
@@ -1,39 +1,32 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-package org.apache.hupa.client.rf;
-
-import org.apache.hupa.server.rf.Subject;
-
-import com.google.web.bindery.requestfactory.shared.EntityProxy;
-import com.google.web.bindery.requestfactory.shared.ProxyFor;
-
-@ProxyFor(Subject.class)
-public interface SubjectProxy extends EntityProxy {
-  String getTitle();
-
-  Long getId();
-
-  Integer getVersion();
-
-  void setTitle(String title);
-
-  void setId(Long id);
-
-  void setVersion(Integer version);
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.domain;
+
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
+
+@ProxyFor(GenericResult.class)
+public interface GenericResult extends ValueProxy{
+	String getMessage();
+	boolean isSuccess();
+	void setMessage(String message);
+	void setSuccess(boolean success);
+	void setError(String message);
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsAction.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsAction.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsAction.java Wed Aug 21 14:08:19 2013
@@ -1,39 +1,36 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-package org.apache.hupa.client.rf;
-
-import org.apache.hupa.server.rf.Subject;
-
-import com.google.web.bindery.requestfactory.shared.EntityProxy;
-import com.google.web.bindery.requestfactory.shared.ProxyFor;
-
-@ProxyFor(Subject.class)
-public interface SubjectProxy extends EntityProxy {
-  String getTitle();
-
-  Long getId();
-
-  Integer getVersion();
-
-  void setTitle(String title);
-
-  void setId(Long id);
-
-  void setVersion(Integer version);
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.domain;
+
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
+
+@ProxyFor(GetMessageDetailsAction.class)
+public interface GetMessageDetailsAction extends ValueProxy{
+
+	ImapFolder getFolder();
+
+	void setFolder(ImapFolder folder);
+
+	long getUid();
+
+	void setUid(long uid);
+
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsResult.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsResult.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsResult.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/rf/SubjectProxy.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageDetailsResult.java Wed Aug 21 14:08:19 2013
@@ -1,39 +1,33 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-package org.apache.hupa.client.rf;
-
-import org.apache.hupa.server.rf.Subject;
-
-import com.google.web.bindery.requestfactory.shared.EntityProxy;
-import com.google.web.bindery.requestfactory.shared.ProxyFor;
-
-@ProxyFor(Subject.class)
-public interface SubjectProxy extends EntityProxy {
-  String getTitle();
-
-  Long getId();
-
-  Integer getVersion();
-
-  void setTitle(String title);
-
-  void setId(Long id);
-
-  void setVersion(Integer version);
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.domain;
+
+
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
+
+@ProxyFor(GetMessageDetailsResult.class)
+public interface GetMessageDetailsResult extends ValueProxy{
+
+	MessageDetails getMessageDetails();
+
+	void setMessageDetails(MessageDetails messageDetails);
+
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawAction.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawAction.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Contacts.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawAction.java Wed Aug 21 14:08:19 2013
@@ -17,12 +17,13 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.domain;
 
-import java.io.Serializable;
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
 
-import net.customware.gwt.dispatch.shared.Action;
-
-public class Contacts implements Action<ContactsResult>, Serializable{
-    private static final long serialVersionUID = 1l;
+@ProxyFor(GetMessageRawAction.class)
+public interface GetMessageRawAction extends ValueProxy{
+	ImapFolder getFolder();
+	long getUid();
 }

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawResult.java (from r1375909, james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/NameAwareWidgetDisplay.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawResult.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawResult.java&p1=james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/NameAwareWidgetDisplay.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/NameAwareWidgetDisplay.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GetMessageRawResult.java Wed Aug 21 14:08:19 2013
@@ -1,30 +1,28 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-package org.apache.hupa.client.mvp;
-
-public interface NameAwareWidgetDisplay {
-
-    /**
-     * Return the name for the Display to show
-     * 
-     * @return name
-     */
-    public String getName();
-}
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+
+package org.apache.hupa.shared.domain;
+
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
+
+@ProxyFor(GetMessageRawResult.class)
+public interface GetMessageRawResult extends ValueProxy{
+	String getRawMessage();
+}

Copied: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/IdleAction.java (from r1375909, james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessageResult.java)
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/IdleAction.java?p2=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/IdleAction.java&p1=james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessageResult.java&r1=1375909&r2=1516164&rev=1516164&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/MoveMessageResult.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/IdleAction.java Wed Aug 21 14:08:19 2013
@@ -17,13 +17,12 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.hupa.shared.rpc;
+package org.apache.hupa.shared.domain;
 
-public class MoveMessageResult extends GenericResult{
+import com.google.web.bindery.requestfactory.shared.ProxyFor;
+import com.google.web.bindery.requestfactory.shared.ValueProxy;
 
-    /**
-     * 
-     */
-    private static final long serialVersionUID = 341407423455525004L;
+@ProxyFor(IdleAction.class)
+public interface IdleAction extends ValueProxy{
 
 }



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