com.silverpeas.gallery.model
Class Photo

java.lang.Object
  extended by com.silverpeas.gallery.model.Media
      extended by com.silverpeas.gallery.model.InternalMedia
          extended by com.silverpeas.gallery.model.Photo
All Implemented Interfaces:
com.silverpeas.SilverpeasContent, com.stratelia.silverpeas.contentManager.SilverContentInterface, Serializable

public class Photo
extends InternalMedia

This class represents a Photo.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.silverpeas.gallery.model.Media
BASE_PATH
 
Constructor Summary
Photo()
           
 
Method Summary
 String getApplicationEmbedUrl(MediaResolution mediaResolution)
          Gets the Application URL thumbnail of the media according the specified media resolution.
 org.silverpeas.media.Definition getDefinition()
          Gets the definition of the photo.
static String getResourceType()
          The type of this resource
 MediaType getType()
           
 boolean isPreviewable()
          Indicates if the media is previewable.
 void setDefinition(org.silverpeas.media.Definition definition)
          Sets the definition of the resolution.
 
Methods inherited from class com.silverpeas.gallery.model.InternalMedia
addMetaData, getApplicationThumbnailUrl, getDownloadPeriod, getFile, getFileMimeType, getFileName, getFileSize, getMetaData, getMetaDataProperties, isDownloadable, isDownloadAuthorized, setDownloadAuthorized, setDownloadPeriod, setFileMimeType, setFileName, setFileSize
 
Methods inherited from class com.silverpeas.gallery.model.Media
addToAlbums, canBeAccessedBy, equals, getApplicationOriginalUrl, getAuthor, getComponentInstanceId, getContributionType, getCreationDate, getCreator, getCreatorId, getCreatorName, getDate, getDescription, getDescription, getGreatestUserRole, getIconUrl, getId, getInstanceId, getInternalMedia, getKeyWord, getLanguages, getLastUpdateDate, getLastUpdatedBy, getLastUpdater, getLastUpdaterName, getMediaPK, getName, getName, getPermalink, getPhoto, getSilverCreationDate, getSilverpeasContentId, getSound, getStreaming, getTitle, getURL, getVideo, getVisibilityPeriod, getWorkspaceSubFolderName, hashCode, 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
 

Constructor Detail

Photo

public Photo()
Method Detail

getType

public MediaType getType()
Specified by:
getType in class Media

getDefinition

public org.silverpeas.media.Definition getDefinition()
Gets the definition of the photo.

Returns:
the definition of the photo.

setDefinition

public void setDefinition(org.silverpeas.media.Definition definition)
Sets the definition of the resolution.

Parameters:
definition - the definition of the resolution.

getResourceType

public static String getResourceType()
The type of this resource

Returns:
the same value returned by getContributionType()

isPreviewable

public boolean isPreviewable()
Description copied from class: Media
Indicates if the media is previewable.

Overrides:
isPreviewable in class Media
Returns:
true if the media is previewable, false otherwise.

getApplicationEmbedUrl

public String getApplicationEmbedUrl(MediaResolution mediaResolution)
Description copied from class: Media
Gets the Application URL thumbnail of the media according the specified media resolution.

Overrides:
getApplicationEmbedUrl in class Media
Returns:
the URL of media thumbnail.


Copyright © 2016 Silverpeas. All Rights Reserved.