ARTEMIS-4498 Adding internal column on address view
This commit is contained in:
parent
51f39fc34d
commit
7702b39374
|
@ -75,6 +75,7 @@ var Artemis;
|
|||
columns: [
|
||||
{name: "ID", visible: true},
|
||||
{name: "Name", visible: true},
|
||||
{name: "Internal", visible: false},
|
||||
{name: "Routing Types", visible: true},
|
||||
{name: "Queue Count", visible: true}
|
||||
]
|
||||
|
@ -103,6 +104,7 @@ var Artemis;
|
|||
fieldOptions: [
|
||||
{id: 'id', name: 'ID'},
|
||||
{id: 'name', name: 'Name'},
|
||||
{id: 'internal', name: 'Internal'},
|
||||
{id: 'routingTypes', name: 'Routing Types'},
|
||||
{id: 'queueCount', name: 'Queue Count'}
|
||||
],
|
||||
|
@ -151,6 +153,7 @@ var Artemis;
|
|||
ctrl.tableColumns = [
|
||||
{ header: 'ID', itemField: 'id' },
|
||||
{ header: 'Name', itemField: 'name' },
|
||||
{ header: 'Internal', itemField: 'internal' },
|
||||
{ header: 'Routing Types', itemField: 'routingTypes' },
|
||||
{ header: 'Queue Count', itemField: 'queueCount' , htmlTemplate: 'addresses-anchor-column-template', colActionFn: (item) => selectQueues(item.idx) }
|
||||
];
|
||||
|
|
|
@ -24,7 +24,8 @@ public enum AddressField {
|
|||
NAME("name"),
|
||||
ROUTING_TYPES("routingTypes"),
|
||||
PRODUCER_ID("producerId"),
|
||||
QUEUE_COUNT("queueCount");
|
||||
QUEUE_COUNT("queueCount"),
|
||||
INTERNAL("internal");
|
||||
|
||||
private static final Map<String, AddressField> lookup = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ public class AddressView extends ActiveMQAbstractView<AddressInfo> {
|
|||
JsonObjectBuilder obj = JsonLoader.createObjectBuilder()
|
||||
.add(AddressField.ID.getName(), toString(address.getId()))
|
||||
.add(AddressField.NAME.getName(), toString(address.getName()))
|
||||
.add(AddressField.INTERNAL.getName(), toString(address.isInternal()))
|
||||
.add(AddressField.ROUTING_TYPES.getName(), toString(address.getRoutingTypes()));
|
||||
|
||||
try {
|
||||
|
@ -72,6 +73,8 @@ public class AddressView extends ActiveMQAbstractView<AddressInfo> {
|
|||
return address.getId();
|
||||
case NAME:
|
||||
return address.getName();
|
||||
case INTERNAL:
|
||||
return address.isInternal();
|
||||
case ROUTING_TYPES:
|
||||
return address.getRoutingTypes();
|
||||
case QUEUE_COUNT:
|
||||
|
|
Loading…
Reference in New Issue