Hi,
In specs 7.1.11 (Node.orderBefore method):
"If this node does not support child node ordering, then a
UnsupportedRepositoryOperationException thrown."
But :
"If a node type returns true on a call to
NodeType.hasOrderableChildNodes(), then all nodes of that node
type must support the method Node.orderBefore. If a node type
returns false on a call to this method, then nodes of that node
type may support Node.orderBefore."
What should orderBefore method do if implementation support
ordering independently on hasOrderableChildNodes() value
check it and throw UnsupportedRepositoryOperationException
if node.getPrimaryNodeType().hasOrderableChildNodes() == false
or let method reorder child nodes?
Regards,
Gennady Azarenkov
eXo platform