Class RequestAttrsMapper


  • public class RequestAttrsMapper
    extends DBAttrMapper
    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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger
      Deprecated.
       
      protected static java.util.Vector<java.lang.String> mAttrs
      Deprecated.
       
    • 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, IDBObj parent)
      Deprecated.
      Implements IDBAttrMapper.mapLDAPAttributeSetToObject
      void mapObjectToLDAPAttributeSet​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
        Deprecated.
      • mAttrs

        protected static final java.util.Vector<java.lang.String> mAttrs
        Deprecated.
    • Constructor Detail

      • RequestAttrsMapper

        public RequestAttrsMapper()
        Deprecated.
    • Method Detail

      • getSupportedLDAPAttributeNames

        public java.util.Enumeration<java.lang.String> getSupportedLDAPAttributeNames()
        Deprecated.
        Description copied from class: DBAttrMapper
        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 class DBAttrMapper
        Returns:
        a list of supported attribute names
      • mapObjectToLDAPAttributeSet

        public void mapObjectToLDAPAttributeSet​(IDBObj parent,
                                                java.lang.String name,
                                                java.lang.Object obj,
                                                netscape.ldap.LDAPAttributeSet attrs)
                                         throws EBaseException
        Deprecated.
        Description copied from class: DBAttrMapper
        Maps object attribute into LDAP attributes.
        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
      • mapSearchFilter

        public java.lang.String mapSearchFilter​(java.lang.String name,
                                                java.lang.String op,
                                                java.lang.String value)
        Deprecated.
        Description copied from class: DBAttrMapper
        Maps search filters into LDAP search filter.
        Specified by:
        mapSearchFilter in class DBAttrMapper
        Parameters:
        name - name of db attribute
        op - filte operation (i.e. "=", ">=")
        value - attribute value