Class GalleryResourceURIs

java.lang.Object
org.silverpeas.components.gallery.constant.GalleryResourceURIs

public final class GalleryResourceURIs extends Object
Base URIs from which the REST-based ressources representing gallery entities are defined.
Author:
Yohann Chastagnier
  • Field Details

  • Method Details

    • buildAlbumURI

      public static URI buildAlbumURI(AlbumDetail album)
      Centralized the build of an album URI.
      Parameters:
      album - the album.
      Returns:
      the computed URI.
    • buildAlbumURI

      public static URI buildAlbumURI(org.silverpeas.core.node.model.NodePK albumPk)
      Centralized the build of an album URI.
      Parameters:
      albumPk - the album.
      Returns:
      the computed URI.
    • buildMediaInAlbumURI

      public static URI buildMediaInAlbumURI(AlbumDetail album, Media media)
      Centralized the build of a media URI contained in a specified album.
      Parameters:
      album - the album that contains the media.
      media - the media.
      Returns:
      the computed URI.
    • buildMediaContentURI

      public static URI buildMediaContentURI(Media media, MediaResolution mediaResolution)
      Centralized the build of a media content URI according to the specified resolution.
      Parameters:
      media - the media.
      mediaResolution - the requested resolution.
      Returns:
      the computed URI.
    • buildMediaEmbedURI

      public static URI buildMediaEmbedURI(Media media, MediaResolution mediaResolution)
      Centralized the build of a media embed URI according to the specified resolution.
      Parameters:
      media - the media.
      mediaResolution - the requested resolution.
      Returns:
      the computed URI.
    • buildVideoThumbnailURI

      public static URI buildVideoThumbnailURI(Media media, org.silverpeas.core.io.media.video.ThumbnailPeriod thumbnail)
      Centralized the build of a video thumbnail URI according to the given ThumbnailPeriod.
      Parameters:
      media - the media.
      thumbnail - the thumbnail period.
      Returns:
      the computed URI.