Package io.goobi.viewer.model.cms.media
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 Summary
Modifier and TypeMethodDescriptionA regular expression determining which filenames are shown in the media list and may be uploadedgetMediaItem.getMediaItemWrapper.A string representing the allowed media formates for a user.boolean
hasMediaItem.void
setMediaItem
(CMSMediaItem item) setMediaItem.
-
Method Details
-
setMediaItem
setMediaItem.
- Parameters:
item
- aCMSMediaItem
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
CategorizableTranslatedSelectable<CMSMediaItem> getMediaItemWrapper()getMediaItemWrapper.
- Returns:
- a
CategorizableTranslatedSelectable
object.
-