Class AbstractPreviewEntity<T extends AbstractPreviewEntity<T>>
- java.lang.Object
-
- org.silverpeas.core.webapi.viewer.AbstractPreviewEntity<T>
-
- All Implemented Interfaces:
Serializable
,WebEntity
- Direct Known Subclasses:
DocumentViewEntity
,PreviewEntity
public abstract class AbstractPreviewEntity<T extends AbstractPreviewEntity<T>> extends Object implements WebEntity
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
AbstractPreviewEntity()
protected
AbstractPreviewEntity(Preview preview)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDocumentId()
String
getDocumentType()
String
getHeight()
String
getLanguage()
String
getOriginalFileName()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.String
getWidth()
T
withURI(URI uri)
Sets a URI to this entity.
-
-
-
Method Detail
-
withURI
public T withURI(URI uri)
Sets a URI to this entity. With this URI, it can then be accessed through the Web.- Parameters:
uri
- the web entity URI.- Returns:
- itself.
-
getURI
public URI getURI()
Description copied from interface:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
getDocumentId
public String getDocumentId()
-
getDocumentType
public String getDocumentType()
-
getOriginalFileName
public String getOriginalFileName()
-
getWidth
public String getWidth()
-
getHeight
public String getHeight()
-
getLanguage
public String getLanguage()
-
-