public class QBFile extends QBEntity
Constructor and Description |
---|
QBFile()
Constructs a new QBFile object
|
QBFile(java.lang.Integer id)
Constructs a new QBFile object with id
|
QBFile(java.lang.String uid)
Constructs a new QBFile object with uid
|
Modifier and Type | Method and Description |
---|---|
void |
copyFieldsTo(QBEntity entity)
Copy the data of all fields to another instance
|
java.util.Date |
getCompletedAt()
Gets the completed at date
|
java.lang.String |
getContentType()
Gets the content type
|
QBFileObjectAccess |
getFileObjectAccess()
Gets the file object access
|
java.util.Date |
getLastReadAccessTime()
Gets the last read access time
|
java.lang.String |
getName()
Gets the name
|
java.lang.String |
getPrivateUrl()
Gets the private url to the file (can be accessed only within QuickBlox environment)
|
static java.lang.String |
getPrivateUrlForUID(java.lang.String uid)
Gets the private url to the file (can be accessed only within QuickBlox environment)
|
java.lang.String |
getPublicUrl()
Gets the pubic url to the file (can be accessed without session token)
|
static java.lang.String |
getPublicUrlForUID(java.lang.String uid)
Gets the pubic url to the file (can be accessed without session token)
|
int |
getSize()
Gets the file size
|
QBFileStatus |
getStatus()
Gets the status
|
java.lang.String |
getTags()
Gets the users' tags to share the file with
|
java.lang.String |
getUid()
Gets the uid
|
java.lang.Boolean |
isPublic()
Return 'true' if this file is public (can be accessed without session token)
|
void |
setCompletedAt(java.util.Date completedAt)
Sets the completed at date
|
void |
setContentType(java.lang.String contentType)
Sets the content type
|
void |
setFileObjectAccess(QBFileObjectAccess fileObjectAccess)
Sets the file object access
|
void |
setLastReadAccessTime(java.util.Date lastReadAccessTime)
Sets the last read access time
|
void |
setName(java.lang.String name)
Sets the name
|
void |
setPublic(java.lang.Boolean publicFlag)
Sets the visibility of file
|
void |
setSize(int size)
Sets the file size
|
void |
setStatus(boolean status)
Sets the status
|
void |
setStatus(QBFileStatus status)
Sets the status
|
void |
setTags(java.lang.String tags)
Sets the users' tags to share the file with
|
void |
setUid(java.lang.String uid)
Sets the uid
|
java.lang.String |
toString() |
equals, getCreatedAt, getFCreatedAt, getFUpdatedAt, getId, getUpdatedAt, hashCode, setCreatedAt, setId, setUpdatedAt
public QBFile()
public QBFile(java.lang.Integer id)
id
- the file IDpublic QBFile(java.lang.String uid)
uid
- the file UIDpublic java.lang.String getUid()
public void setUid(java.lang.String uid)
uid
- the UID to setpublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType
- the content type value to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic int getSize()
public void setSize(int size)
size
- the size to setpublic QBFileStatus getStatus()
public void setStatus(QBFileStatus status)
status
- the status to setpublic void setStatus(boolean status)
status
- the status to set, 'true' means COMPLETE, 'false' means UNCOMPLETE.public java.util.Date getCompletedAt()
public void setCompletedAt(java.util.Date completedAt)
completedAt
- the completed at datepublic java.lang.Boolean isPublic()
public void setPublic(java.lang.Boolean publicFlag)
publicFlag
- The value of file's visibility. Set 'true' if the file can be accessed without session token.public java.util.Date getLastReadAccessTime()
public void setLastReadAccessTime(java.util.Date lastReadAccessTime)
lastReadAccessTime
- the last read access timepublic java.lang.String getTags()
public void setTags(java.lang.String tags)
tags
- the tags value to setpublic QBFileObjectAccess getFileObjectAccess()
public void setFileObjectAccess(QBFileObjectAccess fileObjectAccess)
fileObjectAccess
- the file object accesspublic static java.lang.String getPublicUrlForUID(java.lang.String uid)
uid
- the UID of the filepublic static java.lang.String getPrivateUrlForUID(java.lang.String uid)
uid
- the UID of the filepublic java.lang.String getPublicUrl()
public java.lang.String getPrivateUrl()
public void copyFieldsTo(QBEntity entity)
QBEntity
copyFieldsTo
in class QBEntity
entity
- receiver instance