public class RootPanelCategory extends java.lang.Object implements PanelCategory
PanelCategoryRegistry
.PanelCategory
,
PanelCategoryRegistry
Modifier and Type | Method and Description |
---|---|
static PanelCategory |
getInstance() |
java.lang.String |
getKey()
Returns the panel entry's key.
|
java.lang.String |
getLabel(java.util.Locale locale)
Returns the label that is displayed in the user interface when the panel
entry is included.
|
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. |
boolean |
isShow(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
com.liferay.portal.kernel.model.Group group)
Returns
true if the panel entry should be displayed in the
group's context. |
public static PanelCategory getInstance()
public java.lang.String getKey()
PanelEntry
getKey
in interface PanelEntry
public java.lang.String getLabel(java.util.Locale locale)
PanelEntry
getLabel
in interface PanelEntry
locale
- the label's retrieved localepublic 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)
PanelCategory
getNotificationsCount
in interface PanelCategory
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 retrievedpublic boolean include(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
PanelCategory
true
if the category body renders successfully.include
in interface PanelCategory
request
- the servlet request used in the rendering processresponse
- the servlet response used in the rendering processtrue
if the category body renders successfully;
false
otherwisepublic boolean includeHeader(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
PanelCategory
true
if the category header renders successfully.includeHeader
in interface PanelCategory
request
- the servlet request used in the rendering processresponse
- the servlet response used in the rendering processtrue
if the category header renders successfully;
false
otherwisepublic boolean isActive(javax.servlet.http.HttpServletRequest request, PanelCategoryHelper panelCategoryHelper, com.liferay.portal.kernel.model.Group group)
PanelCategory
true
if the application category is active.isActive
in interface PanelCategory
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
otherwisepublic boolean isPersistState()
PanelCategory
true
if the state of the category is persisted.isPersistState
in interface PanelCategory
true
if the state of the category is persisted;
false
otherwisepublic boolean isShow(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, com.liferay.portal.kernel.model.Group group)
PanelEntry
true
if the panel entry should be displayed in the
group's context.isShow
in interface PanelEntry
permissionChecker
- the permission checkergroup
- the group for which permissions are checkedtrue
if the Control Menu entry should be displayed
in the request's context; false
otherwise