List of usage examples for com.liferay.portal.kernel.model Layout isCustomizable
public boolean isCustomizable();
From source file:com.liferay.layout.admin.web.internal.control.menu.CustomizationSettingsProductNavigationControlMenuEntry.java
License:Open Source License
protected boolean isCustomizableLayout(ThemeDisplay themeDisplay) throws PortalException { Layout layout = themeDisplay.getLayout(); Group group = layout.getGroup(); if (group.isLayoutPrototype() || group.isLayoutSetPrototype() || group.isStagingGroup() || group.isUserGroup()) {// w w w. j a v a 2 s.com return false; } LayoutTypePortlet layoutTypePortlet = themeDisplay.getLayoutTypePortlet(); if (!layout.isTypePortlet() || (layoutTypePortlet == null)) { return false; } if (layout.isCustomizable() && hasUpdateLayoutPermission(themeDisplay)) { return true; } if (!layoutTypePortlet.isCustomizable()) { return false; } if (!LayoutPermissionUtil.containsWithoutViewableGroup(themeDisplay.getPermissionChecker(), layout, false, ActionKeys.CUSTOMIZE)) { return false; } return true; }