Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(484)

Issue 20106: OpenSocial Message API changes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 11 months ago by Paul Lindner
Modified:
15 years, 9 months ago
Reviewers:
louiscryan
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Description

This implements the messaging API for 0.9

Patch Set 1 #

Total comments: 22

Patch Set 2 : updated #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1730 lines, -22 lines) Patch
features/src/main/javascript/features/opensocial-base/feature.xml View 1 1 chunk +2 lines, -0 lines 0 comments Download
features/src/main/javascript/features/opensocial-base/jsonmessage.js View 1 1 chunk +45 lines, -0 lines 0 comments Download
features/src/main/javascript/features/opensocial-base/jsonmessagecollection.js View 1 chunk +55 lines, -0 lines 0 comments Download
features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js View 1 1 chunk +40 lines, -0 lines 0 comments Download
features/src/main/javascript/features/opensocial-reference/container.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
features/src/main/javascript/features/opensocial-reference/datarequest.js View 1 1 chunk +14 lines, -0 lines 0 comments Download
features/src/main/javascript/features/opensocial-reference/feature.xml View 1 1 chunk +1 line, -0 lines 0 comments Download
features/src/main/javascript/features/opensocial-reference/message.js View 1 4 chunks +102 lines, -11 lines 0 comments Download
features/src/main/javascript/features/opensocial-reference/messagecollection.js View 1 chunk +128 lines, -0 lines 0 comments Download
java/samples/src/main/java/org/apache/shindig/social/opensocial/jpa/MediaItemDb.java View 1 2 chunks +24 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/core/config/SocialApiGuiceModule.java View 1 2 chunks +2 lines, -1 line 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/core/model/MediaItemImpl.java View 1 2 chunks +3 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/core/model/MessageCollectionImpl.java View 1 chunk +84 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/core/model/MessageImpl.java View 1 5 chunks +123 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/core/util/xstream/XStream081Configuration.java View 1 4 chunks +4 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/Address.java View 1 3 chunks +17 lines, -0 lines 2 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/Count.java View 1 chunk +100 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/MediaItem.java View 1 2 chunks +16 lines, -1 line 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/Message.java View 1 7 chunks +220 lines, -5 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/MessageCollection.java View 1 chunk +158 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/Person.java View 1 2 chunks +4 lines, -1 line 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java View 1 chunk +156 lines, -0 lines 4 comments Download
java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/MessageService.java View 1 1 chunk +149 lines, -0 lines 0 comments Download
java/social-api/src/main/java/org/apache/shindig/social/sample/spi/JsonDbOpensocialService.java View 1 4 chunks +115 lines, -1 line 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/SocialApiTestsGuiceModule.java View 1 2 chunks +2 lines, -1 line 0 comments Download
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/MessageHandlerTest.java View 1 chunk +83 lines, -0 lines 0 comments Download
javascript/samplecontainer/state.dtd View 1 2 chunks +19 lines, -1 line 0 comments Download
javascript/samplecontainer/state-basicfriendlist.xml View 1 1 chunk +11 lines, -0 lines 0 comments Download
javascript/sampledata/canonicaldb.json View 1 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 7
Paul Lindner
16 years, 11 months ago (2009-03-02 22:54:10 UTC) #1
rodrigo.gallardo
Message templates are of reduced utility without template expansion as in Activities, but we seem ...
16 years, 11 months ago (2009-03-02 23:59:30 UTC) #2
Paul Lindner
updated
16 years, 11 months ago (2009-03-03 01:52:27 UTC) #3
Paul Lindner
patch updated... http://codereview.appspot.com/20106/diff/1/30 File features/src/main/javascript/features/opensocial-base/jsonmessage.js (right): http://codereview.appspot.com/20106/diff/1/30#newcode44 Line 44: //} On 2009/03/02 23:59:30, rodrigo.gallardo wrote: ...
16 years, 11 months ago (2009-03-03 01:52:53 UTC) #4
Paul Lindner
On 2009/03/02 23:59:30, rodrigo.gallardo wrote: > Message templates are of reduced utility without template expansion ...
16 years, 11 months ago (2009-03-03 13:15:16 UTC) #5
louiscryan
Looks mostly fine. A couple of nits and one comment on operation naming. http://codereview.appspot.com/20106/diff/51/1026 File ...
16 years, 11 months ago (2009-03-03 19:24:30 UTC) #6
Paul Lindner
16 years, 11 months ago (2009-03-03 21:42:10 UTC) #7
updates applied, going to commit to trunk.

http://codereview.appspot.com/20106/diff/51/1026
File
java/social-api/src/main/java/org/apache/shindig/social/opensocial/model/Address.java
(right):

http://codereview.appspot.com/20106/diff/51/1026#newcode65
Line 65: private static final Map<String, Field> lookup = new HashMap<String,
Field>();
On 2009/03/03 19:24:31, louiscryan wrote:
> technically should be concurrent map.

actually it's only modified at class instantiation, so should be fine as-is

http://codereview.appspot.com/20106/diff/51/1029
File
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java
(right):

http://codereview.appspot.com/20106/diff/51/1029#newcode88
Line 88: @Operation(httpMethods = "POST", bodyParam = "data")
On 2009/03/03 19:24:31, louiscryan wrote:
> is there a better name than "data" for the body?

entity?  hard to say since this data can be a message collection or a message...

http://codereview.appspot.com/20106/diff/51/1029#newcode89
Line 89: public Future<?> post(SocialRequestItem request) throws
SocialSpiException {
On 2009/03/03 19:24:31, louiscryan wrote:
> if the operations are more CRUD like I've been using create/update for the
> method names instead of get/post which means they will be exposed to RPC as
> messages.create and messages.update and by implication to oslite as such which
> is more inline with the JS APIs. See ActivityHandler etc.

agreed. done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b