Class PhotoEntity
java.lang.Object
org.silverpeas.components.gallery.web.AbstractMediaEntity<PhotoEntity>
org.silverpeas.components.gallery.web.PhotoEntity
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.rs.WebEntity
- Author:
- Yohann Chastagnier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PhotoEntitycreateFrom(Photo photo) Creates a new photo entity from the specified photo.withNormalUrl(URI normalUrl) withPreviewUrl(URI previewUrl) Methods inherited from class org.silverpeas.components.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
-
Constructor Details
-
PhotoEntity
protected PhotoEntity()
-
-
Method Details
-
createFrom
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
-
withNormalUrl
-
getPreviewUrl
- Returns:
- the previewUrl
-
getNormalUrl
- Returns:
- the normalUrl
-