1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.social.model;
16  
17  import com.liferay.portal.kernel.util.GetterUtil;
18  import com.liferay.portal.kernel.util.StringPool;
19  
20  /**
21   * <a href="SocialActivityFeedEntry.java.html"><b><i>View Source</i></b></a>
22   *
23   * @author Brian Wing Shun Chan
24   */
25  public class SocialActivityFeedEntry {
26  
27      public SocialActivityFeedEntry(String title, String body) {
28          this(null, title, body);
29      }
30  
31      public SocialActivityFeedEntry(String link, String title, String body) {
32          setLink(link);
33          setTitle(title);
34          setBody(body);
35      }
36  
37      public String getPortletId() {
38          return _portletId;
39      }
40  
41      public void setPortletId(String portletId) {
42          _portletId = GetterUtil.getString(portletId);
43      }
44  
45      public String getLink() {
46          return _link;
47      }
48  
49      public void setLink(String link) {
50          _link = GetterUtil.getString(link);
51      }
52  
53      public String getTitle() {
54          return _title;
55      }
56  
57      public void setTitle(String title) {
58          _title = GetterUtil.getString(title);
59      }
60  
61      public String getBody() {
62          return _body;
63      }
64  
65      public void setBody(String body) {
66          _body = GetterUtil.getString(body);
67      }
68  
69      private String _portletId = StringPool.BLANK;
70      private String _link = StringPool.BLANK;
71      private String _title = StringPool.BLANK;
72      private String _body = StringPool.BLANK;
73  
74  }