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

Matthew Swift
08.47.2016 eec7ba4411d0535c8229d08f0cdad60d04da7ca6
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Utils.java
@@ -40,10 +40,12 @@
import org.forgerock.opendj.ldap.Attribute;
import org.forgerock.opendj.ldap.AttributeDescription;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.Connection;
import org.forgerock.opendj.ldap.Filter;
import org.forgerock.opendj.ldap.GeneralizedTime;
import org.forgerock.opendj.ldap.LinkedAttribute;
import org.forgerock.opendj.ldap.schema.Syntax;
import org.forgerock.services.context.Context;
import org.forgerock.util.Function;
import org.forgerock.util.promise.NeverThrowsException;
@@ -185,6 +187,10 @@
        return new BadRequestException(message.toString(), cause);
    }
    static Connection connectionFrom(final Context context) {
        return context.asContext(AuthenticatedConnectionContext.class).getConnection();
    }
    /** Prevent instantiation. */
    private Utils() {
        // No implementation required.