directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r539724 - in /directory/shared/trunk/ldap/src/main: antlr/TriggerSpecification.g java/org/apache/directory/shared/ldap/trigger/StoredProcedureParameter.java
Date Sat, 19 May 2007 09:38:25 GMT
Author: ersiner
Date: Sat May 19 02:38:24 2007
New Revision: 539724

URL: http://svn.apache.org/viewvc?view=rev&rev=539724
Log:
Added missing ModifyDN Request parameters that can be injected to Stored Procedures.

Modified:
    directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/StoredProcedureParameter.java

Modified: directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g?view=diff&rev=539724&r1=539723&r2=539724
==============================================================================
--- directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g (original)
+++ directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g Sat May 19 02:38:24
2007
@@ -327,6 +327,9 @@
     | ID_newrdn { triggerStoredProcedureParameters.add( StoredProcedureParameter.ModifyDN_NEW_RDN.instance()
); }
     | ID_deleteoldrdn { triggerStoredProcedureParameters.add( StoredProcedureParameter.ModifyDN_DELETE_OLD_RDN.instance()
); }
     | ID_newSuperior { triggerStoredProcedureParameters.add( StoredProcedureParameter.ModifyDN_NEW_SUPERIOR.instance()
); }
+    | ID_oldRDN { triggerStoredProcedureParameters.add( StoredProcedureParameter.ModifyDN_OLD_RDN.instance()
); }
+    | ID_oldSuperiorDN { triggerStoredProcedureParameters.add( StoredProcedureParameter.ModifyDN_OLD_SUPERIOR_DN.instance()
); }
+    | ID_newDN { triggerStoredProcedureParameters.add( StoredProcedureParameter.ModifyDN_NEW_DN.instance()
); }
     | genericStoredProcedureParameter
     ;
 
@@ -503,7 +506,10 @@
     // ID_entry = "$entry"; // defined before
     ID_newrdn = "$newrdn";
     ID_deleteoldrdn = "$deleteoldrdn";
-    ID_newSuperior = "$newsuperior";
+    ID_newSuperior = "$newSuperior";
+    ID_oldRDN = "$oldRDN";
+    ID_oldSuperiorDN = "$oldSuperiorDN";
+    ID_newDN = "$newDN";
     
     // generic parameters
     ID_ldapContext = "$ldapcontext";

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/StoredProcedureParameter.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/StoredProcedureParameter.java?view=diff&rev=539724&r1=539723&r2=539724
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/StoredProcedureParameter.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/StoredProcedureParameter.java
Sat May 19 02:38:24 2007
@@ -311,4 +311,51 @@
             return instance;
         }
     }
+    
+    public static class ModifyDN_OLD_RDN extends StoredProcedureParameter
+    {
+        private static ModifyDN_OLD_RDN instance = new ModifyDN_OLD_RDN( "$oldRDN" );
+        
+        private ModifyDN_OLD_RDN( String identifier )
+        {
+            super( identifier );
+        }
+        
+        public static StoredProcedureParameter instance()
+        {
+            return instance;
+        }
+    }
+    
+    public static class ModifyDN_OLD_SUPERIOR_DN extends StoredProcedureParameter
+    {
+        private static ModifyDN_OLD_SUPERIOR_DN instance = new ModifyDN_OLD_SUPERIOR_DN(
"$oldRDN" );
+        
+        private ModifyDN_OLD_SUPERIOR_DN( String identifier )
+        {
+            super( identifier );
+        }
+        
+        public static StoredProcedureParameter instance()
+        {
+            return instance;
+        }
+    }
+    
+    public static class ModifyDN_NEW_DN extends StoredProcedureParameter
+    {
+        private static ModifyDN_NEW_DN instance = new ModifyDN_NEW_DN( "$oldRDN" );
+        
+        private ModifyDN_NEW_DN( String identifier )
+        {
+            super( identifier );
+        }
+        
+        public static StoredProcedureParameter instance()
+        {
+            return instance;
+        }
+    }
+    
+    
 }



Mime
View raw message