Description:
|
Currently the LDAP store supports mapping the hierarchy for a specific type as follows:
{code} .mapping(Group.class) .objectClasses("group").attribute("name", "cn", true) .readOnlyAttribute("createdDate", "whenCreated") .parentMembershipAttributeName("member") // hierarchy configuration, using the member attribute to hold a reference to child entries {code}
Given that some LDAP trees have deep hierarchies, we need a configuration that allows to specify the search depth when returning the type and its parents:
{code} .mapping(Group.class) .objectClasses("group").attribute("name", "cn", true) .readOnlyAttribute("createdDate", "whenCreated") .parentMembershipAttributeName("member") // hierarchy configuration, using the member attribute to hold a reference to child entries .hierarchySearchDepth(4) // only for levels will be retrieved. {code}
We can make this option defaults to 3.
|