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 protectedAbstractPreviewEntity()protectedAbstractPreviewEntity(Preview preview)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDocumentId()StringgetDocumentType()StringgetHeight()StringgetLanguage()StringgetOriginalFileName()URIgetURI()Gets the URI at which this web entity is published and can be accessed.StringgetWidth()TwithURI(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:WebEntityGets 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()
-
-