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.NameForm; 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 NameForms. 34 * 35 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 36 */ 37 public class NameFormSynchronizer extends AbstractRegistrySynchronizer 38 { 39 /** 40 * Creates a new instance of NameFormSynchronizer. 41 * 42 * @param schemaManager The global schemaManager 43 * @throws Exception If the initialization failed 44 */ 45 protected NameFormSynchronizer( SchemaManager schemaManager ) throws Exception 46 { 47 super( schemaManager ); 48 } 49 50 51 /** 52 * {@inheritDoc} 53 */ 54 @Override 55 public boolean modify( ModifyOperationContext modifyContext, Entry targetEntry, 56 boolean cascade ) throws LdapException 57 { 58 return SCHEMA_UNCHANGED; 59 } 60 61 62 /** 63 * {@inheritDoc} 64 */ 65 public void add( Entry entry ) throws LdapException 66 { 67 // TODO Auto-generated method stub 68 } 69 70 71 /** 72 * {@inheritDoc} 73 */ 74 public void delete( Entry entry, boolean cascade ) throws LdapException 75 { 76 // TODO Auto-generated method stub 77 } 78 79 80 /* (non-Javadoc) 81 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move( 82 * org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, 83 * Rdn, boolean, javax.naming.directory.Attributes) 84 */ 85 public void moveAndRename( Dn oriChildName, Dn newParentName, Rdn newRn, 86 boolean deleteOldRn, Entry entry, boolean cascade ) throws LdapException 87 { 88 // TODO Auto-generated method stub 89 } 90 91 92 /* (non-Javadoc) 93 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move( 94 * org.apache.directory.api.ldap.model.name.Dn, 95 * org.apache.directory.api.ldap.model.name.Dn, javax.naming.directory.Attributes) 96 */ 97 public void move( Dn oriChildName, Dn newParentName, Entry entry, 98 boolean cascade ) throws LdapException 99 { 100 // TODO Auto-generated method stub 101 } 102 103 104 /** 105 * {@inheritDoc} 106 */ 107 public void rename( Entry entry, Rdn newRdn, boolean cascade ) throws LdapException 108 { 109 // TODO Auto-generated method stub 110 } 111 112 113 public void add( NameForm nf ) 114 { 115 // TODO Auto-generated method stub 116 } 117 118 119 public void delete( NameForm nf, boolean cascade ) 120 { 121 // TODO Auto-generated method stub 122 } 123 }