java.lang.Object
com.broadleafcommerce.data.tracking.core.tenant.domain.InheritanceLine

public class InheritanceLine extends Object
The upward catalog hierarchy for a single assigned Catalog instance
Author:
Jeff Fischer
  • Constructor Details

  • Method Details

    • getActiveMembers

      public List<InheritanceMember> getActiveMembers()
      Returns the active members in the inheritance line. Note that parents in a "broken" hierarchy (an archived catalog in the middle of a hierarchy) are not considered active. This assumes that the list is ordered from child to parent. In other words, index 0 is the lowest level child and the last index is the root parent.

      For example, with the following hierarchy: A->B->C ("C" is a child of "B", "B" is a child of "A") If B is archived, then only C is returned. If A is archived, then B and C are returned. If C is archived, then an empty list would be returned.

    • getMembers

      public List<InheritanceMember> getMembers()
      The catalog nodes in the hierarchy
      Returns:
      The catalog nodes in the hierarchy
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object