Liferay 7.0-ce-b4

com.liferay.portlet
Class AdministratorControlPanelEntry

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

public class AdministratorControlPanelEntry
extends BaseControlPanelEntry

Represents the administrator control panel entry for portlets that shall only be visible and accessible to the company's 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
AdministratorControlPanelEntry()
           
 
Method Summary
 boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet)
          Returns true if the current user is the company's 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

AdministratorControlPanelEntry

public AdministratorControlPanelEntry()
Method Detail

hasAccessPermission

public boolean hasAccessPermission(PermissionChecker permissionChecker,
                                   Group group,
                                   Portlet portlet)
                            throws Exception
Returns true if the current user is the company's 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 the company's administrator
Throws:
Exception - if an exception occurred

Liferay 7.0-ce-b4