org.silverpeas.attachment.web
Class SimpleDocumentEntity

java.lang.Object
  extended by org.silverpeas.attachment.web.SimpleDocumentEntity
All Implemented Interfaces:
Exposable, Serializable

public class SimpleDocumentEntity
extends Object
implements Exposable

Author:
ehugonnet
See Also:
Serialized Form

Constructor Summary
SimpleDocumentEntity()
           
 
Method Summary
static SimpleDocumentEntity fromAttachment(SimpleDocument document)
           
 String getComment()
           
 String getContentType()
           
 String getCreatedBy()
           
 long getCreationDate()
           
 String getDescription()
           
 String getDownloadUrl()
           
 String getFileName()
           
 String getIcon()
           
 String getId()
           
 String getInstanceId()
           
 String getLang()
           
 String getPermalink()
           
 long getSize()
           
 String getTitle()
           
 long getUpdateDate()
           
 String getUpdatedBy()
           
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
 String getVersioned()
           
 SimpleDocumentEntity withURI(URI uri)
          Sets a URI to this entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDocumentEntity

public SimpleDocumentEntity()
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: Exposable
Gets the URI at which this resource is published and can be accessed.

Specified by:
getURI in interface Exposable
Returns:
the web resource URI.

getId

public String getId()

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()


Copyright © 2016 Silverpeas. All Rights Reserved.