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 */ 020package org.apache.directory.server.core.api.schema.registries.synchronizers; 021 022 023import org.apache.directory.api.ldap.model.entry.Entry; 024import org.apache.directory.api.ldap.model.exception.LdapException; 025import org.apache.directory.api.ldap.model.name.Dn; 026import org.apache.directory.api.ldap.model.name.Rdn; 027import org.apache.directory.api.ldap.model.schema.NameForm; 028import org.apache.directory.api.ldap.model.schema.SchemaManager; 029import org.apache.directory.server.core.api.interceptor.context.ModifyOperationContext; 030 031 032/** 033 * A schema entity change handler for NameForms. 034 * 035 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 036 */ 037public class NameFormSynchronizer extends AbstractRegistrySynchronizer 038{ 039 /** 040 * Creates a new instance of NameFormSynchronizer. 041 * 042 * @param schemaManager The global schemaManager 043 * @throws Exception If the initialization failed 044 */ 045 protected NameFormSynchronizer( SchemaManager schemaManager ) throws Exception 046 { 047 super( schemaManager ); 048 } 049 050 051 /** 052 * {@inheritDoc} 053 */ 054 @Override 055 public boolean modify( ModifyOperationContext modifyContext, Entry targetEntry, 056 boolean cascade ) throws LdapException 057 { 058 return SCHEMA_UNCHANGED; 059 } 060 061 062 /** 063 * {@inheritDoc} 064 */ 065 public void add( Entry entry ) throws LdapException 066 { 067 // TODO Auto-generated method stub 068 } 069 070 071 /** 072 * {@inheritDoc} 073 */ 074 public void delete( Entry entry, boolean cascade ) throws LdapException 075 { 076 // TODO Auto-generated method stub 077 } 078 079 080 /* (non-Javadoc) 081 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move( 082 * org.apache.directory.api.ldap.model.name.Dn, org.apache.directory.api.ldap.model.name.Dn, 083 * Rdn, boolean, javax.naming.directory.Attributes) 084 */ 085 public void moveAndRename( Dn oriChildName, Dn newParentName, Rdn newRn, 086 boolean deleteOldRn, Entry entry, boolean cascade ) throws LdapException 087 { 088 // TODO Auto-generated method stub 089 } 090 091 092 /* (non-Javadoc) 093 * @see org.apache.directory.server.core.schema.SchemaChangeHandler#move( 094 * org.apache.directory.api.ldap.model.name.Dn, 095 * org.apache.directory.api.ldap.model.name.Dn, javax.naming.directory.Attributes) 096 */ 097 public void move( Dn oriChildName, Dn newParentName, Entry entry, 098 boolean cascade ) throws LdapException 099 { 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}