directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-1236) Store an AttributeEntry object in filter's node
Date Mon, 12 Jul 2010 13:56:50 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887372#action_12887372
] 

Emmanuel Lecharny commented on DIRSERVER-1236:
----------------------------------------------

The AttributeType field has been added, but a Filter must be able to handle String attributes
only.

This is almost implemented, we just have to fix some issue in tests.

> Store an AttributeEntry object in filter's node
> -----------------------------------------------
>
>                 Key: DIRSERVER-1236
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1236
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>    Affects Versions: 1.5.3
>            Reporter: Emmanuel Lecharny
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-RC1
>
>
> 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
) )

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message