Class CMSMultiRecordNote

java.lang.Object
io.goobi.viewer.model.cms.recordnotes.CMSRecordNote
io.goobi.viewer.model.cms.recordnotes.CMSMultiRecordNote
All Implemented Interfaces:
Serializable

@Entity public class CMSMultiRecordNote extends CMSRecordNote
Class holding a formatted text related to a single PI which may be edited in the admin/cms-backend and displayed in a (sidebar) widget
Author:
florian
See Also:
  • Constructor Details

    • CMSMultiRecordNote

      public CMSMultiRecordNote()
    • CMSMultiRecordNote

      public CMSMultiRecordNote(String query)
      Parameters:
      query -
    • CMSMultiRecordNote

      public CMSMultiRecordNote(CMSRecordNote source)
      Parameters:
      source -
  • Method Details

    • getQuery

      public String getQuery()
      Returns:
      the query
    • setQuery

      public void setQuery(String query)
      Parameters:
      query - the query to set
    • getRecords

      public List<String> getRecords()
      Returns:
      a list of PIs of all records matching the query
    • getQueryForSearch

      public String getQueryForSearch()
    • isSingleRecordNote

      public boolean isSingleRecordNote()
      Specified by:
      isSingleRecordNote in class CMSRecordNote
    • isMultiRecordNote

      public boolean isMultiRecordNote()
      Specified by:
      isMultiRecordNote in class CMSRecordNote
    • matchesFilter

      public boolean matchesFilter(String filter)
      Specified by:
      matchesFilter in class CMSRecordNote
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • matchesRecord

      public boolean matchesRecord(String pi)
      Check if the given pi is a match for the query of the record note The pi is a match if the record note query combined with a query for the given pi returns at least one result
      Parameters:
      pi -
      Returns:
      true if pi matches query; false otherwise