Class FileImportRequest
Object
BaseImportRequest
FileImportRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ImportCsvInJobRequest,ImportExcelInJobRequest,ImportJsonInJobRequest
The properties for an import from a file.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Pattern(regexp="ADD_OR_IGNORE|REPLACE") StringShould all existing attributes for the specified attribute types be replaced or should the import only add new attributes whose value didn't exist yet.protected booleanWhether the import should continue if some of the import commands are invalid or failed to execute.protected booleanDelete the file from the Collibra Platform if the import / synchronization job is successful.protected FileThe file to upload.protected UUIDTheidof uploaded file.protected StringThe name of the file to upload.protected @Pattern(regexp="ADD_OR_IGNORE|REPLACE") StringShould all existing relations for the specified relation types be replaced or should the import only add new relations.Fields inherited from class BaseImportRequest
batchSize, DEFAULT_BATCH_SIZE, requestSource, saveResult, sendNotification, simulation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanShould all existing attributes for the specified attribute types be replaced or should the import only add new attributes whose value didn't exist yet.getFile()The file to upload.Theidof uploaded file.The name of the file to upload.Should all existing relations for the specified relation types be replaced or should the import only add new relations.inthashCode()booleanWhether the import should continue if some of the import commands are invalid or failed to execute.booleanDelete the file from the Collibra Platform if the import / synchronization job is successful.voidsetAttributesAction(String attributesAction) Should all existing attributes for the specified attribute types be replaced or should the import only add new attributes whose value didn't exist yet.voidsetContinueOnError(boolean continueOnError) Whether the import should continue if some of the import commands are invalid or failed to execute.voidsetDeleteFile(boolean deleteFile) Delete the file from the Collibra Platform if the import / synchronization job is successful.voidThe file to upload.voidTheidof uploaded file.voidsetFileName(String fileName) The name of the file to upload.voidsetRelationsAction(String relationsAction) Should all existing relations for the specified relation types be replaced or should the import only add new relations.toString()Methods inherited from class BaseImportRequest
getBatchSize, getRequestSource, isSaveResult, isSendNotification, isSimulation, setBatchSize, setRequestSource, setSaveResult, setSendNotification, setSimulation
-
Field Details
-
fileId
Theidof uploaded file.NOTE: if this field is used,
fileshould not be set. -
file
-
fileName
-
deleteFile
@DefaultValue("false") protected boolean deleteFileDelete the file from the Collibra Platform if the import / synchronization job is successful. The default value isfalse.NOTE: if the file corresponds to an attachment, the attachment will 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. -
relationsAction
@DefaultValue("REPLACE") @Pattern(regexp="ADD_OR_IGNORE|REPLACE") protected @Pattern(regexp="ADD_OR_IGNORE|REPLACE") String relationsActionShould all existing relations for the specified relation types be replaced or should the import only add new relations. Possible values are: ADD_OR_IGNORE and REPLACE. The default value is: REPLACE. -
attributesAction
@DefaultValue("REPLACE") @Pattern(regexp="ADD_OR_IGNORE|REPLACE") protected @Pattern(regexp="ADD_OR_IGNORE|REPLACE") String attributesActionShould all existing attributes for the specified attribute types be replaced or should the import only add new attributes whose value didn't exist yet. Possible values are: ADD_OR_IGNORE and REPLACE. The default value is: REPLACE.
-
-
Constructor Details
-
FileImportRequest
protected FileImportRequest()
-
-
Method Details
-
getFileId
Theidof uploaded file.NOTE: if this field is used,
fileshould not be set. -
getFile
-
getFileName
-
isDeleteFile
public boolean isDeleteFile()Delete the file from the Collibra Platform if the import / synchronization job is successful. The default value isfalse.NOTE: if the file corresponds to an attachment, the attachment will 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. -
getRelationsAction
Should all existing relations for the specified relation types be replaced or should the import only add new relations. Possible values are: ADD_OR_IGNORE and REPLACE. The default value is: REPLACE. -
getAttributesAction
Should all existing attributes for the specified attribute types be replaced or should the import only add new attributes whose value didn't exist yet. Possible values are: ADD_OR_IGNORE and REPLACE. The default value is: REPLACE. -
setFileId
Theidof uploaded file.NOTE: if this field is used,
fileshould not be set. -
setFile
-
setFileName
-
setDeleteFile
public void setDeleteFile(boolean deleteFile) Delete the file from the Collibra Platform if the import / synchronization job is successful. The default value isfalse.NOTE: if the file corresponds to an attachment, the attachment will 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. -
setRelationsAction
Should all existing relations for the specified relation types be replaced or should the import only add new relations. Possible values are: ADD_OR_IGNORE and REPLACE. The default value is: REPLACE. -
setAttributesAction
Should all existing attributes for the specified attribute types be replaced or should the import only add new attributes whose value didn't exist yet. Possible values are: ADD_OR_IGNORE and REPLACE. The default value is: REPLACE. -
toString
- Overrides:
toStringin classBaseImportRequest
-
equals
- Overrides:
equalsin classBaseImportRequest
-
canEqual
- Overrides:
canEqualin classBaseImportRequest
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseImportRequest
-