public interface PanelApp extends PanelEntry
liferay-application-list:panel-app
tag instance to render a new
panel application. Applications are included within application categories
defined by PanelCategory
implementations.PanelEntry
Modifier and Type | Method and Description |
---|---|
int |
getNotificationsCount(com.liferay.portal.kernel.model.User user)
Returns the number of notifications for the user.
|
com.liferay.portal.kernel.model.Portlet |
getPortlet()
Returns the portlet associated with the application.
|
java.lang.String |
getPortletId()
Returns the portlet's ID associated with the application.
|
javax.portlet.PortletURL |
getPortletURL(javax.servlet.http.HttpServletRequest request)
Returns the URL used to render a portlet based on the servlet request
attributes.
|
boolean |
include(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns
true if the application successfully renders. |
void |
setGroupProvider(GroupProvider groupProvider)
Sets the
GroupProvider associated with the application. |
void |
setPortlet(com.liferay.portal.kernel.model.Portlet portlet)
Sets the portlet associated with the application.
|
getKey, getLabel, isShow
int getNotificationsCount(com.liferay.portal.kernel.model.User user)
user
- the user from which notifications are retrievedcom.liferay.portal.kernel.model.Portlet getPortlet()
java.lang.String getPortletId()
javax.portlet.PortletURL getPortletURL(javax.servlet.http.HttpServletRequest request) throws com.liferay.portal.kernel.exception.PortalException
request
- the servlet request used to create a portlet's URLcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredboolean include(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
true
if the application successfully renders.request
- the servlet request used in the rendering processresponse
- the servlet response used in the rendering processtrue
if the application successfully renders;
false
otherwisejava.io.IOException
- if an IO exception occurredvoid setGroupProvider(GroupProvider groupProvider)
GroupProvider
associated with the application.groupProvider
- the group provider associated with the applicationvoid setPortlet(com.liferay.portal.kernel.model.Portlet portlet)
portlet
- the portlet associated with the application