Class DataCollectionTemplateConversionMap
java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.template.structure.DataCollectionTemplateConversionMap
Stores data collection template structure conversion information.
i.e. mapping between old node id and new node code
This class is serialized as a json string and stored in
supportModel field
of BODataCollectionTemplateVersionConversion- Since:
- 13.0
- GCApi:
- bo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the new node codeGet the number of error occurred during the structure conversion.Get the mapping between old node id and the error message (if present).Get the new template id.protected StringgetNodeDescription(DataCollectionNodeConversionResult conversionResult) Get the node description in current language if present, the node code otherwise.Get the node map containing the association between old node id and new node code.Get the old template id.Get old template root node id.Get the number of node present in structure.Get the number of waring occurred during the structure conversion.Get the mapping between old node id and the warning message (if present).Put the mapping between old node id and new node code.voidput(Long oldNodeId, DataCollectionNodeConversionResult conversionResult) Put the association between old node id and the node conversion result.voidsetErrorCount(Long errorCount) Set the number of error occurred during the structure conversion.voidsetErrorMessageMap(Map<Long, String> errorMessageMap) Set the mapping between old node id and the error message (if present).voidsetNewTemplateId(Long newTemplateId) Set the new template id.voidsetNodeMap(Map<Long, String> nodeMap) Set the node map containing the association between old node id and new node code.voidsetOldTemplateHeaderId(Long oldTemplateHeaderId) Set the old template id.voidsetOldTemplateRootNodeId(Long oldTemplateRootNodeId) Set the old template root node id.voidsetTotalNodeCount(Long totalNodeCount) Set the number of node present in structure.voidsetWarningCount(Long warningCount) Set the number of waring occurred during the structure conversion.voidsetWarningMessageMap(Map<Long, String> warningMessageMap) Set the mapping between old node id and the warning message (if present).
-
Constructor Details
-
DataCollectionTemplateConversionMap
public DataCollectionTemplateConversionMap()
-
-
Method Details
-
get
Get the new node code- Parameters:
key- old node id- Returns:
- the new node code
-
put
Put the mapping between old node id and new node code.- Parameters:
key- the old node idvalue- the new node code- Returns:
- the new node code
-
put
Put the association between old node id and the node conversion result. This method is also responsible for maintaining total, error and warning node count.- Parameters:
oldNodeId- the old node idconversionResult- the node conversion result
-
getNodeDescription
Get the node description in current language if present, the node code otherwise.- Parameters:
conversionResult- the node conversion result- Returns:
- the node description in current language if present, the node code otherwise
-
getOldTemplateHeaderId
Get the old template id.- Returns:
- the old template id
-
setOldTemplateHeaderId
Set the old template id.- Parameters:
oldTemplateHeaderId- the old template id
-
getOldTemplateRootNodeId
Get old template root node id.- Returns:
- the old template root node id
-
setOldTemplateRootNodeId
Set the old template root node id.- Parameters:
oldTemplateRootNodeId- the old template root node id
-
getNewTemplateId
Get the new template id.- Returns:
- the new template id
-
setNewTemplateId
Set the new template id.- Parameters:
newTemplateId- the new template id
-
getNodeMap
Get the node map containing the association between old node id and new node code.- Returns:
- the node map containing the association between old node id and new node code
-
setNodeMap
Set the node map containing the association between old node id and new node code.- Parameters:
nodeMap- the node map containing the association between old node id and new node code
-
getErrorCount
Get the number of error occurred during the structure conversion.- Returns:
- the number of error occurred during the structure conversion
-
setErrorCount
Set the number of error occurred during the structure conversion.- Parameters:
errorCount- the number of error occurred during the structure conversion
-
getWarningCount
Get the number of waring occurred during the structure conversion.- Returns:
- the number of waring occurred during the structure conversion.
-
setWarningCount
Set the number of waring occurred during the structure conversion.- Parameters:
warningCount- the number of waring occurred during the structure conversion
-
getTotalNodeCount
Get the number of node present in structure.- Returns:
- the number of node present in structure
-
setTotalNodeCount
Set the number of node present in structure.- Parameters:
totalNodeCount- the number of node present in structure
-
getWarningMessageMap
Get the mapping between old node id and the warning message (if present).- Returns:
- the mapping between old node id and the warning message (if present)
-
setWarningMessageMap
Set the mapping between old node id and the warning message (if present).- Parameters:
warningMessageMap- the mapping between old node id and the warning message (if present)
-
getErrorMessageMap
Get the mapping between old node id and the error message (if present).- Returns:
- the mapping between old node id and the error message (if present)
-
setErrorMessageMap
Set the mapping between old node id and the error message (if present).- Parameters:
errorMessageMap- the mapping between old node id and the error message (if present)
-