Class DataCollectionPdfFileConverter
java.lang.Object
overit.geocallapp.wfm.core.bl.datacollection.converter.template.structure.pdffile.DataCollectionPdfFileConverter
This class is responsible for the PDF Template conversion. Migration
steps are: - download the old template reading file name and path from
RDTVFILENAME and RDTVFILEPATH - update template fields names with node’s code
- upload the modified template via docshare and save the UUID in
ADTSPDFFORMDOCSHAREUUID
Error Code:
Codes.C270_1582: Template file not found!
- Since:
- 13.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(overit.geocallapp.wfm.survey.template.TemplateTree oldTemplate, DataCollectionTemplate newTemplate, DataCollectionTemplateConversionMap conversionMap) Convert the Old PDF Template into a new one changing all the Form Field code.
-
Constructor Details
-
DataCollectionPdfFileConverter
public DataCollectionPdfFileConverter()
-
-
Method Details
-
convert
public String convert(overit.geocallapp.wfm.survey.template.TemplateTree oldTemplate, DataCollectionTemplate newTemplate, DataCollectionTemplateConversionMap conversionMap) throws DAValidateException, DAException Convert the Old PDF Template into a new one changing all the Form Field code. The PDF Form Field code will be renamed with the DataCollectionNode code.- Parameters:
oldTemplate- the old templatenewTemplate- the new templateconversionMap- the conversion map- Returns:
- new pdf template file UUID
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-