Class CompoundLabeledLink

java.lang.Object
io.goobi.viewer.model.viewer.LabeledLink
io.goobi.viewer.model.viewer.CompoundLabeledLink
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CollectionLabeledLink

public class CompoundLabeledLink extends LabeledLink
A labeled link composed of a primary and a secondary link component.
Author:
Florian Alpers
See Also:
  • Field Details

    • field

      protected final String field
    • hierarchy

      protected final List<String> hierarchy
  • Constructor Details

    • CompoundLabeledLink

      public CompoundLabeledLink(String name, String url, String field, int weight)
      Creates a new CompoundLabeledLink instance.
      Parameters:
      name - display label for the link
      url - target URL for the link
      field - Solr field name for the collection
      weight - sort weight of the link
    • CompoundLabeledLink

      public CompoundLabeledLink(String name, String url, String field, List<String> hierarchy, int weight)
      Creates a new CompoundLabeledLink instance.
      Parameters:
      name - display label for the link
      url - target URL for the link
      field - Solr field name for the collection
      hierarchy - ordered list of ancestor collection names
      weight - sort weight of the link
  • Method Details

    • getSubLinks

      public List<LabeledLink> getSubLinks()
      getSubLinks.
      Returns:
      List of labeled links, one for each hierarchy level