snipt

Ctrl+h for KB shortcuts

Java

API del portlet Liferay Social Networking y Liferay Symposium 2012 (I)

1
2
3
4
5
6
7
8
9
			SocialActivityLocalServiceUtil.addActivity(
				themeDisplay.getUserId(), 
				themeDisplay.getUser().getGroupId(), 
				Controller.class.getName(), 
				0, /* classPK */
				0, /* type */
				"", /* extraData */
				themeDisplay.getUserId() /* receiverUserId */
				);
https://snipt.net/embed/e3efda595108ca3cf9a472352625222e/
/raw/e3efda595108ca3cf9a472352625222e/
e3efda595108ca3cf9a472352625222e
java
Java
9
2019-06-26T12:53:15
True
False
False
Oct 08, 2012 at 04:01 PM
/api/public/snipt/48257/
api-del-portlet-liferay-social-networking-y-liferay-symposium-2012-i
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a> <a href="#L-9">9</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> <span class="n">SocialActivityLocalServiceUtil</span><span class="o">.</span><span class="na">addActivity</span><span class="o">(</span> </span><span id="L-2"><a name="L-2"></a> <span class="n">themeDisplay</span><span class="o">.</span><span class="na">getUserId</span><span class="o">(),</span> </span><span id="L-3"><a name="L-3"></a> <span class="n">themeDisplay</span><span class="o">.</span><span class="na">getUser</span><span class="o">().</span><span class="na">getGroupId</span><span class="o">(),</span> </span><span id="L-4"><a name="L-4"></a> <span class="n">Controller</span><span class="o">.</span><span class="na">class</span><span class="o">.</span><span class="na">getName</span><span class="o">(),</span> </span><span id="L-5"><a name="L-5"></a> <span class="mi">0</span><span class="o">,</span> <span class="cm">/* classPK */</span> </span><span id="L-6"><a name="L-6"></a> <span class="mi">0</span><span class="o">,</span> <span class="cm">/* type */</span> </span><span id="L-7"><a name="L-7"></a> <span class="s">&quot;&quot;</span><span class="o">,</span> <span class="cm">/* extraData */</span> </span><span id="L-8"><a name="L-8"></a> <span class="n">themeDisplay</span><span class="o">.</span><span class="na">getUserId</span><span class="o">()</span> <span class="cm">/* receiverUserId */</span> </span><span id="L-9"><a name="L-9"></a> <span class="o">);</span> </span></pre></div> </td></tr></table>
"Social Networking", Liferay, java, portlet