Class VideoEntity
- java.lang.Object
-
- org.silverpeas.components.gallery.web.AbstractMediaEntity<VideoEntity>
-
- org.silverpeas.components.gallery.web.VideoEntity
-
- All Implemented Interfaces:
Serializable
,org.silverpeas.core.web.rs.WebEntity
public class VideoEntity extends AbstractMediaEntity<VideoEntity>
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VideoEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VideoEntity
createFrom(Video video)
Creates a new video entity from the specified video.URI
getEmbedUrl()
Get embed URL.-
Methods inherited from class org.silverpeas.components.gallery.web.AbstractMediaEntity
equals, getAuthor, getDescription, getHeight, getId, getParentURI, getThumbUrl, getTitle, getType, getURI, getUrl, getWidth, hashCode, setAuthor, setDescription, setId, setTitle, setType, withHeight, withOriginalUrl, withParentURI, withThumbUrl, withURI, withWidth
-
-
-
-
Method Detail
-
createFrom
public static VideoEntity createFrom(Video video)
Creates a new video entity from the specified video.- Parameters:
video
-- Returns:
- the entity representing the specified video.
-
getEmbedUrl
public URI getEmbedUrl()
Get embed URL.- Returns:
-
-