Class PluginHelper


  • public class PluginHelper
    extends java.lang.Object
    Basic helper methods for reclassification plugins
    • Method Detail

      • buildItemStatus

        public static ItemStatus buildItemStatus​(java.lang.String action,
                                                 StatusCode statusCode)
      • buildItemStatus

        public static <TEventDetails> ItemStatus buildItemStatus​(java.lang.String action,
                                                                 StatusCode statusCode,
                                                                 TEventDetails eventDetails)
      • buildItemStatusWithMessage

        public static ItemStatus buildItemStatusWithMessage​(java.lang.String action,
                                                            StatusCode statusCode,
                                                            java.lang.String message)
      • buildItemStatusWithMasterData

        public static <TEventDetails> ItemStatus buildItemStatusWithMasterData​(java.lang.String action,
                                                                               StatusCode statusCode,
                                                                               TEventDetails eventDetails,
                                                                               java.lang.Object masterDataValue)
      • buildItemStatusSubItems

        public static <T> ItemStatus buildItemStatusSubItems​(java.lang.String itemId,
                                                             java.util.stream.Stream<java.lang.String> subItemIds,
                                                             StatusCode statusCode,
                                                             T eventDetails)
      • eventDetails

        public static com.fasterxml.jackson.databind.node.ObjectNode eventDetails​(java.lang.Throwable e)
      • buildBulkItemStatus

        public static <TEventDetails> java.util.List<ItemStatus> buildBulkItemStatus​(WorkerParameters param,
                                                                                     java.lang.String action,
                                                                                     StatusCode statusCode,
                                                                                     TEventDetails eventDetails)