ARTEMIS-2540 Display LargeMessage column in message browser of admin UI

This commit is contained in:
sebthom 2019-11-05 22:04:39 +01:00 committed by Clebert Suconic
parent 2e31e04bb4
commit 318c26cde7
3 changed files with 10 additions and 1 deletions

View File

@ -63,6 +63,11 @@ var ARTEMIS = (function(ARTEMIS) {
field: 'redelivered', field: 'redelivered',
displayName: 'Redelivered', displayName: 'Redelivered',
width: '10%' width: '10%'
},
{
field: 'largeMessage',
displayName: 'Large',
width: '10%'
} }
]; ];
var attributes = defaultAttributes; var attributes = defaultAttributes;

View File

@ -29,6 +29,7 @@ public interface CompositeDataConstants {
String TIMESTAMP = "timestamp"; String TIMESTAMP = "timestamp";
String BODY = "BodyPreview"; String BODY = "BodyPreview";
String TEXT_BODY = "text"; String TEXT_BODY = "text";
String LARGE_MESSAGE = "largeMessage";
String PROPERTIES = "PropertiesText"; String PROPERTIES = "PropertiesText";
String ADDRESS_DESCRIPTION = "The Address"; String ADDRESS_DESCRIPTION = "The Address";
@ -41,6 +42,7 @@ public interface CompositeDataConstants {
String REDELIVERED_DESCRIPTION = "Has the message been redelivered"; String REDELIVERED_DESCRIPTION = "Has the message been redelivered";
String TIMESTAMP_DESCRIPTION = "The message timestamp"; String TIMESTAMP_DESCRIPTION = "The message timestamp";
String BODY_DESCRIPTION = "The message body"; String BODY_DESCRIPTION = "The message body";
String LARGE_MESSAGE_DESCRIPTION = "Is the message treated as a large message";
String PROPERTIES_DESCRIPTION = "The properties text"; String PROPERTIES_DESCRIPTION = "The properties text";
// User properties // User properties

View File

@ -108,6 +108,7 @@ public final class OpenTypeSupport {
addItem(CompositeDataConstants.PRIORITY, CompositeDataConstants.PRIORITY_DESCRIPTION, SimpleType.BYTE); addItem(CompositeDataConstants.PRIORITY, CompositeDataConstants.PRIORITY_DESCRIPTION, SimpleType.BYTE);
addItem(CompositeDataConstants.REDELIVERED, CompositeDataConstants.REDELIVERED_DESCRIPTION, SimpleType.BOOLEAN); addItem(CompositeDataConstants.REDELIVERED, CompositeDataConstants.REDELIVERED_DESCRIPTION, SimpleType.BOOLEAN);
addItem(CompositeDataConstants.TIMESTAMP, CompositeDataConstants.TIMESTAMP_DESCRIPTION, SimpleType.STRING); addItem(CompositeDataConstants.TIMESTAMP, CompositeDataConstants.TIMESTAMP_DESCRIPTION, SimpleType.STRING);
addItem(CompositeDataConstants.LARGE_MESSAGE, CompositeDataConstants.LARGE_MESSAGE_DESCRIPTION, SimpleType.BOOLEAN);
addItem(CompositeDataConstants.PROPERTIES, CompositeDataConstants.PROPERTIES_DESCRIPTION, SimpleType.STRING); addItem(CompositeDataConstants.PROPERTIES, CompositeDataConstants.PROPERTIES_DESCRIPTION, SimpleType.STRING);
@ -148,6 +149,7 @@ public final class OpenTypeSupport {
rc.put(CompositeDataConstants.TIMESTAMP, dateFormat.format(new Date(m.getTimestamp()))); rc.put(CompositeDataConstants.TIMESTAMP, dateFormat.format(new Date(m.getTimestamp())));
rc.put(CompositeDataConstants.PRIORITY, m.getPriority()); rc.put(CompositeDataConstants.PRIORITY, m.getPriority());
rc.put(CompositeDataConstants.REDELIVERED, ref.getDeliveryCount() > 1); rc.put(CompositeDataConstants.REDELIVERED, ref.getDeliveryCount() > 1);
rc.put(CompositeDataConstants.LARGE_MESSAGE, m.isLargeMessage());
Map<String, Object> propertyMap = m.toPropertyMap(); Map<String, Object> propertyMap = m.toPropertyMap();