Package org.silverpeas.core.viewer.model
Class AbstractPreview
- java.lang.Object
-
- org.silverpeas.core.viewer.model.AbstractPreview
-
- All Implemented Interfaces:
Serializable
,Preview
- Direct Known Subclasses:
AbstractView
,TemporaryPreview
public abstract class AbstractPreview extends Object implements Preview
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayLicenseKey()
Getting the license of display software product if anyString
getDocumentId()
Getting the document identifier.String
getDocumentType()
Getting the document type (not mime-type, but document service type, 'attachment' for example).String
getHeight()
Getting the height of the documentString
getLanguage()
Getting the language of the document content.String
getOriginalFileName()
Getting the original file of the documentFile
getPhysicalFile()
Getting the physical file of the documentPath
getServerFilePath()
GettingPath
of the document on the server.String
getURLAsString()
Getting URL of the documentString
getWidth()
Getting the width of the document
-
-
-
Method Detail
-
getDisplayLicenseKey
public String getDisplayLicenseKey()
Description copied from interface:Preview
Getting the license of display software product if any- Specified by:
getDisplayLicenseKey
in interfacePreview
- Returns:
- a string.
-
getDocumentId
public String getDocumentId()
Description copied from interface:Preview
Getting the document identifier.- Specified by:
getDocumentId
in interfacePreview
- Returns:
- a string.
-
getDocumentType
public String getDocumentType()
Description copied from interface:Preview
Getting the document type (not mime-type, but document service type, 'attachment' for example).- Specified by:
getDocumentType
in interfacePreview
- Returns:
- a string.
-
getLanguage
public String getLanguage()
Description copied from interface:Preview
Getting the language of the document content.- Specified by:
getLanguage
in interfacePreview
- Returns:
- a string.
-
getOriginalFileName
public String getOriginalFileName()
Description copied from interface:Preview
Getting the original file of the document- Specified by:
getOriginalFileName
in interfacePreview
- Returns:
- a string.
-
getPhysicalFile
public File getPhysicalFile()
Description copied from interface:Preview
Getting the physical file of the document- Specified by:
getPhysicalFile
in interfacePreview
- Returns:
- a
File
instance.
-
getWidth
public String getWidth()
Description copied from interface:Preview
Getting the width of the document
-
getHeight
public String getHeight()
Description copied from interface:Preview
Getting the height of the document
-
getURLAsString
public String getURLAsString()
Description copied from interface:Preview
Getting URL of the document- Specified by:
getURLAsString
in interfacePreview
- Returns:
- a string.
-
-