james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r820986 [2/2] - in /james/hupa/trunk: ./ client/src/main/java/org/apache/hupa/client/ client/src/main/java/org/apache/hupa/client/mvp/ server/src/main/java/org/apache/hupa/server/ server/src/main/java/org/apache/hupa/server/guice/ server/sr...
Date Fri, 02 Oct 2009 12:22:29 GMT
Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteAllMessages.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteAllMessages.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteAllMessages.java
(original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteAllMessages.java
Fri Oct  2 12:22:26 2009
@@ -23,14 +23,10 @@
 
 public class DeleteAllMessages extends DeleteMessage{
 
-	
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = -6801849429581798842L;
 
-	public DeleteAllMessages(String session, IMAPFolder folder) {
-		super(session, folder);
+	public DeleteAllMessages(IMAPFolder folder) {
+		super(folder);
 	}
 	
 	protected DeleteAllMessages() {

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteFolder.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteFolder.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteFolder.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteFolder.java Fri
Oct  2 12:22:26 2009
@@ -19,17 +19,17 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class DeleteFolder extends Session<EmptyResult>{
-	/**
-	 * 
-	 */
+public class DeleteFolder implements Action<EmptyResult>{
+
 	private static final long serialVersionUID = 7921329310932404439L;
+	
 	private IMAPFolder folder;
 
-	public DeleteFolder(String sessionId, IMAPFolder folder) {
-		super(sessionId);
+	public DeleteFolder(IMAPFolder folder) {
 		this.folder = folder;
 	}
 

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessage.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessage.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessage.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/DeleteMessage.java Fri
Oct  2 12:22:26 2009
@@ -19,18 +19,16 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class DeleteMessage extends Session<DeleteMessageResult>{
+public class DeleteMessage implements Action<DeleteMessageResult>{
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 801294103124082592L;
 	private IMAPFolder folder;
 
-	public DeleteMessage(String sessionId,IMAPFolder folder) {
-		super(sessionId);
+	public DeleteMessage(IMAPFolder folder) {
 		this.folder = folder;
 	}
 	

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=820986&r1=820985&r2=820986&view=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
Fri Oct  2 12:22:26 2009
@@ -23,23 +23,18 @@
 
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class DeleteMessageByUid extends DeleteMessage{
+public class DeleteMessageByUid extends DeleteMessage {
 
-
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = -5980938676368660849L;
-	private ArrayList<Long> messageUids;
 
+	private ArrayList<Long> messageUids;
 
-	public DeleteMessageByUid(String sessionId,IMAPFolder folder, ArrayList<Long> messageUids)
{
-		super(sessionId,folder);
+	public DeleteMessageByUid(IMAPFolder folder, ArrayList<Long> messageUids) {
+		super(folder);
 		this.messageUids = messageUids;
 	}
 	
 	protected DeleteMessageByUid() {
-		
 	}
 	
 	public ArrayList<Long> getMessageUids() {

Modified: 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/rpc/FetchFolders.java?rev=820986&r1=820985&r2=820986&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/rpc/FetchFolders.java Fri
Oct  2 12:22:26 2009
@@ -19,21 +19,13 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
 
-public class FetchFolders extends Session<FetchFoldersResult>{
 
-	
-	/**
-	 * 
-	 */
+public class FetchFolders implements Action<FetchFoldersResult>{
+
 	private static final long serialVersionUID = 8515539585915762904L;
 
-	public FetchFolders(String sessionId) {
-		super(sessionId);
-	}
-	
-	@SuppressWarnings("unused")
-	private FetchFolders() {
-		
+	public FetchFolders() {
 	}
 }

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchMessages.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchMessages.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchMessages.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchMessages.java Fri
Oct  2 12:22:26 2009
@@ -19,13 +19,12 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class FetchMessages extends Session<FetchMessagesResult>{
+public class FetchMessages implements Action<FetchMessagesResult>{
 	
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = -3181183289937321202L;
 	private IMAPFolder folder;
 	private int start;
@@ -35,8 +34,7 @@
 	protected FetchMessages() {
 	}
 	
-	public FetchMessages(String sessionId, IMAPFolder folder,int start, int offset,String searchString)
{
-		super(sessionId);
+	public FetchMessages(IMAPFolder folder,int start, int offset,String searchString) {
 		this.folder = folder;
 		this.start = start;
 		this.offset = offset;

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchRecentMessages.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchRecentMessages.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchRecentMessages.java
(original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/FetchRecentMessages.java
Fri Oct  2 12:22:26 2009
@@ -23,18 +23,14 @@
 
 public class FetchRecentMessages extends FetchMessages{
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 4380357285905033821L;
 
 	protected FetchRecentMessages() {
-		
 	}
 	
-	public FetchRecentMessages(String sessionId, IMAPFolder folder, int start,
+	public FetchRecentMessages(IMAPFolder folder, int start,
 			int offset, String searchString) {
-		super(sessionId, folder, start, offset, searchString);
+		super(folder, start, offset, searchString);
 	}
 
 }

Modified: 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/rpc/ForwardMessage.java?rev=820986&r1=820985&r2=820986&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/rpc/ForwardMessage.java Fri
Oct  2 12:22:26 2009
@@ -23,23 +23,18 @@
 import org.apache.hupa.shared.data.IMAPFolder;
 import org.apache.hupa.shared.data.SMTPMessage;
 
-public class ForwardMessage extends SendMessage{
+public class ForwardMessage extends SendMessage {
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 1656671247843122192L;
 	private long uid;
 	private IMAPFolder folder;
 
-	public ForwardMessage(String sessionId, SMTPMessage msg, IMAPFolder folder, long uid) {
-		super(sessionId, msg);
+	public ForwardMessage(SMTPMessage msg, IMAPFolder folder, long uid) {
 		this.uid = uid;
 		this.folder = folder;
 	}
 	
 	protected ForwardMessage() {
-		
 	}
 
 	public long getReplyMessageUid() {

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/GetMessageDetails.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/GetMessageDetails.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/GetMessageDetails.java
(original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/GetMessageDetails.java
Fri Oct  2 12:22:26 2009
@@ -20,19 +20,17 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class GetMessageDetails extends Session<GetMessageDetailsResult>{
+public class GetMessageDetails implements Action<GetMessageDetailsResult>{
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 5826298202494313834L;
 	private IMAPFolder folder;
 	private long uid;
 
-	public GetMessageDetails(String sessionId, IMAPFolder folder, long uid) {
-		super(sessionId);
+	public GetMessageDetails(IMAPFolder folder, long uid) {
 		this.folder = folder;
 		this.uid = uid;
 	}
@@ -52,7 +50,7 @@
 	public boolean equals(Object obj) {
 		if (obj instanceof GetMessageDetails) {
 			GetMessageDetails action = (GetMessageDetails) obj;
-			if (action.getSessionId().equals(getSessionId()) && action.getFolder().equals(getFolder())
&& action.getUid() == getUid()) {
+			if (action.getFolder().equals(getFolder()) && action.getUid() == getUid()) {
 				return true;
 			}
 		}
@@ -61,6 +59,6 @@
 	}
 	
 	public int hashCode() {
-		return (int) (getSessionId().hashCode() * getFolder().hashCode() * getUid());
+		return (int) (getFolder().hashCode() * getUid());
 	}
 }

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LoginUser.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LoginUser.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LoginUser.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LoginUser.java Fri Oct
 2 12:22:26 2009
@@ -24,11 +24,8 @@
 import net.customware.gwt.dispatch.shared.Action;
 
 public class LoginUser implements Action<LoginUserResult>{
-    /**
-     * 
-     */
-    private static final long serialVersionUID = -7541443368424711160L;
 
+	private static final long serialVersionUID = -7541443368424711160L;
     
     private String userName;
     private String password;

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LogoutUser.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LogoutUser.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LogoutUser.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/LogoutUser.java Fri Oct
 2 12:22:26 2009
@@ -19,21 +19,14 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
 
-public class LogoutUser extends Session<LogoutUserResult>{
 
-	/**
-	 * 
-	 */
+public class LogoutUser implements Action<LogoutUserResult>{
+
 	private static final long serialVersionUID = 2255166545722718094L;
 	
-	public LogoutUser(String sessionId) {
-		super(sessionId);
+	public LogoutUser() {
 	}
 	
-	@SuppressWarnings("unused")
-	private LogoutUser() {
-		
-	}
-
 }

Modified: 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/rpc/MoveMessage.java?rev=820986&r1=820985&r2=820986&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/rpc/MoveMessage.java Fri
Oct  2 12:22:26 2009
@@ -19,27 +19,24 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class MoveMessage extends Session<MoveMessageResult>{
+public class MoveMessage implements Action<MoveMessageResult>{
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 7771146077050895244L;
 	private IMAPFolder oldFolder;
 	private IMAPFolder newFolder;
 	private long messageUid;
 
-	public MoveMessage(String sessionId,IMAPFolder oldFolder, IMAPFolder newFolder, long messageUid)
{
-		super(sessionId);
+	public MoveMessage(IMAPFolder oldFolder, IMAPFolder newFolder, long messageUid) {
 		this.oldFolder = oldFolder;
 		this.newFolder = newFolder;
 		this.messageUid = messageUid;
 	}
 	
 	protected MoveMessage() {
-		
 	}
 	
 	public long getMessageUid() {

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Noop.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Noop.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Noop.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/Noop.java Fri Oct  2
12:22:26 2009
@@ -19,20 +19,11 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
 
-public class Noop extends Session<NoopResult>{
 
-	/**
-	 * 
-	 */
+public class Noop implements Action<NoopResult>{
+
 	private static final long serialVersionUID = 4076791577558340559L;
 
-	public Noop(String sessionId) {
-		super(sessionId);
-	}
-	
-	@SuppressWarnings("unused")
-	private Noop() {
-		
-	}
 }

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/NoopResult.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/NoopResult.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/NoopResult.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/NoopResult.java Fri Oct
 2 12:22:26 2009
@@ -21,14 +21,8 @@
 
 import net.customware.gwt.dispatch.shared.Result;
 
-public class NoopResult implements Result{
+public class NoopResult implements Result {
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 5530385273335407315L;
 
-	public NoopResult() {
-		
-	}
 }

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RawMessage.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RawMessage.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RawMessage.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RawMessage.java Fri Oct
 2 12:22:26 2009
@@ -20,19 +20,17 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class RawMessage extends Session<RawMessageResult>{
+public class RawMessage implements Action<RawMessageResult> {
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 5826298202494313834L;
 	private IMAPFolder folder;
 	private long uid;
 
-	public RawMessage(String sessionId, IMAPFolder folder, long uid) {
-		super(sessionId);
+	public RawMessage(IMAPFolder folder, long uid) {
 		this.folder = folder;
 		this.uid = uid;
 	}
@@ -52,16 +50,15 @@
 	public boolean equals(Object obj) {
 		if (obj instanceof RawMessage) {
 			RawMessage action = (RawMessage) obj;
-			if (action.getSessionId().equals(getSessionId()) && action.getFolder().equals(getFolder())
&& action.getUid() == getUid()) {
+			if (action.getFolder().equals(getFolder()) && action.getUid() == getUid()) {
 				return true;
 			}
 		}
 		return false;
-		
 	}
 	
 	public int hashCode() {
-		return (int) (getSessionId().hashCode() * getFolder().hashCode() * getUid());
+		return (int) (getFolder().hashCode() * getUid());
 	}
 	
 }

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RenameFolder.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RenameFolder.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RenameFolder.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/RenameFolder.java Fri
Oct  2 12:22:26 2009
@@ -19,19 +19,17 @@
 
 package org.apache.hupa.shared.rpc;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 
-public class RenameFolder extends Session<EmptyResult>{
+public class RenameFolder implements Action<EmptyResult>{
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 1924419911921600320L;
 	private IMAPFolder folder;
 	private String newName;
 
-	public RenameFolder(String sessionUid,IMAPFolder folder, String newName) {
-		super(sessionUid);
+	public RenameFolder(IMAPFolder folder, String newName) {
 		this.folder = folder;
 		this.newName = newName;
 	}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ReplyMessage.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ReplyMessage.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ReplyMessage.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/ReplyMessage.java Fri
Oct  2 12:22:26 2009
@@ -23,16 +23,14 @@
 import org.apache.hupa.shared.data.IMAPFolder;
 import org.apache.hupa.shared.data.SMTPMessage;
 
-public class ReplyMessage extends ForwardMessage{
+public class ReplyMessage extends ForwardMessage {
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = -383135476236902779L;
+
 	private boolean replyAll;
 	
-	public ReplyMessage(String sessionId, SMTPMessage msg, IMAPFolder folder, long uid, boolean
replyAll) {
-		super(sessionId, msg, folder, uid);
+	public ReplyMessage(SMTPMessage msg, IMAPFolder folder, long uid, boolean replyAll) {
+		super(msg, folder, uid);
 		this.replyAll = replyAll;
 	}
 
@@ -44,5 +42,4 @@
 		return replyAll;
 	}
 	
-
 }

Modified: 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/rpc/SendMessage.java?rev=820986&r1=820985&r2=820986&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/rpc/SendMessage.java Fri
Oct  2 12:22:26 2009
@@ -20,19 +20,17 @@
 package org.apache.hupa.shared.rpc;
 
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.SMTPMessage;
 
-public class SendMessage extends Session<EmptyResult>{
+public class SendMessage implements Action<EmptyResult>{
 	
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 973668124208945015L;
-	private SMTPMessage msg;
 
+	private SMTPMessage msg;
 	
-	public SendMessage(String sessionId, SMTPMessage msg) {
-		super(sessionId);
+	public SendMessage(SMTPMessage msg) {
 		this.msg = msg;
 	}
 	

Modified: 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/rpc/SetFlag.java?rev=820986&r1=820985&r2=820986&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/rpc/SetFlag.java Fri Oct
 2 12:22:26 2009
@@ -21,29 +21,27 @@
 
 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 extends Session<EmptyResult>{
+public class SetFlag implements Action<EmptyResult>{
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 662741801793895357L;
 	private IMAPFlag flag;
 	private ArrayList<Long> uids;
 	private IMAPFolder folder;
 	private boolean value;
 	
-	public SetFlag(String session, IMAPFolder folder, IMAPFlag flag, boolean value, ArrayList<Long>
uids) {
-		super(session);
+	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() {

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/TagMessage.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/TagMessage.java?rev=820986&r1=820985&r2=820986&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/TagMessage.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/rpc/TagMessage.java Fri Oct
 2 12:22:26 2009
@@ -22,25 +22,22 @@
 
 import java.util.ArrayList;
 
+import net.customware.gwt.dispatch.shared.Action;
+
 import org.apache.hupa.shared.data.IMAPFolder;
 import org.apache.hupa.shared.data.Tag;
 
-public class TagMessage extends Session<EmptyResult>{
+public class TagMessage implements Action<EmptyResult>{
 
-	/**
-	 * 
-	 */
 	private static final long serialVersionUID = 4323236257115412763L;
 	private IMAPFolder folder;
 	private ArrayList<Long> messageUids;
 	private Tag tag;
 
 	protected TagMessage() {
-		
 	}
 	
-	public TagMessage(String sessionId, Tag tag, IMAPFolder folder, ArrayList<Long> messageUids)
{
-		super(sessionId);
+	public TagMessage(Tag tag, IMAPFolder folder, ArrayList<Long> messageUids) {
 		this.tag = tag;
 		this.folder = folder;
 		this.messageUids = messageUids;



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


Mime
View raw message