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
-
Method Summary
Modifier and TypeMethodDescriptiongetQuery()
boolean
boolean
boolean
matchesFilter
(String filter) 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 resultvoid
toString()
Methods inherited from class io.goobi.viewer.model.cms.recordnotes.CMSRecordNote
equals, getId, getNoteText, getNoteTitle, getStyleClass, hashCode, isDisplayNote, setDisplayNote, setId, 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:
isSingleRecordNote
in classCMSRecordNote
-
isMultiRecordNote
public boolean isMultiRecordNote()- Specified by:
isMultiRecordNote
in classCMSRecordNote
-
matchesFilter
- Specified by:
matchesFilter
in 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
-