1 17 package org.apache.ldap.server; 18 19 20 import org.apache.ldap.common.filter.ExprNode; 21 22 import javax.naming.Name ; 23 import javax.naming.NamingEnumeration ; 24 import javax.naming.NamingException ; 25 import javax.naming.directory.Attributes ; 26 import javax.naming.directory.ModificationItem ; 27 import javax.naming.directory.SearchControls ; 28 import java.util.Map ; 29 30 31 41 public interface BackingStore 42 { 43 51 void delete( Name name ) throws NamingException ; 52 53 61 void add( String upName, Name normName, Attributes entry ) throws NamingException ; 62 63 79 void modify( Name name, int modOp, Attributes mods ) throws NamingException ; 80 81 90 void modify( Name name, ModificationItem [] mods ) throws NamingException ; 91 92 103 NamingEnumeration list( Name base ) throws NamingException ; 104 105 122 NamingEnumeration search( Name base, Map env, ExprNode filter, 123 SearchControls searchCtls ) throws NamingException ; 124 125 134 Attributes lookup( Name name ) throws NamingException ; 135 136 147 Attributes lookup( Name dn, String [] attrIds ) throws NamingException ; 148 149 157 boolean hasEntry( Name name ) throws NamingException ; 158 159 166 boolean isSuffix( Name name ) throws NamingException ; 167 168 181 void modifyRn( Name name, String newRn, boolean deleteOldRn ) 182 throws NamingException ; 183 184 194 void move( Name oriChildName, Name newParentName ) throws NamingException ; 195 196 213 void move( Name oriChildName, Name newParentName, String newRn, 214 boolean deleteOldRn ) throws NamingException ; 215 216 221 void sync() throws NamingException ; 222 223 229 void close() throws NamingException ; 230 231 237 boolean isClosed(); 238 } 239 240 241 | Popular Tags |