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 ma...@apache.org on 2014/03/20 09:16:10 UTC

svn commit: r1579559 [18/23] - in /james/hupa/trunk: ./ client/ client/src/main/java/com/google/web/bindery/requestfactory/server/ client/src/main/java/org/apache/hupa/ client/src/main/java/org/apache/hupa/client/ client/src/main/java/org/apache/hupa/c...

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MessageImpl.java Thu Mar 20 08:16:02 2014
@@ -1,105 +1,105 @@
-/****************************************************************
- * 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 java.util.List;
-
-import org.apache.hupa.shared.domain.Message;
-import org.apache.hupa.shared.domain.Tag;
-
-/**
- * 
- *
- */
-public class MessageImpl extends AbstractMessageImpl implements Message{
-
-    private List<String> extra;
-    private long uid;
-    private List<IMAPFlag> flags;
-    private List<Tag> tags;
-    private Date rDate;
-    
-    public enum IMAPFlag {
-        SEEN, DELETED, RECENT, ANSWERED, JUNK, DRAFT, FLAGGED, USER
-    }
-
-    public void setFlags(List<IMAPFlag> flags) {
-        this.flags = flags;
-    }
-
-    public List<IMAPFlag> getFlags() {
-        return flags;
-    }
-    
-    public void setTags(List<Tag> tags) {
-        this.tags = tags;
-    }
-    
-    public List<Tag> getTags() {
-        return tags;
-    }
-    
-    public long getUid() {
-        return uid;
-    }
-
-    public void setUid(long uid) {
-        this.uid = uid;
-    }
-    
-    
-    public void setReceivedDate(Date rDate) {
-        this.rDate = rDate;
-    }
-
-    public Date getReceivedDate() {
-        return rDate == null ? new Date(): rDate;
-    }
-    
-
-    public String toString() {
-        return String.valueOf(getUid());
-    }
-    
-    public boolean equals(Object obj) {
-        if (obj instanceof MessageImpl) {
-            if (((MessageImpl)obj).getUid() == getUid()) {
-                return true;
-            }
-        }
-        return false;
-    }
-    
-    public int hashCode() {
-        return Long.valueOf(getUid()).hashCode();
-    }
-
-    @Override
-    public void setExtra(List<String> extra) {
-        this.extra = extra;
-        
-    }
-
-    @Override
-    public List<String> getExtra() {
-        return extra;
-    }
-}
+/****************************************************************
+ * 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 java.util.List;
+
+import org.apache.hupa.shared.domain.Message;
+import org.apache.hupa.shared.domain.Tag;
+
+/**
+ *
+ *
+ */
+public class MessageImpl extends AbstractMessageImpl implements Message{
+
+    private List<String> extra;
+    private long uid;
+    private List<IMAPFlag> flags;
+    private List<Tag> tags;
+    private Date rDate;
+
+    public enum IMAPFlag {
+        SEEN, DELETED, RECENT, ANSWERED, JUNK, DRAFT, FLAGGED, USER
+    }
+
+    public void setFlags(List<IMAPFlag> flags) {
+        this.flags = flags;
+    }
+
+    public List<IMAPFlag> getFlags() {
+        return flags;
+    }
+
+    public void setTags(List<Tag> tags) {
+        this.tags = tags;
+    }
+
+    public List<Tag> getTags() {
+        return tags;
+    }
+
+    public long getUid() {
+        return uid;
+    }
+
+    public void setUid(long uid) {
+        this.uid = uid;
+    }
+
+
+    public void setReceivedDate(Date rDate) {
+        this.rDate = rDate;
+    }
+
+    public Date getReceivedDate() {
+        return rDate == null ? new Date(): rDate;
+    }
+
+
+    public String toString() {
+        return String.valueOf(getUid());
+    }
+
+    public boolean equals(Object obj) {
+        if (obj instanceof MessageImpl) {
+            if (((MessageImpl)obj).getUid() == getUid()) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    public int hashCode() {
+        return Long.valueOf(getUid()).hashCode();
+    }
+
+    @Override
+    public void setExtra(List<String> extra) {
+        this.extra = extra;
+
+    }
+
+    @Override
+    public List<String> getExtra() {
+        return extra;
+    }
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/MoveMessageActionImpl.java Thu Mar 20 08:16:02 2014
@@ -1,63 +1,63 @@
-/****************************************************************
- * 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.MoveMessageAction;
-
-public class MoveMessageActionImpl implements MoveMessageAction {
-
-    private ImapFolder oldFolder;
-    private ImapFolder newFolder;
-    private long messageUid;
-
-    public MoveMessageActionImpl(ImapFolder oldFolder, ImapFolder newFolder, long messageUid) {
-        this.oldFolder = oldFolder;
-        this.newFolder = newFolder;
-        this.messageUid = messageUid;
-    }
-    
-    protected MoveMessageActionImpl() {
-    }
-    
-    public long getMessageUid() {
-        return messageUid;
-    }
-    
-    public ImapFolder getOldFolder() {
-        return oldFolder;
-    }
-    
-    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;
-    }
-}
+/****************************************************************
+ * 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.MoveMessageAction;
+
+public class MoveMessageActionImpl implements MoveMessageAction {
+
+    private ImapFolder oldFolder;
+    private ImapFolder newFolder;
+    private long messageUid;
+
+    public MoveMessageActionImpl(ImapFolder oldFolder, ImapFolder newFolder, long messageUid) {
+        this.oldFolder = oldFolder;
+        this.newFolder = newFolder;
+        this.messageUid = messageUid;
+    }
+
+    protected MoveMessageActionImpl() {
+    }
+
+    public long getMessageUid() {
+        return messageUid;
+    }
+
+    public ImapFolder getOldFolder() {
+        return oldFolder;
+    }
+
+    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;
+    }
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/RenameFolderActionImpl.java Thu Mar 20 08:16:02 2014
@@ -1,47 +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;
-
-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;
-
-}
+/****************************************************************
+ * 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;
+
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendForwardMessageActionImpl.java Thu Mar 20 08:16:02 2014
@@ -1,81 +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.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;
-    }
-}
+/****************************************************************
+ * 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;
+    }
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendMessageActionImpl.java Thu Mar 20 08:16:02 2014
@@ -1,61 +1,61 @@
-/****************************************************************
- * 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.SmtpMessage;
-import org.apache.hupa.shared.domain.SendMessageAction;
-
-public class SendMessageActionImpl implements SendMessageAction{
-    
-    private SmtpMessage message;
-    
-    public SendMessageActionImpl(SmtpMessage msg) {
-        this.message = msg;
-    }
-    
-    protected SendMessageActionImpl() {
-        
-    }
-    
-    public SmtpMessage getMessage() {
-        return message;
-    }
-    
-    public void setMessage(SmtpMessage message) {
-        this.message = message;
-    }
-    
-    public String getInReplyTo() {
-        return null;
-    }
-
-    public String getReferences() {
-        return null;
-    }
-
-    @Override
-    public void setInReplyTo(String inReplyTo) {
-    }
-
-    @Override
-    public void setReferences(String 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.SmtpMessage;
+import org.apache.hupa.shared.domain.SendMessageAction;
+
+public class SendMessageActionImpl implements SendMessageAction{
+
+    private SmtpMessage message;
+
+    public SendMessageActionImpl(SmtpMessage msg) {
+        this.message = msg;
+    }
+
+    protected SendMessageActionImpl() {
+
+    }
+
+    public SmtpMessage getMessage() {
+        return message;
+    }
+
+    public void setMessage(SmtpMessage message) {
+        this.message = message;
+    }
+
+    public String getInReplyTo() {
+        return null;
+    }
+
+    public String getReferences() {
+        return null;
+    }
+
+    @Override
+    public void setInReplyTo(String inReplyTo) {
+    }
+
+    @Override
+    public void setReferences(String references) {
+    }
+
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SendReplyMessageActionImpl.java Thu Mar 20 08:16:02 2014
@@ -1,32 +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;
-
-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);
-    }
-}
+/****************************************************************
+ * 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);
+    }
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SetFlagActionImpl.java Thu Mar 20 08:16:02 2014
@@ -1,75 +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.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;
-    }
-}
+/****************************************************************
+ * 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;
+    }
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SettingsImpl.java Thu Mar 20 08:16:02 2014
@@ -27,12 +27,12 @@ import org.apache.hupa.shared.domain.Set
 public class SettingsImpl implements Settings, Serializable {
 
     private static final long serialVersionUID = -2239213237429390655L;
-    
-    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"; 
-    
+
+    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 String trashFolderName = DEFAULT_TRASH;
     private String sentFolderName = DEFAULT_SENT;
     private String inboxFolderName = DEFAULT_INBOX;
@@ -44,9 +44,9 @@ public class SettingsImpl implements Set
     private int smtpPort;
     private boolean smtpSecure;
     private boolean smtpAuth = true;
-    
+
     private int prefetchCount = 20;
-    
+
     public String toString() {
         String ret = "";
         ret += " smtp" +  (smtpSecure ? "s" : "") + "=" + smptServer + ":" + smtpPort + "(" + smtpAuth + ")";
@@ -54,39 +54,39 @@ public class SettingsImpl implements Set
         ret += "\n folders=" +  inboxFolderName + " " + sentFolderName + " " + trashFolderName + " " + draftsFolderName;
         return ret;
     }
-    
+
     public String getInboxFolderName() {
         return inboxFolderName;
     }
-    
+
     public void setInboxFolderName(String inboxFolderName) {
         this.inboxFolderName = inboxFolderName;
     }
-    
+
     public String getTrashFolderName() {
         return trashFolderName;
     }
-    
+
     public void setTrashFolderName(String trashFolderName) {
         this.trashFolderName = trashFolderName;
     }
-    
+
     public String getSentFolderName() {
         return sentFolderName;
     }
-    
+
     public void setSentFolderName(String sentFolderName) {
         this.sentFolderName = sentFolderName;
     }
-    
+
     public int getPostFetchMessageCount() {
         return prefetchCount;
     }
-    
+
     public void setPostFetchMessageCount(int prefetchCount) {
         this.prefetchCount  = prefetchCount;
     }
-    
+
     public String getDraftsFolderName() {
         return draftsFolderName;
     }
@@ -149,5 +149,5 @@ public class SettingsImpl implements Set
     public void setSmtpAuth(boolean smtpAuth) {
         this.smtpAuth = smtpAuth;
     }
-    
+
 }

Modified: 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=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SmtpMessageImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/SmtpMessageImpl.java Thu Mar 20 08:16:02 2014
@@ -1,102 +1,102 @@
-/****************************************************************
- * 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.ArrayList;
-import java.util.List;
-
-import org.apache.hupa.shared.domain.MailHeader;
-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;
-    private List<MailHeader> mailHeaders = new ArrayList<MailHeader>();
-
-    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;
-    }
-
-    @Override
-    public List<MailHeader> getMailHeaders() {
-        return mailHeaders;
-    }
-
-    @Override
-    public void setMailHeaders(List<MailHeader> mailHeaders) {
-        this.mailHeaders = mailHeaders == null ? new ArrayList<MailHeader>(): mailHeaders;
-    }
-
-}
+/****************************************************************
+ * 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.ArrayList;
+import java.util.List;
+
+import org.apache.hupa.shared.domain.MailHeader;
+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;
+    private List<MailHeader> mailHeaders = new ArrayList<MailHeader>();
+
+    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;
+    }
+
+    @Override
+    public List<MailHeader> getMailHeaders() {
+        return mailHeaders;
+    }
+
+    @Override
+    public void setMailHeaders(List<MailHeader> mailHeaders) {
+        this.mailHeaders = mailHeaders == null ? new ArrayList<MailHeader>(): mailHeaders;
+    }
+
+}

Modified: 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=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/UserImpl.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/data/UserImpl.java Thu Mar 20 08:16:02 2014
@@ -1,152 +1,152 @@
-/****************************************************************
- * 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.io.Serializable;
-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, Serializable {
-    
-    private static final long serialVersionUID = 7172612434659286225L;
-    
-    private String id;
-    
-
-    private String name;
-    private String password;
-    private Date loginDate;
-    private boolean auth;
-    private Settings settings;
-    
-    public String getId() {
-        return id != null ? id : name;
-    }
-
-    public void setId(String id) {
-        this.id = id;
-    }
-    /**
-     * 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;
-    }
-}
+/****************************************************************
+ * 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.io.Serializable;
+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, Serializable {
+
+    private static final long serialVersionUID = 7172612434659286225L;
+
+    private String id;
+
+
+    private String name;
+    private String password;
+    private Date loginDate;
+    private boolean auth;
+    private Settings settings;
+
+    public String getId() {
+        return id != null ? id : name;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+    /**
+     * 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;
+    }
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/CreateFolderAction.java Thu Mar 20 08:16:02 2014
@@ -1,29 +1,29 @@
-/****************************************************************
- * 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(CreateFolderAction.class)
-public interface CreateFolderAction extends ValueProxy{
-    ImapFolder getFolder();
-    void setFolder(ImapFolder folder);
-}
+/****************************************************************
+ * 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(CreateFolderAction.class)
+public interface CreateFolderAction extends ValueProxy{
+    ImapFolder getFolder();
+    void setFolder(ImapFolder folder);
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteFolderAction.java Thu Mar 20 08:16:02 2014
@@ -1,29 +1,29 @@
-/****************************************************************
- * 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(DeleteFolderAction.class)
-public interface DeleteFolderAction extends ValueProxy{
-    ImapFolder getFolder();
-    void setFolder(ImapFolder folder);
-}
+/****************************************************************
+ * 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(DeleteFolderAction.class)
+public interface DeleteFolderAction extends ValueProxy{
+    ImapFolder getFolder();
+    void setFolder(ImapFolder folder);
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAction.java Thu Mar 20 08:16:02 2014
@@ -1,27 +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.shared.domain;
-
-import com.google.web.bindery.requestfactory.shared.ValueProxy;
-
-public interface DeleteMessageAction extends ValueProxy{
-    ImapFolder getFolder();
-    void setFolder(ImapFolder folder);
-}
+/****************************************************************
+ * 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);
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageAllAction.java Thu Mar 20 08:16:02 2014
@@ -1,27 +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.shared.domain;
-
-import com.google.web.bindery.requestfactory.shared.ProxyFor;
-
-@ProxyFor(DeleteMessageAllAction.class)
-public interface DeleteMessageAllAction extends DeleteMessageAction{
-
-}
+/****************************************************************
+ * 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;
+
+@ProxyFor(DeleteMessageAllAction.class)
+public interface DeleteMessageAllAction extends DeleteMessageAction{
+
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageByUidAction.java Thu Mar 20 08:16:02 2014
@@ -1,30 +1,30 @@
-/****************************************************************
- * 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;
-
-@ProxyFor(DeleteMessageByUidAction.class)
-public interface DeleteMessageByUidAction extends DeleteMessageAction {
-    List<Long> getMessageUids();
-    void setMessageUids(List<Long> messageUids);
-}
+/****************************************************************
+ * 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;
+
+@ProxyFor(DeleteMessageByUidAction.class)
+public interface DeleteMessageByUidAction extends DeleteMessageAction {
+    List<Long> getMessageUids();
+    void setMessageUids(List<Long> messageUids);
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/DeleteMessageResult.java Thu Mar 20 08:16:02 2014
@@ -1,30 +1,30 @@
-/****************************************************************
- * 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(DeleteMessageResult.class)
-public interface DeleteMessageResult extends ValueProxy {
-    int getCount();
-    User getUser();
-    ImapFolder getFolder();
-}
+/****************************************************************
+ * 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(DeleteMessageResult.class)
+public interface DeleteMessageResult extends ValueProxy {
+    int getCount();
+    User getUser();
+    ImapFolder getFolder();
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesAction.java Thu Mar 20 08:16:02 2014
@@ -1,35 +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.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);
-}
+/****************************************************************
+ * 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);
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/FetchMessagesResult.java Thu Mar 20 08:16:02 2014
@@ -1,35 +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.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();
-}
+/****************************************************************
+ * 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();
+}

Modified: james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java?rev=1579559&r1=1579558&r2=1579559&view=diff
==============================================================================
--- james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java (original)
+++ james/hupa/trunk/shared/src/main/java/org/apache/hupa/shared/domain/GenericResult.java Thu Mar 20 08:16:02 2014
@@ -1,32 +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.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);
-}
+/****************************************************************
+ * 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);
+}



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