Class Photo
java.lang.Object
org.silverpeas.components.gallery.model.Media
org.silverpeas.components.gallery.model.InternalMedia
org.silverpeas.components.gallery.model.Photo
- All Implemented Interfaces:
Serializable,VisualMedia,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 Photo.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApplicationEmbedUrl(MediaResolution mediaResolution) Gets the Application URL thumbnail of the media according the specified media resolution.getCopy()Creates a copy of the instance.org.silverpeas.core.io.media.DefinitionGets the definition of the photo.static StringThe type of this resourcegetType()booleanIndicates if the media is previewable.voidsetDefinition(org.silverpeas.core.io.media.Definition definition) Sets the definition of the resolution.Methods inherited from class org.silverpeas.components.gallery.model.InternalMedia
equals, getAllMetaData, getApplicationThumbnailUrl, getDownloadPeriod, getFile, getFileMimeType, getFileName, getFileSize, hashCode, isDownloadable, isDownloadAuthorized, setDownloadAuthorized, setDownloadPeriod, setFileMimeType, setFileName, setFileSizeMethods inherited from class org.silverpeas.components.gallery.model.Media
addToAlbums, canBeAccessedBy, getApplicationOriginalUrl, 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, 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
-
Photo
public Photo() -
Photo
-
-
Method Details
-
getType
-
getDefinition
public org.silverpeas.core.io.media.Definition getDefinition()Gets the definition of the photo.- Specified by:
getDefinitionin interfaceVisualMedia- Returns:
- the definition of the photo.
-
setDefinition
public void setDefinition(org.silverpeas.core.io.media.Definition definition) Sets the definition of the resolution.- Specified by:
setDefinitionin interfaceVisualMedia- Parameters:
definition- the definition of the resolution.
-
getResourceType
The type of this resource- Returns:
- the same value returned by getContributionType()
-
isPreviewable
public boolean isPreviewable()Description copied from class:MediaIndicates if the media is previewable.- Overrides:
isPreviewablein classMedia- Returns:
- true if the media is previewable, false otherwise.
-
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.
-