Looks ok, but needs some javadoc and may need some SPI methods outside the Spec ...
15 years, 7 months ago
(2008-09-24 08:51:58 UTC)
#1
Looks ok, but needs some javadoc and may need some SPI methods outside the Spec
to make it meaningfull. Depends on if we think Shindig scope is purely to the
spec, or if it should go just far enough to be a running RI of OpenSocial.
http://codereview.appspot.com/5702/diff/1/2
File
java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/MessageHandler.java
(right):
http://codereview.appspot.com/5702/diff/1/2#newcode33
Line 33: public class MessageHandler extends DataRequestHandler {
The impl is fine, but some javadoc would be great especially on the methods
where there are some behaviors that would aid understanding what the code is
doing.
http://codereview.appspot.com/5702/diff/1/3
File
java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/MessageService.java
(right):
http://codereview.appspot.com/5702/diff/1/3#newcode34
Line 34: public interface MessageService {
I know that strictly speaking the REST API doesnt have an query mechanism for
messages, but I wonder if it might make sense to have a query mechanism in the
internal SPI?
http://codereview.appspot.com/5702/diff/1/4
File
java/social-api/src/main/java/org/apache/shindig/social/sample/spi/JsonDbOpensocialService.java
(right):
http://codereview.appspot.com/5702/diff/1/4#newcode442
Line 442: public Future<Void> createMessage(UserId userId, String appId,
Set<UserId> recipients,
This does need an implementation (obviously),
But seeing as there is no query, probably just a check on the parameters and a
test controlled response.
http://codereview.appspot.com/5702/diff/1/5
File
java/social-api/src/test/java/org/apache/shindig/social/opensocial/service/MessageHandlerTest.java
(right):
http://codereview.appspot.com/5702/diff/1/5#newcode41
Line 41: public void testPostMessage() {
Although setup does provide some coverage, sending a message probably needs to
be here ?
Issue 5702: Java message handling
(Closed)
Created 15 years, 7 months ago by rodrigo.gallardo
Modified 14 years, 9 months ago
Reviewers: ianboston, Bobby
Base URL:
Comments: 4