|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.BTreePartition
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition
com.ca.jcs.standalone.CustomJdbmPartition
public class CustomJdbmPartition
A custom implementation of JdbmPartition that adds support for:
Note: The reason OID conversion is performed is that JdbmPartition requires DNs in the non-human
friendly OID (Object IDentifier) based representation. The same functionality can also be
achieved by proxying a partition in InverseReplaceOIDsProxyHandler.
| Field Summary | |
|---|---|
protected Set<CustomJdbmPartitionObserver> |
observers
Set of observers for partition changes |
| Fields inherited from class org.apache.directory.server.core.partition.impl.btree.BTreePartition |
|---|
btpConfig, oidRegistry |
| Fields inherited from interface org.apache.directory.server.core.partition.Partition |
|---|
ALIAS_ATTRIBUTE, ALIAS_OBJECT |
| Constructor Summary | |
|---|---|
CustomJdbmPartition(AttributeTypeRegistry attributeTypeRegistry)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(LdapDN dn,
Attributes entry)
|
void |
addObserver(CustomJdbmPartitionObserver observer)
Add an observer to get notified of partition changes. |
protected void |
checkValidDn(LdapDN dn)
Method to check that a DN being modified is not restricted. |
protected LdapDN |
convertToFriendly(LdapDN ldapDN)
Method to convert all OIDs in a DN to friendly names. |
protected LdapDN |
convertToOids(LdapDN ldapDN)
Method to convert all friendly names in a DN to OIDs. |
void |
delete(LdapDN dn)
|
LdapDN |
getRestrictDn()
|
Attributes |
lookup(LdapDN dn)
|
Attributes |
lookup(LdapDN dn,
String[] attrIds)
|
void |
modify(LdapDN dn,
int modOp,
Attributes mods)
|
void |
modify(LdapDN dn,
ModificationItem[] mods)
|
void |
modifyRn(LdapDN dn,
String newRdn,
boolean deleteOldRdn)
|
void |
move(LdapDN oldChildDn,
LdapDN newParentDn)
|
void |
move(LdapDN oldChildDn,
LdapDN newParentDn,
String newRdn,
boolean deleteOldRdn)
|
NamingEnumeration |
search(LdapDN base,
Map env,
ExprNode filter,
SearchControls searchCtls)
|
void |
setRestrictDn(LdapDN restrictDn)
|
| Methods inherited from class org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition |
|---|
addIndexOn, bind, count, delete, destroy, getAliasIndex, getChildCount, getEntryDn, getEntryId, getEntryUpdn, getEntryUpdn, getExistanceIndex, getHierarchyIndex, getIndices, getNdnIndex, getOneAliasIndex, getParentId, getParentId, getProperty, getSubAliasIndex, getSuffix, getSuffixEntry, getSystemIndex, getSystemIndices, getUpdnIndex, getUpSuffix, getUserIndex, getUserIndices, hasSystemIndexOn, hasUserIndexOn, init, isInitialized, list, lookup, setAliasIndexOn, setExistanceIndexOn, setHierarchyIndexOn, setNdnIndexOn, setOneAliasIndexOn, setProperty, setSubAliasIndexOn, setUpdnIndexOn, sync, unbind |
| Methods inherited from class org.apache.directory.server.core.partition.impl.btree.BTreePartition |
|---|
getSearchEngine, hasEntry, inspect, isSuffix, list, setRegistries |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Set<CustomJdbmPartitionObserver> observers
| Constructor Detail |
|---|
public CustomJdbmPartition(AttributeTypeRegistry attributeTypeRegistry)
attributeTypeRegistry - Attribute type registry used for OID conversions| Method Detail |
|---|
protected void checkValidDn(LdapDN dn)
throws NamingException
dn - the DN to check.
NamingException
protected LdapDN convertToOids(LdapDN ldapDN)
throws NamingException
ldapDN - the DN to convert
NamingException
protected LdapDN convertToFriendly(LdapDN ldapDN)
throws NamingException
ldapDN - the DN to convert
NamingException
public NamingEnumeration search(LdapDN base,
Map env,
ExprNode filter,
SearchControls searchCtls)
throws NamingException
search in interface Partitionsearch in class BTreePartitionNamingException
public Attributes lookup(LdapDN dn,
String[] attrIds)
throws NamingException
lookup in interface Partitionlookup in class BTreePartitionNamingException
public Attributes lookup(LdapDN dn)
throws NamingException
lookup in interface Partitionlookup in class BTreePartitionNamingException
public void add(LdapDN dn,
Attributes entry)
throws NamingException
add in interface Partitionadd in class JdbmPartitionNamingException
public void modify(LdapDN dn,
int modOp,
Attributes mods)
throws NamingException
modify in interface Partitionmodify in class JdbmPartitionNamingException
public void modify(LdapDN dn,
ModificationItem[] mods)
throws NamingException
modify in interface Partitionmodify in class JdbmPartitionNamingException
public void modifyRn(LdapDN dn,
String newRdn,
boolean deleteOldRdn)
throws NamingException
modifyRn in interface PartitionmodifyRn in class JdbmPartitionNamingException
public void delete(LdapDN dn)
throws NamingException
delete in interface Partitiondelete in class BTreePartitionNamingException
public void move(LdapDN oldChildDn,
LdapDN newParentDn,
String newRdn,
boolean deleteOldRdn)
throws NamingException
move in interface Partitionmove in class JdbmPartitionNamingException
public void move(LdapDN oldChildDn,
LdapDN newParentDn)
throws NamingException
move in interface Partitionmove in class JdbmPartitionNamingExceptionpublic LdapDN getRestrictDn()
public void setRestrictDn(LdapDN restrictDn)
throws NamingException
restrictDn - the restrictDn to set
NamingExceptionpublic void addObserver(CustomJdbmPartitionObserver observer)
observer - the observer instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||