mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
02.33.2014 e114a899bbc0df59f5135f195d24797bf6c1b778
opendj-sdk/opendj-admin/src/main/java/org/opends/server/admin/DNPropertyDefinition.java
@@ -134,7 +134,7 @@
     * {@inheritDoc}
     */
    @Override
    public void validateValue(DN value) {
    public void validateValue(DN value, PropertyDefinitionsOptions options) {
        Reject.ifNull(value);
        if (baseDN != null) {
@@ -154,13 +154,12 @@
     * {@inheritDoc}
     */
    @Override
    public DN decodeValue(String value) {
    public DN decodeValue(String value, PropertyDefinitionsOptions options) {
        Reject.ifNull(value);
        try {
            // TODO: is it correct to replace server DN.decode by SDK valueOf ?
            DN dn = DN.valueOf(value);
            validateValue(dn);
            validateValue(dn, options);
            return dn;
        } catch (IllegalPropertyValueException e) {
            throw new IllegalPropertyValueStringException(this, value);