Interface CMSMediaMultiHolder

All Superinterfaces:
CMSMediaHolder
All Known Implementing Classes:
CMSArchiveConfig

public interface CMSMediaMultiHolder extends CMSMediaHolder
Extension of CMSMediaHolder for content components that manage multiple CMS media items, each addressed by a zero-based index.
  • Method Details

    • setMediaItem

      void setMediaItem(int index, CMSMediaItem item)
      setMediaItem.
      Parameters:
      index - Index of the media item
      item - a CMSMediaItem object.
    • getMediaItem

      CMSMediaItem getMediaItem(int index)
      getMediaItem.
      Parameters:
      index - Index of the media item
      Returns:
      the CMS media item at the given index, or null if none is set
    • getMediaFilter

      String getMediaFilter(int index)
      A regular expression determining which filenames are shown in the media list and may be uploaded.
      Parameters:
      index - Index of the media item
      Returns:
      the regex pattern used to filter acceptable media filenames for the item at the given index
    • getMediaTypes

      String getMediaTypes(int index)
      A string representing the allowed media formats for a user. Should be a comma separated list of format names or filename suffixes
      Parameters:
      index - Index of the media item
      Returns:
      String
    • hasMediaItem

      boolean hasMediaItem(int index)
      hasMediaItem.
      Parameters:
      index - Index of the media item
      Returns:
      true if this holder has an associated CMS media item at the given index, false otherwise
    • getMediaItemWrapper

      CategorizableTranslatedSelectable<CMSMediaItem> getMediaItemWrapper(int index)
      getMediaItemWrapper.
      Parameters:
      index - Index of the media item
      Returns:
      the CMS media item at the given index wrapped with category and selection state information