com.silverpeas.attachment.web
Class AttachmentEntity

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

public class AttachmentEntity
extends Object
implements Exposable

Author:
ehugonnet
See Also:
Serialized Form

Constructor Summary
AttachmentEntity()
           
 
Method Summary
static AttachmentEntity fromAttachment(SimpleDocument detail)
           
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
 void withSharedUri(String baseURI, String token)
           
 void withUri(String baseURI)
           
 AttachmentEntity 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

AttachmentEntity

public AttachmentEntity()
Method Detail

fromAttachment

public static AttachmentEntity fromAttachment(SimpleDocument detail)

withURI

public AttachmentEntity 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.

withSharedUri

public void withSharedUri(String baseURI,
                          String token)

withUri

public void withUri(String baseURI)


Copyright © 2016 Silverpeas. All Rights Reserved.