Liferay 6.2-ce-ga5

com.liferay.portlet
Class BaseControlPanelEntry

java.lang.Object
  extended by com.liferay.portlet.BaseControlPanelEntry
All Implemented Interfaces:
ControlPanelEntry
Direct Known Subclasses:
AdministratorControlPanelEntry, DefaultControlPanelEntry, LiberalControlPanelEntry, OmniadminControlPanelEntry

public abstract class BaseControlPanelEntry
extends Object
implements ControlPanelEntry


Constructor Summary
BaseControlPanelEntry()
           
 
Method Summary
protected  long getDefaultPlid(Group group, String category)
           
 boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet)
           
protected  boolean hasAccessPermissionDenied(PermissionChecker permissionChecker, Group group, Portlet portlet)
           
protected  boolean hasAccessPermissionExplicitlyGranted(PermissionChecker permissionChecker, Group group, Portlet portlet)
           
protected  boolean hasPermissionImplicitlyGranted(PermissionChecker permissionChecker, Group group, Portlet portlet)
           
 boolean isVisible(PermissionChecker permissionChecker, Portlet portlet)
          Deprecated. As of 6.2.0, with no direct replacement.

This method was originally defined to determine if a portlet should be displayed in the Control Panel. In this version, this method should always return false and remains only to preserve binary compatibility. This method will be permanently removed in a future version.

In lieu of this method, the Control Panel now uses hasAccessPermission(com.liferay.portal.security.permission.PermissionChecker, com.liferay.portal.model.Group, com.liferay.portal.model.Portlet) to determine if a portlet should be displayed in the Control Panel.

 boolean isVisible(Portlet portlet, String category, ThemeDisplay themeDisplay)
          Deprecated. As of 6.2.0, with no direct replacement.

This method was originally defined to determine if a portlet should be displayed in the Control Panel. In this version, this method should always return false and remains only to preserve binary compatibility. This method will be permanently removed in a future version.

In lieu of this method, the Control Panel now uses hasAccessPermission(com.liferay.portal.security.permission.PermissionChecker, com.liferay.portal.model.Group, com.liferay.portal.model.Portlet) to determine if a portlet should be displayed in the Control Panel.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseControlPanelEntry

public BaseControlPanelEntry()
Method Detail

hasAccessPermission

public boolean hasAccessPermission(PermissionChecker permissionChecker,
                                   Group group,
                                   Portlet portlet)
                            throws Exception
Specified by:
hasAccessPermission in interface ControlPanelEntry
Throws:
Exception

isVisible

public boolean isVisible(PermissionChecker permissionChecker,
                         Portlet portlet)
                  throws Exception
Deprecated. As of 6.2.0, with no direct replacement.

This method was originally defined to determine if a portlet should be displayed in the Control Panel. In this version, this method should always return false and remains only to preserve binary compatibility. This method will be permanently removed in a future version.

In lieu of this method, the Control Panel now uses hasAccessPermission(com.liferay.portal.security.permission.PermissionChecker, com.liferay.portal.model.Group, com.liferay.portal.model.Portlet) to determine if a portlet should be displayed in the Control Panel.

Specified by:
isVisible in interface ControlPanelEntry
Throws:
Exception

isVisible

public boolean isVisible(Portlet portlet,
                         String category,
                         ThemeDisplay themeDisplay)
                  throws Exception
Deprecated. As of 6.2.0, with no direct replacement.

This method was originally defined to determine if a portlet should be displayed in the Control Panel. In this version, this method should always return false and remains only to preserve binary compatibility. This method will be permanently removed in a future version.

In lieu of this method, the Control Panel now uses hasAccessPermission(com.liferay.portal.security.permission.PermissionChecker, com.liferay.portal.model.Group, com.liferay.portal.model.Portlet) to determine if a portlet should be displayed in the Control Panel.

Specified by:
isVisible in interface ControlPanelEntry
Throws:
Exception

getDefaultPlid

protected long getDefaultPlid(Group group,
                              String category)

hasAccessPermissionDenied

protected boolean hasAccessPermissionDenied(PermissionChecker permissionChecker,
                                            Group group,
                                            Portlet portlet)
                                     throws Exception
Throws:
Exception

hasAccessPermissionExplicitlyGranted

protected boolean hasAccessPermissionExplicitlyGranted(PermissionChecker permissionChecker,
                                                       Group group,
                                                       Portlet portlet)
                                                throws PortalException,
                                                       SystemException
Throws:
PortalException
SystemException

hasPermissionImplicitlyGranted

protected boolean hasPermissionImplicitlyGranted(PermissionChecker permissionChecker,
                                                 Group group,
                                                 Portlet portlet)
                                          throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5