Package com.proagrica.bip.services
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
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
doService
(AdaptrisMessage msg) We will create this metadata key with a boolean (true/false) value.The format of the missing data will be the CMAPI error-code, colon, code type, colon and the code itself.protected void
void
prepare()
void
setAlertRequiredKey
(String alertRequiredKey) We will create this metadata key with a boolean (true/false) value.void
setMissingData
(String missingData) The format of the missing data will be the CMAPI error-code, colon, code type, colon and the code itself.Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getComments, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
Constructor Details
-
GenerateAlertHandlerPayload
public GenerateAlertHandlerPayload()
-
-
Method Details
-
doService
- Throws:
ServiceException
-
prepare
- Throws:
CoreException
-
initService
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeService
in classServiceImp
-
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
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
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
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.
-