Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1236

Store an AttributeEntry object in filter's node

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.3
    • 2.0.0-M13
    • None
    • None

    Description

      The Filter's nodes contain a String to describe the associated attribute. As the filters are parsed and normalized, it would be much better to store an AttributeEntry instead.

      The reason for this modification is that it will simplify such code :

      AttributeType at = session.getCoreSession().getDirectoryService()
      .getRegistries().getAttributeTypeRegistry().lookup( presenceNode.getAttribute() );
      if ( at.getOid().equals( SchemaConstants.OBJECT_CLASS_AT_OID ) )
      {

      which will become :

      if ( presenceNode.getAttribute().getOid().equals( SchemaConstants.OBJECT_CLASS_AT_OID ) )

      Attachments

        Activity

          People

            elecharny Emmanuel Lécharny
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: