case TEMP: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 1) { case TOPIC: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 2) { throw new IllegalArgumentException("Malformed policy structure for a queue or topic destination " + "policy entry. The destination pattern and permission group entries should be " + "nested below the queue or topic policy base DN.");
if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 2)) { destination = formatDestination(dn.getRdn(dn.size() - 2), destinationType); } else if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 1)) { destination = formatDestination(dn.getRdn(dn.size() - 1), destinationType); } else {
case TEMP: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 1) { case TOPIC: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 2) { throw new IllegalArgumentException("Malformed policy structure for a queue or topic destination " + "policy entry. The destination pattern and permission group entries should be " + "nested below the queue or topic policy base DN.");
case TEMP: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 1) { case TOPIC: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 2) { throw new IllegalArgumentException("Malformed policy structure for a queue or topic destination " + "policy entry. The destination pattern and permission group entries should be " + "nested below the queue or topic policy base DN.");
case TEMP: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 1) { case TOPIC: if (dn.size() != getPrefixLengthForDestinationType(destinationType) + 2) { throw new IllegalArgumentException("Malformed policy structure for a queue or topic destination " + "policy entry. The destination pattern and permission group entries should be " + "nested below the queue or topic policy base DN.");
if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 2)) { destination = formatDestination(dn.getRdn(dn.size() - 2), destinationType); } else if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 1)) { destination = formatDestination(dn.getRdn(dn.size() - 1), destinationType); } else {
if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 2)) { destination = formatDestination(dn.getRdn(dn.size() - 2), destinationType); } else if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 1)) { destination = formatDestination(dn.getRdn(dn.size() - 1), destinationType); } else {
if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 2)) { destination = formatDestination(dn.getRdn(dn.size() - 2), destinationType); } else if (dn.size() == (getPrefixLengthForDestinationType(destinationType) + 1)) { destination = formatDestination(dn.getRdn(dn.size() - 1), destinationType); } else {