From 369b773b44c479a87f71548b03ff264c65477d73 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 19 Apr 2007 09:48:46 +0000
Subject: [PATCH] Fix for issue 1442.

---
 opendj-sdk/opends/src/server/org/opends/server/admin/InstantiableRelationDefinition.java |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/admin/InstantiableRelationDefinition.java b/opendj-sdk/opends/src/server/org/opends/server/admin/InstantiableRelationDefinition.java
index 64c42c0..b5898bf 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/admin/InstantiableRelationDefinition.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/admin/InstantiableRelationDefinition.java
@@ -27,6 +27,8 @@
 
 package org.opends.server.admin;
 
+import java.util.Locale;
+
 
 
 /**
@@ -82,6 +84,37 @@
 
 
   /**
+   * Gets the user friendly plural name of this relation definition in
+   * the default locale.
+   *
+   * @return Returns the user friendly plural name of this relation
+   *         definition in the default locale.
+   */
+  public final String getUserFriendlyPluralName() {
+    return getUserFriendlyPluralName(Locale.getDefault());
+  }
+
+
+
+  /**
+   * Gets the user friendly plural name of this relation definition in
+   * the specified locale.
+   *
+   * @param locale
+   *          The locale.
+   * @return Returns the user friendly plural name of this relation
+   *         definition in the specified locale.
+   */
+  public final String getUserFriendlyPluralName(Locale locale) {
+    String property = "relation." + getName()
+        + ".user-friendly-plural-name";
+    return ManagedObjectDefinitionI18NResource.getInstance()
+        .getMessage(getParentDefinition(), property, locale);
+  }
+
+
+
+  /**
    * {@inheritDoc}
    */
   @Override

--
Gitblit v1.10.0