Class CMSMultiRecordNote
java.lang.Object
io.goobi.viewer.model.cms.recordnotes.CMSRecordNote
io.goobi.viewer.model.cms.recordnotes.CMSMultiRecordNote
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getQuery()booleanbooleanbooleanmatchesFilter(String filter) booleanmatchesRecord(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 resultvoidtoString()Methods inherited from class io.goobi.viewer.model.cms.recordnotes.CMSRecordNote
equals, getId, getNoteText, getNoteTitle, getSolrDoc, getStyleClass, hashCode, isDisplayNote, setDisplayNote, setId, setSolrDoc, setStyleClass
-
Constructor Details
-
CMSMultiRecordNote
public CMSMultiRecordNote() -
CMSMultiRecordNote
- Parameters:
query-
-
CMSMultiRecordNote
- Parameters:
source-
-
-
Method Details
-
getQuery
- Returns:
- the query
-
setQuery
- Parameters:
query- the query to set
-
getRecords
- Returns:
- a list of PIs of all records matching the query
-
getQueryForSearch
-
isSingleRecordNote
public boolean isSingleRecordNote()- Specified by:
isSingleRecordNotein classCMSRecordNote
-
isMultiRecordNote
public boolean isMultiRecordNote()- Specified by:
isMultiRecordNotein classCMSRecordNote
-
matchesFilter
- Specified by:
matchesFilterin classCMSRecordNote
-
toString
-
matchesRecord
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
-
copy
- Specified by:
copyin classCMSRecordNote
-