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.shared.partition;
021
022
023import javax.naming.InvalidNameException;
024
025import org.apache.directory.api.ldap.model.entry.Entry;
026import org.apache.directory.api.ldap.model.exception.LdapException;
027import org.apache.directory.api.ldap.model.schema.SchemaManager;
028import org.apache.directory.server.core.api.filtering.EntryFilteringCursor;
029import org.apache.directory.server.core.api.interceptor.context.AddOperationContext;
030import org.apache.directory.server.core.api.interceptor.context.DeleteOperationContext;
031import org.apache.directory.server.core.api.interceptor.context.HasEntryOperationContext;
032import org.apache.directory.server.core.api.interceptor.context.LookupOperationContext;
033import org.apache.directory.server.core.api.interceptor.context.ModifyOperationContext;
034import org.apache.directory.server.core.api.interceptor.context.MoveAndRenameOperationContext;
035import org.apache.directory.server.core.api.interceptor.context.MoveOperationContext;
036import org.apache.directory.server.core.api.interceptor.context.RenameOperationContext;
037import org.apache.directory.server.core.api.interceptor.context.SearchOperationContext;
038import org.apache.directory.server.core.api.interceptor.context.UnbindOperationContext;
039import org.apache.directory.server.core.api.partition.AbstractPartition;
040import org.apache.directory.server.core.api.partition.PartitionReadTxn;
041import org.apache.directory.server.core.api.partition.PartitionTxn;
042import org.apache.directory.server.core.api.partition.PartitionWriteTxn;
043import org.apache.directory.server.core.api.partition.Subordinates;
044
045/**
046 * 
047 *
048 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
049 */
050public class RootPartition extends AbstractPartition
051{
052
053    protected RootPartition( SchemaManager schemaManager )
054    {
055        // TODO Auto-generated constructor stub
056    }
057
058    
059    @Override
060    public PartitionReadTxn beginReadTransaction()
061    {
062        return new PartitionReadTxn();
063    }
064
065    
066    @Override
067    public PartitionWriteTxn beginWriteTransaction()
068    {
069        return new PartitionWriteTxn();
070    }
071
072    @Override
073    protected void doRepair() throws LdapException
074    {
075    }
076
077
078    @Override
079    public Entry delete( DeleteOperationContext deleteContext ) throws LdapException
080    {
081        // TODO Auto-generated method stub
082        return null;
083    }
084
085
086    @Override
087    public void add( AddOperationContext addContext ) throws LdapException
088    {
089        // TODO Auto-generated method stub
090        
091    }
092
093
094    @Override
095    public void modify( ModifyOperationContext modifyContext ) throws LdapException
096    {
097        // TODO Auto-generated method stub
098        
099    }
100
101
102    @Override
103    public EntryFilteringCursor search( SearchOperationContext searchContext ) throws LdapException
104    {
105        // TODO Auto-generated method stub
106        return null;
107    }
108
109
110    @Override
111    public Entry lookup( LookupOperationContext lookupContext ) throws LdapException
112    {
113        // TODO Auto-generated method stub
114        return null;
115    }
116
117
118    @Override
119    public boolean hasEntry( HasEntryOperationContext hasEntryContext ) throws LdapException
120    {
121        // TODO Auto-generated method stub
122        return false;
123    }
124
125
126    @Override
127    public void rename( RenameOperationContext renameContext ) throws LdapException
128    {
129        // TODO Auto-generated method stub
130        
131    }
132
133
134    @Override
135    public void move( MoveOperationContext moveContext ) throws LdapException
136    {
137        // TODO Auto-generated method stub
138        
139    }
140
141
142    @Override
143    public void moveAndRename( MoveAndRenameOperationContext moveAndRenameContext ) throws LdapException
144    {
145        // TODO Auto-generated method stub
146        
147    }
148
149
150    @Override
151    public void unbind( UnbindOperationContext unbindContext ) throws LdapException
152    {
153        // TODO Auto-generated method stub
154        
155    }
156
157
158    @Override
159    public void saveContextCsn( PartitionTxn partitionTxn ) throws LdapException
160    {
161        // TODO Auto-generated method stub
162        
163    }
164
165
166    @Override
167    public Subordinates getSubordinates( PartitionTxn partitionTxn, Entry entry ) throws LdapException
168    {
169        // TODO Auto-generated method stub
170        return null;
171    }
172
173
174    @Override
175    protected void doDestroy( PartitionTxn partitionTxn ) throws LdapException
176    {
177        // TODO Auto-generated method stub
178        
179    }
180
181
182    @Override
183    protected void doInit() throws InvalidNameException, LdapException
184    {
185        // TODO Auto-generated method stub
186        
187    }
188}