Class MetadataView

java.lang.Object
io.goobi.viewer.model.metadata.MetadataView

public class MetadataView extends Object
A MetadataView represents a single record metadata view page within a record (along with an own link in the views widget).
  • Constructor Details

    • MetadataView

      public MetadataView()
  • Method Details

    • isVisible

      public boolean isVisible(StructElement se)
      Checks link visibility conditions.
      Parameters:
      se - structure element to check the visibility condition against
      Returns:
      true if conditions empty or satisfied; false otherwise
    • isDisplayInSidebar

      public boolean isDisplayInSidebar()
    • isDisplayInObjectView

      public boolean isDisplayInObjectView()
    • getIndex

      public int getIndex()
    • setIndex

      public MetadataView setIndex(int index)
      Parameters:
      index - the position index of this view within the ordered list of metadata views
      Returns:
      this
    • getLabel

      public String getLabel()
    • setLabel

      public MetadataView setLabel(String label)
      Parameters:
      label - the message key used as the display label for this metadata view tab
      Returns:
      this
    • getUrl

      public String getUrl()
    • setUrl

      public MetadataView setUrl(String url)
      Parameters:
      url - the URL or navigation target linked from this metadata view tab
      Returns:
      this
    • getCondition

      public String getCondition()
    • setCondition

      public MetadataView setCondition(String condition)
      Parameters:
      condition - the Solr-query-style condition that must be satisfied for this view to be shown
      Returns:
      this
    • getLocation

      public MetadataView.MetadataViewLocation getLocation()
    • setLocation

      public MetadataView setLocation(MetadataView.MetadataViewLocation location)
      Parameters:
      location - the UI location where this metadata view is rendered (e.g. main content or sidebar)
      Returns:
      this