org.silverpeas.viewer.web
Class PreviewEntity

java.lang.Object
  extended by org.silverpeas.viewer.web.AbstractPreviewEntity<PreviewEntity>
      extended by 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

Constructor Summary
protected PreviewEntity()
           
protected PreviewEntity(javax.servlet.http.HttpServletRequest request, Preview preview)
          Default constructorC
 
Method Summary
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.viewer.web.AbstractPreviewEntity
getURI, withURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 request
preview - 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.