public static final class Attachment.Factory extends Object
Attachment.| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
static Attachment |
newInstance()
Constructs a new instance of
Attachment. |
static Attachment |
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 |
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. |
public static Attachment newInstance()
Attachment.public static Attachment newInstance(String contentIdentifier, String repositoryIdentifier, String name, AttachmentStatus status, Timestamp uploadDate)
Attachment, taking all required and/or read-only
properties as arguments.public static Attachment newInstance(String contentIdentifier, String repositoryIdentifier, String name, String contentType, Long size, AttachmentStatus status, Timestamp uploadDate, Note note, GlobalId globalId, User uploader, Set<AttachmentProperty> properties)
Attachment, taking all possible properties (except
the identifier(s))as arguments.Copyright © 2019 Communote team. All rights reserved.