Class PreviewEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.viewer.AbstractPreviewEntity<PreviewEntity>
-
- org.silverpeas.core.webapi.viewer.PreviewEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class PreviewEntity extends AbstractPreviewEntity<PreviewEntity>
The preview entity is a preview instance that is exposed in the web as an entity (web entity).- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PreviewEntity()
protected
PreviewEntity(javax.servlet.http.HttpServletRequest request, Preview preview)
Default constructorC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PreviewEntity
createFrom(javax.servlet.http.HttpServletRequest request, Preview preview)
Creates a new Preview entity from the specified preview.protected String
getHeight()
protected String
getOriginalFileName()
protected String
getURL()
protected String
getWidth()
-
Methods inherited from class org.silverpeas.core.webapi.viewer.AbstractPreviewEntity
getURI, withURI
-
-
-
-
Constructor Detail
-
PreviewEntity
protected PreviewEntity(javax.servlet.http.HttpServletRequest request, Preview preview)
Default constructorC- Parameters:
request
-preview
-
-
PreviewEntity
protected PreviewEntity()
-
-
Method Detail
-
createFrom
public static PreviewEntity createFrom(javax.servlet.http.HttpServletRequest request, Preview preview)
Creates a new Preview entity from the specified preview.- Parameters:
request
- the current http requestpreview
- the preview to entitify.- Returns:
- the entity representing the specified preview.
-
getURL
protected String getURL()
- Returns:
- the url
-
getOriginalFileName
protected String getOriginalFileName()
- Returns:
- the originalFileName
-
getWidth
protected String getWidth()
- Returns:
- the width
-
getHeight
protected String getHeight()
- Returns:
- the height
-
-