public class FacebookActivityUtil extends Object
| Constructor and Description | 
|---|
FacebookActivityUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static ActivityObject | 
buildActor(Page page)
Builds the activity  
ActivityObject actor from the Page. | 
static ActivityObject | 
buildActor(Post post)
Builds an  
ActivityObject object from the Post. | 
static void | 
buildExtensions(ActivityObject actor,
               Page page)
Builds the actor extensions given the page object. 
 | 
static void | 
buildExtensions(Activity activity,
               Post post)
Fills out the extensions attribute of the passed in  
Activity | 
static ActivityObject | 
buildObject(Post post)
Builds out the  
ActivityObject from the given Post. | 
static String | 
formatId(String... idparts)
Formats the ID to conform with the Apache Streams activity ID convention 
 | 
static Provider | 
getProvider()
Gets the common facebook  
Provider object. | 
static void | 
updateActivity(Page page,
              Activity activity)
Updates the given Activity object with the values from the Page. 
 | 
static void | 
updateActivity(Post post,
              Activity activity)
Updates the given Activity object with the values from the Post. 
 | 
public static void updateActivity(Page page, Activity activity) throws ActivitySerializerException
page - the object to use as the sourceactivity - the target of the updates.  Will receive all values from the Page.ActivitySerializerExceptionpublic static void updateActivity(Post post, Activity activity) throws ActivitySerializerException
post - postactivity - activityActivitySerializerExceptionpublic static ActivityObject buildObject(Post post)
ActivityObject from the given Post.post - ActivityObjectpublic static Provider getProvider()
Provider object.public static ActivityObject buildActor(Page page)
ActivityObject actor from the Page.page - the object to use as the sourcepublic static ActivityObject buildActor(Post post)
ActivityObject object from the Post.post - postActivityObjectpublic static void buildExtensions(ActivityObject actor, Page page)
actor - actorpage - pagepublic static void buildExtensions(Activity activity, Post post)
Activityactivity - post - Copyright © 2018 The Apache Software Foundation. All rights reserved.