org.silverpeas.viewer.web
Class PreviewEntity
java.lang.Object
org.silverpeas.viewer.web.AbstractPreviewEntity<PreviewEntity>
org.silverpeas.viewer.web.PreviewEntity
- All Implemented Interfaces:
- Exposable, Serializable
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreviewEntity
protected PreviewEntity(javax.servlet.http.HttpServletRequest request,
Preview preview)
- Default constructorC
- Parameters:
request
- preview
-
PreviewEntity
protected PreviewEntity()
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
Copyright © 2016 Silverpeas. All Rights Reserved.