Class DocumentViewEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.viewer.AbstractPreviewEntity<DocumentViewEntity>
-
- org.silverpeas.core.webapi.viewer.DocumentViewEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class DocumentViewEntity extends AbstractPreviewEntity<DocumentViewEntity>
The document view entity is a document view 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
DocumentViewEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DocumentViewEntity
createFrom(DocumentView documentView)
Creates a new document view entity from the specified document view.String
getViewerUri()
String
getViewMode()
-
Methods inherited from class org.silverpeas.core.webapi.viewer.AbstractPreviewEntity
getDocumentId, getDocumentType, getHeight, getLanguage, getOriginalFileName, getURI, getWidth, withURI
-
-
-
-
Method Detail
-
createFrom
public static DocumentViewEntity createFrom(DocumentView documentView)
Creates a new document view entity from the specified document view.- Parameters:
documentView
- theDocumentView
to transform toWebEntity
.- Returns:
- the entity representing the specified document view.
-
getViewerUri
public String getViewerUri()
-
getViewMode
public String getViewMode()
-
-