Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Get the filename for the version
|
String |
getMimeType()
Gets mime type for the content
|
long |
getSize()
Get the size of the Version from the version control system
|
String |
getUser()
Get the user who made chages to this version
|
InputStream |
read()
Read the file from the version in version control system
|
void |
setFileName(String filename)
Set the filename for the version
|
void |
setMimeType(String mimetype)
Sets mime type for the content
|
void |
setUser(String userId)
set the user who made chages to this version
|
void |
write(InputStream input)
Write the file for the version to the version control system
|
getAllPrevious, getComment, getCreatedOn, getId, getName, getNext, getPrevious, getResource, getThingInfo, getTime, setComment, setName, setThingInfo
long getSize() throws VersionException
VersionException
void write(InputStream input) throws VersionException
input
- the InputStream of content to write to the versionVersionException
InputStream read() throws VersionException
VersionException
void setMimeType(String mimetype) throws VersionException
mimetype
- the MimeType of the versionVersionException
String getMimeType() throws VersionException
VersionException
String getFileName() throws VersionException
VersionException
void setFileName(String filename) throws VersionException
filename
- the filename of the file update in the version system.VersionException
String getUser() throws VersionException
VersionException
void setUser(String userId) throws VersionException
userId
- the userid of the person who made changes to the versionVersionException