Interface IVersionedStorage
- All Superinterfaces:
IVersion
This interface is for File in the versioning system.
These methods provide a I/O access for the file in the version control system.
-
Method Summary
Modifier and TypeMethodDescriptionGet the filename for the versionGets mime type for the contentlong
getSize()
Get the size of the Version from the version control systemgetUser()
Get the user who made chages to this versionread()
Read the file from the version in version control systemvoid
setFileName
(String filename) Set the filename for the versionvoid
setMimeType
(String mimetype) Sets mime type for the contentvoid
set the user who made chages to this versionvoid
write
(InputStream input) Write the file for the version to the version control systemMethods inherited from interface com.webmethods.portal.service.version.IVersion
getAllPrevious, getComment, getCreatedOn, getId, getName, getNext, getPrevious, getResource, getThingInfo, getTime, setComment, setName, setThingInfo
-
Method Details
-
getSize
Get the size of the Version from the version control system- Returns:
- the size
- Throws:
VersionException
-
write
Write the file for the version to the version control system- Parameters:
input
- the InputStream of content to write to the version- Throws:
VersionException
-
read
Read the file from the version in version control system- Returns:
- a InputStream of content of the version
- Throws:
VersionException
-
setMimeType
Sets mime type for the content- Parameters:
mimetype
- the MimeType of the version- Throws:
VersionException
-
getMimeType
Gets mime type for the content- Returns:
- the MimeType of the version
- Throws:
VersionException
-
getFileName
Get the filename for the version- Returns:
- the filename
- Throws:
VersionException
-
setFileName
Set the filename for the version- Parameters:
filename
- the filename of the file update in the version system.- Throws:
VersionException
-
getUser
Get the user who made chages to this version- Returns:
- the user who made changes on this version
- Throws:
VersionException
-
setUser
set the user who made chages to this version- Parameters:
userId
- the userid of the person who made changes to the version- Throws:
VersionException
-