From 1c56aa9bef32558bf97be43dbe0ff2914e0f878e Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Mon, 25 Jul 2016 14:26:10 -0400 Subject: [PATCH] ARTEMIS-628 Adding back old constructor for API compatibility --- .../activemq/artemis/core/security/Role.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/security/Role.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/security/Role.java index 983b392ec1..732da6d55b 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/security/Role.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/security/Role.java @@ -43,6 +43,31 @@ public class Role implements Serializable { private final boolean browse; + /** + * @deprecated Use {@link #Role(String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)} + * @param name + * @param send + * @param consume + * @param createDurableQueue + * @param deleteDurableQueue + * @param createNonDurableQueue + * @param deleteNonDurableQueue + * @param manage + */ + @Deprecated + public Role(final String name, + final boolean send, + final boolean consume, + final boolean createDurableQueue, + final boolean deleteDurableQueue, + final boolean createNonDurableQueue, + final boolean deleteNonDurableQueue, + final boolean manage) { + // This constructor exists for version compatibility on the API. + // it will pass the consume as a browse + this(name, send, consume, createDurableQueue, deleteDurableQueue, createNonDurableQueue, deleteNonDurableQueue, manage, consume); + } + public Role(final String name, final boolean send, final boolean consume,