Record Class DynamicAttachmentRule
java.lang.Object
java.lang.Record
fr.gouv.vitam.worker.core.extractseda.DynamicAttachmentRule
- Record Components:
metadataKey- dotted path of the metadata carrying the discriminating valuemetadataValue- value the metadata must hold for the rule to applyattachmentUnitId- attachment unit of the transaction, already resolved against metadata collect
public record DynamicAttachmentRule(String metadataKey, String metadataValue, String attachmentUnitId)
extends Record
A dynamic attachment rule of a collect project : root archive units whose metadata matches metadataKey/metadataValue
are attached to attachmentUnitId.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicAttachmentRule(String metadataKey, String metadataValue, String attachmentUnitId) Creates an instance of aDynamicAttachmentRulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentUnitIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themetadataKeyrecord component.Returns the value of themetadataValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamicAttachmentRule
Creates an instance of aDynamicAttachmentRulerecord class.- Parameters:
metadataKey- the value for themetadataKeyrecord componentmetadataValue- the value for themetadataValuerecord componentattachmentUnitId- the value for theattachmentUnitIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
metadataKey
Returns the value of themetadataKeyrecord component.- Returns:
- the value of the
metadataKeyrecord component
-
metadataValue
Returns the value of themetadataValuerecord component.- Returns:
- the value of the
metadataValuerecord component
-
attachmentUnitId
Returns the value of theattachmentUnitIdrecord component.- Returns:
- the value of the
attachmentUnitIdrecord component
-