/** * Returns all child layouts of the current layout, independent of user * access permissions. * * @return the list of all child layouts */ @Override public java.util.List<Layout> getChildren() { return _layout.getChildren(); }
/** * Returns all child layouts of the current layout that the user has * permission to access. * * @param permissionChecker the user-specific context to check permissions * @return the list of all child layouts that the user has permission to access */ @Override public java.util.List<Layout> getChildren( com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker) throws com.liferay.portal.kernel.exception.PortalException { return _layout.getChildren(permissionChecker); }
/** * Returns all of child layouts that the current user has permission to * access from this navigation item's layout. * * @return the list of all child layouts that the current user has * permission to access from this navigation item's layout * @throws Exception if an exception occurred */ public List<NavItem> getChildren() throws Exception { if (_children == null) { List<Layout> layouts = _layout.getChildren( _themeDisplay.getPermissionChecker()); _children = _fromLayouts( _request, _themeDisplay, layouts, _contextObjects); } return _children; }
protected boolean populateLayoutsJSON( JSONArray layoutsJSONArray, Layout layout, long[] selectedLayoutIds) { List<Layout> childLayouts = layout.getChildren(); JSONArray childLayoutsJSONArray = null; boolean includeChildren = true;