public abstract class AttachmentBase extends Object implements Serializable
Base class that describes attachment.
Constructor and Description |
---|
AttachmentBase()
File data serialization requires parameterless constructor.
|
AttachmentBase(String sourceDocumentGuid,
String name)
Initializes a new instance of the
AttachmentBase class. |
Modifier and Type | Method and Description |
---|---|
String |
getDocumentType()
The type of the document.
|
String |
getDocumentTypeFormat()
The document type format.
|
String |
getExtension()
The file extension.
|
String |
getFileType()
The type of the file.
|
String |
getName()
The attachment name.
|
String |
getSourceDocumentGuid()
The guid of the source document.
|
void |
setName(String value)
The attachment name.
|
void |
setSourceDocumentGuid(String value)
The guid of the source document.
|
public AttachmentBase(String sourceDocumentGuid, String name)
Initializes a new instance of the AttachmentBase
class.
sourceDocumentGuid
- The source document guid.name
- The attachment name.public AttachmentBase()
File data serialization requires parameterless constructor.
public String getSourceDocumentGuid()
The guid of the source document. The guid is a file unique identifier, full path for local storage e.g. c:\\storage\\email.msg, relative path e.g email.msg, url e.g. http://site.com/email.msg
String
object.public void setSourceDocumentGuid(String value)
The guid of the source document. The guid is a file unique identifier, full path for local storage e.g. c:\\storage\\email.msg, relative path e.g email.msg, url e.g. http://site.com/email.msg
value
- a String
object.public String getDocumentTypeFormat()
The document type format.
Domain.DocumentTypeFormat.PORTABLE_DOCUMENT_FORMAT
, Domain.DocumentTypeFormat.MICROSOFT_WORD
,
Domain.DocumentTypeFormat.MICROSOFT_EXCEL
, Domain.DocumentTypeFormat.MICROSOFT_POWERPOINT
,
Domain.DocumentTypeFormat.MICROSOFT_VISIO
, Domain.DocumentTypeFormat.MICROSOFT_PROJECT
,
Domain.DocumentTypeFormat.MICROSOFT_OUTLOOK
, Domain.DocumentTypeFormat.OPENDOCUMENT_FORMATS
,
Domain.DocumentTypeFormat.RICH_TEXT_FORMAT
, Domain.DocumentTypeFormat.PLAIN_TEXT_FILE
,
Domain.DocumentTypeFormat.COMMA_SEPARATED_VALUES
, Domain.DocumentTypeFormat.HYPERTEXT_MARKUP_LANGUAGE
,
Domain.DocumentTypeFormat.EXTENSIBLE_MARKUP_LANGUAGE
, Domain.DocumentTypeFormat.XML_PAPER_SPECIFICATION
,
Domain.DocumentTypeFormat.IMAGE_FILES
, Domain.DocumentTypeFormat.ELECTRONIC_PUBLICATION
,
Domain.DocumentTypeFormat.WINDOWS_ICON
or Domain.DocumentTypeFormat.UNKNOWN
Copyright © 2018. All rights reserved.