Package io.goobi.viewer.model.cms
Class SimpleMediaHolder
java.lang.Object
io.goobi.viewer.model.cms.SimpleMediaHolder
- All Implemented Interfaces:
CMSMediaHolder
-
Constructor Summary
ConstructorDescriptionSimpleMediaHolder
(CMSMediaItem item, String filter) SimpleMediaHolder
(String filter) -
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 mediaItem) setMediaItem.
-
Constructor Details
-
SimpleMediaHolder
public SimpleMediaHolder() -
SimpleMediaHolder
-
SimpleMediaHolder
-
SimpleMediaHolder
-
-
Method Details
-
setMediaItem
Description copied from interface:CMSMediaHolder
setMediaItem.
- Specified by:
setMediaItem
in interfaceCMSMediaHolder
- Parameters:
mediaItem
- aCMSMediaItem
object.
-
getMediaItem
Description copied from interface:CMSMediaHolder
getMediaItem.
- Specified by:
getMediaItem
in interfaceCMSMediaHolder
- Returns:
- a
CMSMediaItem
object.
-
getMediaFilter
Description copied from interface:CMSMediaHolder
A regular expression determining which filenames are shown in the media list and may be uploaded
- Specified by:
getMediaFilter
in interfaceCMSMediaHolder
- Returns:
- a
String
object.
-
getMediaTypes
Description copied from interface:CMSMediaHolder
A string representing the allowed media formates for a user. Should be a comma separated list of format names or filename suffixes- Specified by:
getMediaTypes
in interfaceCMSMediaHolder
- Returns:
String
-
hasMediaItem
public boolean hasMediaItem()Description copied from interface:CMSMediaHolder
hasMediaItem.
- Specified by:
hasMediaItem
in interfaceCMSMediaHolder
- Returns:
- a boolean.
-
getMediaItemWrapper
Description copied from interface:CMSMediaHolder
getMediaItemWrapper.
- Specified by:
getMediaItemWrapper
in interfaceCMSMediaHolder
- Returns:
- a
CategorizableTranslatedSelectable
object.
-