com.silverpeas.gallery.web
Class PhotoEntity
java.lang.Object
  
com.silverpeas.gallery.web.AbstractMediaEntity<PhotoEntity>
      
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
 
 
 
| 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 | 
 
 
PhotoEntity
protected PhotoEntity()
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.