001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements. See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership. The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied. See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 *
019 */
020 package org.apache.directory.server.core.schema.registries.synchronizers;
021
022
023 import javax.naming.NamingException;
024
025 import org.apache.directory.server.core.interceptor.context.ModifyOperationContext;
026 import org.apache.directory.shared.ldap.entry.ServerEntry;
027 import org.apache.directory.shared.ldap.name.DN;
028 import org.apache.directory.shared.ldap.name.RDN;
029 import org.apache.directory.shared.ldap.schema.DITStructureRule;
030 import org.apache.directory.shared.ldap.schema.SchemaManager;
031
032
033 /**
034 * A schema entity change handler for DitStructureRules.
035 *
036 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
037 * @version $Rev$
038 */
039 public class DitStructureRuleSynchronizer extends AbstractRegistrySynchronizer
040 {
041 /**
042 * Creates a new instance of DitStructureSynchronizer.
043 *
044 * @param schemaManager The global schemaManager
045 * @throws Exception If the initialization failed
046 */
047 protected DitStructureRuleSynchronizer( SchemaManager schemaManager ) throws Exception
048 {
049 super( schemaManager );
050 // TODO Auto-generated constructor stub
051 }
052
053
054 /**
055 * {@inheritDoc}
056 */
057 @Override
058 public boolean modify( ModifyOperationContext opContext, ServerEntry targetEntry,
059 boolean cascade ) throws NamingException
060 {
061 // TODO Auto-generated method stub
062 return SCHEMA_UNCHANGED;
063 }
064
065
066 /**
067 * {@inheritDoc}
068 */
069 public void add( ServerEntry entry ) throws NamingException
070 {
071 // TODO Auto-generated method stub
072 }
073
074
075 /**
076 * {@inheritDoc}
077 */
078 public void delete( ServerEntry entry, boolean cascade ) throws NamingException
079 {
080 // TODO Auto-generated method stub
081 }
082
083
084 /* (non-Javadoc)
085 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move(
086 * org.apache.directory.shared.ldap.name.DN,
087 * org.apache.directory.shared.ldap.name.DN,
088 * java.lang.String, boolean, javax.naming.directory.Attributes)
089 */
090 public void moveAndRename( DN oriChildName, DN newParentName, RDN newRn, boolean deleteOldRn,
091 ServerEntry entry, boolean cascade ) throws NamingException
092 {
093 // TODO Auto-generated method stub
094 }
095
096
097 /* (non-Javadoc)
098 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move(
099 * org.apache.directory.shared.ldap.name.DN,
100 * org.apache.directory.shared.ldap.name.DN,
101 * javax.naming.directory.Attributes)
102 */
103 public void move( DN oriChildName, DN newParentName, ServerEntry entry,
104 boolean cascade ) throws NamingException
105 {
106 // TODO Auto-generated method stub
107 }
108
109
110 /**
111 * {@inheritDoc}
112 */
113 public void rename( ServerEntry entry, RDN newRdn, boolean cascade ) throws NamingException
114 {
115 // TODO Auto-generated method stub
116 }
117
118
119 public void add( DITStructureRule dsr )
120 {
121 // TODO Auto-generated method stub
122 }
123
124
125 public void delete( DITStructureRule dsr, boolean cascade )
126 {
127 // TODO Auto-generated method stub
128 }
129 }