From 33047cc2802d7174ad06bc62e972bc9a876abe99 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 25 Nov 2016 09:17:03 +0000
Subject: [PATCH] Inlined DirectoryServer.getSchema()
---
opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java b/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
index d36cd7d..7e61236 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
@@ -106,7 +106,7 @@
{
configuration.addPasswordPolicyImportChangeListener(this);
- customPolicyAttribute = DirectoryServer.getSchema().getAttributeType(OP_ATTR_PWPOLICY_POLICY_DN);
+ customPolicyAttribute = DirectoryServer.getInstance().getServerContext().getSchema().getAttributeType(OP_ATTR_PWPOLICY_POLICY_DN);
// Make sure that the plugin has been enabled for the appropriate types.
for (PluginType t : pluginTypes)
@@ -227,7 +227,7 @@
// syntax defined in the schema.
HashSet<AttributeType> authPWTypes = new HashSet<>();
HashSet<AttributeType> userPWTypes = new HashSet<>();
- for (AttributeType t : DirectoryServer.getSchema().getAttributeTypes())
+ for (AttributeType t : DirectoryServer.getInstance().getServerContext().getSchema().getAttributeTypes())
{
switch (SchemaUtils.checkPasswordType(t))
{
--
Gitblit v1.10.0