Class PlcEventHandlerAggregation

java.lang.Object
com.persequor.saga.modules.omroncontroller.sdk.PlcEventHandlerAggregation
All Implemented Interfaces:
IPlcEventHandler

public class PlcEventHandlerAggregation extends Object implements IPlcEventHandler
This handler will create an Aggregation event based on the data in the PlcEvent.

Example:

 {
   "when": "2023-12-24T13:33:37Z",
   "source": "urn:epc:id:sgln:0614113.00300.Cam01",
   "data": {
     "parentId": "urn:epc:id:sgtin:123123123.123",
     "children": [
       "urn:epc:id:sgtin:432432432.234",
       "urn:epc:id:sgtin:432432432.123",
       "urn:epc:id:sgtin:432432432.345"
     ]
   }
 }
 
  • Constructor Details

    • PlcEventHandlerAggregation

      @Inject public PlcEventHandlerAggregation(com.persequor.extension.acquire.IAcquireService acquireService)
  • Method Details

    • handle

      public PlcResponse handle(PlcEvent plcEvent)
      Specified by:
      handle in interface IPlcEventHandler
    • getName

      public com.persequor.extension.frontend.IString getName()
      Specified by:
      getName in interface IPlcEventHandler
    • getHash

      public static String getHash(String input)
      TODO[SAPP-93] We use the same mechanism in the file download links to hide the actual classes, centralize this somewhere.