1 package eu
.etaxonomy
.cdm
.io
.common
;
5 import eu
.etaxonomy
.cdm
.api
.application
.CdmApplicationController
;
6 import eu
.etaxonomy
.cdm
.database
.DbSchemaValidation
;
7 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
8 import eu
.etaxonomy
.cdm
.model
.agent
.Person
;
9 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
10 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
11 import eu
.etaxonomy
.cdm
.model
.reference
.ReferenceBase
;
13 public interface IImportConfigurator
extends IIoConfigurator
{
15 public static enum CHECK
{
21 public static enum DO_REFERENCES
{
28 public abstract boolean isValid();
30 /* ****************** GETTER/SETTER **************************/
31 public abstract boolean isDeleteAll();
33 public abstract void setDeleteAll(boolean deleteAll
);
35 public abstract boolean isDoAuthors();
37 public abstract void setDoAuthors(boolean doAuthors
);
40 * @return the doReferences
42 public abstract DO_REFERENCES
getDoReferences();
45 * @param doReferences the doReferences to set
47 public abstract void setDoReferences(DO_REFERENCES doReferences
);
50 * @return the doReferences
52 public abstract CHECK
getCheck();
55 * @param doReferences the doReferences to set
57 public abstract void setCheck(CHECK check
);
60 * If true, no errors occurs if objects are not found that should exist. This may
61 * be needed e.g. when only subsets of the data are imported.
62 * Default value is <cod>false</code>.
63 * @return the ignoreNull
65 public boolean isIgnoreNull();
67 * @param ignoreNull the ignoreNull to set
69 public void setIgnoreNull(boolean ignoreNull
);
71 public abstract boolean isDoTaxonNames();
73 public abstract void setDoTaxonNames(boolean doTaxonNames
);
75 public abstract boolean isDoRelNames();
77 public abstract void setDoRelNames(boolean doRelNames
);
79 public abstract boolean isDoNameStatus();
81 public abstract void setDoNameStatus(boolean doNameStatus
);
83 public abstract boolean isDoNameFacts();
85 public abstract void setDoNameFacts(boolean doNameFacts
);
87 public abstract boolean isDoTypes();
89 public abstract void setDoTypes(boolean doTypes
);
91 public abstract boolean isDoTaxa();
93 public abstract void setDoTaxa(boolean doTaxa
);
95 public abstract boolean isDoRelTaxa();
97 public abstract void setDoRelTaxa(boolean doRelTaxa
);
99 public abstract boolean isDoFacts();
101 public abstract void setDoFacts(boolean doFacts
);
104 * @return the doOccurrence
106 public abstract boolean isDoOccurrence();
109 * @param doOccurrence the doOccurrence to set
111 public abstract void setDoOccurrence(boolean doOccurrence
);
114 public abstract ICdmDataSource
getDestination();
116 public abstract void setDestination(ICdmDataSource destination
);
118 public abstract DbSchemaValidation
getDbSchemaValidation();
120 public abstract void setDbSchemaValidation(
121 DbSchemaValidation dbSchemaValidation
);
123 public abstract ReferenceBase
getSourceReference();
127 * A String representation of the used source (e.g. BerlinModel Cichorieae Database)
130 public abstract String
getSourceNameString();
133 * Any object that represents the Source. The implementing class must cast this to
134 * the correct class type
137 public abstract Object
getSource();
139 //public abstract void setSource(Object url);
141 public abstract void setSourceReference(ReferenceBase sourceReference
);
143 public abstract String
getSourceReferenceTitle();
145 public abstract void setSourceReferenceTitle(String sourceReferenceTitle
);
147 public abstract Person
getCommentator();
149 public abstract void setCommentator(Person commentator
);
151 public abstract Language
getFactLanguage();
153 public abstract void setFactLanguage(Language factLanguage
);
155 public abstract NomenclaturalCode
getNomenclaturalCode();
157 public abstract void setNomenclaturalCode(NomenclaturalCode nomenclaturalCode
);
159 public Class
<ICdmIO
>[] getIoClassList();
162 * Returns a <code>CdmApplicationController</code> created by the values of this configuration.
163 * If a controller was already created before the last created controller is returned.
166 public CdmApplicationController
getCdmAppController();
167 public CdmApplicationController
getCdmAppController(boolean createNew
, boolean omitTermLoading
);
169 public Object
getSourceSecId();
171 public UUID
getSecUuid();
172 public void setSecUuid(UUID secUuid
);
177 // public boolean isDoTerms();
178 // public void setDoTerms(boolean doTerms);
180 // public boolean isDoTermVocabularies();
181 // public void setDoTermVocabularies(boolean doTermVocabularies);
183 // public boolean isDoHomotypicalGroups();
184 // public void setDoHomotypicalGroups(boolean doHomotypicalGroups);
186 // public boolean isDoReferencedEntities();
187 // public void setDoReferencedEntities(boolean doReferencedEntities);
189 // public boolean isDoFeatureData();
190 // public void setDoFeatureData(boolean doFeatureData);
192 // public boolean isDoMedia();
193 // public void setDoMedia(boolean doMedia);
195 // public boolean isDoLanguageData();
196 // public void setDoLanguageData(boolean doLanguageData);