Class FileSynchronizationRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FullSynchronizationRequest,SynchronizationBatchCsvInJobRequest,SynchronizationBatchExcelInJobRequest,SynchronizationBatchJsonInJobRequest
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the import should continue if some of the import commands are invalid or failed to execute.protected booleanWhether the file should be deleted after the synchronization job is finished, regardless of the result.protected FileThe file to upload.protected UUIDTheidof uploaded file.protected StringThe name of the file to upload.protected @Size(min=1,max=50) @NotNull StringThe synchronizationidused to distinguish different synchronizations.Fields inherited from class BaseImportRequest
batchSize, DEFAULT_BATCH_SIZE, requestSource, saveResult, sendNotification, simulation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetFile()The file to upload.Theidof uploaded file.The name of the file to upload.The synchronizationidused to distinguish different synchronizations.inthashCode()booleanWhether the import should continue if some of the import commands are invalid or failed to execute.booleanWhether the file should be deleted after the synchronization job is finished, regardless of the result.voidsetContinueOnError(boolean continueOnError) Whether the import should continue if some of the import commands are invalid or failed to execute.voidsetDeleteFile(boolean deleteFile) Whether the file should be deleted after the synchronization job is finished, regardless of the result.voidThe file to upload.voidTheidof uploaded file.voidsetFileName(String fileName) The name of the file to upload.voidsetSynchronizationId(String synchronizationId) The synchronizationidused to distinguish different synchronizations.toString()Methods inherited from class BaseImportRequest
getBatchSize, getRequestSource, isSaveResult, isSendNotification, isSimulation, setBatchSize, setRequestSource, setSaveResult, setSendNotification, setSimulation
-
Field Details
-
synchronizationId
@Size(min=1, max=50) @NotNull @PathParam("synchronizationId") protected @Size(min=1,max=50) @NotNull String synchronizationIdThe synchronizationidused to distinguish different synchronizations. -
fileId
Theidof uploaded file.NOTE: if this field is used,
fileshould not be set. -
file
-
fileName
-
deleteFile
@DefaultValue("false") protected boolean deleteFileWhether the file should be deleted after the synchronization job is finished, regardless of the result. The default value isfalse.NOTE: if the file corresponds to an attachment, the attachment will be deleted. When import operation fails then file will not be deleted.
-
continueOnError
@DefaultValue("false") protected boolean continueOnErrorWhether the import should continue if some of the import commands are invalid or failed to execute. The default value isfalse.If
true, the valid commands are still committed to the database, which can lead to partial results being stored.
-
-
Constructor Details
-
FileSynchronizationRequest
protected FileSynchronizationRequest()
-
-
Method Details
-
getSynchronizationId
The synchronizationidused to distinguish different synchronizations. -
getFileId
Theidof uploaded file.NOTE: if this field is used,
fileshould not be set. -
getFile
-
getFileName
-
isDeleteFile
public boolean isDeleteFile()Whether the file should be deleted after the synchronization job is finished, regardless of the result. The default value isfalse.NOTE: if the file corresponds to an attachment, the attachment will be deleted. When import operation fails then file will not be deleted.
-
isContinueOnError
public boolean isContinueOnError()Whether the import should continue if some of the import commands are invalid or failed to execute. The default value isfalse.If
true, the valid commands are still committed to the database, which can lead to partial results being stored. -
setSynchronizationId
The synchronizationidused to distinguish different synchronizations. -
setFileId
Theidof uploaded file.NOTE: if this field is used,
fileshould not be set. -
setFile
-
setFileName
-
setDeleteFile
public void setDeleteFile(boolean deleteFile) Whether the file should be deleted after the synchronization job is finished, regardless of the result. The default value isfalse.NOTE: if the file corresponds to an attachment, the attachment will be deleted. When import operation fails then file will not be deleted.
-
setContinueOnError
public void setContinueOnError(boolean continueOnError) Whether the import should continue if some of the import commands are invalid or failed to execute. The default value isfalse.If
true, the valid commands are still committed to the database, which can lead to partial results being stored. -
toString
- Overrides:
toStringin classBaseImportRequest
-
equals
- Overrides:
equalsin classBaseImportRequest
-
canEqual
- Overrides:
canEqualin classBaseImportRequest
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseImportRequest
-