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,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
Constructors Constructor Description GenerateAlertHandlerPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseService()voiddoService(AdaptrisMessage msg)java.lang.StringgetAlertRequiredKey()We will create this metadata key with a boolean (true/false) value.protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>getMissingCodes()java.lang.StringgetMissingData()The format of the missing data will be the CMAPI error-code, colon, code type, colon and the code itself.protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>getMissingMatches()protected voidinitService()voidprepare()voidsetAlertRequiredKey(java.lang.String alertRequiredKey)We will create this metadata key with a boolean (true/false) value.protected voidsetMissingCodes(java.util.Map<java.lang.String,java.util.List<java.lang.String>> missingCodes)voidsetMissingData(java.lang.String missingData)The format of the missing data will be the CMAPI error-code, colon, code type, colon and the code itself.protected voidsetMissingMatches(java.util.Map<java.lang.String,java.util.List<java.lang.String>> missingMatches)-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
-
-
-
Method Detail
-
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:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()
- Specified by:
closeServicein classServiceImp
-
getMissingData
public java.lang.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(java.lang.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 java.lang.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(java.lang.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.
-
getMissingCodes
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMissingCodes()
-
getMissingMatches
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMissingMatches()
-
setMissingCodes
protected void setMissingCodes(java.util.Map<java.lang.String,java.util.List<java.lang.String>> missingCodes)
-
setMissingMatches
protected void setMissingMatches(java.util.Map<java.lang.String,java.util.List<java.lang.String>> missingMatches)
-
-