Class CMSCollectionContent
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContent
io.goobi.viewer.model.cms.pages.content.types.CMSCollectionContent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
exportHtmlFragment
(String outputFolderPath, String namingScheme) Writes HTML fragment value as file for re-indexing.Alias forgetCollectionName()
.Alias forgetSolrField()
.Alias forgetGroupingField()
.getIgnoreCollectionsAsList.Queries Solr for a list of all values of the set collectionField which my serve as a collection.handlePageLoad
(boolean resetResults, CMSComponent component) callCollectionView#reset(true)
on the CollectionView stored in the cmsBean for this item, if anyboolean
isEmpty()
boolean
void
setCollectionName
(String collectionName) void
setFilterQuery
(String filterQuery) void
setGroupingField
(String groupingSolrField) void
setIgnoreCollections
(String ignoreCollections) void
setIgnoreCollectionsAsList
(List<String> toIgnore) setIgnoreCollectionsAsList.void
setOpenExpanded
(boolean openExpanded) void
setSolrField
(String solrField) void
setSorting
(Sorting sorting) Methods inherited from class io.goobi.viewer.model.cms.pages.content.CMSContent
getBackendComponentLibrary, getData, getId, getItemId, getOwningComponent, getOwningPage, isRequired, setId, setItemId, setOwningComponent, setRequired
-
Constructor Details
-
CMSCollectionContent
public CMSCollectionContent()
-
-
Method Details
-
getSolrField
-
setSolrField
-
getCollectionName
-
setCollectionName
-
getFilterQuery
-
setFilterQuery
-
getSorting
-
setSorting
-
getGroupingField
-
setGroupingField
-
getIgnoreCollections
-
setIgnoreCollections
-
isOpenExpanded
public boolean isOpenExpanded() -
setOpenExpanded
public void setOpenExpanded(boolean openExpanded) -
getIgnoreCollectionsAsList
getIgnoreCollectionsAsList.
- Returns:
- a
List
object.
-
getIgnoreCollectionsAsJsonArray
-
setIgnoreCollectionsAsList
setIgnoreCollectionsAsList.
- Parameters:
toIgnore
- aList
object.
-
getBackendComponentName
- Specified by:
getBackendComponentName
in classCMSContent
-
copy
- Specified by:
copy
in classCMSContent
-
exportHtmlFragment
public List<File> exportHtmlFragment(String outputFolderPath, String namingScheme) throws IOException, ViewerConfigurationException Description copied from class:CMSContent
Writes HTML fragment value as file for re-indexing. HTML/text fragments are exported directly. Attached media items are exported as long as their content type is one of the supported text document formats.- Specified by:
exportHtmlFragment
in classCMSContent
- Parameters:
outputFolderPath
- aString
object.namingScheme
- aString
object.- Returns:
- Exported Files
- Throws:
IOException
- if any.ViewerConfigurationException
-
handlePageLoad
callCollectionView#reset(true)
on the CollectionView stored in the cmsBean for this item, if any- Specified by:
handlePageLoad
in classCMSContent
- Parameters:
resetResults
-component
-- Returns:
String
-
getCombinedFilterQuery
- Returns:
String
-
getPossibleBaseCollectionList
Queries Solr for a list of all values of the set collectionField which my serve as a collection.- Returns:
- a
List
object. - Throws:
IndexUnreachableException
- if any.
-
getColletionMap
- Returns:
- Map<String, CollectionResult>
- Throws:
IndexUnreachableException
-
getBaseCollection
Alias forgetCollectionName()
. Used in legacy templates- Returns:
String
-
getCollectionField
Alias forgetSolrField()
. Used in legacy templates- Returns:
String
-
getGroupBy
Alias forgetGroupingField()
. Used in legacy templates- Returns:
String
-
getData
- Specified by:
getData
in classCMSContent
- Returns:
- a string representing this contentItem for use in frontend-components. May be an empty string for content with no clear String representation
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classCMSContent
-