Class CategorizableTranslatedSelectable<T>

java.lang.Object
io.goobi.viewer.model.cms.Selectable<T>
io.goobi.viewer.model.cms.TranslatedSelectable<T>
io.goobi.viewer.model.cms.CategorizableTranslatedSelectable<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, Comparable<Selectable<T>>

public class CategorizableTranslatedSelectable<T> extends TranslatedSelectable<T> implements Serializable
A TranslatedSelectable which may also contain a list of categories.
Author:
Florian Alpers
See Also:
  • Constructor Details

    • CategorizableTranslatedSelectable

      public CategorizableTranslatedSelectable(T value, boolean selected, Locale defaultLocale, List<Selectable<CMSCategory>> categories)
      Creates a new CategorizableTranslatedSelectable instance.
      Parameters:
      value - wrapped item value
      selected - initial selection state
      defaultLocale - locale used for translation display
      categories - selectable CMS categories associated with this item
  • Method Details

    • getCategories

      public List<Selectable<CMSCategory>> getCategories()
      Getter for the field categories.
      Returns:
      the list of selectable CMS categories associated with this item
    • setCategories

      public void setCategories(List<Selectable<CMSCategory>> categories)
      Setter for the field categories.
      Parameters:
      categories - selectable CMS categories to assign
    • getSelectedCategories

      public List<CMSCategory> getSelectedCategories()
      getSelectedCategories.
      Returns:
      a list of CMS categories that are currently selected