Class DateArrayMapper
java.lang.Object
com.netscape.certsrv.dbs.DBAttrMapper
com.netscape.cmscore.dbs.DateArrayMapper
A class represents ann attribute mapper that maps
a Java Date array object into LDAP attribute,
and vice versa.
- Version:
- $Revision$, $Date$
- Author:
- thomask
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of support ldap attributes.voidmapLDAPAttributeSetToObject(netscape.ldap.LDAPAttributeSet attrs, String name, IDBObj parent) Maps LDAP attributes into object, and put the object into 'parent'.voidmapObjectToLDAPAttributeSet(IDBObj parent, String name, Object obj, netscape.ldap.LDAPAttributeSet attrs) Maps object to a set of attributes.mapSearchFilter(String name, String op, String value) Maps search filters into LDAP search filter.
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
DateArrayMapper
Constructs a date array mapper.
-
-
Method Details
-
getSupportedLDAPAttributeNames
Retrieves a list of support ldap attributes.- Specified by:
getSupportedLDAPAttributeNamesin classDBAttrMapper- Returns:
- a list of supported attribute names
-
mapObjectToLDAPAttributeSet
public void mapObjectToLDAPAttributeSet(IDBObj parent, String name, Object obj, netscape.ldap.LDAPAttributeSet attrs) throws EBaseException Maps object to a set of attributes.- Specified by:
mapObjectToLDAPAttributeSetin classDBAttrMapper- Parameters:
parent- parent object where the object comes fromname- name of db attributeobj- object itselfattrs- LDAP attribute set where the result should be stored- Throws:
EBaseException- failed to map object
-
mapLDAPAttributeSetToObject
public void mapLDAPAttributeSetToObject(netscape.ldap.LDAPAttributeSet attrs, String name, IDBObj parent) throws EBaseException Maps LDAP attributes into object, and put the object into 'parent'.- Specified by:
mapLDAPAttributeSetToObjectin classDBAttrMapper- Parameters:
attrs- LDAP attribute setname- name of db attribute to be processedparent- parent object where the object should be added- Throws:
EBaseException- failed to map object
-
mapSearchFilter
Maps search filters into LDAP search filter.- Specified by:
mapSearchFilterin classDBAttrMapper- Parameters:
name- name of db attributeop- filte operation (i.e. "=", ">=")value- attribute value- Throws:
EBaseException- failed to map filter
-