Liferay 7.0-ce-b4

com.liferay.portlet
Class OmniadminControlPanelEntry

java.lang.Object
  extended by com.liferay.portlet.BaseControlPanelEntry
      extended by com.liferay.portlet.OmniadminControlPanelEntry
All Implemented Interfaces:
ControlPanelEntry

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.


Constructor Summary
OmniadminControlPanelEntry()
           
 
Method Summary
 boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet)
          Returns true if the current user is an omni administrator.
 
Methods inherited from class com.liferay.portlet.BaseControlPanelEntry
getDefaultPlid, hasAccessPermissionDenied, hasAccessPermissionExplicitlyGranted, hasPermissionImplicitlyGranted, isVisible, isVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OmniadminControlPanelEntry

public OmniadminControlPanelEntry()
Method Detail

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 user
group - the group
portlet - the portlet being checked
Returns:
true if the current user is an omni administrator; false otherwise
Throws:
Exception - if an exception occurred

Liferay 7.0-ce-b4