Record Class CategoryDeleteCascadeSource

java.lang.Object
java.lang.Record
org.alfresco.elasticsearch.batchindexing.cascade.CategoryDeleteCascadeSource
Record Components:
nodeRef - Alfresco node reference of the deleted node
descendantUuid - bare UUID — value stored inside referring documents' CATEGORY_ANCESTOR / cm:categories / PARENT arrays
deletedCategoryPaths - snapshot of the deleted category's PATH entries (prefixed); used to strip matching PATH entries from referring docs. May be empty when the pre-delete doc could not be read.
deletedCategoryUnprefixedPaths - snapshot of the deleted category's UNPREFIXED_PATH entries; strips matching UNPREFIXED_PATH entries from referring docs

public record CategoryDeleteCascadeSource(String nodeRef, String descendantUuid, List<String> deletedCategoryPaths, List<String> deletedCategoryUnprefixedPaths) extends Record
Descriptor for a delete event that corresponds to a cm:category node.
  • Constructor Details

    • CategoryDeleteCascadeSource

      public CategoryDeleteCascadeSource(String nodeRef, String descendantUuid, List<String> deletedCategoryPaths, List<String> deletedCategoryUnprefixedPaths)
      Creates an instance of a CategoryDeleteCascadeSource record class.
      Parameters:
      nodeRef - the value for the nodeRef record component
      descendantUuid - the value for the descendantUuid record component
      deletedCategoryPaths - the value for the deletedCategoryPaths record component
      deletedCategoryUnprefixedPaths - the value for the deletedCategoryUnprefixedPaths record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nodeRef

      public String nodeRef()
      Returns the value of the nodeRef record component.
      Returns:
      the value of the nodeRef record component
    • descendantUuid

      public String descendantUuid()
      Returns the value of the descendantUuid record component.
      Returns:
      the value of the descendantUuid record component
    • deletedCategoryPaths

      public List<String> deletedCategoryPaths()
      Returns the value of the deletedCategoryPaths record component.
      Returns:
      the value of the deletedCategoryPaths record component
    • deletedCategoryUnprefixedPaths

      public List<String> deletedCategoryUnprefixedPaths()
      Returns the value of the deletedCategoryUnprefixedPaths record component.
      Returns:
      the value of the deletedCategoryUnprefixedPaths record component