summaryrefslogtreecommitdiff
path: root/java/management/common/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2009-07-13 08:54:27 +0000
committerRobert Gemmell <robbie@apache.org>2009-07-13 08:54:27 +0000
commitfefb3f7f0cf7516a04860c50b013852cd213b3f5 (patch)
tree5230d1a4f97e1e660258589dcbdcf26897e481f9 /java/management/common/src
parent3c1ecdb4f43077cc5546054dcad6d6dc0d7e11b8 (diff)
downloadqpid-python-fefb3f7f0cf7516a04860c50b013852cd213b3f5.tar.gz
QPID-1930: expose UserManagement composite/tabular type keys through the management interface for reference, and add warning about future alterations to ensure compatibility
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793499 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/common/src')
-rw-r--r--java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java1
-rw-r--r--java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/UserManagement.java13
2 files changed, 10 insertions, 4 deletions
diff --git a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java
index db370240b9..5d89b0d92d 100644
--- a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java
+++ b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/LoggingManagement.java
@@ -35,6 +35,7 @@ public interface LoggingManagement
int VERSION = 1;
//TabularType and contained CompositeType key/description information
+ //For compatibility reasons, DONT MODIFY the existing key values if expanding the set.
String[] COMPOSITE_ITEM_NAMES = {"LoggerName", "Level"};
String[] COMPOSITE_ITEM_DESCRIPTIONS = {"Name of the logger", "Level of the logger"};
String[] TABULAR_UNIQUE_INDEX = {COMPOSITE_ITEM_NAMES[0]};
diff --git a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/UserManagement.java b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/UserManagement.java
index b7495531c0..1ef9ef12cd 100644
--- a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/UserManagement.java
+++ b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/UserManagement.java
@@ -20,21 +20,26 @@
*/
package org.apache.qpid.management.common.mbeans;
-import org.apache.qpid.management.common.mbeans.annotations.MBeanAttribute;
import org.apache.qpid.management.common.mbeans.annotations.MBeanOperation;
import org.apache.qpid.management.common.mbeans.annotations.MBeanOperationParameter;
import javax.management.openmbean.TabularData;
-import javax.management.openmbean.CompositeData;
-import javax.management.JMException;
import javax.management.MBeanOperationInfo;
-import java.io.IOException;
public interface UserManagement
{
String TYPE = "UserManagement";
int VERSION = 2;
+
+ //TabularType and contained CompositeType key/description information.
+ //For compatibility reasons, DONT MODIFY the existing key values if expanding the set.
+ String[] COMPOSITE_ITEM_NAMES = {"Username", "read", "write", "admin"};
+ String[] COMPOSITE_ITEM_DESCRIPTIONS = {"Broker Login username",
+ "Management Console Read Permission",
+ "Management Console Write Permission",
+ "Management Console Admin Permission"};
+ String[] TABULAR_UNIQUE_INDEX = {COMPOSITE_ITEM_NAMES[0]};
//********** Operations *****************//
/**