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 TypeMethodDescriptionbooleanhasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet) Returnstrueif 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 Returnstrueif the current user is an omni administrator.- Specified by:
hasAccessPermissionin interfaceControlPanelEntry- Overrides:
hasAccessPermissionin classBaseControlPanelEntry- Parameters:
permissionChecker- the permission checker referencing the current usergroup- the groupportlet- the portlet being checked- Returns:
trueif the current user is an omni administrator;falseotherwise- Throws:
Exception- if an exception occurred
-