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.DitContentRule;
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 DitContentRules.
034 *
035 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
036 */
037public class DitContentRuleSynchronizer extends AbstractRegistrySynchronizer
038{
039
040    /**
041     * Creates a new instance of DitContentRuleSynchronizer.
042     *
043     * @param schemaManager The global schemaManager
044     * @throws Exception If the initialization failed
045     */
046    protected DitContentRuleSynchronizer( SchemaManager schemaManager ) throws Exception
047    {
048        super( schemaManager );
049        // TODO Auto-generated constructor stub
050    }
051
052
053    /**
054     * {@inheritDoc}
055     */
056    @Override
057    public boolean modify( ModifyOperationContext modifyContext, Entry targetEntry, boolean cascade )
058        throws LdapException
059    {
060        // TODO Auto-generated method stub
061        return SCHEMA_UNCHANGED;
062    }
063
064
065    /**
066     * {@inheritDoc}
067     */
068    public void add( Entry entry ) throws LdapException
069    {
070        // TODO Auto-generated method stub
071    }
072
073
074    /**
075     * {@inheritDoc}
076     */
077    public void delete( Entry entry, boolean cascade ) throws LdapException
078    {
079        // TODO Auto-generated method stub
080    }
081
082
083    /* (non-Javadoc)
084     * @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)
085     */
086    public void moveAndRename( Dn oriChildName, Dn newParentName, Rdn newRn, boolean deleteOldRn,
087        Entry entry, boolean cascade ) throws LdapException
088    {
089        // TODO Auto-generated method stub
090    }
091
092
093    /* (non-Javadoc)
094     * @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)
095     */
096    public void move( Dn oriChildName, Dn newParentName, Entry entry,
097        boolean cascade ) throws LdapException
098    {
099        // 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}