Package org.adempiere.model
Interface ImportValidator
public interface ImportValidator
Import Validator Interface
- Author:
- Teo Sarca, www.arhipac.ro
- FR [ 2788276 ] Data Import Validator https://sourceforge.net/p/adempiere/feature-requests/712/
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Event triggered after an import record is processedstatic final int
Event triggered after all import records are validatedstatic final int
Event triggered before an import record is processedstatic final int
Event triggered before all import records are validated -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(ImportProcess process, Object importModel, Object targetModel, int timing) Handle import event
-
Field Details
-
TIMING_BEFORE_VALIDATE
static final int TIMING_BEFORE_VALIDATEEvent triggered before all import records are validated- See Also:
-
TIMING_AFTER_VALIDATE
static final int TIMING_AFTER_VALIDATEEvent triggered after all import records are validated- See Also:
-
TIMING_BEFORE_IMPORT
static final int TIMING_BEFORE_IMPORTEvent triggered before an import record is processed- See Also:
-
TIMING_AFTER_IMPORT
static final int TIMING_AFTER_IMPORTEvent triggered after an import record is processed- See Also:
-
-
Method Details
-
validate
Handle import event- Parameters:
process
-importModel
-targetModel
-timing
-TIMING_BEFORE_VALIDATE
,TIMING_AFTER_VALIDATE
,TIMING_BEFORE_IMPORT
orTIMING_AFTER_IMPORT
.
-