001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
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    /**
021     * @author Brian Wing Shun Chan
022     */
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 getPortletId() {
036                    return _portletId;
037            }
038    
039            public void setPortletId(String portletId) {
040                    _portletId = GetterUtil.getString(portletId);
041            }
042    
043            public String getLink() {
044                    return _link;
045            }
046    
047            public void setLink(String link) {
048                    _link = GetterUtil.getString(link);
049            }
050    
051            public String getTitle() {
052                    return _title;
053            }
054    
055            public void setTitle(String title) {
056                    _title = GetterUtil.getString(title);
057            }
058    
059            public String getBody() {
060                    return _body;
061            }
062    
063            public void setBody(String body) {
064                    _body = GetterUtil.getString(body);
065            }
066    
067            private String _portletId = StringPool.BLANK;
068            private String _link = StringPool.BLANK;
069            private String _title = StringPool.BLANK;
070            private String _body = StringPool.BLANK;
071    
072    }