/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.portal.kernel.notifications; import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.StringPool; /** * @author Jonathan Lee */ public class UserNotificationFeedEntry { public UserNotificationFeedEntry( boolean actionable, String body, String link) { setActionable(actionable); setBody(body); setLink(link); } public String getBody() { return _body; } public String getLink() { return _link; } public String getPortletId() { return _portletId; } public boolean isActionable() { return _actionable; } public boolean isOpenDialog() { return _openDialog; } public void setActionable(boolean actionable) { _actionable = actionable; } public void setBody(String body) { _body = GetterUtil.getString(body); } public void setLink(String link) { _link = GetterUtil.getString(link); } public void setOpenDialog(boolean openDialog) { _openDialog = openDialog; } public void setPortletId(String portletId) { _portletId = GetterUtil.getString(portletId); } private boolean _actionable; private String _body; private String _link; private boolean _openDialog; private String _portletId = StringPool.BLANK; }