public static void shortDump(StringBuilder sb, OrderConstraintsType constraints) { if (constraints == null) { sb.append("null"); return; } Integer order = constraints.getOrder(); if (order != null) { sb.append(order); } String orderMin = constraints.getOrderMin(); String orderMax = constraints.getOrderMax(); if (orderMin != null || orderMax != null) { sb.append("<").append(orderMin).append(",").append(orderMax).append(">"); } QName relation = constraints.getRelation(); if (relation != null) { sb.append(",relation=").append(prettyPrint(relation)); } Integer resetOrder = constraints.getResetOrder(); if (resetOrder != null) { sb.append(",resetOrder=").append(resetOrder); } }
throw new UnsupportedOperationException("Complex order constaints with relation not supported in authorizations"); if (autzOrderConstraints.getResetOrder() != null) { throw new UnsupportedOperationException("Complex order constaints with resetOrder not supported in authorizations");
Integer resetSummaryTo = summaryConstraints != null && summaryConstraints.getResetOrder() != null ? summaryConstraints.getResetOrder() : null; if (constraint.getResetOrder() != null && constraint.getRelation() != null) { LOGGER.debug("Going back {}: an inducement with non-summary resetting constraint found" + " in the chain (at position -{}): {} in {}", summaryBackwards, assignmentPath.size()-i, if (constraint.getRelation() != null && constraint.getResetOrder() != null) { LOGGER.warn("Ignoring resetOrder (with a value of {} for {}) because summary order was already moved backwards by {} to {}: {}", constraint.getResetOrder(), constraint.getRelation(), summaryBackwards, evaluationOrderHolder.getValue().getSummaryOrder(), constraint); EvaluationOrder beforeChange = evaluationOrderHolder.getValue().clone(); for (OrderConstraintsType constraint : constraints) { if (constraint.getResetOrder() != null) { assert constraint.getRelation() != null; // already processed above int currentOrder = evaluationOrderHolder.getValue().getMatchingRelationOrder(constraint.getRelation()); int newOrder = constraint.getResetOrder(); if (newOrder > currentOrder) { LOGGER.warn("Cannot increase evaluation order for {} from {} to {}: {}", constraint.getRelation(),