Package com.netscape.cmscore.dbs
Class MetaInfoMapper
- java.lang.Object
-
- com.netscape.cmscore.dbs.MetaInfoMapper
-
- All Implemented Interfaces:
com.netscape.certsrv.dbs.IDBAttrMapper
public class MetaInfoMapper extends java.lang.Object implements com.netscape.certsrv.dbs.IDBAttrMapper
A class represent mapper for metainfo attribute. Metainfo is in format of the following:metaInfoType:metaInfoValue metaInfoType:metaInfoValue metaInfoType:metaInfoValue metaInfoType:metaInfoValue
- Version:
- $Revision$, $Date$
- Author:
- thomask
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SEP
-
Constructor Summary
Constructors Constructor Description MetaInfoMapper(java.lang.String ldapName)
Constructs a metainfo object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Enumeration<java.lang.String>
getSupportedLDAPAttributeNames()
Returns a list of supported ldap attribute names.void
mapLDAPAttributeSetToObject(netscape.ldap.LDAPAttributeSet attrs, java.lang.String name, com.netscape.certsrv.dbs.IDBObj parent)
Maps LDAP attributes into object, and put the object into 'parent'.void
mapObjectToLDAPAttributeSet(com.netscape.certsrv.dbs.IDBObj parent, java.lang.String name, java.lang.Object obj, netscape.ldap.LDAPAttributeSet attrs)
Maps object into ldap attribute set.java.lang.String
mapSearchFilter(java.lang.String name, java.lang.String op, java.lang.String value)
Map search filters into LDAP search filter.
-
-
-
Field Detail
-
SEP
public static final java.lang.String SEP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSupportedLDAPAttributeNames
public java.util.Enumeration<java.lang.String> getSupportedLDAPAttributeNames()
Returns a list of supported ldap attribute names.- 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
Maps object into ldap attribute set.- 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
Maps LDAP attributes into object, and put the object into 'parent'.- 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
-
mapSearchFilter
public java.lang.String mapSearchFilter(java.lang.String name, java.lang.String op, java.lang.String value) throws EBaseException
Map search filters into LDAP search filter. Possible search filter: (&(metaInfo=reserver0:value0)(metaInfo=reserved1:value1))- Specified by:
mapSearchFilter
in interfacecom.netscape.certsrv.dbs.IDBAttrMapper
- Parameters:
name
- name of db attributeop
- filte operation (i.e. "=", ">=")value
- attribute value- Throws:
EBaseException
- failed to map filter
-
-