public interface PanelCategory extends PanelEntry
liferay-application-list:panel-category
tag instance to render a
new panel application category. Application categories include applications
defined by PanelApp
implementations.PanelEntry
Modifier and Type | Method and Description |
---|---|
int |
getNotificationsCount(PanelCategoryHelper panelCategoryHelper,
com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
com.liferay.portal.kernel.model.Group group,
com.liferay.portal.kernel.model.User user)
Returns the number of notifications for the user in this application
category.
|
boolean |
include(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns
true if the category body renders successfully. |
boolean |
includeHeader(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns
true if the category header renders successfully. |
boolean |
isActive(javax.servlet.http.HttpServletRequest request,
PanelCategoryHelper panelCategoryHelper,
com.liferay.portal.kernel.model.Group group)
Returns
true if the application category is active. |
boolean |
isPersistState()
Returns
true if the state of the category is persisted. |
getKey, getLabel, isShow
int getNotificationsCount(PanelCategoryHelper panelCategoryHelper, com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.User user)
panelCategoryHelper
- the PanelCategoryHelper
to facilitate
the method's implementationpermissionChecker
- the PermissionChecker
(in
portal-kernel
) used to check the user's permissionsgroup
- the group for which notifications are checkeduser
- the user from which notifications are retrievedboolean include(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
true
if the category body renders successfully.request
- the servlet request used in the rendering processresponse
- the servlet response used in the rendering processtrue
if the category body renders successfully;
false
otherwisejava.io.IOException
- if an IO exception occurredboolean includeHeader(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
true
if the category header renders successfully.request
- the servlet request used in the rendering processresponse
- the servlet response used in the rendering processtrue
if the category header renders successfully;
false
otherwisejava.io.IOException
- if an IO exception occurredboolean isActive(javax.servlet.http.HttpServletRequest request, PanelCategoryHelper panelCategoryHelper, com.liferay.portal.kernel.model.Group group)
true
if the application category is active.request
- the servlet requestpanelCategoryHelper
- the PanelCategoryHelper
to facilitate
the method's implementationgroup
- the group for which the state of the application category
is checkedtrue
if the application category is active;
false
otherwiseboolean isPersistState()
true
if the state of the category is persisted.true
if the state of the category is persisted;
false
otherwise