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.model.Contribution,org.silverpeas.core.contribution.model.SilverpeasContent,org.silverpeas.core.contribution.model.WithPermanentLink,org.silverpeas.core.contribution.model.WithURL,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
This class represents a Streaming.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetApplicationEmbedUrl(MediaResolution mediaResolution) Gets the Application URL thumbnail of the media according the specified media resolution.Gets the original URL of a media with cache handling.getCopy()Creates a copy of the instance.org.silverpeas.core.io.file.SilverpeasFilegetFile(MediaResolution mediaResolution, String size) Gets the Silverpeas file.Gets the provider URL that permits to access to the video play.Optional<org.silverpeas.core.media.streaming.StreamingProvider>Gets the streaming provider.static StringThe type of this resourcegetType()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, getComponentInstanceId, getContributionType, getCreationDate, getCreator, getCreatorId, getCreatorName, getDescription, getFile, getHighestUserRole, getId, getInstanceId, getInternalMedia, getKeyWord, getLastUpdateDate, getLastUpdatedBy, getLastUpdater, getLastUpdaterName, getMediaPK, getPermalink, getPhoto, getSilverpeasContentId, getSound, getStreaming, getTitle, getURL, getVideo, getVisibilityPeriod, getWorkspaceSubFolderName, isDownloadable, isPreviewable, isVisible, isVisible, removeFromAllAlbums, setAuthor, setComponentInstanceId, setCreationDate, setCreator, setCreatorId, setDescription, setId, setKeyWord, setLastUpdateDate, setLastUpdatedBy, setLastUpdater, setMediaPK, setSilverpeasContentId, setTitle, setToAlbums, setVisibilityPeriod, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.silverpeas.core.contribution.model.Contribution
getModel, getName, getResourcePath, isIndexableMethods inherited from interface org.silverpeas.core.Instance
getParentMethods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy, canBeModifiedByMethods inherited from interface org.silverpeas.core.contribution.model.SilverpeasContent
getIdentifier
-
Constructor Details
-
Streaming
public Streaming() -
Streaming
-
-
Method Details
-
getType
-
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
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
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
The type of this resource- Returns:
- the same value returned by getContributionType()
-
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
Description copied from class:MediaGets the Application URL thumbnail of the media according the specified media resolution.- Overrides:
getApplicationEmbedUrlin classMedia- Parameters:
mediaResolution- the media resolution- Returns:
- the URL of media thumbnail.
-
getCopy
Description copied from class:MediaCreates a copy of the instance. -
equals
-
hashCode
public int hashCode()
-