Package lumis.portal.bigdata
Class Attachment
- java.lang.Object
-
- lumis.portal.bigdata.Attachment
-
- All Implemented Interfaces:
Serializable
@StableMinor(version="14.0", sinceVersion="8.1") public class Attachment extends Object implements Serializable
Attachment to aDocument
object. Contains the information about a single attachment.- Since:
- 8.1.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IInputStreamProvider
getContentProvider()
Returns the content data for this attachment.String
getContentType()
Returns the MIME content type for this attachment.String
getName()
Returns the name for this attachment.Attachment
setContentProvider(IInputStreamProvider contentProvider)
Sets the content data for this attachment.Attachment
setContentType(String contentType)
Sets the MIME content type for this attachment.Attachment
setName(String name)
Sets the name for this attachment.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name for this attachment.- Returns:
- the name.
- Since:
- 8.1.0
-
setName
public Attachment setName(String name)
Sets the name for this attachment.- Parameters:
name
- the name.- Since:
- 8.1.0
-
getContentType
public String getContentType()
Returns the MIME content type for this attachment.- Returns:
- the MIME content type.
- Since:
- 8.1.0
-
setContentType
public Attachment setContentType(String contentType)
Sets the MIME content type for this attachment.- Parameters:
contentType
- the MIME content type.- Since:
- 8.1.0
-
getContentProvider
public IInputStreamProvider getContentProvider()
Returns the content data for this attachment.- Returns:
- the content data for this attachment.
- Since:
- 8.1.0
-
setContentProvider
public Attachment setContentProvider(IInputStreamProvider contentProvider)
Sets the content data for this attachment.- Parameters:
content
- the content data.- Since:
- 8.1.0
-
-