Package io.goobi.viewer.model.cms.media
Class MediaItem
java.lang.Object
io.goobi.viewer.model.cms.media.MediaItem
Simple representation of a cms-media-item
- Author:
- florian
-
Constructor Summary
ConstructorDescriptionMediaItem
(CMSMediaItem source, javax.servlet.http.HttpServletRequest servletRequest) -
Method Summary
Modifier and TypeMethodDescriptionde.intranda.metadata.multilanguage.IMetadataValue
getId()
de.intranda.api.iiif.presentation.content.IContent
getImage()
getImageURI
(int maxWidth, int maxHeight) de.intranda.metadata.multilanguage.IMetadataValue
getLabel()
getLink()
static de.intranda.api.iiif.presentation.content.IContent
getMediaResource
(CMSMediaItem source) getOrder()
getTags()
boolean
-
Constructor Details
-
MediaItem
- Parameters:
imageURI
-
-
MediaItem
- Parameters:
source
-servletRequest
-
-
-
Method Details
-
getMediaResource
public static de.intranda.api.iiif.presentation.content.IContent getMediaResource(CMSMediaItem source) - Parameters:
source
-- Returns:
IContent
-
getImageURI
-
getImageURI
-
getId
- Returns:
- the id
-
getLabel
public de.intranda.metadata.multilanguage.IMetadataValue getLabel()- Returns:
- the label
-
getDescription
public de.intranda.metadata.multilanguage.IMetadataValue getDescription()- Returns:
- the description
-
getImage
public de.intranda.api.iiif.presentation.content.IContent getImage()- Returns:
- the image
-
getLink
- Returns:
- the link
-
getTags
- Returns:
- the tags
-
isImportant
public boolean isImportant()- Returns:
- the important
-
getOrder
- Returns:
- the order
-
getAltText
-