}
@Override
public void init() throws RequiredArgumentMissingException {
if (metadataPrefix == null) {
throw new RequiredArgumentMissingException("Missing required configuration: metadataPrefix");
}
if (contentField == null) {
throw new RequiredArgumentMissingException("Missing required configuration: contentField");
}
if (urlField == null) {
throw new RequiredArgumentMissingException("Missing required configuration: urlField");
}
if (fileSizeField == null && maxSizeInBytes > 0) {
throw new RequiredArgumentMissingException(
"Missing required configuration: fileSizeField - FileSizeField must be set when maxSizeInBytes is set");
}
if (allowedFileFormats != null && fileFormatField == null) {
throw new RequiredArgumentMissingException(
"Missing required configuration: fileFormatField - fileFormatField must be set when allowedFileFormats is set");
}
setLowerCaseAllowedFileFormats();
}