Class MediaItem

java.lang.Object
io.goobi.viewer.model.cms.media.MediaItem

public class MediaItem extends Object
Simple representation of a cms-media-item
Author:
florian
  • Constructor Details

    • MediaItem

      public MediaItem(URI imageURI)
      Parameters:
      imageURI -
    • MediaItem

      public MediaItem(CMSMediaItem source, javax.servlet.http.HttpServletRequest servletRequest)
      Parameters:
      source -
      servletRequest -
  • Method Details

    • getMediaResource

      public static de.intranda.api.iiif.presentation.content.IContent getMediaResource(CMSMediaItem source)
      Parameters:
      source -
      Returns:
      IContent
    • getImageURI

      public URI getImageURI()
    • getImageURI

      public URI getImageURI(int maxWidth, int maxHeight)
    • getId

      public Long 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

      public String getLink()
      Returns:
      the link
    • getTags

      public List<String> getTags()
      Returns:
      the tags
    • isImportant

      public boolean isImportant()
      Returns:
      the important
    • getOrder

      public Integer getOrder()
      Returns:
      the order
    • getAltText

      public String getAltText()