directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r463999 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerUtils.java
Date Sat, 14 Oct 2006 19:36:47 GMT
Author: ersiner
Date: Sat Oct 14 12:36:47 2006
New Revision: 463999

URL: http://svn.apache.org/viewvc?view=rev&rev=463999
Log:
As prescriptiveTriggerSpec attr is mandatory, added one parameter for that to the Triggger
Subentry creation method.

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerUtils.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerUtils.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerUtils.java?view=diff&rev=463999&r1=463998&r2=463999
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerUtils.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerUtils.java
Sat Oct 14 12:36:47 2006
@@ -38,6 +38,7 @@
  */
 public class TriggerUtils
 {
+    public static String SUBTREE_SPECIFICATION_ATTR = "subtreeSpecification";
     public static String ADMINISTRATIVE_ROLE_ATTR = "administrativeRole";
     public static String TRIGGER_EXECUTION_SPECIFIC_AREA_ATTR_VALUE = "triggerExecutionSpecificArea";
     public static String TRIGGER_EXECUTION_SUBENTRY_OC = "triggerExecutionSubentry";
@@ -60,7 +61,8 @@
     public static void createTriggerExecutionSubentry(
         LdapContext apCtx,
         String subentryCN,
-        String subtreeSpec ) throws NamingException
+        String subtreeSpec,
+        String prescriptiveTriggerSpec ) throws NamingException
     {
         Attributes subentry = new BasicAttributes( "cn", subentryCN, true );
         Attribute objectClass = new BasicAttribute( "objectClass" );
@@ -68,7 +70,8 @@
         objectClass.add( "top" );
         objectClass.add( "subentry" );
         objectClass.add( TRIGGER_EXECUTION_SUBENTRY_OC );
-        subentry.put( "subtreeSpecification", subtreeSpec );
+        subentry.put( SUBTREE_SPECIFICATION_ATTR, subtreeSpec );
+        subentry.put( PRESCRIPTIVE_TRIGGER_SPECIFICATION_ATTR, prescriptiveTriggerSpec );
         apCtx.createSubcontext( "cn=" + subentryCN, subentry );
     }
     



Mime
View raw message