001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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 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    }