camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Upgrade Facebook4j to version 2.3.2
Date Tue, 17 Nov 2015 16:26:56 GMT
Repository: camel
Updated Branches:
  refs/heads/master 5068678c4 -> 8c749255e


Upgrade Facebook4j to version 2.3.2


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/8c749255
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8c749255
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8c749255

Branch: refs/heads/master
Commit: 8c749255e0970603e0ccc054c2163ea1ad5cf648
Parents: 5068678
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Nov 17 17:17:17 2015 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Nov 17 17:24:17 2015 +0100

----------------------------------------------------------------------
 .../config/FacebookEndpointConfiguration.java         | 14 ++++++++++++++
 .../component/facebook/data/FacebookMethodsType.java  |  9 +++++++++
 parent/pom.xml                                        |  2 +-
 3 files changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/8c749255/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookEndpointConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookEndpointConfiguration.java
b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookEndpointConfiguration.java
index 83c8b32..d861bf0 100644
--- a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookEndpointConfiguration.java
+++ b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/config/FacebookEndpointConfiguration.java
@@ -23,6 +23,7 @@ import java.util.Map;
 
 import facebook4j.AlbumUpdate;
 import facebook4j.CheckinUpdate;
+import facebook4j.CommentUpdate;
 import facebook4j.EventUpdate;
 import facebook4j.GeoLocation;
 import facebook4j.Media;
@@ -56,6 +57,8 @@ public class FacebookEndpointConfiguration extends FacebookConfiguration
{
     @UriParam
     private String commentId;
     @UriParam
+    private CommentUpdate commentUpdate;
+    @UriParam
     private String description;
     @UriParam
     private Integer distance;
@@ -270,6 +273,17 @@ public class FacebookEndpointConfiguration extends FacebookConfiguration
{
         return description;
     }
 
+    public CommentUpdate getCommentUpdate() {
+        return commentUpdate;
+    }
+
+    /**
+     * The facebook Comment to be created or updated
+     */
+    public void setCommentUpdate(CommentUpdate commentUpdate) {
+        this.commentUpdate = commentUpdate;
+    }
+
     /**
      * The description text
      */

http://git-wip-us.apache.org/repos/asf/camel/blob/8c749255/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/data/FacebookMethodsType.java
----------------------------------------------------------------------
diff --git a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/data/FacebookMethodsType.java
b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/data/FacebookMethodsType.java
index 8d80cf7..f5257fa 100644
--- a/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/data/FacebookMethodsType.java
+++ b/components/camel-facebook/src/main/java/org/apache/camel/component/facebook/data/FacebookMethodsType.java
@@ -32,6 +32,7 @@ import facebook4j.BatchRequests;
 import facebook4j.Checkin;
 import facebook4j.CheckinUpdate;
 import facebook4j.Comment;
+import facebook4j.CommentUpdate;
 import facebook4j.Domain;
 import facebook4j.Event;
 import facebook4j.EventUpdate;
@@ -94,6 +95,7 @@ public enum FacebookMethodsType {
     ADDALBUMPHOTO(String.class, "addAlbumPhoto", String.class, "albumId", Media.class, "source"),
     ADDALBUMPHOTO_WITH_MEDIA(String.class, "addAlbumPhoto", String.class, "albumId", Media.class,
"source", String.class, "message"),
     COMMENTALBUM(String.class, "commentAlbum", String.class, "albumId", String.class, "message"),
+    COMMENTALBUM_UPDATE(String.class, "commentAlbum", String.class, "albumId", CommentUpdate.class,
"commentUpdate"),
     CREATEALBUM(String.class, "createAlbum", AlbumUpdate.class, "albumUpdate"),
     CREATEALBUM_WITH_ID(String.class, "createAlbum", String.class, "userId", AlbumUpdate.class,
"albumUpdate"),
     GETALBUM(Album.class,  "getAlbum", String.class, "albumId"),
@@ -132,6 +134,9 @@ public enum FacebookMethodsType {
     // CommentMethods
     DELETECOMMENT(boolean.class, "deleteComment", String.class, "commentId"),
     GETCOMMENT(Comment.class, "getComment", String.class, "commentId"),
+    GETCOMMENT_REPLIES(List.class, "getCommentReplies", String.class, "commentId"),
+    GETCOMMENT_REPLIES_WITH_OPTIONS(List.class, "getCommentReplies", String.class, "commentId",
Reading.class, FacebookConstants.READING_PPROPERTY),
+    GETCOMMENT_WITH_OPTIONS(Comment.class, "getComment", String.class, "commentId", Reading.class,
FacebookConstants.READING_PPROPERTY),
     GETCOMMENTLIKES(ResponseList.class, "getCommentLikes", String.class, "commentId"),
     GETCOMMENTLIKES_WITH_OPTIONS(ResponseList.class, "getCommentLikes", String.class, "commentId",
Reading.class, FacebookConstants.READING_PPROPERTY),
     LIKECOMMENT(boolean.class, "likeComment", String.class, "commentId"),
@@ -307,6 +312,7 @@ public enum FacebookMethodsType {
 
     // LinkMethods
     COMMENTLINK(String.class, "commentLink", String.class, "linkId", String.class, "message"),
+    COMMENTLINK_UPDATE(String.class, "commentLink", String.class, "linkId", CommentUpdate.class,
"commentUpdate"),
     GETLINK(Link.class,  "getLink", String.class, "linkId"),
     GETLINK_WITH_OPTIONS(Link.class,  "getLink", String.class, "linkId", Reading.class, FacebookConstants.READING_PPROPERTY),
     GETLINKCOMMENTS(ResponseList.class, "getLinkComments", String.class, "linkId"),
@@ -385,6 +391,7 @@ public enum FacebookMethodsType {
     ADDTAGTOPHOTO_WITH_IDS(Boolean.class,  "addTagToPhoto", String.class, "photoId", List.class,
"toUserIds"),
     ADDTAGTOPHOTO_WITH_TAGUPDATE(Boolean.class,  "addTagToPhoto", String.class, "photoId",
TagUpdate.class, "tagUpdate"),
     COMMENTPHOTO(String.class, "commentPhoto", String.class, "photoId", String.class, "message"),
+    COMMENTPHOTO_UPDATE(String.class, "commentPhoto", String.class, "photoId", CommentUpdate.class,
"commentUpdate"),
     DELETEPHOTO(Boolean.class,  "deletePhoto", String.class, "photoId"),
     GETPHOTO(Photo.class,  "getPhoto", String.class, "photoId"),
     GETPHOTO_WITH_OPTIONS(Photo.class,  "getPhoto", String.class, "photoId", Reading.class,
FacebookConstants.READING_PPROPERTY),
@@ -413,6 +420,7 @@ public enum FacebookMethodsType {
 
     // PostMethods
     COMMENTPOST(String.class, "commentPost", String.class, "postId", String.class, "message"),
+    COMMENTPOST_UPDATE(String.class, "commentPost", String.class, "postId", CommentUpdate.class,
"commentUpdate"),
     DELETEPOST(Boolean.class,  "deletePost", String.class, "postId"),
     GETFEED(ResponseList.class, "getFeed"),
     GETFEED_WITH_OPTIONS(ResponseList.class, "getFeed", Reading.class, FacebookConstants.READING_PPROPERTY),
@@ -502,6 +510,7 @@ public enum FacebookMethodsType {
 
     // VideoMethods
     COMMENTVIDEO(String.class, "commentVideo", String.class, "videoId", String.class, "message"),
+    COMMENTVIDEO_UPDATE(String.class, "commentVideo", String.class, "videoId", CommentUpdate.class,
"commentUpdate"),
     GETVIDEO(Video.class,  "getVideo", String.class, "videoId"),
     GETVIDEO_WITH_OPTIONS(Video.class,  "getVideo", String.class, "videoId", Reading.class,
FacebookConstants.READING_PPROPERTY),
     GETVIDEOCOMMENTS(ResponseList.class, "getVideoComments", String.class, "videoId"),

http://git-wip-us.apache.org/repos/asf/camel/blob/8c749255/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 980968e..eef9551 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -151,7 +151,7 @@
     <embedmongo-version>1.50.0</embedmongo-version>
     <exec-maven-plugin-version>1.4.0</exec-maven-plugin-version>
     <ezmorph-bundle-version>1.0.6_1</ezmorph-bundle-version>
-    <facebook4j-core-version>2.3.1</facebook4j-core-version>
+    <facebook4j-core-version>2.3.2</facebook4j-core-version>
     <fastinfoset-version>1.2.13_1</fastinfoset-version>
     <felix-configadmin-version>1.8.8</felix-configadmin-version>
     <felix-connect-version>0.1.0</felix-connect-version>


Mime
View raw message