Interface IViewableVersion
- All Superinterfaces:
IVersion
,IView
,Serializable
an interface to make
IVersion
to be viewable-
Field Summary
Fields inherited from interface com.webmethods.portal.service.view.IView
PROP_DESCRIPTION, PROP_NAME, PROP_TYPE, PROP_URI
-
Method Summary
Modifier and TypeMethodDescriptiongets version original file name, if the version is an instance ofIVersionedStorage
gets content of the version, if the version is an instance ofIVersionedStorage
gets version mime type, if the version is an instance ofIVersionedStorage
long
getSize()
gets size of version content, if the version is an instance ofIVersionedStorage
getUser()
gets a user, if the version is an instance ofIVersionedStorage
Methods inherited from interface com.webmethods.portal.service.version.IVersion
getAllPrevious, getComment, getCreatedOn, getId, getName, getNext, getPrevious, getResource, getThingInfo, getTime, setComment, setName, setThingInfo
Methods inherited from interface com.webmethods.portal.service.view.IView
getProperties, getProperty, getPropertyNames, getURI
-
Method Details
-
getUser
gets a user, if the version is an instance ofIVersionedStorage
- Returns:
- Throws:
VersionException
-
getMimeType
gets version mime type, if the version is an instance ofIVersionedStorage
- Returns:
- mime type, if any. otherwise null
- Throws:
VersionException
-
getFileName
gets version original file name, if the version is an instance ofIVersionedStorage
- Returns:
- file name, if any. otherwise null
- Throws:
VersionException
-
getSize
gets size of version content, if the version is an instance ofIVersionedStorage
- Returns:
- content length of the version, if any. otherwise zero.
- Throws:
VersionException
-
getInputStream
gets content of the version, if the version is an instance ofIVersionedStorage
- Returns:
- conten of the version as a stream, if any. otherwise null.
- Throws:
VersionException
-