com.liferay.portlet
Class AdministratorControlPanelEntry
java.lang.Object
com.liferay.portlet.BaseControlPanelEntry
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdministratorControlPanelEntry
public AdministratorControlPanelEntry()
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
usergroup - the groupportlet - the portlet being checked
- Returns:
true if the current user is the company's
administrator
- Throws:
Exception - if an exception occurred