activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbert...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-628 Adding back old constructor for API compatibility
Date Mon, 25 Jul 2016 19:02:18 GMT
ARTEMIS-628 Adding back old constructor for API compatibility


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/1c56aa9b
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/1c56aa9b
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/1c56aa9b

Branch: refs/heads/master
Commit: 1c56aa9bef32558bf97be43dbe0ff2914e0f878e
Parents: bd27225
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Mon Jul 25 14:26:10 2016 -0400
Committer: jbertram <jbertram@apache.org>
Committed: Mon Jul 25 14:01:30 2016 -0500

----------------------------------------------------------------------
 .../activemq/artemis/core/security/Role.java    | 25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/1c56aa9b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/security/Role.java
----------------------------------------------------------------------
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 983b392..732da6d 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,


Mime
View raw message