You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2010/09/16 13:21:09 UTC

svn commit: r997692 - /shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java

Author: lindner
Date: Thu Sep 16 11:21:09 2010
New Revision: 997692

URL: http://svn.apache.org/viewvc?rev=997692&view=rev
Log:
SHINDIG-1426 | Patch from Christiaan Hees | create and modify method signatures in MessageHandler.java

Modified:
    shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java

Modified: shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java
URL: http://svn.apache.org/viewvc/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java?rev=997692&r1=997691&r2=997692&view=diff
==============================================================================
--- shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java (original)
+++ shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java Thu Sep 16 11:21:09 2010
@@ -99,7 +99,7 @@ public class MessageHandler {
    * Creates a new message collection or message
    */
   @Operation(httpMethods = "POST", bodyParam = "entity")
-  public Future<?> modify(SocialRequestItem request) throws ProtocolException {
+  public Future<?> create(SocialRequestItem request) throws ProtocolException {
 
     Set<UserId> userIds = request.getUsers();
     String msgCollId = request.getParameter("msgCollId");
@@ -133,7 +133,7 @@ public class MessageHandler {
    * Handles modifying a message or a message collection.
    */
   @Operation(httpMethods = "PUT", bodyParam = "entity")
-  public Future<?> create(SocialRequestItem request) throws ProtocolException {
+  public Future<?> modify(SocialRequestItem request) throws ProtocolException {
 
     Set<UserId> userIds = request.getUsers();
     String msgCollId = request.getParameter("msgCollId");