From e3ce4910af53462b22a5f98f6719935964ae43ee Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Mon, 13 Jul 2009 17:25:15 +0000
Subject: [PATCH] issue# 4113: Collation matching rules aren't displayed correctly while searching
---
opends/src/server/org/opends/server/api/AbstractMatchingRule.java | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/AbstractMatchingRule.java b/opends/src/server/org/opends/server/api/AbstractMatchingRule.java
index fc1d178..9223fbc 100644
--- a/opends/src/server/org/opends/server/api/AbstractMatchingRule.java
+++ b/opends/src/server/org/opends/server/api/AbstractMatchingRule.java
@@ -224,14 +224,32 @@
{
buffer.append("( ");
buffer.append(getOID());
- buffer.append(" NAME '");
- buffer.append(getName());
+ buffer.append(" NAME ");
+ Collection<String> names = getAllNames();
+ if(names.size()>1)
+ {
+ buffer.append("(");
+ for(String name: names)
+ {
+ buffer.append(" '");
+ buffer.append(name);
+ buffer.append('\'');
+ }
+ buffer.append(" )");
+ }
+ else
+ {
+ buffer.append('\'');
+ buffer.append(getName());
+ buffer.append('\'');
+ }
String description = getDescription();
if ((description != null) && (description.length() > 0))
{
- buffer.append("' DESC '");
+ buffer.append(" DESC '");
buffer.append(description);
+ buffer.append('\'');
}
if (isObsolete())
@@ -240,7 +258,7 @@
}
else
{
- buffer.append("' SYNTAX ");
+ buffer.append(" SYNTAX ");
}
buffer.append(getSyntaxOID());
--
Gitblit v1.10.0