Package com.taskadapter.redmineapi.bean
Class File
- java.lang.Object
-
- com.taskadapter.redmineapi.bean.File
-
- All Implemented Interfaces:
FluentStyle,Identifiable
public class File extends java.lang.Object implements Identifiable, FluentStyle
-
-
Field Summary
Fields Modifier and Type Field Description static Property<User>AUTHORstatic Property<java.lang.String>CONTENT_TYPEstatic Property<java.lang.String>CONTENT_URLstatic Property<java.util.Date>CREATED_ONstatic Property<java.lang.Integer>DATABASE_IDdatabase numeric Idstatic Property<java.lang.String>DESCRIPTIONstatic Property<java.lang.String>DIGESTstatic Property<java.lang.Integer>DOWNLOADSstatic Property<java.lang.String>FILENAMEstatic Property<java.lang.Long>FILESIZEstatic Property<java.lang.String>TOKENstatic Property<Version>VERSION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)UsergetAuthor()java.lang.StringgetContentType()java.lang.StringgetContentURL()java.util.DategetCreatedOn()java.lang.StringgetDescription()Description is empty by default, not NULL.java.lang.StringgetDigest()intgetDownloads()java.lang.StringgetFileName()java.lang.LonggetFileSize()java.lang.IntegergetId()PropertyStoragegetStorage()java.lang.StringgetToken()VersiongetVersion()inthashCode()FilesetAuthor(User author)FilesetContentType(java.lang.String contentType)FilesetContentURL(java.lang.String contentURL)FilesetCreatedOn(java.util.Date createdOn)FilesetDescription(java.lang.String description)FilesetDigest(java.lang.String digest)FilesetDownloads(int downloads)FilesetFileName(java.lang.String fileName)FilesetFileSize(java.lang.Long fileSize)FilesetId(java.lang.Integer id)FilesetToken(java.lang.String token)voidsetTransport(Transport transport)FilesetVersion(Version version)java.lang.StringtoString()
-
-
-
Field Detail
-
DATABASE_ID
public static final Property<java.lang.Integer> DATABASE_ID
database numeric Id
-
FILENAME
public static final Property<java.lang.String> FILENAME
-
FILESIZE
public static final Property<java.lang.Long> FILESIZE
-
CONTENT_TYPE
public static final Property<java.lang.String> CONTENT_TYPE
-
DESCRIPTION
public static final Property<java.lang.String> DESCRIPTION
-
CONTENT_URL
public static final Property<java.lang.String> CONTENT_URL
-
CREATED_ON
public static final Property<java.util.Date> CREATED_ON
-
DIGEST
public static final Property<java.lang.String> DIGEST
-
DOWNLOADS
public static final Property<java.lang.Integer> DOWNLOADS
-
TOKEN
public static final Property<java.lang.String> TOKEN
-
-
Constructor Detail
-
File
public File(Transport transport)
-
-
Method Detail
-
setTransport
public void setTransport(Transport transport)
- Specified by:
setTransportin interfaceFluentStyle
-
setId
public File setId(java.lang.Integer id)
-
getId
public java.lang.Integer getId()
- Specified by:
getIdin interfaceIdentifiable
-
getContentType
public java.lang.String getContentType()
-
setContentType
public File setContentType(java.lang.String contentType)
-
getContentURL
public java.lang.String getContentURL()
-
setContentURL
public File setContentURL(java.lang.String contentURL)
-
getDescription
public java.lang.String getDescription()
Description is empty by default, not NULL.
-
setDescription
public File setDescription(java.lang.String description)
-
getCreatedOn
public java.util.Date getCreatedOn()
-
setCreatedOn
public File setCreatedOn(java.util.Date createdOn)
-
getAuthor
public User getAuthor()
-
getFileName
public java.lang.String getFileName()
-
setFileName
public File setFileName(java.lang.String fileName)
-
getFileSize
public java.lang.Long getFileSize()
-
setFileSize
public File setFileSize(java.lang.Long fileSize)
-
getVersion
public Version getVersion()
-
getDigest
public java.lang.String getDigest()
-
setDigest
public File setDigest(java.lang.String digest)
-
getDownloads
public int getDownloads()
-
setDownloads
public File setDownloads(int downloads)
-
getToken
public java.lang.String getToken()
-
setToken
public File setToken(java.lang.String token)
-
getStorage
public PropertyStorage getStorage()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-