Class CodeListImportProcess
java.lang.Object
org.openforis.collect.manager.process.AbstractProcess<Void,CodeListImportStatus>
org.openforis.collect.manager.codelistimport.CodeListImportProcess
Deprecated.
- Author:
- S. Ricci
-
Field Summary
Fields inherited from class org.openforis.collect.manager.process.AbstractProcess
status -
Constructor Summary
ConstructorsConstructorDescriptionCodeListImportProcess(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. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDifferentLabelError(CodeListLine line, int levelIdx, String lang) Deprecated.protected voidaddDuplicateCodeError(CodeListLine line, int levelIdx) Deprecated.protected voidaddEmptyCodeColumnError(CodeListLine line, int levelIdx) Deprecated.protected voidDeprecated.protected voidaddMissingDefaultLanguageLabelError(CodeListLine line, int levelIdx) Deprecated.protected voidfillItem(CodeListItem item, String code, List<LanguageSpecificText> labelItems, List<LanguageSpecificText> descriptionItems) Deprecated.protected CodeListItemgetChildItem(CodeListItem parentItem, String code) Deprecated.protected CodeListItemDeprecated.protected booleanhasDifferentLabel(String code, LanguageSpecificText item, CodeListItem parentItem) Deprecated.voidinit()Deprecated.protected voidDeprecated.protected booleanisDuplicate(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 levelprotected voidDeprecated.protected voidDeprecated.protected CodeListItemprocessLevel(CodeListItem parent, CodeListLine line, int levelIdx, boolean lastLevel) Deprecated.protected voidsaveData()Deprecated.voidDeprecated.protected voidDeprecated.Methods inherited from class org.openforis.collect.manager.process.AbstractProcess
call, cancel, getStatus
-
Constructor Details
-
CodeListImportProcess
public CodeListImportProcess(CodeListManager codeListManager, CodeList codeList, String langCode, File file, boolean overwriteData) Deprecated. -
CodeListImportProcess
public CodeListImportProcess(CodeListManager codeListManager, CodeList codeList, String langCode, File file, CSVFileOptions csvFileOptions, boolean overwriteData) Deprecated.
-
-
Method Details
-
init
public void init()Deprecated.- Overrides:
initin classAbstractProcess<Void,CodeListImportStatus>
-
validateParameters
protected void validateParameters()Deprecated. -
initStatus
protected void initStatus()Deprecated.- Specified by:
initStatusin classAbstractProcess<Void,CodeListImportStatus>
-
startProcessing
Deprecated.- Specified by:
startProcessingin interfaceProcess<Void>- Overrides:
startProcessingin classAbstractProcess<Void,CodeListImportStatus> - Throws:
Exception
-
processFile
Deprecated.- Throws:
IOException
-
saveData
protected void saveData()Deprecated. -
parseCSVLines
protected void parseCSVLines()Deprecated. -
processLevel
protected CodeListItem processLevel(CodeListItem parent, CodeListLine line, int levelIdx, boolean lastLevel) Deprecated. -
isDuplicate
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- Parameters:
code-parentItem-lastLevel-- Returns:
-
hasDifferentLabel
protected boolean hasDifferentLabel(String code, LanguageSpecificText item, CodeListItem parentItem) Deprecated. -
getChildItem
Deprecated. -
addEmptyCodeColumnError
Deprecated. -
addDuplicateCodeError
Deprecated. -
addDifferentLabelError
Deprecated. -
addMissingDefaultLanguageLabelError
Deprecated. -
getCodeListItemInDescendants
Deprecated. -
fillItem
protected void fillItem(CodeListItem item, String code, List<LanguageSpecificText> labelItems, List<LanguageSpecificText> descriptionItems) Deprecated. -
addLevelsToCodeList
protected void addLevelsToCodeList()Deprecated.
-
CodeListImportJobinstead