directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <>
Subject [jira] [Commented] (DIRAPI-191) How to get attributes list according to objectClass
Date Tue, 06 May 2014 06:23:18 GMT


Stefan Seelmann commented on DIRAPI-191:

The second approach Emmanuel described can be achieved using the LDAP API, here is just a
quick hint.

        LdapConnection connection = ...;
        SchemaManager schemaManager = connection.getSchemaManager();

        // Lookup up the attributes of the object class
        ObjectClass oc = schemaManager.getObjectClassRegistry().lookup( "inetOrgPerson" );

        // TODO: recursively loop over all superior object classes and lookup their attributes
        List<ObjectClass> superiors = oc.getSuperiors();

> How to get attributes list according to objectClass
> ---------------------------------------------------
>                 Key: DIRAPI-191
>                 URL:
>             Project: Directory Client API
>          Issue Type: Question
>    Affects Versions: 1.0.0-M21
>            Reporter: Robert Hou
> I want to get attributes list according to specified objectclass, how to achieve this
purpose using Apahce Directory API? Could anyone share sample code here?

This message was sent by Atlassian JIRA

View raw message