/** * Returns the name of the category of the Control Panel where the portlet * will be shown. * * @return the name of the category of the Control Panel where the portlet will be shown */ @Override public String getControlPanelEntryCategory() { return _portlet.getControlPanelEntryCategory(); }
protected boolean hasAccessPermissionDenied( PermissionChecker permissionChecker, Group group, Portlet portlet) throws Exception { String category = portlet.getControlPanelEntryCategory(); if (category.startsWith(PortletCategoryKeys.SITE_ADMINISTRATION) && group.isLayoutPrototype()) { return true; } if (category.equals(PortletCategoryKeys.SITE_ADMINISTRATION_CONTENT) && group.isLayout() && !portlet.isScopeable()) { return true; } return false; }
String category = portlet.getControlPanelEntryCategory();