public abstract class Directory extends Logged
| Modifier and Type | Field and Description |
|---|---|
static int |
scopeBase
These define the values used for scope parameters
|
static int |
scopeOne |
static int |
scopeSub |
| Constructor and Description |
|---|
Directory()
All other constructors just call init
|
Directory(String mngrDN,
String pw) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
abstract void |
create(DirRecord rec) |
abstract void |
destroy(String dn) |
abstract void |
modify(String dn,
ModificationItem[] mods) |
DirRecord |
newRecord(String entryDn)
newRecord - Return a record which can have attribute values added.
|
abstract DirRecord |
nextRecord() |
abstract void |
reInit()
If possible, reInit should allow reuse after a close
|
abstract void |
replace(String dn,
String attrName,
Object val)
Replace an entire attribute with one containing only the given value
|
abstract void |
replace(String dn,
String attrName,
Object[] val)
Replace an entire attribute with one containing only the given values
|
abstract void |
replace(String dn,
String attrName,
Object oldval,
Object newval)
Replace a single given attribute value with the given value
|
boolean |
search(String base,
String filter)
Carry out a subtree search
|
abstract boolean |
search(String base,
String filter,
int scope)
Carry out a search with specified scope.
|
boolean |
searchBase(String base,
String filter)
Carry out a base level search.
|
boolean |
searchOne(String base,
String filter)
Carry out a one level search
|
public static final int scopeBase
public static final int scopeOne
public static final int scopeSub
public Directory()
throws Exception
Exceptionpublic abstract void reInit()
throws Exception
Exceptionpublic boolean search(String base, String filter) throws Exception
Exceptionpublic boolean searchBase(String base, String filter) throws Exception
Exceptionpublic boolean searchOne(String base, String filter) throws Exception
Exceptionpublic abstract boolean search(String base, String filter, int scope) throws Exception
Exceptionpublic DirRecord newRecord(String entryDn) throws NamingException
NamingExceptionpublic abstract void replace(String dn, String attrName, Object val) throws Exception
Exceptionpublic abstract void replace(String dn, String attrName, Object[] val) throws Exception
Exceptionpublic abstract void replace(String dn, String attrName, Object oldval, Object newval) throws Exception
Exceptionpublic abstract void modify(String dn, ModificationItem[] mods) throws Exception
Exceptionpublic abstract void close()
Copyright © 2015 Bedework. All rights reserved.