001    /**
002     * Copyright (c) 2000-2010 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 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    }