Class ConfigurationMessageComparator
java.lang.Object
de.hybris.platform.sap.productconfig.facades.impl.ConfigurationMessageComparator
- All Implemented Interfaces:
Comparator<ProductConfigMessageData>
public class ConfigurationMessageComparator
extends Object
implements Comparator<ProductConfigMessageData>
Sorts messages for display on Ui. The order is:
- Message with ProductConfigMessageSeverity.WARNING (i.e. UI-Severity "Info" marked with question mark)
- Message with ProductConfigMessageSeverity.INFO/ERROR (i.e. UI-Severity "Config"/"Error" marked with i-Sign)
- Promo-Messages
- Opportunity-Messages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that no matches were found -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intcompareDiscountMessagesConsideringPromoType(ProductConfigMessageData m1, ProductConfigMessageData m2) protected intcompareStandardMessagesConsideringSeverity(ProductConfigMessageData m1, ProductConfigMessageData m2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
NO_MATCHING_CONDITION
public static final int NO_MATCHING_CONDITIONIndicates that no matches were found- See Also:
-
-
Constructor Details
-
ConfigurationMessageComparator
public ConfigurationMessageComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<ProductConfigMessageData>
-
compareDiscountMessagesConsideringPromoType
protected int compareDiscountMessagesConsideringPromoType(ProductConfigMessageData m1, ProductConfigMessageData m2) -
compareStandardMessagesConsideringSeverity
protected int compareStandardMessagesConsideringSeverity(ProductConfigMessageData m1, ProductConfigMessageData m2)
-