Package io.goobi.viewer.model.cms.media
Interface CMSMediaMultiHolder
- All Superinterfaces:
CMSMediaHolder
- All Known Implementing Classes:
CMSArchiveConfig
Extension of
CMSMediaHolder for content components that manage multiple CMS media items,
each addressed by a zero-based index.-
Method Summary
Modifier and TypeMethodDescriptiongetMediaFilter(int index) A regular expression determining which filenames are shown in the media list and may be uploaded.getMediaItem(int index) getMediaItem.getMediaItemWrapper(int index) getMediaItemWrapper.getMediaTypes(int index) A string representing the allowed media formats for a user.booleanhasMediaItem(int index) hasMediaItem.voidsetMediaItem(int index, CMSMediaItem item) setMediaItem.Methods inherited from interface io.goobi.viewer.model.cms.media.CMSMediaHolder
getMediaFilter, getMediaItem, getMediaItemWrapper, getMediaTypes, hasMediaItem, setMediaItem
-
Method Details
-
setMediaItem
setMediaItem.- Parameters:
index- Index of the media itemitem- aCMSMediaItemobject.
-
getMediaItem
getMediaItem.- Parameters:
index- Index of the media item- Returns:
- the CMS media item at the given index, or null if none is set
-
getMediaFilter
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
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
getMediaItemWrapper.- Parameters:
index- Index of the media item- Returns:
- the CMS media item at the given index wrapped with category and selection state information
-