Record Class ContentConsistencyManager.ConsistenciesReport

java.lang.Object
java.lang.Record
org.ametys.cms.content.consistency.ContentConsistencyManager.ConsistenciesReport
Record Components:
results - a list of ContentConsistencyResult for every contents that were checked
unchecked - a list of content id for every content check that were interrupted, cancelled or failed during execution
Enclosing class:
ContentConsistencyManager

public static record ContentConsistencyManager.ConsistenciesReport(List<String> results, List<String> unchecked) extends Record
Record holding the results of a consistency checks on multiple contents
  • Constructor Details

    • ConsistenciesReport

      public ConsistenciesReport(List<String> results, List<String> unchecked)
      Creates an instance of a ConsistenciesReport record class.
      Parameters:
      results - the value for the results record component
      unchecked - the value for the unchecked record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true if this report contains no elements
      Returns:
      true if this report contains no elements
    • 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.
    • results

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

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