mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
04.27.2007 053b73bd193da7fd123054074dd7ddb751bd4aa6
refs
author matthew_swift <matthew_swift@localhost>
Tuesday, September 4, 2007 21:27 +0200
committer matthew_swift <matthew_swift@localhost>
Tuesday, September 4, 2007 21:27 +0200
commit053b73bd193da7fd123054074dd7ddb751bd4aa6
tree c8b83c0a5df59d67c8258499c7d9e2d64321d9e5 tree | zip | gz
parent 467eb84265486d9ffb207e72c8d523f947ff9534 view | diff
Move the DNBuilder implementation into the core ManagedObjectPath
class and add the following methods:

ManagedObjectPath.toDN()

Converts a ManagedObjectPath to a DN


ManagedObjectPath.matches(ManagedObjectPath)

Compares the two paths to see if they refer to the same location.
This differs from equals() which performs an exact comparisons
where types must match as well.

This will be required in order to support aggregations, where
property values are represented using just their common name,
but their LDAP encoding is the full DN.
4 files modified
342 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/admin/ManagedObjectPath.java 130 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/server/DNBuilder.java 116 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/ManagedObjectPathTest.java 84 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/DNBuilderTest.java 12 ●●●● diff | view | raw | blame | history