From 8228fb82f3ad657adf7832eb05c624bf48c4a30e Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 19 Sep 2007 00:31:06 +0000
Subject: [PATCH] More changes relating to issue 1449: aggregation support.
---
opends/src/server/org/opends/server/admin/client/MissingMandatoryPropertiesException.java | 46 ++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/client/MissingMandatoryPropertiesException.java b/opends/src/server/org/opends/server/admin/client/MissingMandatoryPropertiesException.java
index 288630e..684b32c 100644
--- a/opends/src/server/org/opends/server/admin/client/MissingMandatoryPropertiesException.java
+++ b/opends/src/server/org/opends/server/admin/client/MissingMandatoryPropertiesException.java
@@ -86,21 +86,37 @@
// The causes of this exception.
private final Collection<PropertyIsMandatoryException> causes;
+ // Indicates whether the exception occurred during managed object
+ // creation.
+ private final boolean isCreate;
+
+ // The user friendly name of the component that caused this
+ // exception.
+ private final Message ufn;
+
/**
* Creates a new missing mandatory properties exception with the
* provided causes.
*
+ * @param ufn
+ * The user friendly name of the component that caused this
+ * exception.
* @param causes
* The causes of this exception (must be non-<code>null</code>
* and non-empty).
+ * @param isCreate
+ * Indicates whether the exception occurred during managed
+ * object creation.
*/
- public MissingMandatoryPropertiesException(
- Collection<PropertyIsMandatoryException> causes) {
+ public MissingMandatoryPropertiesException(Message ufn,
+ Collection<PropertyIsMandatoryException> causes, boolean isCreate) {
super(createMessage(causes));
this.causes = new ArrayList<PropertyIsMandatoryException>(causes);
+ this.ufn = ufn;
+ this.isCreate = isCreate;
}
@@ -128,4 +144,30 @@
return Collections.unmodifiableCollection(causes);
}
+
+
+ /**
+ * Gets the user friendly name of the component that caused this
+ * exception.
+ *
+ * @return Returns the user friendly name of the component that
+ * caused this exception.
+ */
+ public Message getUserFriendlyName() {
+ return ufn;
+ }
+
+
+
+ /**
+ * Indicates whether or not this exception was thrown during managed
+ * object creation or during modification.
+ *
+ * @return Returns <code>true</code> if this exception was thrown
+ * during managed object creation.
+ */
+ public boolean isCreate() {
+ return isCreate;
+ }
+
}
--
Gitblit v1.10.0