Package com.liferay.application.list
Class RootPanelCategory
java.lang.Object
com.liferay.application.list.RootPanelCategory
- All Implemented Interfaces:
PanelCategory
,PanelEntry
Represents the root panel category for all implemented categories in the
PanelCategoryRegistryUtil
.- See Also:
-
PanelCategory
PanelCategoryRegistryUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic PanelCategory
getKey()
Returns the panel entry's key.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) Returnstrue
if the category body renders successfully.boolean
includeHeader
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) Returnstrue
if the category header renders successfully.boolean
isActive
(javax.servlet.http.HttpServletRequest httpServletRequest, PanelCategoryHelper panelCategoryHelper, com.liferay.portal.kernel.model.Group group) Returnstrue
if the application category is active.boolean
Returnstrue
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) Returnstrue
if the panel entry should be displayed in the group's context.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.application.list.PanelCategory
isAllowScopeLayouts
-
Method Details
-
getInstance
-
getKey
Description copied from interface:PanelEntry
Returns the panel entry's key.- Specified by:
getKey
in interfacePanelEntry
- Returns:
- the panel entry's key
-
getLabel
Description copied from interface:PanelEntry
Returns the label that is displayed in the user interface when the panel entry is included.- Specified by:
getLabel
in interfacePanelEntry
- Parameters:
locale
- the label's retrieved locale- Returns:
- the label of the panel entry
-
getNotificationsCount
public 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) Description copied from interface:PanelCategory
Returns the number of notifications for the user in this application category.- Specified by:
getNotificationsCount
in interfacePanelCategory
- Parameters:
panelCategoryHelper
- thePanelCategoryHelper
to facilitate the method's implementationpermissionChecker
- thePermissionChecker
(inportal-kernel
) used to check the user's permissionsgroup
- the group for which notifications are checkeduser
- the user from which notifications are retrieved- Returns:
- the number of notifications for the user in the application category
-
include
public boolean include(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) Description copied from interface:PanelCategory
Returnstrue
if the category body renders successfully.- Specified by:
include
in interfacePanelCategory
- Parameters:
httpServletRequest
- the servlet request used in the rendering processhttpServletResponse
- the servlet response used in the rendering process- Returns:
true
if the category body renders successfully;false
otherwise
-
includeHeader
public boolean includeHeader(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) Description copied from interface:PanelCategory
Returnstrue
if the category header renders successfully.- Specified by:
includeHeader
in interfacePanelCategory
- Parameters:
httpServletRequest
- the servlet request used in the rendering processhttpServletResponse
- the servlet response used in the rendering process- Returns:
true
if the category header renders successfully;false
otherwise
-
isActive
public boolean isActive(javax.servlet.http.HttpServletRequest httpServletRequest, PanelCategoryHelper panelCategoryHelper, com.liferay.portal.kernel.model.Group group) Description copied from interface:PanelCategory
Returnstrue
if the application category is active.- Specified by:
isActive
in interfacePanelCategory
- Parameters:
httpServletRequest
- the servlet requestpanelCategoryHelper
- thePanelCategoryHelper
to facilitate the method's implementationgroup
- the group for which the state of the application category is checked- Returns:
true
if the application category is active;false
otherwise
-
isPersistState
public boolean isPersistState()Description copied from interface:PanelCategory
Returnstrue
if the state of the category is persisted.- Specified by:
isPersistState
in interfacePanelCategory
- Returns:
true
if the state of the category is persisted;false
otherwise
-
isShow
public boolean isShow(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, com.liferay.portal.kernel.model.Group group) Description copied from interface:PanelEntry
Returnstrue
if the panel entry should be displayed in the group's context.- Specified by:
isShow
in interfacePanelEntry
- Parameters:
permissionChecker
- the permission checkergroup
- the group for which permissions are checked- Returns:
true
if the Control Menu entry should be displayed in the request's context;false
otherwise
-