Class MetaInfoMapper

java.lang.Object
com.netscape.certsrv.dbs.DBAttrMapper
com.netscape.cmscore.dbs.MetaInfoMapper

public class MetaInfoMapper extends DBAttrMapper
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 Details

  • Constructor Details

    • MetaInfoMapper

      public MetaInfoMapper(String ldapName)
      Constructs a metainfo object.
  • Method Details

    • getSupportedLDAPAttributeNames

      public Enumeration<String> getSupportedLDAPAttributeNames()
      Returns a list of supported ldap attribute names.
      Specified by:
      getSupportedLDAPAttributeNames in class DBAttrMapper
      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 into ldap attribute set.
      Specified by:
      mapObjectToLDAPAttributeSet in class DBAttrMapper
      Parameters:
      parent - parent object where the object comes from
      name - name of db attribute
      obj - object itself
      attrs - 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:
      mapLDAPAttributeSetToObject in class DBAttrMapper
      Parameters:
      attrs - LDAP attribute set
      name - name of db attribute to be processed
      parent - parent object where the object should be added
      Throws:
      EBaseException - failed to map object
    • mapSearchFilter

      public String mapSearchFilter(String name, String op, String value) throws EBaseException
      Map search filters into LDAP search filter. Possible search filter:
      Specified by:
      mapSearchFilter in class DBAttrMapper
      Parameters:
      name - name of db attribute
      op - filte operation (i.e. "=", ">=")
      value - attribute value
      Throws:
      EBaseException - failed to map filter