| Package | Description | 
|---|---|
| com.communote.server.core.vo.content | |
| com.communote.server.model.attachment | |
| com.communote.server.persistence.attachment | 
| Modifier and Type | Method and Description | 
|---|---|
AttachmentStatus | 
AttachmentTO.getStatus()
 The status of the attachment to be used 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
AttachmentTO.setStatus(AttachmentStatus status)  | 
| Constructor and Description | 
|---|
AttachmentFileTO(File file,
                AttachmentStatus status)  | 
AttachmentRedirectTO(String redirectUrl,
                    AttachmentStatus status)  | 
AttachmentStreamTO(InputStream inputStream,
                  AttachmentStatus status)  | 
AttachmentTO(AttachmentStatus status)  | 
| Modifier and Type | Field and Description | 
|---|---|
static AttachmentStatus | 
AttachmentStatus.MARKED_FOR_DELETION
 The note of the attachment has been deleted or will be. 
 | 
static AttachmentStatus | 
AttachmentStatus.PUBLISHED
 The attachment has been published and assigned to a note. 
 | 
static AttachmentStatus | 
AttachmentStatus.UPLOADED
 The attachment has been uploaded but not assigned to a note yet. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static AttachmentStatus | 
AttachmentStatus.fromString(String value)
Creates an instance of AttachmentStatus from  
value. | 
AttachmentStatus | 
Attachment.getStatus()
 The status of the attachment 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Attachment | 
Attachment.Factory.newInstance(String contentIdentifier,
           String repositoryIdentifier,
           String name,
           AttachmentStatus status,
           Timestamp uploadDate)
Constructs a new instance of  
Attachment, taking all required and/or read-only
 properties as arguments. | 
static Attachment | 
Attachment.Factory.newInstance(String contentIdentifier,
           String repositoryIdentifier,
           String name,
           String contentType,
           Long size,
           AttachmentStatus status,
           Timestamp uploadDate,
           Note note,
           GlobalId globalId,
           User uploader,
           Set<AttachmentProperty> properties)
Constructs a new instance of  
Attachment, taking all possible properties (except
 the identifier(s))as arguments. | 
void | 
Attachment.setStatus(AttachmentStatus status)  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AttachmentStatusEnum  | 
Copyright © 2019 Communote team. All rights reserved.