Class OmniadminControlPanelEntry
Object
com.liferay.portal.kernel.portlet.BaseControlPanelEntry
com.liferay.portal.kernel.portlet.OmniadminControlPanelEntry
- All Implemented Interfaces:
ControlPanelEntry
Represents the omni administrator control panel entry for portlets that shall
only be visible and accessible to the omni administrator. In a portlet's
liferay-portlet.xml
file, this class can be specified as the
value for the control-panel-entry-class element.- Author:
- Jorge Ferrer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasAccessPermission
(PermissionChecker permissionChecker, Group group, Portlet portlet) Returnstrue
if the current user is an omni administrator.Methods inherited from class com.liferay.portal.kernel.portlet.BaseControlPanelEntry
getDefaultPlid, hasAccessPermissionDenied, hasAccessPermissionExplicitlyGranted, hasPermissionImplicitlyGranted
-
Constructor Details
-
OmniadminControlPanelEntry
public OmniadminControlPanelEntry()
-
-
Method Details
-
hasAccessPermission
public boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet) throws Exception Returnstrue
if the current user is an omni administrator.- Specified by:
hasAccessPermission
in interfaceControlPanelEntry
- Overrides:
hasAccessPermission
in classBaseControlPanelEntry
- Parameters:
permissionChecker
- the permission checker referencing the current usergroup
- the groupportlet
- the portlet being checked- Returns:
true
if the current user is an omni administrator;false
otherwise- Throws:
Exception
- if an exception occurred
-