Class PhotoEntity

All Implemented Interfaces:
Serializable, org.silverpeas.core.web.rs.WebEntity

public class PhotoEntity extends AbstractMediaEntity<PhotoEntity>
Author:
Yohann Chastagnier
See Also:
  • Constructor Details

    • PhotoEntity

      protected PhotoEntity()
  • Method Details

    • createFrom

      public static PhotoEntity createFrom(Photo photo)
      Creates a new photo entity from the specified photo.
      Parameters:
      photo - photo from which the entity is constructed
      Returns:
      the entity representing the specified photo.
    • withPreviewUrl

      public PhotoEntity withPreviewUrl(URI previewUrl)
    • withNormalUrl

      public PhotoEntity withNormalUrl(URI normalUrl)
    • getPreviewUrl

      public URI getPreviewUrl()
      Returns:
      the previewUrl
    • getNormalUrl

      public URI getNormalUrl()
      Returns:
      the normalUrl