com.silverpeas.gallery.web
Class PhotoEntity

java.lang.Object
  extended by com.silverpeas.gallery.web.AbstractMediaEntity<PhotoEntity>
      extended by com.silverpeas.gallery.web.PhotoEntity
All Implemented Interfaces:
com.silverpeas.web.Exposable, Serializable

public class PhotoEntity
extends AbstractMediaEntity<PhotoEntity>

Author:
Yohann Chastagnier
See Also:
Serialized Form

Constructor Summary
protected PhotoEntity()
           
 
Method Summary
static PhotoEntity createFrom(Photo photo)
          Creates a new photo entity from the specified photo.
 URI getPreviewUrl()
           
 PhotoEntity withPreviewUrl(URI previewUrl)
           
 
Methods inherited from class com.silverpeas.gallery.web.AbstractMediaEntity
equals, getAuthor, getDescription, getHeight, getId, getParentURI, getThumbUrl, getTitle, getType, getURI, getUrl, getWidth, hashCode, setAuthor, setDescription, setId, setTitle, setType, withHeight, withOriginalUrl, withParentURI, withThumbUrl, withURI, withWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhotoEntity

protected PhotoEntity()
Method Detail

createFrom

public static PhotoEntity createFrom(Photo photo)
Creates a new photo entity from the specified photo.

Parameters:
photo -
Returns:
the entity representing the specified photo.

withPreviewUrl

public PhotoEntity withPreviewUrl(URI previewUrl)

getPreviewUrl

public URI getPreviewUrl()
Returns:
the previewUrl


Copyright © 2016 Silverpeas. All Rights Reserved.