|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDBRegistry
A class represents a registry where all the schema (object classes and attribute) information is stored. Attribute mappers can be registered with this registry. Given the schema information stored, this registry has knowledge to convert a Java object into a LDAPAttributeSet or vice versa.
Method Summary | |
---|---|
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. |
Methods inherited from interface com.netscape.certsrv.base.ISubsystem |
---|
getConfigStore, getId, init, setId, shutdown, startup |
Method Detail |
---|
void 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 classes
EDBException
- failed to registerboolean isObjectClassRegistered(java.lang.String className)
className
- java class to create
void registerAttribute(java.lang.String ufName, IDBAttrMapper mapper) throws EDBException
ufName
- LDAP attribute namemapper
- mapper to invoke for the attribute
EDBException
- failed to registerboolean isAttributeRegistered(java.lang.String ufName)
ufName
- attribute name
void registerDynamicMapper(IDBDynAttrMapper mapper)
mapper
- The dynamic mapper to registerjava.lang.String getFilter(java.lang.String filter) throws EBaseException
::= '(' ')' ::= | | | ::= '&' ::= '|' ::= '!' ::= | - ::=
| | ::= ::= | | | ::= '=' ::= '~=' ::= '>=' ::= '<=' ::= '=*' ::= '=' ::= NULL | ::= '*' ::= NULL | '*' ::= NULL |
filter
- CMS-based filter
EBaseException
- failed to convert filterjava.lang.String getFilter(java.lang.String filter, IFilterConverter c) throws EBaseException
filter
- CMS-based filterc
- filter converter
EBaseException
- 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 set
EBaseException
- failed to map objectjava.lang.String[] getLDAPAttributes(java.lang.String[] attrs) throws EBaseException
attrs
- attributes
EBaseException
- failed to map attributesnetscape.ldap.LDAPAttributeSet createLDAPAttributeSet(IDBObj obj) throws EBaseException
obj
- database object
EBaseException
- failed to create setIDBObj createObject(netscape.ldap.LDAPAttributeSet attrs) throws EBaseException
attrs
- LDAP attribute set
EBaseException
- failed to create object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |