001
014
015 package com.liferay.portlet.social.model;
016
017 import com.liferay.portal.kernel.util.GetterUtil;
018 import com.liferay.portal.kernel.util.StringPool;
019
020
023 public class SocialActivityFeedEntry {
024
025 public SocialActivityFeedEntry(String title, String body) {
026 this(null, title, body);
027 }
028
029 public SocialActivityFeedEntry(String link, String title, String body) {
030 setLink(link);
031 setTitle(title);
032 setBody(body);
033 }
034
035 public String getBody() {
036 return _body;
037 }
038
039 public String getLink() {
040 return _link;
041 }
042
043 public String getPortletId() {
044 return _portletId;
045 }
046
047 public String getTitle() {
048 return _title;
049 }
050
051 public void setBody(String body) {
052 _body = GetterUtil.getString(body);
053 }
054
055 public void setLink(String link) {
056 _link = GetterUtil.getString(link);
057 }
058
059 public void setPortletId(String portletId) {
060 _portletId = GetterUtil.getString(portletId);
061 }
062
063 public void setTitle(String title) {
064 _title = GetterUtil.getString(title);
065 }
066
067 private String _body;
068 private String _link;
069 private String _portletId = StringPool.BLANK;
070 private String _title;
071
072 }