public class Attachment extends Representation
Modifier and Type | Field and Description |
---|---|
protected ContentHash |
contentHash |
protected String |
fileType |
protected String |
subject |
links
Constructor and Description |
---|
Attachment() |
Attachment(String subject,
FileType fileType) |
Modifier and Type | Method and Description |
---|---|
Link |
getAddContentLink() |
ContentHash |
getContentHash() |
FileType |
getFileType() |
protected List<Link> |
getLinks() |
Link |
getSelfLink() |
String |
getSubject() |
boolean |
isSameAttachmentAs(Attachment attachment) |
void |
setFileType(FileType fileType) |
protected void |
setLinks(List<Link> links) |
addLink, getLinkByRelationName
protected String subject
protected String fileType
protected ContentHash contentHash
public String getSubject()
public Link getSelfLink()
public Link getAddContentLink()
public boolean isSameAttachmentAs(Attachment attachment)
public FileType getFileType()
public void setFileType(FileType fileType)
public ContentHash getContentHash()
Copyright © 2014 Digipost Open Source. All rights reserved.