Class GenerateAlertHandlerPayload

java.lang.Object
com.adaptris.core.ServiceImp
com.proagrica.bip.services.GenerateAlertHandlerPayload
All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConfigComment, MessageEventGenerator, Service, StateManagedComponent

@ComponentProfile(summary="Will create the BIP alert handler JSON payload for missing codes/matches", tag="service,json,bip,code-matcher") public class GenerateAlertHandlerPayload extends ServiceImp
  • Constructor Details

    • GenerateAlertHandlerPayload

      public GenerateAlertHandlerPayload()
  • Method Details

    • doService

      public void doService(AdaptrisMessage msg) throws ServiceException
      Throws:
      ServiceException
    • prepare

      public void prepare() throws CoreException
      Throws:
      CoreException
    • initService

      protected void initService() throws CoreException
      Specified by:
      initService in class ServiceImp
      Throws:
      CoreException
    • closeService

      protected void closeService()
      Specified by:
      closeService in class ServiceImp
    • getMissingData

      public String getMissingData()
      The format of the missing data will be the CMAPI error-code, colon, code type, colon and the code itself. If you have multiple missing codes separate them with a comma. e.g. 604:Products:MyCode,704:UOM:MyOtherCode
    • setMissingData

      public void setMissingData(String missingData)
      The format of the missing data will be the CMAPI error-code, colon, code type, colon and the code itself. If you have multiple missing codes separate them with a comma. e.g. 604:Products:MyCode,704:UOM:MyOtherCode
    • getAlertRequiredKey

      public String getAlertRequiredKey()
      We will create this metadata key with a boolean (true/false) value. True if we have at least one missing match/code, false if no missing matches/codes.
    • setAlertRequiredKey

      public void setAlertRequiredKey(String alertRequiredKey)
      We will create this metadata key with a boolean (true/false) value. True if we have at least one missing match/code, false if no missing matches/codes.