You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@esme.apache.org by es...@apache.org on 2010/07/17 16:15:37 UTC
svn commit: r965087 -
/incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/API2.scala
Author: esjewett
Date: Sat Jul 17 14:15:37 2010
New Revision: 965087
URL: http://svn.apache.org/viewvc?rev=965087&view=rev
Log:
Removing todo-list in the file
Modified:
incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/API2.scala
Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/API2.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/API2.scala?rev=965087&r1=965086&r2=965087&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/API2.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/API2.scala Sat Jul 17 14:15:37 2010
@@ -255,7 +255,7 @@ object API2 extends ApiHelper with XmlHe
val num = S.param("history").map(_.toInt) openOr 40;
val lst = Mailbox.mostRecentMessagesFor(user.id, num))
yield (200,Map(),Full(<messages>{lst.flatMap{ case (msg, reason, _) => msgToXml(msg) }}</messages>))
-
+
val r: Box[Tuple3[Int,Map[String,String],Box[Elem]]] =
if(ret.isDefined) ret else Full((403,Map(),Empty))
@@ -345,8 +345,7 @@ object API2 extends ApiHelper with XmlHe
pool) match {
case Full(m: Message) => (200,Map(),Full(msgToXml(m)))
case other => (200,Map(),Empty)
- }
-// (200,Map(),Empty)
+ }
}
val r: Box[Tuple3[Int,Map[String,String],Box[Elem]]] =
@@ -843,21 +842,4 @@ object API2 extends ApiHelper with XmlHe
private case class ListenFor(who: LAFuture[List[(Message, MailboxReason)]],
howLong: TimeSpan)
private case object ReleaseListener
-}
-
-// TODO:
-// 1. Make addMsg() return the created message when successful.
-// 2. Add a method to get detail for a specific user
-// 3. Change changeAction so that if the "enabled" parameter doesn't show up it will simply use
-// the current value for the action, not throw an error.
-// 4. Match based on the return content type header to determine what to return (default to XML)
-// 5. Add a method to get detail for a specific track (or messages for the track?)
-// 6. Add a method to get detail of a specific action
-// 7. Add a method to delete pool
-// 8. Add a method to get the detail for a pool
-// 9. Add a method to get the list of users in a pool
-// 10. Add a method to delete a user from a pool
-// 11. Add a method to get the messages from a pool
-// 12. Add a method to post a new message to a pool
-// 13. Add a method to get list of conversations
-// 14. Add a method to post a message to a conversation??
+}
\ No newline at end of file