-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.0 M2
-
Fix Version/s: 2.0.0
-
Component/s: Projects > Portlet, Wizards > Portlet
-
Labels:None
-
Environment:Eclipse Kepler SR1
-
Git Pull Request:
If you add a new portlet (MVC) using the "New Liferay Portlet"-wizard and select "Add to Control Panel" a class is generated. This class looks like the following:
FirstPortletControlPanelEntry.java
package com.test; import com.liferay.portal.model.Portlet; import com.liferay.portal.security.permission.PermissionChecker; import com.liferay.portlet.BaseControlPanelEntry; /** * Control panel entry class FirstPortletControlPanelEntry */ /** * @see com.liferay.util.bridges.mvc.MVCPortlet#com.liferay.util.bridges.mvc.MVCPortlet() */ public FirstPortletControlPanelEntry() { super(); } public class FirstPortletControlPanelEntry extends BaseControlPanelEntry { @Override public boolean isVisible(PermissionChecker permissionChecker, Portlet portlet) throws Exception { return false; } }