| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_152) on Mon Apr 02 22:52:08 UTC 2018 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>TwitterActivityUtil (streams-provider-twitter 0.5.2-SNAPSHOT API)</title> |
| <meta name="date" content="2018-04-02"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="TwitterActivityUtil (streams-provider-twitter 0.5.2-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/TwitterActivityUtil.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li>Next Class</li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/streams/twitter/converter/util/TwitterActivityUtil.html" target="_top">Frames</a></li> |
| <li><a href="TwitterActivityUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.streams.twitter.converter.util</div> |
| <h2 title="Class TwitterActivityUtil" class="title">Class TwitterActivityUtil</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.streams.twitter.converter.util.TwitterActivityUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">TwitterActivityUtil</span> |
| extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">Provides utilities for working with Activity objects within the context of Twitter.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#TwitterActivityUtil--">TwitterActivityUtil</a></span>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#addLocationExtension-org.apache.streams.pojo.json.Activity-org.apache.streams.twitter.pojo.Tweet-">addLocationExtension</a></span>(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| <a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</code> |
| <div class="block">Adds the location extension and populates with teh twitter data.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#addTwitterExtension-org.apache.streams.pojo.json.Activity-com.fasterxml.jackson.databind.node.ObjectNode-">addTwitterExtension</a></span>(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| com.fasterxml.jackson.databind.node.ObjectNode event)</code> |
| <div class="block">Adds the given Twitter event to the activity as an extension.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#addTwitterExtensions-org.apache.streams.pojo.json.Activity-org.apache.streams.twitter.pojo.Tweet-">addTwitterExtensions</a></span>(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| <a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</code> |
| <div class="block">Takes various parameters from the twitter object that are currently not part of the |
| activity schema and stores them in a generic extensions attribute.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#boundingBoxCenter-org.apache.streams.twitter.pojo.Place-">boundingBoxCenter</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Place.html" title="class in org.apache.streams.twitter.pojo">Place</a> place)</code> |
| <div class="block">Compute central coordinates from bounding box.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#buildActivityObject-org.apache.streams.twitter.pojo.Delete-">buildActivityObject</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Delete.html" title="class in org.apache.streams.twitter.pojo">Delete</a> delete)</code> |
| <div class="block">Builds the ActivityObject for the delete event.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#buildActivityObject-org.apache.streams.twitter.pojo.Tweet-">buildActivityObject</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</code> |
| <div class="block">Creates an <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>ActivityObject</code></a> for the tweet.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#buildActor-org.apache.streams.twitter.pojo.Delete-">buildActor</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Delete.html" title="class in org.apache.streams.twitter.pojo">Delete</a> delete)</code> |
| <div class="block">Builds the actor for a delete event.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#buildActor-org.apache.streams.twitter.pojo.Tweet-">buildActor</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</code> |
| <div class="block">Builds the activity <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>ActivityObject</code></a> actor from the tweet.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#buildActor-org.apache.streams.twitter.pojo.User-">buildActor</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/User.html" title="class in org.apache.streams.twitter.pojo">User</a> user)</code> |
| <div class="block">Builds the activity <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>ActivityObject</code></a> actor from the User.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#buildTarget-org.apache.streams.twitter.pojo.Tweet-">buildTarget</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</code> |
| <div class="block">Builds the <a href="../../../../../../org/apache/streams/twitter/pojo/TargetObject.html" title="class in org.apache.streams.twitter.pojo"><code>TargetObject</code></a> from the tweet.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#formatId-java.lang.String...-">formatId</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... idparts)</code> |
| <div class="block">Formats the ID to conform with the Apache Streams activity ID convention.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#getLinks-org.apache.streams.twitter.pojo.Tweet-">getLinks</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</code> |
| <div class="block">Gets the links from the Twitter event</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Provider.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Provider</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#getProvider--">getProvider</a></span>()</code> |
| <div class="block">Gets the common twitter <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Provider.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>Provider</code></a> object</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#updateActivity-org.apache.streams.twitter.pojo.Delete-org.apache.streams.pojo.json.Activity-">updateActivity</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Delete.html" title="class in org.apache.streams.twitter.pojo">Delete</a> delete, |
| <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity)</code> |
| <div class="block">Updates the activity for a delete event.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#updateActivity-org.apache.streams.twitter.pojo.Tweet-org.apache.streams.pojo.json.Activity-">updateActivity</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet, |
| <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity)</code> |
| <div class="block">Updates the given Activity object with the values from the Tweet.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#updateActivity-org.apache.streams.twitter.pojo.User-org.apache.streams.pojo.json.Activity-">updateActivity</a></span>(<a href="../../../../../../org/apache/streams/twitter/pojo/User.html" title="class in org.apache.streams.twitter.pojo">User</a> user, |
| <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity)</code> |
| <div class="block">Updates the given Activity object with the values from the User</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/streams/twitter/converter/util/TwitterActivityUtil.html#updateActivityContent-org.apache.streams.pojo.json.Activity-org.apache.streams.twitter.pojo.Tweet-java.lang.String-">updateActivityContent</a></span>(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| <a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> verb)</code> |
| <div class="block">Updates the content, and associated fields, with those from the given tweet</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="TwitterActivityUtil--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>TwitterActivityUtil</h4> |
| <pre>public TwitterActivityUtil()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="updateActivity-org.apache.streams.twitter.pojo.Tweet-org.apache.streams.pojo.json.Activity-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>updateActivity</h4> |
| <pre>public static void updateActivity(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet, |
| <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity) |
| throws <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/exceptions/ActivityConversionException.html?is-external=true" title="class or interface in org.apache.streams.exceptions">ActivityConversionException</a></pre> |
| <div class="block">Updates the given Activity object with the values from the Tweet.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tweet</code> - the object to use as the source</dd> |
| <dd><code>activity</code> - the target of the updates. Will receive all values from the tweet.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/exceptions/ActivityConversionException.html?is-external=true" title="class or interface in org.apache.streams.exceptions">ActivityConversionException</a></code> - ActivityConversionException</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="updateActivity-org.apache.streams.twitter.pojo.User-org.apache.streams.pojo.json.Activity-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>updateActivity</h4> |
| <pre>public static void updateActivity(<a href="../../../../../../org/apache/streams/twitter/pojo/User.html" title="class in org.apache.streams.twitter.pojo">User</a> user, |
| <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity)</pre> |
| <div class="block">Updates the given Activity object with the values from the User</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>user</code> - the object to use as the source</dd> |
| <dd><code>activity</code> - the target of the updates. Will receive all values from the tweet.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="updateActivity-org.apache.streams.twitter.pojo.Delete-org.apache.streams.pojo.json.Activity-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>updateActivity</h4> |
| <pre>public static void updateActivity(<a href="../../../../../../org/apache/streams/twitter/pojo/Delete.html" title="class in org.apache.streams.twitter.pojo">Delete</a> delete, |
| <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity) |
| throws <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/exceptions/ActivityConversionException.html?is-external=true" title="class or interface in org.apache.streams.exceptions">ActivityConversionException</a></pre> |
| <div class="block">Updates the activity for a delete event.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>delete</code> - the delete event</dd> |
| <dd><code>activity</code> - the Activity object to update</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/exceptions/ActivityConversionException.html?is-external=true" title="class or interface in org.apache.streams.exceptions">ActivityConversionException</a></code> - ActivityConversionException</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="buildActor-org.apache.streams.twitter.pojo.Tweet-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildActor</h4> |
| <pre>public static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a> buildActor(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</pre> |
| <div class="block">Builds the activity <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>ActivityObject</code></a> actor from the tweet.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tweet</code> - the object to use as the source</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a valid Actor populated from the Tweet</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="buildActor-org.apache.streams.twitter.pojo.User-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildActor</h4> |
| <pre>public static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a> buildActor(<a href="../../../../../../org/apache/streams/twitter/pojo/User.html" title="class in org.apache.streams.twitter.pojo">User</a> user)</pre> |
| <div class="block">Builds the activity <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>ActivityObject</code></a> actor from the User.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>user</code> - the object to use as the source</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a valid Actor populated from the Tweet</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="buildActor-org.apache.streams.twitter.pojo.Delete-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildActor</h4> |
| <pre>public static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a> buildActor(<a href="../../../../../../org/apache/streams/twitter/pojo/Delete.html" title="class in org.apache.streams.twitter.pojo">Delete</a> delete)</pre> |
| <div class="block">Builds the actor for a delete event.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>delete</code> - the delete event</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a valid Actor</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="buildActivityObject-org.apache.streams.twitter.pojo.Tweet-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildActivityObject</h4> |
| <pre>public static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a> buildActivityObject(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</pre> |
| <div class="block">Creates an <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>ActivityObject</code></a> for the tweet.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tweet</code> - the object to use as the source</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a valid ActivityObject</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="buildActivityObject-org.apache.streams.twitter.pojo.Delete-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildActivityObject</h4> |
| <pre>public static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a> buildActivityObject(<a href="../../../../../../org/apache/streams/twitter/pojo/Delete.html" title="class in org.apache.streams.twitter.pojo">Delete</a> delete)</pre> |
| <div class="block">Builds the ActivityObject for the delete event.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>delete</code> - the delete event</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a valid Activity Object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="updateActivityContent-org.apache.streams.pojo.json.Activity-org.apache.streams.twitter.pojo.Tweet-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>updateActivityContent</h4> |
| <pre>public static void updateActivityContent(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| <a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> verb)</pre> |
| <div class="block">Updates the content, and associated fields, with those from the given tweet</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>activity</code> - the target of the updates. Will receive all values from the tweet.</dd> |
| <dd><code>tweet</code> - the object to use as the source</dd> |
| <dd><code>verb</code> - the verb for the given activity's type</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLinks-org.apache.streams.twitter.pojo.Tweet-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLinks</h4> |
| <pre>public static <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> getLinks(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</pre> |
| <div class="block">Gets the links from the Twitter event</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tweet</code> - the object to use as the source</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a list of links corresponding to the expanded URL (no t.co)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="buildTarget-org.apache.streams.twitter.pojo.Tweet-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildTarget</h4> |
| <pre>public static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/ActivityObject.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">ActivityObject</a> buildTarget(<a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</pre> |
| <div class="block">Builds the <a href="../../../../../../org/apache/streams/twitter/pojo/TargetObject.html" title="class in org.apache.streams.twitter.pojo"><code>TargetObject</code></a> from the tweet.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>tweet</code> - the object to use as the source</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>currently returns null for all activities</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addLocationExtension-org.apache.streams.pojo.json.Activity-org.apache.streams.twitter.pojo.Tweet-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addLocationExtension</h4> |
| <pre>public static void addLocationExtension(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| <a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</pre> |
| <div class="block">Adds the location extension and populates with teh twitter data.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>activity</code> - the Activity object to update</dd> |
| <dd><code>tweet</code> - the object to use as the source</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getProvider--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getProvider</h4> |
| <pre>public static <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Provider.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Provider</a> getProvider()</pre> |
| <div class="block">Gets the common twitter <a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Provider.html?is-external=true" title="class or interface in org.apache.streams.pojo.json"><code>Provider</code></a> object</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a provider object representing Twitter</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addTwitterExtension-org.apache.streams.pojo.json.Activity-com.fasterxml.jackson.databind.node.ObjectNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addTwitterExtension</h4> |
| <pre>public static void addTwitterExtension(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| com.fasterxml.jackson.databind.node.ObjectNode event)</pre> |
| <div class="block">Adds the given Twitter event to the activity as an extension.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>activity</code> - the Activity object to update</dd> |
| <dd><code>event</code> - the Twitter event to add as the extension</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="formatId-java.lang.String...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>formatId</h4> |
| <pre>public static <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> formatId(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... idparts)</pre> |
| <div class="block">Formats the ID to conform with the Apache Streams activity ID convention.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>idparts</code> - the parts of the ID to join</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a valid Activity ID in format "id:twitter:part1:part2:...partN"</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addTwitterExtensions-org.apache.streams.pojo.json.Activity-org.apache.streams.twitter.pojo.Tweet-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addTwitterExtensions</h4> |
| <pre>public static void addTwitterExtensions(<a href="https://github.com/apache/streams/streams-pojo/apidocs/org/apache/streams/pojo/json/Activity.html?is-external=true" title="class or interface in org.apache.streams.pojo.json">Activity</a> activity, |
| <a href="../../../../../../org/apache/streams/twitter/pojo/Tweet.html" title="class in org.apache.streams.twitter.pojo">Tweet</a> tweet)</pre> |
| <div class="block">Takes various parameters from the twitter object that are currently not part of the |
| activity schema and stores them in a generic extensions attribute.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>activity</code> - Activity</dd> |
| <dd><code>tweet</code> - Tweet</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="boundingBoxCenter-org.apache.streams.twitter.pojo.Place-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>boundingBoxCenter</h4> |
| <pre>public static <a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>> boundingBoxCenter(<a href="../../../../../../org/apache/streams/twitter/pojo/Place.html" title="class in org.apache.streams.twitter.pojo">Place</a> place)</pre> |
| <div class="block">Compute central coordinates from bounding box.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>place</code> - the bounding box to use as the source</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/TwitterActivityUtil.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li>Next Class</li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/streams/twitter/converter/util/TwitterActivityUtil.html" target="_top">Frames</a></li> |
| <li><a href="TwitterActivityUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2018 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |