mirror of
https://github.com/apache/nifi.git
synced 2025-03-05 17:09:36 +00:00
NIFI-11184 Deprecated HashAttribute and CryptographicHashAttribute
This closes #6956 Signed-off-by: Mike Thomsen <mthomsen@apache.org>
This commit is contained in:
parent
4fd8dd0bd4
commit
8c65b78ff3
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard
@ -35,6 +35,7 @@ import org.apache.nifi.annotation.behavior.SideEffectFree;
|
||||
import org.apache.nifi.annotation.behavior.SupportsBatching;
|
||||
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||
import org.apache.nifi.annotation.documentation.DeprecationNotice;
|
||||
import org.apache.nifi.annotation.documentation.Tags;
|
||||
import org.apache.nifi.components.AllowableValue;
|
||||
import org.apache.nifi.components.PropertyDescriptor;
|
||||
@ -60,6 +61,10 @@ import org.apache.nifi.security.util.crypto.HashService;
|
||||
description = "The property name defines the attribute to look for and hash in the incoming flowfile. "
|
||||
+ "The property value defines the name to give the generated attribute. "
|
||||
+ "Attribute names must be unique.")
|
||||
@DeprecationNotice(
|
||||
classNames = "org.apache.nifi.processors.attributes.UpdateAttribute",
|
||||
reason = "UpdateAttribute can be configured using the hash Expression Language function to digest one or more attributes"
|
||||
)
|
||||
public class CryptographicHashAttribute extends AbstractProcessor {
|
||||
public enum PartialAttributePolicy {
|
||||
ALLOW,
|
||||
|
@ -39,6 +39,7 @@ import org.apache.nifi.annotation.behavior.SideEffectFree;
|
||||
import org.apache.nifi.annotation.behavior.SupportsBatching;
|
||||
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||
import org.apache.nifi.annotation.documentation.DeprecationNotice;
|
||||
import org.apache.nifi.annotation.documentation.Tags;
|
||||
import org.apache.nifi.components.PropertyDescriptor;
|
||||
import org.apache.nifi.flowfile.FlowFile;
|
||||
@ -115,6 +116,10 @@ import org.apache.nifi.processor.util.StandardValidators;
|
||||
+ "group, the value of that group will be used when comparing flow file "
|
||||
+ "attributes. Otherwise, the original flow file attribute's value will be used "
|
||||
+ "if and only if the value matches the given regular expression.")
|
||||
@DeprecationNotice(
|
||||
classNames = "org.apache.nifi.processors.attributes.UpdateAttribute",
|
||||
reason = "UpdateAttribute can be configured using the hash Expression Language function to digest one or more attributes"
|
||||
)
|
||||
public class HashAttribute extends AbstractProcessor {
|
||||
|
||||
public static final PropertyDescriptor HASH_VALUE_ATTRIBUTE = new PropertyDescriptor.Builder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user