Interface UploadHook
- All Known Implementing Classes:
ApiPreconditionCheckerHook,DiscardTagsHook,FixDataHook,RelationUploadOrderHook,ValidateUploadHook
public interface UploadHook
Change or block the upload.
The UploadHook may modify the uploaded data silently, it may display a
warning message to the user or prevent the upload altogether.
The tags of the changeset can also be changed with modifyChangesetTags method.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheckUpload(APIDataSet apiDataSet) Check and/or change the data to be uploaded.default voidmodifyChangesetTags(Map<String, String> tags) Modify the changeset tags (in place) before upload.
-
Method Details
-
checkUpload
Check and/or change the data to be uploaded. Default implementation is to approve the upload.- Parameters:
apiDataSet- the data to upload, modify this to change the data.- Returns:
trueif upload is possible,falseto block the upload.
-
modifyChangesetTags
Modify the changeset tags (in place) before upload. Default implementation is to do no changes.- Parameters:
tags- The current tags to change- Since:
- 13028
-