View Javadoc
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.shared.partition;
21  
22  
23  import javax.naming.InvalidNameException;
24  
25  import org.apache.directory.api.ldap.model.entry.Entry;
26  import org.apache.directory.api.ldap.model.exception.LdapException;
27  import org.apache.directory.api.ldap.model.schema.SchemaManager;
28  import org.apache.directory.server.core.api.filtering.EntryFilteringCursor;
29  import org.apache.directory.server.core.api.interceptor.context.AddOperationContext;
30  import org.apache.directory.server.core.api.interceptor.context.DeleteOperationContext;
31  import org.apache.directory.server.core.api.interceptor.context.HasEntryOperationContext;
32  import org.apache.directory.server.core.api.interceptor.context.LookupOperationContext;
33  import org.apache.directory.server.core.api.interceptor.context.ModifyOperationContext;
34  import org.apache.directory.server.core.api.interceptor.context.MoveAndRenameOperationContext;
35  import org.apache.directory.server.core.api.interceptor.context.MoveOperationContext;
36  import org.apache.directory.server.core.api.interceptor.context.RenameOperationContext;
37  import org.apache.directory.server.core.api.interceptor.context.SearchOperationContext;
38  import org.apache.directory.server.core.api.interceptor.context.UnbindOperationContext;
39  import org.apache.directory.server.core.api.partition.AbstractPartition;
40  import org.apache.directory.server.core.api.partition.PartitionReadTxn;
41  import org.apache.directory.server.core.api.partition.PartitionTxn;
42  import org.apache.directory.server.core.api.partition.PartitionWriteTxn;
43  import org.apache.directory.server.core.api.partition.Subordinates;
44  
45  /**
46   * 
47   *
48   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
49   */
50  public class RootPartition extends AbstractPartition
51  {
52  
53      protected RootPartition( SchemaManager schemaManager )
54      {
55          // TODO Auto-generated constructor stub
56      }
57  
58      
59      @Override
60      public PartitionReadTxn beginReadTransaction()
61      {
62          return new PartitionReadTxn();
63      }
64  
65      
66      @Override
67      public PartitionWriteTxn beginWriteTransaction()
68      {
69          return new PartitionWriteTxn();
70      }
71  
72      @Override
73      protected void doRepair() throws LdapException
74      {
75      }
76  
77  
78      @Override
79      public Entry delete( DeleteOperationContext deleteContext ) throws LdapException
80      {
81          // TODO Auto-generated method stub
82          return null;
83      }
84  
85  
86      @Override
87      public void add( AddOperationContext addContext ) throws LdapException
88      {
89          // TODO Auto-generated method stub
90          
91      }
92  
93  
94      @Override
95      public void modify( ModifyOperationContext modifyContext ) throws LdapException
96      {
97          // TODO Auto-generated method stub
98          
99      }
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 }