Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
sheela mk
Integrating SocialActivity Table with my Entity
June 8, 2012 12:48 AM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

<reference package-path="com.liferay.portlet.social" entity="SocialActivity" />

Hai..Everbody..Pls Let me know how to integrate social office with my entity...using above line in my service.xml


What are the steps to follow..in code insertion in my portlet project regarding SocialActivity...

Pls.....And also..UI look of execution after implementing....






<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
<service-builder package-path="com.liferay.training.parts">
<author>Joe Bloggs</author>
<namespace>In</namespace>

<!-- Define the entity for the Library_Manufacturer table -->
<entity name="Manufacturer" uuid="true" local-service="true" remote-service="true">

<!-- Primary key column -->
<column name="manufacturerId" type="long" primary="true" />

<!-- Foreign key columns -->
<column name="companyId" type="long" />
<column name="groupId" type="long" />
<column name="userId" type="long" />

<!-- Other columns -->
<column name="name" type="String" />
<column name="emailAddress" type="String" />
<column name="website" type="String" />
<column name="phoneNumber" type="String" />
<column name="status" type="int" />
<column name="statusByUserId" type="long" />
<column name="statusByUserName" type="String" />
<column name="statusDate" type="Date" />

<!-- Sort order -->
<order by="asc">
<order-column name="name" />
</order>

<!-- Finder Methods -->
<finder name="GroupId" return-type="Collection">
<finder-column name="groupId" />
</finder>
<reference package-path="com.liferay.portlet.asset" entity="AssetEntry" />

</entity>
<!-- Define the entity for the Library_Part table -->
<entity name="Part" uuid="true" local-service="true" remote-service="false">

<!-- Primary key column -->
<column name="partId" type="long" primary="true" />

<!-- Foreign key columns -->
<column name="companyId" type="long" />
<column name="groupId" type="long" />
<column name="userId" type="long" />
<column name="manufacturerId" type="long" />

<!-- Other columns -->
<column name="name" type="String" localized="true" />
<column name="partNumber" type="String" />
<column name="orderDate" type="Date" />
<column name="quantity" type="int"/>

<!-- Sort order -->
<order by="asc">
<order-column name="name" />
</order>

<!-- Finder Methods -->
<finder name="GroupId" return-type="Collection">
<finder-column name="groupId" />
</finder>

<finder name="Manufacturer" return-type="Collection">
<finder-column name="manufacturerId" />
</finder>
<reference package-path="com.liferay.portlet.asset" entity="AssetEntry" />
<reference package-path="com.liferay.portlet.social" entity="SocialActivity" />
<reference package-path="com.liferay.portal" entity="User" />

</entity>
</service-builder>
sheela mk
RE: Integrating SocialActivity Table with my Entity
June 11, 2012 10:53 PM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

Hai..Liferay Experts,,

Pls..Anybody..Reply to my Post..