com.liferay.portlet
Class OmniadminControlPanelEntry
java.lang.Object
com.liferay.portlet.BaseControlPanelEntry
com.liferay.portlet.OmniadminControlPanelEntry
- All Implemented Interfaces:
- ControlPanelEntry
- Direct Known Subclasses:
- OmniadminControlPanelEntry
public class OmniadminControlPanelEntry
- extends BaseControlPanelEntry
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OmniadminControlPanelEntry
public OmniadminControlPanelEntry()
hasAccessPermission
public boolean hasAccessPermission(PermissionChecker permissionChecker,
Group group,
Portlet portlet)
throws Exception
- Returns
true if the current user is an omni administrator.
- Specified by:
hasAccessPermission in interface ControlPanelEntry- Overrides:
hasAccessPermission in class BaseControlPanelEntry
- 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