Interface CMSMediaHolder

All Known Implementing Classes:
Campaign, CMSCollection, CMSDocumentContent, CMSMediaContent, Highlight, SimpleMediaHolder

public interface CMSMediaHolder
Any object which may directly contain a CMSMediaItem. Only classes implementing this interface may be given a mediaItem in the selectMedia dialog, since the dialog uses CmsBean.fillSelectedMediaHolder(CategorizableTranslatedSelectable) to apply the selected MediaItem
Author:
florian
  • Method Details

    • setMediaItem

      void setMediaItem(CMSMediaItem item)

      setMediaItem.

      Parameters:
      item - a CMSMediaItem object.
    • getMediaItem

      CMSMediaItem getMediaItem()

      getMediaItem.

      Returns:
      a CMSMediaItem object.
    • getMediaFilter

      String getMediaFilter()

      A regular expression determining which filenames are shown in the media list and may be uploaded

      Returns:
      a String object.
    • getMediaTypes

      String getMediaTypes()
      A string representing the allowed media formates for a user. Should be a comma separated list of format names or filename suffixes
      Returns:
      String
    • hasMediaItem

      boolean hasMediaItem()

      hasMediaItem.

      Returns:
      a boolean.
    • getMediaItemWrapper

      getMediaItemWrapper.

      Returns:
      a CategorizableTranslatedSelectable object.