Interface IResourceVersion
- All Superinterfaces:
Comparable<IResourceVersion>
public interface IResourceVersion extends Comparable<IResourceVersion>
The interface representing a version instance of an
IResource.-
Method Summary
Modifier and Type Method Description byte[]getContent()Returns the content of the resource version as a byte array.StringgetContentType()Getter for the content type.DategetCreatedAt()Timestamp of the creation of the entity.StringgetCreatedBy()The creator of the entity.StringgetPath()Returns the path of this resource versionintgetVersion()Returns the version number.booleanisBinary()Getter for binary flag.
-
Method Details
-
getPath
String getPath()Returns the path of this resource versionThe result may not be
null.Example: /db/users/test.txt
Example: /db/articles- Returns:
- the location of the
IResource
-
getVersion
int getVersion()Returns the version number.- Returns:
- the version
-
getContent
Returns the content of the resource version as a byte array.- Returns:
- the raw content
- Throws:
RepositoryReadException- the repository read exception
-
isBinary
boolean isBinary()Getter for binary flag.- Returns:
- whether it is binary
-
getContentType
String getContentType()Getter for the content type.- Returns:
- the type of the content
-
getCreatedBy
String getCreatedBy()The creator of the entity.- Returns:
- the user created this version
-
getCreatedAt
Date getCreatedAt()Timestamp of the creation of the entity.- Returns:
- the time this version has been created
-