|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itracker.model.AbstractEntity
org.itracker.model.IssueAttachment
public class IssueAttachment
A file attachment to an Issue.
An IssueAttachment can only belong to 1 Issue (composition).
| Nested Class Summary | |
|---|---|
static class |
IssueAttachment.OriginalFilenameComparator
Compares 2 attachments by original filename |
static class |
IssueAttachment.SizeComparator
Compares 2 attachments by file size. |
| Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity |
|---|
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator |
| Field Summary | |
|---|---|
static Comparator<IssueAttachment> |
ORIGIINAL_FILENAME_COMPARATOR
Compares 2 attachments by original filename. |
static Comparator<IssueAttachment> |
SIZE_COMPARATOR
Compares 2 attachments by file size. |
| Fields inherited from class org.itracker.model.AbstractEntity |
|---|
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR |
| Constructor Summary | |
|---|---|
IssueAttachment()
Default constructor (required by Hibernate). |
|
IssueAttachment(Issue issue,
String originalFileName)
|
|
IssueAttachment(Issue issue,
String origFileName,
String type,
String description,
long size)
Convenience constructor. |
|
IssueAttachment(Issue issue,
String origFileName,
String type,
String description,
long size,
User user)
Convenience constructor. |
|
| Method Summary | |
|---|---|
String |
getDescription()
|
byte[] |
getFileData()
|
String |
getFileExtension()
|
String |
getFileName()
|
Issue |
getIssue()
|
String |
getOriginalFileName()
|
long |
getSize()
|
String |
getType()
|
User |
getUser()
|
void |
setDescription(String value)
|
void |
setFileData(byte[] value)
|
void |
setFileName(String value)
|
void |
setIssue(Issue issue)
|
void |
setOriginalFileName(String fileName)
|
void |
setSize(long size)
|
void |
setType(String mimeType)
|
void |
setUser(User user)
|
String |
toString()
|
| Methods inherited from class org.itracker.model.AbstractEntity |
|---|
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public static final Comparator<IssueAttachment> SIZE_COMPARATOR
public static final Comparator<IssueAttachment> ORIGIINAL_FILENAME_COMPARATOR
| Constructor Detail |
|---|
public IssueAttachment()
PENDING: should be private so that it can only be used by
Hibernate, to ensure that the fields which form an instance's identity
are always initialized/never null.
public IssueAttachment(Issue issue,
String originalFileName)
public IssueAttachment(Issue issue,
String origFileName,
String type,
String description,
long size)
public IssueAttachment(Issue issue,
String origFileName,
String type,
String description,
long size,
User user)
| Method Detail |
|---|
public Issue getIssue()
public void setIssue(Issue issue)
public String getOriginalFileName()
public void setOriginalFileName(String fileName)
public String getType()
public void setType(String mimeType)
public String getFileName()
public void setFileName(String value)
public String getFileExtension()
public byte[] getFileData()
public void setFileData(byte[] value)
public String getDescription()
public void setDescription(String value)
public long getSize()
public void setSize(long size)
public User getUser()
public void setUser(User user)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||