Class SimpleDocumentEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.attachment.SimpleDocumentEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class SimpleDocumentEntity extends Object implements WebEntity
- Author:
- ehugonnet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleDocumentEntity()
-
Method Summary
-
-
-
Method Detail
-
fromAttachment
public static SimpleDocumentEntity fromAttachment(SimpleDocument document)
-
withURI
public SimpleDocumentEntity 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.
-
getId
public String getId()
-
getSpId
public Long getSpId()
-
getInstanceId
public String getInstanceId()
-
getFileName
public String getFileName()
-
getDescription
public String getDescription()
-
getContentType
public String getContentType()
-
getCreationDate
public long getCreationDate()
-
getCreatedBy
public String getCreatedBy()
-
getUpdateDate
public long getUpdateDate()
-
getUpdatedBy
public String getUpdatedBy()
-
getSize
public long getSize()
-
getTitle
public String getTitle()
-
getLang
public String getLang()
-
getIcon
public String getIcon()
-
getPermalink
public String getPermalink()
-
getDownloadUrl
public String getDownloadUrl()
-
getComment
public String getComment()
-
getVersioned
public String getVersioned()
-
getPrewiewable
public Boolean getPrewiewable()
-
prewiewable
public SimpleDocumentEntity prewiewable(boolean prewiewable)
-
getViewable
public Boolean getViewable()
-
viewable
public SimpleDocumentEntity viewable(boolean viewable)
-
getDisplayAsContent
public Boolean getDisplayAsContent()
-
displayAsContent
public SimpleDocumentEntity displayAsContent(boolean displayAsContent)
-
getWidthInPixel
public Integer getWidthInPixel()
-
widthInPixelOf
public SimpleDocumentEntity widthInPixelOf(Integer width)
-
getHeightInPixel
public Integer getHeightInPixel()
-
heightInPixelOf
public SimpleDocumentEntity heightInPixelOf(Integer height)
-
-