-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
-
Empty show more show less
-
Beta 3
Should support also showing sub types. Either always or it should be configurable.
This check in HierarchicalJcrContainer needs to be changed:
ArrayList<Node> nodesWithMatchingTypes = new ArrayList<Node>(); NodeIterator iterator = node.getNodes(); final List<NodeTypeDefinition> nodeTypes = getWorkbenchDefinition().getNodeTypes(); String currentNodeTypeName; while (iterator.hasNext()) { Node next = iterator.nextNode(); currentNodeTypeName = next.getPrimaryNodeType().getName(); for (NodeTypeDefinition current : nodeTypes) { if (current.getName().equals(currentNodeTypeName)) { nodesWithMatchingTypes.add(next); break; } } }
In 4.5 it was possible to set a type as strict:
/** * Adds an itemType to the list of existing types and associates an icon with it. * The type can be specified as a strict, in which case only the items of given type will be displayed, but sub types will be ignored, * or non-strict in which case the items of sub types of given type will also be rendered. * @param type The item type * @param icon The icon used to display items of given type * @param strict Flag specifying whether or not to show also items of sub type of given type */ public void addItemType(String type, String icon, boolean strict) { this.itemTypes.add(type); if (icon != null) { setIcon(type, icon); } if (strict) { strictTypes.add(type); } else { strictTypes.remove(type); } }
Acceptance criteria
- is causing
-
MGNLUI-1479 Workbench does not display icon when node is a sub type of the configured node type
- Closed
- is depended upon by
-
MGNLUI-1282 As an admin, I should be able to set permissions on content so that I can secure content.
- Closed