Class RoleInfo
java.lang.Object
org.apache.activemq.artemis.api.core.management.RoleInfo
Helper class to create Java Objects from the JSON serialization returned by
AddressControl.getRolesAsJSON()
.-
Method Summary
Modifier and TypeMethodDescriptionstatic RoleInfo[]
Returns an array of RoleInfo corresponding to the JSON serialization returned byAddressControl.getRolesAsJSON()
.getName()
boolean
isBrowse()
Returns whether this role can browse queues bound to the address.boolean
Returns whether this role can consume messages from queues bound to the address.boolean
Returns whether this role can create addresses.boolean
Returns whether this role can create durable queues bound to the address.boolean
Returns whether this role can create non-durable queues bound to the address.boolean
Returns whether this role can delete addresses.boolean
Returns whether this role can delete durable queues bound to the address.boolean
Returns whether this role can delete non-durable queues bound to the address.boolean
isManage()
Returns whether this role can send management messages to the address.boolean
isSend()
Returns whether this role can send messages to the address.
-
Method Details
-
from
Returns an array of RoleInfo corresponding to the JSON serialization returned byAddressControl.getRolesAsJSON()
.- Returns:
- an array of RoleInfo corresponding to the JSON serialization returned by
AddressControl.getRolesAsJSON()
- Throws:
Exception
-
getName
-
isSend
public boolean isSend()Returns whether this role can send messages to the address.- Returns:
- whether this role can send messages to the address
-
isConsume
public boolean isConsume()Returns whether this role can consume messages from queues bound to the address.- Returns:
- whether this role can consume messages from queues bound to the address
-
isCreateDurableQueue
public boolean isCreateDurableQueue()Returns whether this role can create durable queues bound to the address.- Returns:
- whether this role can create durable queues bound to the address
-
isDeleteDurableQueue
public boolean isDeleteDurableQueue()Returns whether this role can delete durable queues bound to the address.- Returns:
- whether this role can delete durable queues bound to the address
-
isCreateNonDurableQueue
public boolean isCreateNonDurableQueue()Returns whether this role can create non-durable queues bound to the address.- Returns:
- whether this role can create non-durable queues bound to the address
-
isDeleteNonDurableQueue
public boolean isDeleteNonDurableQueue()Returns whether this role can delete non-durable queues bound to the address.- Returns:
- whether this role can delete non-durable queues bound to the address
-
isManage
public boolean isManage()Returns whether this role can send management messages to the address.- Returns:
- whether this role can send management messages to the address
-
isBrowse
public boolean isBrowse()Returns whether this role can browse queues bound to the address.- Returns:
- whether this role can browse queues bound to the address
-
isCreateAddress
public boolean isCreateAddress()Returns whether this role can create addresses.- Returns:
- whether this role can create addresses
-
isDeleteAddress
public boolean isDeleteAddress()Returns whether this role can delete addresses.- Returns:
- whether this role can delete addresses
-