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(Preview preview)
Default constructorC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PreviewEntity
createFrom(Preview preview)
Creates a new Preview entity from the specified preview.String
getURL()
-
Methods inherited from class org.silverpeas.core.webapi.viewer.AbstractPreviewEntity
getDocumentId, getDocumentType, getHeight, getLanguage, getOriginalFileName, getURI, getWidth, withURI
-
-
-
-
Method Detail
-
createFrom
public static PreviewEntity createFrom(Preview preview)
Creates a new Preview entity from the specified preview.- Parameters:
preview
- the preview to transform toWebEntity
.- Returns:
- the entity representing the specified preview.
-
getURL
public String getURL()
- Returns:
- the url
-
-