CodeListImportJob insteadpublic class CodeListImportProcess extends AbstractProcess<Void,CodeListImportStatus>
status| Constructor and Description |
|---|
CodeListImportProcess(CodeListManager codeListManager,
CodeList codeList,
String langCode,
File file,
boolean overwriteData)
Deprecated.
|
CodeListImportProcess(CodeListManager codeListManager,
CodeList codeList,
String langCode,
File file,
CSVFileOptions csvFileOptions,
boolean overwriteData)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDifferentLabelError(CodeListLine line,
int levelIdx,
String lang)
Deprecated.
|
protected void |
addDuplicateCodeError(CodeListLine line,
int levelIdx)
Deprecated.
|
protected void |
addEmptyCodeColumnError(CodeListLine line,
int levelIdx)
Deprecated.
|
protected void |
addLevelsToCodeList()
Deprecated.
|
protected void |
addMissingDefaultLanguageLabelError(CodeListLine line,
int levelIdx)
Deprecated.
|
protected void |
fillItem(CodeListItem item,
String code,
List<LanguageSpecificText> labelItems,
List<LanguageSpecificText> descriptionItems)
Deprecated.
|
protected CodeListItem |
getChildItem(CodeListItem parentItem,
String code)
Deprecated.
|
protected CodeListItem |
getCodeListItemInDescendants(String code)
Deprecated.
|
protected boolean |
hasDifferentLabel(String code,
LanguageSpecificText item,
CodeListItem parentItem)
Deprecated.
|
void |
init()
Deprecated.
|
protected void |
initStatus()
Deprecated.
|
protected boolean |
isDuplicate(String code,
CodeListItem parentItem)
Deprecated.
Returns when:
not is leaf but has different label than existing node with same code
or is leaf and:
- LOCAL scope and exist item with same code at the same level
- SCHEME scope and exist item with same code in some level
|
protected void |
parseCSVLines()
Deprecated.
|
protected void |
processFile()
Deprecated.
|
protected CodeListItem |
processLevel(CodeListItem parent,
CodeListLine line,
int levelIdx,
boolean lastLevel)
Deprecated.
|
protected void |
saveData()
Deprecated.
|
void |
startProcessing()
Deprecated.
|
protected void |
validateParameters()
Deprecated.
|
call, cancel, getStatuspublic CodeListImportProcess(CodeListManager codeListManager, CodeList codeList, String langCode, File file, boolean overwriteData)
public CodeListImportProcess(CodeListManager codeListManager, CodeList codeList, String langCode, File file, CSVFileOptions csvFileOptions, boolean overwriteData)
public void init()
init in class AbstractProcess<Void,CodeListImportStatus>protected void validateParameters()
protected void initStatus()
initStatus in class AbstractProcess<Void,CodeListImportStatus>public void startProcessing()
throws Exception
startProcessing in interface Process<Void>startProcessing in class AbstractProcess<Void,CodeListImportStatus>Exceptionprotected void processFile()
throws IOException
IOExceptionprotected void saveData()
protected void parseCSVLines()
protected CodeListItem processLevel(CodeListItem parent, CodeListLine line, int levelIdx, boolean lastLevel)
protected boolean isDuplicate(String code, CodeListItem parentItem)
code - parentItem - lastLevel - protected boolean hasDifferentLabel(String code, LanguageSpecificText item, CodeListItem parentItem)
protected CodeListItem getChildItem(CodeListItem parentItem, String code)
protected void addEmptyCodeColumnError(CodeListLine line, int levelIdx)
protected void addDuplicateCodeError(CodeListLine line, int levelIdx)
protected void addDifferentLabelError(CodeListLine line, int levelIdx, String lang)
protected void addMissingDefaultLanguageLabelError(CodeListLine line, int levelIdx)
protected CodeListItem getCodeListItemInDescendants(String code)
protected void fillItem(CodeListItem item, String code, List<LanguageSpecificText> labelItems, List<LanguageSpecificText> descriptionItems)
protected void addLevelsToCodeList()
Copyright © 2020 Open Foris. All rights reserved.