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

Jean-Noel Rouvignac
15.17.2014 6870993d12bf8a2b9d5cd103dc5ccabc42f9bf5d
opendj-config/src/test/java/org/forgerock/opendj/config/client/ldap/MockConstraint.java
@@ -49,9 +49,7 @@
     */
    private class Handler extends ClientConstraintHandler {
        /**
         * {@inheritDoc}
         */
        /** {@inheritDoc} */
        @Override
        public boolean isAddAcceptable(ManagementContext context, ManagedObject<?> managedObject,
                Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
@@ -62,9 +60,7 @@
            return allowAdds;
        }
        /**
         * {@inheritDoc}
         */
        /** {@inheritDoc} */
        @Override
        public boolean isDeleteAcceptable(ManagementContext context, ManagedObjectPath<?, ?> path,
                Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
@@ -75,9 +71,7 @@
            return allowDeletes;
        }
        /**
         * {@inheritDoc}
         */
        /** {@inheritDoc} */
        @Override
        public boolean isModifyAcceptable(ManagementContext context, ManagedObject<?> managedObject,
                Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
@@ -90,13 +84,13 @@
    }
    // Determines if add operations are allowed.
    /** Determines if add operations are allowed. */
    private final boolean allowAdds;
    // Determines if modify operations are allowed.
    /** Determines if modify operations are allowed. */
    private final boolean allowModifies;
    // Determines if delete operations are allowed.
    /** Determines if delete operations are allowed. */
    private final boolean allowDeletes;
    /**
@@ -115,16 +109,12 @@
        this.allowDeletes = allowDeletes;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Collection<ClientConstraintHandler> getClientConstraintHandlers() {
        return Collections.<ClientConstraintHandler> singleton(new Handler());
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Collection<ServerConstraintHandler> getServerConstraintHandlers() {
        return Collections.emptySet();
    }