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

Nicolas Capponi
02.33.2014 2737523b4f973f89fd2d8861fa6dcbc1e46e3154
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);