Class AttachmentEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.attachment.AttachmentEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class AttachmentEntity extends Object implements WebEntity
- Author:
- ehugonnet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttachmentEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentEntity
fromAttachment(SimpleDocument detail)
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.void
withBaseUri(String baseURI)
void
withSharedUri(String baseURI, String token)
AttachmentEntity
withURI(URI uri)
Sets a URI to this entity.
-
-
-
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:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
withBaseUri
public void withBaseUri(String baseURI)
-
-