Record Class RenameCascadeSource
java.lang.Object
java.lang.Record
org.alfresco.elasticsearch.batchindexing.cascade.RenameCascadeSource
- Record Components:
nodeRef- Alfresco node reference of the renamed node.descendantUuid- bare UUID used to scope the descendant query.oldPrefixedSegment- pre-rename PATH segment (e.g.cm:oldname).newPrefixedSegment- post-rename PATH segment (e.g.cm:newname).oldUnprefixedSegment- pre-rename UNPREFIXED_PATH segment.newUnprefixedSegment- post-rename UNPREFIXED_PATH segment.
public record RenameCascadeSource(String nodeRef, String descendantUuid, String oldPrefixedSegment, String newPrefixedSegment, String oldUnprefixedSegment, String newUnprefixedSegment)
extends Record
Descriptor for a rename cascade: the old and new terminal path segments to swap in descendants'
PATH / UNPREFIXED_PATH arrays. Old segments come from an mget against the source ES doc; new segments come from the reindexing event.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescendantUuidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisNoop()True when the rename didn't actually change the name.Returns the value of thenewPrefixedSegmentrecord component.Returns the value of thenewUnprefixedSegmentrecord component.nodeRef()Returns the value of thenodeRefrecord component.Returns the value of theoldPrefixedSegmentrecord component.Returns the value of theoldUnprefixedSegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenameCascadeSource
public RenameCascadeSource(String nodeRef, String descendantUuid, String oldPrefixedSegment, String newPrefixedSegment, String oldUnprefixedSegment, String newUnprefixedSegment) Creates an instance of aRenameCascadeSourcerecord class.- Parameters:
nodeRef- the value for thenodeRefrecord componentdescendantUuid- the value for thedescendantUuidrecord componentoldPrefixedSegment- the value for theoldPrefixedSegmentrecord componentnewPrefixedSegment- the value for thenewPrefixedSegmentrecord componentoldUnprefixedSegment- the value for theoldUnprefixedSegmentrecord componentnewUnprefixedSegment- the value for thenewUnprefixedSegmentrecord component
-
-
Method Details
-
isNoop
public boolean isNoop()True when the rename didn't actually change the name. -
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). -
nodeRef
Returns the value of thenodeRefrecord component.- Returns:
- the value of the
nodeRefrecord component
-
descendantUuid
Returns the value of thedescendantUuidrecord component.- Returns:
- the value of the
descendantUuidrecord component
-
oldPrefixedSegment
Returns the value of theoldPrefixedSegmentrecord component.- Returns:
- the value of the
oldPrefixedSegmentrecord component
-
newPrefixedSegment
Returns the value of thenewPrefixedSegmentrecord component.- Returns:
- the value of the
newPrefixedSegmentrecord component
-
oldUnprefixedSegment
Returns the value of theoldUnprefixedSegmentrecord component.- Returns:
- the value of the
oldUnprefixedSegmentrecord component
-
newUnprefixedSegment
Returns the value of thenewUnprefixedSegmentrecord component.- Returns:
- the value of the
newUnprefixedSegmentrecord component
-