Class Streaming
- java.lang.Object
-
- org.silverpeas.components.gallery.model.Media
-
- org.silverpeas.components.gallery.model.Streaming
-
- All Implemented Interfaces:
Serializable,org.silverpeas.core.contribution.contentcontainer.content.SilverContentInterface,org.silverpeas.core.contribution.model.Contribution,org.silverpeas.core.contribution.model.SilverpeasContent,org.silverpeas.core.contribution.model.WithPermanentLink,org.silverpeas.core.Identifiable,org.silverpeas.core.Instance<org.silverpeas.core.contribution.model.Contribution>,org.silverpeas.core.Nameable,org.silverpeas.core.security.Securable,org.silverpeas.core.SilverpeasResource
public class Streaming extends Media
This class represents a Streaming.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetApplicationEmbedUrl(MediaResolution mediaResolution)Gets the Application URL thumbnail of the media according the specified media resolution.StringgetApplicationOriginalUrl()Gets the original URL of a media with cache handling.StreaminggetCopy()Creates a copy of the instance.org.silverpeas.core.io.file.SilverpeasFilegetFile(MediaResolution mediaResolution, String size)Gets the Silverpeas file.StringgetHomepageUrl()Gets the provider URL that permits to access to the video play.Optional<org.silverpeas.core.media.streaming.StreamingProvider>getProvider()Gets the streaming provider.static StringgetResourceType()The type of this resourceMediaTypegetType()inthashCode()voidsetHomepageUrl(String url)Sets the provider URL that permits to access to the video play.voidsetProvider(org.silverpeas.core.media.streaming.StreamingProvider provider)Gets the streaming provider.-
Methods inherited from class org.silverpeas.components.gallery.model.Media
addToAlbums, canBeAccessedBy, getApplicationThumbnailUrl, getAuthor, getContributionType, getCreationDate, getCreator, getCreatorId, getCreatorName, getDate, getDescription, getDescription, getFile, getHighestUserRole, getIconUrl, getId, getInstanceId, getInternalMedia, getKeyWord, getLanguages, getLastUpdateDate, getLastUpdatedBy, getLastUpdater, getLastUpdaterName, getMediaPK, getName, getName, getPermalink, getPhoto, getSilverCreationDate, getSilverpeasContentId, getSound, getStreaming, getTitle, getURL, getVideo, getVisibilityPeriod, getWorkspaceSubFolderName, isDownloadable, isPreviewable, isVisible, isVisible, removeFromAllAlbums, setAuthor, setComponentInstanceId, setCreationDate, setCreator, setCreatorId, setDescription, setIconUrl, setId, setKeyWord, setLastUpdateDate, setLastUpdatedBy, setLastUpdater, setMediaPK, setSilverpeasContentId, setTitle, setToAlbums, setVisibilityPeriod, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.contribution.model.Contribution
getModel, getResourcePath, isIndexable
-
Methods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy, canBeModifiedBy
-
-
-
-
Constructor Detail
-
Streaming
public Streaming()
-
Streaming
protected Streaming(Streaming other)
-
-
Method Detail
-
getHomepageUrl
public String getHomepageUrl()
Gets the provider URL that permits to access to the video play.- Returns:
- the provider URL that permits to access to the video play.
-
setHomepageUrl
public void setHomepageUrl(String url)
Sets the provider URL that permits to access to the video play.- Parameters:
url- the provider URL that permits to access to the video play.
-
getProvider
public Optional<org.silverpeas.core.media.streaming.StreamingProvider> getProvider()
Gets the streaming provider.- Returns:
- the streaming provider.
-
setProvider
public void setProvider(org.silverpeas.core.media.streaming.StreamingProvider provider)
Gets the streaming provider.- Parameters:
provider- the streaming provider.
-
getResourceType
public static String getResourceType()
The type of this resource- Returns:
- the same value returned by getContributionType()
-
getApplicationOriginalUrl
public String getApplicationOriginalUrl()
Description copied from class:MediaGets the original URL of a media with cache handling.- Overrides:
getApplicationOriginalUrlin classMedia- Returns:
- the URL of the media
-
getFile
public org.silverpeas.core.io.file.SilverpeasFile getFile(MediaResolution mediaResolution, String size)
Description copied from class:MediaGets the Silverpeas file.
-
getApplicationEmbedUrl
public String getApplicationEmbedUrl(MediaResolution mediaResolution)
Description copied from class:MediaGets the Application URL thumbnail of the media according the specified media resolution.- Overrides:
getApplicationEmbedUrlin classMedia- Returns:
- the URL of media thumbnail.
-
getCopy
public Streaming getCopy()
Description copied from class:MediaCreates a copy of the instance.
-
-