Package org.cyclos.impl.system
Interface ImportServiceLocal
-
- All Superinterfaces:
CRUDService<ImportedFileDTO,ImportedFileData,ImportedFileDataParams>,CRUDServiceLocal<ImportedFile,ImportedFileDTO,ImportedFileData,ImportedFileDataParams>,CRUDWithConfirmationPasswordService<ImportedFileDTO,ImportedFileData,ImportedFileDataParams>,ImportService,Service
- All Known Implementing Classes:
ImportServiceImpl
public interface ImportServiceLocal extends ImportService, CRUDServiceLocal<ImportedFile,ImportedFileDTO,ImportedFileData,ImportedFileDataParams>
Local interface for imports
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ENTITYScripting attribute: the imported line entity (after successfully processing)static StringATTR_ERRORScripting attribute: the imported line error (after processing with error)static StringATTR_FILEScripting attribute: the imported filestatic StringATTR_LINEScripting attribute: the imported linestatic StringATTR_NEW_STATUSScripting attribute: the old statusstatic StringATTR_OLD_STATUSScripting attribute: the old status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longarchiveImports()Gets the old imports that were not finished and deletes them.voidfillImportedLineValues(ImportedLine importedLine, ImportedLineVO vo)Fills the values of an importedLineVOLonggetImportedFileIdForLine(Long importedLineId)Returns the imported file id of the imported line.ImportTypegetImportType(ImportedFileDTO dto)Returns the import type which matches with the given dtolongresumeImport(Long importedFileId)Triggers the execution of an import.-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.CRUDWithConfirmationPasswordService
getConfirmationPasswordInputForRemove, removeAllWithConfirmationPassword, removeWithConfirmationPassword, saveWithConfirmationPassword
-
Methods inherited from interface org.cyclos.services.system.ImportService
abort, getImportedLineData, getImportProgress, getSearchData, markAsSkipped, process, saveDescription, saveImportedLine, search, searchImportedLines, upload
-
-
-
-
Field Detail
-
ATTR_FILE
static final String ATTR_FILE
Scripting attribute: the imported file- See Also:
- Constant Field Values
-
ATTR_OLD_STATUS
static final String ATTR_OLD_STATUS
Scripting attribute: the old status- See Also:
- Constant Field Values
-
ATTR_NEW_STATUS
static final String ATTR_NEW_STATUS
Scripting attribute: the old status- See Also:
- Constant Field Values
-
ATTR_LINE
static final String ATTR_LINE
Scripting attribute: the imported line- See Also:
- Constant Field Values
-
ATTR_ERROR
static final String ATTR_ERROR
Scripting attribute: the imported line error (after processing with error)- See Also:
- Constant Field Values
-
ATTR_ENTITY
static final String ATTR_ENTITY
Scripting attribute: the imported line entity (after successfully processing)- See Also:
- Constant Field Values
-
-
Method Detail
-
archiveImports
long archiveImports()
Gets the old imports that were not finished and deletes them. Gets the finished old imports and removes the associated information (lines and values) leaving some stats and dates.
-
fillImportedLineValues
void fillImportedLineValues(ImportedLine importedLine, ImportedLineVO vo)
Fills the values of an importedLineVO
-
getImportedFileIdForLine
Long getImportedFileIdForLine(Long importedLineId)
Returns the imported file id of the imported line.
-
getImportType
ImportType getImportType(ImportedFileDTO dto)
Returns the import type which matches with the given dto
-
resumeImport
long resumeImport(Long importedFileId)
Triggers the execution of an import.
-
-