Class CodeListImportTask

    • Constructor Detail

      • CodeListImportTask

        public CodeListImportTask()
    • Method Detail

      • createInternalVariables

        protected void createInternalVariables()
                                        throws Throwable
        Overrides:
        createInternalVariables in class org.openforis.concurrency.Worker
        Throws:
        Throwable
      • execute

        protected void execute()
                        throws Throwable
        Specified by:
        execute in class org.openforis.concurrency.Worker
        Throws:
        Throwable
      • isDuplicate

        protected boolean isDuplicate​(String code,
                                      CodeListItem parentItem)
        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:
      • getCodeListItemInDescendants

        protected CodeListItem getCodeListItemInDescendants​(String code)
      • setCodeListManager

        public void setCodeListManager​(CodeListManager codeListManager)
      • setCodeList

        public void setCodeList​(CodeList codeList)
      • setInputStream

        public void setInputStream​(InputStream inputStream)
      • setOverwriteData

        public void setOverwriteData​(boolean overwriteData)
      • getEntryName

        public String getEntryName()
      • setEntryName

        public void setEntryName​(String entryName)