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

public class Photo extends InternalMedia implements VisualMedia
This class represents a Photo.
See Also:
  • Constructor Details

    • Photo

      public Photo()
    • Photo

      protected Photo(Photo other)
  • Method Details

    • getType

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

      public org.silverpeas.core.io.media.Definition getDefinition()
      Gets the definition of the photo.
      Specified by:
      getDefinition in interface VisualMedia
      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:
      setDefinition in interface VisualMedia
      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
      Parameters:
      mediaResolution - the media resolution
      Returns:
      the URL of media thumbnail.
    • getCopy

      public Photo getCopy()
      Description copied from class: Media
      Creates a copy of the instance.
      Specified by:
      getCopy in class Media
      Returns:
      the new instance.