directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1103516 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/ppolicy/PpolicyConfigContainer.java
Date Sun, 15 May 2011 19:51:36 GMT
Author: kayyagari
Date: Sun May 15 19:51:35 2011
New Revision: 1103516

URL: http://svn.apache.org/viewvc?rev=1103516&view=rev
Log:
o allow deactivating a password policy

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/ppolicy/PpolicyConfigContainer.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/ppolicy/PpolicyConfigContainer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/ppolicy/PpolicyConfigContainer.java?rev=1103516&r1=1103515&r2=1103516&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/ppolicy/PpolicyConfigContainer.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/ppolicy/PpolicyConfigContainer.java
Sun May 15 19:51:35 2011
@@ -99,4 +99,15 @@ public class PpolicyConfigContainer
         this.defaultPolicy = defaultPolicy;
     }
 
+    
+    /**
+     * deactivate an existing password policy.
+     *  
+     * @param ppolicyConfigDn the Dn of the password policy configuration
+     * @return the deactivated password policy config object of the given reference Dn, null
otherwise
+     */
+    public PasswordPolicyConfiguration removePolicyConfig( Dn ppolicyConfigDn )
+    {
+        return ppolicyConfigMap.remove( ppolicyConfigDn );
+    }
 }



Mime
View raw message