Class CMSSearchFacetsContent

java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSContent
io.goobi.viewer.model.cms.pages.content.types.CMSSearchFacetsContent

@Entity public class CMSSearchFacetsContent extends CMSContent
  • Constructor Details

    • CMSSearchFacetsContent

      public CMSSearchFacetsContent()
    • CMSSearchFacetsContent

      public CMSSearchFacetsContent(CMSSearchFacetsContent orig)
      Cloning constructor.
      Parameters:
      orig - Object to clone
  • Method Details

    • getFacetField

      public String getFacetField()
      Returns:
      the facetField
    • getFacetFieldForLanguage

      public String getFacetFieldForLanguage(String language)
      If facetField contains a language code placeholder, this method replaces it with the give language code.
      Parameters:
      language - ISO-2 language code
      Returns:
      Configured facetField, placeholder replaced with given language
    • setFacetField

      public void setFacetField(String facetField)
      Parameters:
      facetField - the facetField to set
    • getBackendComponentName

      public String getBackendComponentName()
      Specified by:
      getBackendComponentName in class CMSContent
    • copy

      public CMSContent copy()
      Specified by:
      copy in class CMSContent
    • 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 class CMSContent
      Parameters:
      outputFolderPath - a String object.
      namingScheme - a String object.
      Returns:
      Exported Files
      Throws:
      IOException - if any.
      ViewerConfigurationException
    • handlePageLoad

      public String handlePageLoad(boolean resetResults, CMSComponent component) throws PresentationException
      Description copied from class: CMSContent
      Method to call when loading a CMSPage including this content item
      Specified by:
      handlePageLoad in class CMSContent
      Returns:
      a JSF action response
      Throws:
      PresentationException
    • getData

      public String getData(Integer w, Integer h)
      Specified by:
      getData in class CMSContent
      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 class CMSContent