public class RootPanelCategory extends java.lang.Object implements PanelCategory
PanelCategoryRegistryUtil.PanelCategory,
PanelCategoryRegistryUtil| 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 httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Returns
true if the category body renders successfully. |
boolean |
includeHeader(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Returns
true if the category header renders successfully. |
boolean |
isActive(javax.servlet.http.HttpServletRequest httpServletRequest,
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAllowScopeLayoutspublic static PanelCategory getInstance()
public java.lang.String getKey()
PanelEntrygetKey in interface PanelEntrypublic java.lang.String getLabel(java.util.Locale locale)
PanelEntrygetLabel in interface PanelEntrylocale - 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)
PanelCategorygetNotificationsCount in interface PanelCategorypanelCategoryHelper - 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 httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
PanelCategorytrue if the category body renders successfully.include in interface PanelCategoryhttpServletRequest - the servlet request used in the rendering
processhttpServletResponse - the servlet response used in the rendering
processtrue if the category body renders successfully;
false otherwisepublic boolean includeHeader(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
PanelCategorytrue if the category header renders successfully.includeHeader in interface PanelCategoryhttpServletRequest - the servlet request used in the rendering
processhttpServletResponse - the servlet response used in the rendering
processtrue if the category header renders successfully;
false otherwisepublic boolean isActive(javax.servlet.http.HttpServletRequest httpServletRequest,
PanelCategoryHelper panelCategoryHelper,
com.liferay.portal.kernel.model.Group group)
PanelCategorytrue if the application category is active.isActive in interface PanelCategoryhttpServletRequest - 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()
PanelCategorytrue if the state of the category is persisted.isPersistState in interface PanelCategorytrue 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)
PanelEntrytrue if the panel entry should be displayed in the
group's context.isShow in interface PanelEntrypermissionChecker - 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