ENTAXY-374 release 1.8.2
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.ui</groupId>
|
||||
<artifactId>entaxy-hawtio</artifactId>
|
||||
<version>1.8.1</version>
|
||||
<version>1.8.2</version>
|
||||
</parent>
|
||||
<groupId>ru.entaxy.esb.ui.hawtio</groupId>
|
||||
<artifactId>artemis-plugin-entaxy</artifactId>
|
||||
|
@ -163,7 +163,9 @@ var Artemis;
|
||||
tabs.push(new Nav.HawtioTab(TAB_CONFIG.artemisAddresses.title, TAB_CONFIG.artemisAddresses.route));
|
||||
tabs.push(new Nav.HawtioTab(TAB_CONFIG.artemisQueues.title, TAB_CONFIG.artemisQueues.route));
|
||||
tabs.push(new Nav.HawtioTab(TAB_CONFIG.attributes.title, TAB_CONFIG.attributes.route));
|
||||
tabs.push(new Nav.HawtioTab(TAB_CONFIG.operations.title, TAB_CONFIG.operations.route));
|
||||
if (workspace.getSelectedMBeanName()) {
|
||||
tabs.push(new Nav.HawtioTab(TAB_CONFIG.operations.title, TAB_CONFIG.operations.route));
|
||||
}
|
||||
tabs.push(new Nav.HawtioTab(TAB_CONFIG.chart.title, TAB_CONFIG.chart.route));
|
||||
if (shouldShowCreateAddressTab()) {
|
||||
tabs.push(new Nav.HawtioTab(TAB_CONFIG.createAddress.title, TAB_CONFIG.createAddress.route));
|
||||
@ -222,11 +224,19 @@ var Artemis;
|
||||
function hasInvokeRights(jolokia, mbean, operation) {
|
||||
var response = jolokia.request({
|
||||
type: 'exec',
|
||||
mbean: 'hawtio:type=security,area=jmx,name=ArtemisJMXSecurity',
|
||||
mbean: 'artemis:type=security,area=jmx,name=ArtemisJMXSecurity',
|
||||
operation: 'canInvoke(java.lang.String, java.lang.String)',
|
||||
arguments: [mbean, operation] },
|
||||
Core.onSuccess(null));
|
||||
|
||||
if (response.error) {
|
||||
response = jolokia.request({
|
||||
type: 'exec',
|
||||
mbean: 'hawtio:type=security,area=jmx,name=ArtemisJMXSecurity',
|
||||
operation: 'canInvoke(java.lang.String, java.lang.String)',
|
||||
arguments: [mbean, operation]
|
||||
},
|
||||
Core.onSuccess(null));
|
||||
}
|
||||
Artemis.log.debug(operation + "=" + response.value);
|
||||
return response.value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user