Class GalleryResourceURIs
java.lang.Object
org.silverpeas.components.gallery.constant.GalleryResourceURIs
Base URIs from which the REST-based ressources representing gallery entities are defined.
- Author:
- Yohann Chastagnier
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic URIbuildAlbumURI(AlbumDetail album) Centralized the build of an album URI.static URIbuildAlbumURI(org.silverpeas.core.node.model.NodePK albumPk) Centralized the build of an album URI.static URIbuildMediaContentURI(Media media, MediaResolution mediaResolution) Centralized the build of a media content URI according to the specified resolution.static URIbuildMediaEmbedURI(Media media, MediaResolution mediaResolution) Centralized the build of a media embed URI according to the specified resolution.static URIbuildMediaInAlbumURI(AlbumDetail album, Media media) Centralized the build of a media URI contained in a specified album.static URIbuildVideoThumbnailURI(Media media, org.silverpeas.core.io.media.video.ThumbnailPeriod thumbnail) Centralized the build of a video thumbnail URI according to the given ThumbnailPeriod.
-
Field Details
-
GALLERY_BASE_URI
- See Also:
-
GALLERY_ALBUMS_URI_PART
- See Also:
-
GALLERY_PHOTOS_PART
- See Also:
-
GALLERY_PHOTO_RESOLUTION_PARAM
- See Also:
-
GALLERY_VIDEOS_PART
- See Also:
-
GALLERY_SOUNDS_PART
- See Also:
-
GALLERY_MEDIA_CONTENT_PART
- See Also:
-
GALLERY_MEDIA_EMBED_PART
- See Also:
-
GALLERY_STREAMINGS_PART
- See Also:
-
GALLERY_MEDIA_THUMBNAIL_PART
- See Also:
-
GALLERY_STREAMING_PROVIDER_DATA_PART
- See Also:
-
-
Method Details
-
buildAlbumURI
Centralized the build of an album URI.- Parameters:
album- the album.- Returns:
- the computed URI.
-
buildAlbumURI
Centralized the build of an album URI.- Parameters:
albumPk- the album.- Returns:
- the computed URI.
-
buildMediaInAlbumURI
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
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
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.
-