public class ContentMetadata extends Object implements Serializable
Constructor and Description |
---|
ContentMetadata() |
ContentMetadata(ContentMetadata otherBean)
Copies constructor from other ContentMetadata
|
ContentMetadata(String mimeType,
Date date,
String filename,
long contentSize,
String url,
Object[] versions,
ContentId contentId) |
ContentMetadata(String mimeType,
Date date,
String filename,
long contentSize,
String url,
String version,
Object[] versions,
ContentId contentId) |
Modifier and Type | Method and Description |
---|---|
void |
copy(ContentMetadata otherBean)
Copies all properties from the argument value object into this value object.
|
ContentId |
getContentId()
Get the contentId
|
long |
getContentSize()
The size of the content in bytes.
|
Date |
getDate()
The current date and time.
|
String |
getFilename() |
String |
getMimeType()
The MIME-type of this content.
|
String |
getUrl() |
String |
getVersion()
The version of this content.
|
Object[] |
getVersions() |
void |
setContentId(ContentId contentId)
Sets the contentId
|
void |
setContentSize(long contentSize) |
void |
setDate(Date date) |
void |
setFilename(String filename) |
void |
setMimeType(String mimeType) |
void |
setUrl(String url) |
void |
setVersion(String version) |
void |
setVersions(Object[] versions) |
public ContentMetadata()
public ContentMetadata(ContentMetadata otherBean)
otherBean
- , cannot be null
NullPointerException
- if the argument is null
public ContentMetadata(String mimeType, Date date, String filename, long contentSize, String url, Object[] versions, ContentId contentId)
public void copy(ContentMetadata otherBean)
public ContentId getContentId()
public long getContentSize()
The size of the content in bytes.
public Date getDate()
The current date and time.
public String getFilename()
public String getMimeType()
The MIME-type of this content.
public String getUrl()
public String getVersion()
The version of this content. Only set if this content is versionized.
public Object[] getVersions()
public void setContentId(ContentId contentId)
public void setContentSize(long contentSize)
public void setDate(Date date)
public void setFilename(String filename)
public void setMimeType(String mimeType)
public void setUrl(String url)
public void setVersion(String version)
public void setVersions(Object[] versions)
Copyright © 2019 Communote team. All rights reserved.