public interface IDBRegistry extends ISubsystem
| Modifier and Type | Method and Description |
|---|---|
netscape.ldap.LDAPAttributeSet |
createLDAPAttributeSet(IDBObj obj)
Creates attribute set from object.
|
IDBObj |
createObject(netscape.ldap.LDAPAttributeSet attrs)
Creates object from attribute set.
|
java.lang.String |
getFilter(java.lang.String filter)
Creates LDAP-based search filters with help of
registered mappers.
|
java.lang.String |
getFilter(java.lang.String filter,
IFilterConverter c)
Creates LDAP-based search filters with help of
registered mappers.
|
java.lang.String[] |
getLDAPAttributes(java.lang.String[] attrs)
Retrieves a list of LDAP attributes that are associated
with the given attributes.
|
boolean |
isAttributeRegistered(java.lang.String ufName)
See if an attribute is registered.
|
boolean |
isObjectClassRegistered(java.lang.String className)
See if an object class is registered.
|
void |
mapObject(IDBObj parent,
java.lang.String name,
java.lang.Object obj,
netscape.ldap.LDAPAttributeSet attrs)
Maps object into LDAP attribute set.
|
void |
registerAttribute(java.lang.String ufName,
IDBAttrMapper mapper)
Registers attribute mapper.
|
void |
registerDynamicMapper(IDBDynAttrMapper mapper)
Registers a dynamic attribute mapper.
|
void |
registerObjectClass(java.lang.String className,
java.lang.String[] ldapNames)
Registers object class.
|
getConfigStore, getId, init, setId, shutdown, startupvoid registerObjectClass(java.lang.String className,
java.lang.String[] ldapNames)
throws EDBException
className - java class to create for the object classesldapNames - a list of LDAP object classesEDBException - failed to registerboolean isObjectClassRegistered(java.lang.String className)
className - java class to createvoid registerAttribute(java.lang.String ufName,
IDBAttrMapper mapper)
throws EDBException
ufName - LDAP attribute namemapper - mapper to invoke for the attributeEDBException - failed to registerboolean isAttributeRegistered(java.lang.String ufName)
ufName - attribute namevoid registerDynamicMapper(IDBDynAttrMapper mapper)
mapper - The dynamic mapper to registerjava.lang.String getFilter(java.lang.String filter)
throws EBaseException
::= '(' ')' ::= | | | ::= '&' ::= '|' ::= '!' ::= | - ::=
| | ::= ::= | | | ::= '=' ::= '~=' ::= '>=' ::= '<=' ::= '=*' ::= '=' ::= NULL | ::= '*' ::= NULL | '*' ::= NULL |
filter - CMS-based filterEBaseException - failed to convert filterjava.lang.String getFilter(java.lang.String filter,
IFilterConverter c)
throws EBaseException
filter - CMS-based filterc - filter converterEBaseException - failed to convert filtervoid mapObject(IDBObj parent, java.lang.String name, java.lang.Object obj, netscape.ldap.LDAPAttributeSet attrs) throws EBaseException
parent - object's parentname - name of the objectobj - object to be mappedattrs - LDAP attribute setEBaseException - failed to map objectjava.lang.String[] getLDAPAttributes(java.lang.String[] attrs)
throws EBaseException
attrs - attributesEBaseException - failed to map attributesnetscape.ldap.LDAPAttributeSet createLDAPAttributeSet(IDBObj obj) throws EBaseException
obj - database objectEBaseException - failed to create setIDBObj createObject(netscape.ldap.LDAPAttributeSet attrs) throws EBaseException
attrs - LDAP attribute setEBaseException - failed to create object