Package com.netscape.cmscore.request
Class RequestAttrsMapper
- java.lang.Object
-
- com.netscape.cmscore.request.RequestAttrsMapper
-
- All Implemented Interfaces:
com.netscape.certsrv.dbs.IDBAttrMapper
public class RequestAttrsMapper extends java.lang.Object implements com.netscape.certsrv.dbs.IDBAttrMapper
Deprecated.A mapper between an request attr set and its LDAP attribute representation. The attr attribute is no longer used. This class is kept for historical and migration purposes.- Version:
- $Revision$ $Date$
- Author:
- thayes
-
-
Constructor Summary
Constructors Constructor Description RequestAttrsMapper()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Enumeration<java.lang.String>
getSupportedLDAPAttributeNames()
Deprecated.Retrieves a list of LDAP attributes that are used in the mapper.void
mapLDAPAttributeSetToObject(netscape.ldap.LDAPAttributeSet attrs, java.lang.String name, com.netscape.certsrv.dbs.IDBObj parent)
Deprecated.Implements IDBAttrMapper.mapLDAPAttributeSetToObjectvoid
mapObjectToLDAPAttributeSet(com.netscape.certsrv.dbs.IDBObj parent, java.lang.String name, java.lang.Object obj, netscape.ldap.LDAPAttributeSet attrs)
Deprecated.Maps object attribute into LDAP attributes.java.lang.String
mapSearchFilter(java.lang.String name, java.lang.String op, java.lang.String value)
Deprecated.Maps search filters into LDAP search filter.
-
-
-
Method Detail
-
getSupportedLDAPAttributeNames
public java.util.Enumeration<java.lang.String> getSupportedLDAPAttributeNames()
Deprecated.Description copied from interface:com.netscape.certsrv.dbs.IDBAttrMapper
Retrieves a list of LDAP attributes that are used in the mapper. By having this, the framework can provide search on selective attributes.- Specified by:
getSupportedLDAPAttributeNames
in interfacecom.netscape.certsrv.dbs.IDBAttrMapper
- Returns:
- a list of supported attribute names
-
mapObjectToLDAPAttributeSet
public void mapObjectToLDAPAttributeSet(com.netscape.certsrv.dbs.IDBObj parent, java.lang.String name, java.lang.Object obj, netscape.ldap.LDAPAttributeSet attrs) throws EBaseException
Deprecated.Description copied from interface:com.netscape.certsrv.dbs.IDBAttrMapper
Maps object attribute into LDAP attributes.- Specified by:
mapObjectToLDAPAttributeSet
in interfacecom.netscape.certsrv.dbs.IDBAttrMapper
- 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, java.lang.String name, com.netscape.certsrv.dbs.IDBObj parent) throws EBaseException
Deprecated.Implements IDBAttrMapper.mapLDAPAttributeSetToObject- Specified by:
mapLDAPAttributeSetToObject
in interfacecom.netscape.certsrv.dbs.IDBAttrMapper
- 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- See Also:
IDBAttrMapper.mapLDAPAttributeSetToObject(netscape.ldap.LDAPAttributeSet, java.lang.String, com.netscape.certsrv.dbs.IDBObj)
-
mapSearchFilter
public java.lang.String mapSearchFilter(java.lang.String name, java.lang.String op, java.lang.String value)
Deprecated.Description copied from interface:com.netscape.certsrv.dbs.IDBAttrMapper
Maps search filters into LDAP search filter.- Specified by:
mapSearchFilter
in interfacecom.netscape.certsrv.dbs.IDBAttrMapper
- Parameters:
name
- name of db attributeop
- filte operation (i.e. "=", ">=")value
- attribute value
-
-