Class CmsSliderEditBean

java.lang.Object
io.goobi.viewer.managedbeans.CmsSliderEditBean
All Implemented Interfaces:
Serializable

@Named @ViewScoped public class CmsSliderEditBean extends Object implements Serializable
Author:
florian
See Also:
  • Constructor Details

    • CmsSliderEditBean

      public CmsSliderEditBean()
  • Method Details

    • setSelectedSlider

      public void setSelectedSlider(CMSSlider selectedSlider)
      Parameters:
      selectedSlider - the selectedSlider to set
    • setSliderId

      public void setSliderId(String idString) throws DAOException
      Set the selected slider via id string
      Parameters:
      idString -
      Throws:
      DAOException
    • setSliderId

      public void setSliderId(long id) throws DAOException
      Set the selected slider via id
      Parameters:
      id -
      Throws:
      DAOException
    • getSelectedSlider

      public CMSSlider getSelectedSlider()
      Returns:
      the selectedSlider
    • isNewSlider

      public boolean isNewSlider()
    • createSlider

      public void createSlider(CMSSlider.SourceType type)
    • save

      public String save()
      Persist the selectedSlider to the database and return to slider overview page, ending the current JSF conversation.
      Returns:
      Navigation outcome
    • getReturnUrl

      public String getReturnUrl()
    • getSourceTypes

      public List<CMSSlider.SourceType> getSourceTypes()
    • getAvailableCollections

      public List<CMSCollection> getAvailableCollections()
    • writeCategories

      public void writeCategories()
      Writes all selected categories of selectableCategories to the selectedSlider if both exist
    • getSelectableCategories

      public List<Selectable<CMSCategory>> getSelectableCategories()
      Returns:
      the selectableCategories
    • setStyleFromRequestParameter

      public void setStyleFromRequestParameter()
    • getSliderSource

      public String getSliderSource()
    • getCollectionField

      public String getCollectionField()
      Returns:
      the collectionField
    • setCollectionField

      public void setCollectionField(String collectionField)
      Parameters:
      collectionField - the collectionField to set
    • getAllCollectionFields

      public List<String> getAllCollectionFields()