public class Attachment extends java.lang.Object implements Identifiable, FluentStyle
Modifier and Type | Field and Description |
---|---|
static Property<User> |
AUTHOR |
static Property<java.lang.String> |
CONTENT_TYPE |
static Property<java.lang.String> |
CONTENT_URL |
static Property<java.util.Date> |
CREATED_ON |
static Property<java.lang.Integer> |
DATABASE_ID
database numeric Id
|
static Property<java.lang.String> |
DESCRIPTION |
static Property<java.lang.String> |
FILE_NAME |
static Property<java.lang.Long> |
FILE_SIZE |
static Property<java.lang.String> |
TOKEN |
Constructor and Description |
---|
Attachment(Transport transport) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
delete the attachment with pre-configured ID from the server.
|
boolean |
equals(java.lang.Object o) |
User |
getAuthor() |
java.lang.String |
getContentType() |
java.lang.String |
getContentURL() |
java.util.Date |
getCreatedOn() |
java.lang.String |
getDescription()
Description is empty by default, not NULL.
|
java.lang.String |
getFileName() |
java.lang.Long |
getFileSize() |
java.lang.Integer |
getId() |
PropertyStorage |
getStorage() |
java.lang.String |
getToken() |
int |
hashCode() |
Attachment |
setAuthor(User author) |
Attachment |
setContentType(java.lang.String contentType) |
Attachment |
setContentURL(java.lang.String contentURL) |
Attachment |
setCreatedOn(java.util.Date createdOn) |
Attachment |
setDescription(java.lang.String description) |
Attachment |
setFileName(java.lang.String fileName) |
Attachment |
setFileSize(java.lang.Long fileSize) |
Attachment |
setId(java.lang.Integer id) |
Attachment |
setToken(java.lang.String token) |
void |
setTransport(Transport transport) |
java.lang.String |
toString() |
public static final Property<java.lang.Integer> DATABASE_ID
public static final Property<java.lang.String> FILE_NAME
public static final Property<java.lang.Long> FILE_SIZE
public static final Property<java.lang.String> CONTENT_TYPE
public static final Property<java.lang.String> CONTENT_URL
public static final Property<java.lang.String> DESCRIPTION
public static final Property<java.util.Date> CREATED_ON
public static final Property<java.lang.String> TOKEN
public Attachment(Transport transport)
public Attachment setId(java.lang.Integer id)
public java.lang.Integer getId()
getId
in interface Identifiable
public java.lang.String getContentType()
public Attachment setContentType(java.lang.String contentType)
public java.lang.String getContentURL()
public Attachment setContentURL(java.lang.String contentURL)
public java.lang.String getDescription()
public Attachment setDescription(java.lang.String description)
public java.util.Date getCreatedOn()
public Attachment setCreatedOn(java.util.Date createdOn)
public User getAuthor()
public Attachment setAuthor(User author)
public java.lang.String getFileName()
public Attachment setFileName(java.lang.String fileName)
public java.lang.Long getFileSize()
public Attachment setFileSize(java.lang.Long fileSize)
public java.lang.String getToken()
public Attachment setToken(java.lang.String token)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public PropertyStorage getStorage()
public void delete() throws RedmineException
RedmineException
public void setTransport(Transport transport)
setTransport
in interface FluentStyle