timeabarna commented on a change in pull request #5752:
URL: https://github.com/apache/nifi/pull/5752#discussion_r812597526
##########
File path:
nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/AbstractAzureDataLakeStorageProcessor.java
##########
@@ -200,19 +208,30 @@ public static String
evaluateFileNameProperty(ProcessContext context, FlowFile f
return fileName;
}
- private static class DirectoryValidator implements Validator {
- @Override
+ public static class DirectoryValidator implements Validator {
+ private String displayName;
+
+ public DirectoryValidator() {
+ this.displayName = null;
+ }
+
+ public DirectoryValidator(String displayName) {
+ this.displayName = displayName;
+ }
+
+ @Override
public ValidationResult validate(String subject, String input,
ValidationContext context) {
+ displayName = displayName == null ? DIRECTORY.getDisplayName() :
displayName;
Review comment:
Thanks @turcsanyip for your help. I had the same approach first then
discovered that sadly DIRECTORY property was not build yet at the constructor
time so it is not possible to use as a value at this point.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]