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.NameForm; 030 import org.apache.directory.shared.ldap.schema.SchemaManager; 031 032 033 /** 034 * A schema entity change handler for NameForms. 035 * 036 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 037 * @version $Rev$ 038 */ 039 public class NameFormSynchronizer extends AbstractRegistrySynchronizer 040 { 041 /** 042 * Creates a new instance of NameFormSynchronizer. 043 * 044 * @param schemaManager The global schemaManager 045 * @throws Exception If the initialization failed 046 */ 047 protected NameFormSynchronizer( SchemaManager schemaManager ) throws Exception 048 { 049 super( schemaManager ); 050 } 051 052 053 /** 054 * {@inheritDoc} 055 */ 056 @Override 057 public boolean modify( ModifyOperationContext opContext, ServerEntry targetEntry, 058 boolean cascade ) throws NamingException 059 { 060 return SCHEMA_UNCHANGED; 061 } 062 063 064 /** 065 * {@inheritDoc} 066 */ 067 public void add( ServerEntry entry ) throws NamingException 068 { 069 // TODO Auto-generated method stub 070 } 071 072 073 /** 074 * {@inheritDoc} 075 */ 076 public void delete( ServerEntry entry, boolean cascade ) throws NamingException 077 { 078 // TODO Auto-generated method stub 079 } 080 081 082 /* (non-Javadoc) 083 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move( 084 * org.apache.directory.shared.ldap.name.DN, org.apache.directory.shared.ldap.name.DN, 085 * RDN, boolean, javax.naming.directory.Attributes) 086 */ 087 public void moveAndRename( DN oriChildName, DN newParentName, RDN newRn, 088 boolean deleteOldRn, ServerEntry entry, boolean cascade ) throws NamingException 089 { 090 // TODO Auto-generated method stub 091 } 092 093 094 /* (non-Javadoc) 095 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move( 096 * org.apache.directory.shared.ldap.name.DN, 097 * org.apache.directory.shared.ldap.name.DN, javax.naming.directory.Attributes) 098 */ 099 public void move( DN oriChildName, DN newParentName, ServerEntry entry, 100 boolean cascade ) throws NamingException 101 { 102 // TODO Auto-generated method stub 103 } 104 105 106 /** 107 * {@inheritDoc} 108 */ 109 public void rename( ServerEntry entry, RDN newRdn, boolean cascade ) throws NamingException 110 { 111 // TODO Auto-generated method stub 112 } 113 114 115 public void add( NameForm nf ) 116 { 117 // TODO Auto-generated method stub 118 } 119 120 121 public void delete( NameForm nf, boolean cascade ) 122 { 123 // TODO Auto-generated method stub 124 } 125 }