View Javadoc
1   /*
2    *  Licensed to the Apache Software Foundation (ASF) under one
3    *  or more contributor license agreements.  See the NOTICE file
4    *  distributed with this work for additional information
5    *  regarding copyright ownership.  The ASF licenses this file
6    *  to you under the Apache License, Version 2.0 (the
7    *  "License"); you may not use this file except in compliance
8    *  with the License.  You may obtain a copy of the License at
9    *  
10   *    http://www.apache.org/licenses/LICENSE-2.0
11   *  
12   *  Unless required by applicable law or agreed to in writing,
13   *  software distributed under the License is distributed on an
14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   *  KIND, either express or implied.  See the License for the
16   *  specific language governing permissions and limitations
17   *  under the License. 
18   *  
19   */
20  package org.apache.directory.server.core.api.schema.registries.synchronizers;
21  
22  
23  import org.apache.directory.api.ldap.model.entry.Entry;
24  import org.apache.directory.api.ldap.model.exception.LdapException;
25  import org.apache.directory.api.ldap.model.name.Dn;
26  import org.apache.directory.api.ldap.model.name.Rdn;
27  import org.apache.directory.api.ldap.model.schema.DitContentRule;
28  import org.apache.directory.api.ldap.model.schema.SchemaManager;
29  import org.apache.directory.server.core.api.interceptor.context.ModifyOperationContext;
30  
31  
32  /**
33   * A schema entity change handler for DitContentRules.
34   *
35   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
36   */
37  public class DitContentRuleSynchronizer extends AbstractRegistrySynchronizer
38  {
39  
40      /**
41       * Creates a new instance of DitContentRuleSynchronizer.
42       *
43       * @param schemaManager The global schemaManager
44       * @throws Exception If the initialization failed
45       */
46      protected DitContentRuleSynchronizer( SchemaManager schemaManager ) throws Exception
47      {
48          super( schemaManager );
49          // TODO Auto-generated constructor stub
50      }
51  
52  
53      /**
54       * {@inheritDoc}
55       */
56      @Override
57      public boolean modify( ModifyOperationContext modifyContext, Entry targetEntry, boolean cascade )
58          throws LdapException
59      {
60          // TODO Auto-generated method stub
61          return SCHEMA_UNCHANGED;
62      }
63  
64  
65      /**
66       * {@inheritDoc}
67       */
68      public void add( Entry entry ) throws LdapException
69      {
70          // TODO Auto-generated method stub
71      }
72  
73  
74      /**
75       * {@inheritDoc}
76       */
77      public void delete( Entry entry, boolean cascade ) throws LdapException
78      {
79          // TODO Auto-generated method stub
80      }
81  
82  
83      /* (non-Javadoc)
84       * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, java.lang.String, boolean, javax.naming.directory.Attributes)
85       */
86      public void moveAndRename( Dn oriChildName, Dn newParentName, Rdn newRn, boolean deleteOldRn,
87          Entry entry, boolean cascade ) throws LdapException
88      {
89          // TODO Auto-generated method stub
90      }
91  
92  
93      /* (non-Javadoc)
94       * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move(org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, javax.naming.directory.Attributes)
95       */
96      public void move( Dn oriChildName, Dn newParentName, Entry entry,
97          boolean cascade ) throws LdapException
98      {
99          // TODO Auto-generated method stub
100     }
101 
102 
103     /**
104      * {@inheritDoc}
105      */
106     public void rename( Entry entry, Rdn newRdn, boolean cascade ) throws LdapException
107     {
108         // TODO Auto-generated method stub
109     }
110 
111 
112     public void add( DitContentRule dcr )
113     {
114         // TODO Auto-generated method stub
115     }
116 
117 
118     public void delete( DitContentRule dcr, boolean cascade )
119     {
120         // TODO Auto-generated method stub
121     }
122 }